getUnsubscribersList
    • PDF

    getUnsubscribersList

    • PDF

    Article Summary

    Gets unsubscribed email addresses.

    GET https://{endpoint}/unsubscribers
    

    Request

    Request Parameters

    ParameterRequiredTypeLimitationDescription
    startUtcNLongEither startUtc or startDateTime must be specified.Start date and time to search unsubscribed date and time (It is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC). It has priority over the startDateTime value.
    startDateTimeNStringAllowed date and time format ("yyyy-MM-dd", "yyyy-MM-dd HH:mm", "yyyy-MM-dd HH:mm:ss.SSS", "yyyy-MM-dd HH:mm:ss SSS").Start date and time in the allowed format (UTC+09:00). The startUtc value has priority over this value.
    endUtcNLongEither endUtc or endDateTime must be specified.End date and time to search unsubscribed date and time (It is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC). It has priority over the endDateTime value.
    endDateTimeNStringAllowed date and time format ("yyyy-MM-dd", "yyyy-MM-dd HH:mm", "yyyy-MM-dd HH:mm:ss.SSS", "yyyy-MM-dd HH:mm:ss SSS").End date and time in the allowed format (UTC+09:00). The endUtc value has priority over this value.
    emailAddressNStringEmail address formatUnsubscribed email address
    isRegByManagerNBooleanIndicates whether it is added by the admin.
    sizeNIntegerDefault:10Number of records per page.
    pageNIntegerDefault:0Index of a page to receive results (0..N).
    sortNStringcreateUtc: Unsubscribed date, isRegByManager: Indicates whether it is added by the admin.Sort by (format: property(,asc|desc)): Messages are sorted in ascending order (asc) by default; multiple fields can be used for sorting.

    Response

    HTTP status codeDescription
    200Success
    400Authentication failed, invalid request.
    500Server error

    Example

    Request Example

    GET https://mail.apigw.ntruss.com/api/v1/unsubscribers?startDateTime=2018-11-01%2000:00&size=5&page=0&endDateTime=2019-02-20%2023:59
    

    Response Example

    {
       "content":[
          {
             "address":"shin.xxx@gmail.com",
             "blockDate":{
                "utc":1546569106178,
                "formattedDate":"2019-01-04",
                "formattedDateTime":"2019-01-04 11:31:46 178"
             },
             "isRegByManager":false
          },
          {
             "address":"shin.xxxx@navercorp.com",
             "blockDate":{
                "utc":1546569014158,
                "formattedDate":"2019-01-04",
                "formattedDateTime":"2019-01-04 11:30:14 158"
             },
             "isRegByManager":false
          },
          {
             "address":"xxxxx@aaa.com",
             "blockDate":{
                "utc":1544603441295,
                "formattedDate":"2018-12-12",
                "formattedDateTime":"2018-12-12 17:30:41 295"
             },
             "isRegByManager":true
          },
          {
             "address":"xxxxx@nnn.com",
             "blockDate":{
                "utc":1544603441295,
                "formattedDate":"2018-12-12",
                "formattedDateTime":"2018-12-12 17:30:41 295"
             },
             "isRegByManager":true
          }
       ],
       "totalElements":4,
       "totalPages":1,
       "last":true,
       "numberOfElements":4,
       "first":true,
       "sort":[
          {
             "direction":"DESC",
             "property":"createUtc",
             "ignoreCase":false,
             "nullHandling":"NATIVE",
             "ascending":false,
             "descending":true
          }
       ],
       "size":10,
       "number":0
    }
    
    
    

    Properties

    PropertyRequiredTypeLimitationDescription
    totalElementsYIntegerTotal number of records
    totalPagesYIntegerTotal number of pages
    numberOfElementsYIntegerNumber of records in the current page
    firstYBooleanIndicates whether it is the first page.
    lastYBooleanIndicates whether it is the last page.
    numberYIntegerIndex of the current page (starting from 0)
    sizeYIntegerNumber of records per page
    sortYList<Sort>Sort
    contentNList<UnsubscribeResponse>Content

    Error Codes

    HTTP status codeReturn codeResponse message
    40077101Error in login information
    40077102BAD_REQUEST
    40077103Resource not found
    40377201No permissions
    40377202No subscription
    40577001METHOD_NOT_ALLOWED
    41577002UNSUPPORTED_MEDIA_TYPE
    50077301Default project not found
    50077302Error in working with external system API
    50077303Other INTERNAL_SERVER_ERROR

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.