Get email logs
This method allows you to get logs for sent emails using their messageId. Email logs are available for the last 48 hours.
Authorizations:
Scopes:
Request rate limit:
query Parameters
messageId | string The ID that uniquely identifies the sent email. |
from | string From email address. |
to | string The recipient email address. |
bulkId | string Bulk ID that uniquely identifies the request. |
campaignReferenceId | string The ID that allows you to track, analyze, and show an aggregated overview and the performance of individual campaigns. |
generalStatus | string Indicates whether the initiated email has been successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status. |
sentSince | string <date-time> Example: sentSince=2021-01-02T01:00:00.123Z Tells when the email was initiated. Has the following format: |
sentUntil | string <date-time> Example: sentUntil=2021-01-02T01:00:00.123Z Tells when the email request was processed by Infobip.Has the following format: |
limit | integer <= 1000 Maximum number of logs. |
applicationId | string Application identifier used for filtering. |
entityId | string Entity identifier used for filtering. |
Responses
OK
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
curl -L -g 'https://{baseUrl}/email/1/logs?sentSince=2021-01-02T01%3A00%3A00.123Z&sentUntil=2021-01-02T01%3A00%3A00.123Z' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- 200
- 401
- 403
- 429
- 500
{- "results": [
- {
- "applicationId": "string",
- "entityId": "string",
- "bulkId": "string",
- "messageId": "string",
- "to": "string",
- "from": "string",
- "text": "string",
- "sentAt": "2021-01-02T01:00:00.123Z",
- "doneAt": "2021-01-02T01:00:00.123Z",
- "messageCount": 0,
- "price": {
- "pricePerMessage": 0,
- "currency": "string"
}, - "status": {
- "groupId": 0,
- "groupName": "string",
- "id": 0,
- "name": "string",
- "description": "string",
- "action": "string"
}, - "error": {
- "groupId": 0,
- "groupName": "string",
- "id": 0,
- "name": "string",
- "description": "string",
- "permanent": true
}
}
]
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See