channels
email
email-logs-and-reports

Get email message logs

This method allows you to get logs for sent emails using their messageId. Email logs are available for the last 48 hours.

get/email/1/logs

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Query parameters

messageIdstring

The ID that uniquely identifies the sent email.

fromstring

From email address.

tostring

The recipient email address.

bulkIdstring

Bulk ID that uniquely identifies the request.

campaignReferenceIdstring

The ID that allows you to track, analyze, and show an aggregated overview and the performance of individual campaigns.

generalStatusstring

Indicates whether the initiated email has been successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status.

sentSincestring date-time
Example:2021-01-02T01:00:00.123Z

Tells when the email was initiated. Has the following format: yyyy-MM-dd'T'HH:mm:ss.SSSZ.

sentUntilstring date-time
Example:2021-01-02T01:00:00.123Z

Tells when the email request was processed by Infobip.Has the following format: yyyy-MM-dd'T'HH:mm:ss.SSSZ.

limitinteger

Maximum number of logs.

applicationIdstring

Application identifier used for filtering.

entityIdstring

Entity identifier used for filtering.

useCursorboolean

Flag used to enable cursor-based pagination. When set to true, the system will use the cursor to fetch the next set of logs.

cursorstring

Value which represents the current position in the data set. For the first request, this field shouldn't be defined. In subsequent requests, use the nextCursor value returned from the previous response to continue fetching data.

Response

OK

Example response

{
  "results": [
    {
      "sentAt": "2021-01-02T01:00:00.123Z",
      "doneAt": "2021-01-02T01:00:00.123Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.