getMailRequestStatus
    • PDF

    getMailRequestStatus

    • PDF

    Article Summary

    Gets the delivery status and the number of emails, by status of the emails that are being sent, by specifying a requestId.

    GET https://{endpoint}/mails/requests/{requestId}/status
    

    Request

    Request parameters

    Parameter nameRequired statusTypeRestrictionsDescription
    requestIdYesStringRequest ID to send an email (for identifying each request). If you make a request to send multiple messages at the same time, then the requestId can contain multiple mailIds.

    Response

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

    Example

    Request example

    GET https://mail.apigw.ntruss.com/api/v1/mails/requests/20181126000000246001/status
    

    Response example

    {
      "requestId":"20181126000000246001",
      "readyCompleted":true,
      "allSentSuccess":false,
      "requestCount":35179,
      "sentCount":33502,
      "finishCount":35179,
      "readyCount":35179,
      "reservationDate":null,
      "countsByStatus":[
        {
          "status":{
            "label":"Failed to send",
            "code":"F"
          },
          "count":1415
        },
        {
          "status":{
            "label":"Sent successfully",
            "code":"S"
          },
          "count":33502
        },
        {
          "status":{
            "label":"Unsubscribe",
            "code":"U"
          },
          "count":262
        }
      ]
    }
    

    Property

    CategoryRequired statusTypeRestrictionsDescription
    requestIdYesStringRequest ID to send an email (for identifying each request). If you make a request to send multiple messages at the same time, then the requestId can contain multiple mailIds.
    readyCompletedYesBooleanIndicates whether messages are ready to be sent. - This indicates whether the emails requested to be sent are added to the DB and ready to be sent. (It is true, even when they are already sent.)
    allSentSuccessYesBooleanIndicates whether all the requested emails are successfully sent.
    requestCountYesIntegerNumber of emails requested to be sent.
    sentCountYesIntegerNumber of emails sent successfully.
    finishCountYesIntegerNumber of emails processed (sent successfully + failed + unsubscribed + canceled)
    readyCountYesIntegerNumber of emails that are ready or sent successfully (the number of emails added to the DB)
    reservationDateNoDateTimeScheduled date and time
    countsByStatusYesList<CountByStatus>Number of emails by status

    Error codes

    HTTP Status CodeReturn codeResponse message
    40077101Error in login information
    40077102BAD_REQUEST
    40077103Resource not found
    40377201No permission
    40377202No request to subscribe the email product
    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?

    What's Next
    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.