---
title: "Get email message logs"
method: GET
path: "/email/1/logs"
tags: ["channels", "email", "email-logs-and-reports"]
---

# Get email message logs

`GET /email/1/logs`

## Request

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

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

## Query parameters

- `messageId` string
- `from` string
- `to` string
- `bulkId` string
- `campaignReferenceId` string
- `generalStatus` string
- `sentSince` string, date-time
- `sentUntil` string, date-time
- `limit` integer
- `applicationId` string
- `entityId` string
- `useCursor` boolean
- `cursor` string

## Response `200`

OK

- 34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1EmailLogResponse
  - `results` 34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1EmailLog[]: Array of email logs, one object per each email request.
    - `applicationId` string: The Application ID sent in the email request.
    - `entityId` string: The Entity ID sent in the email request.
    - `bulkId` string: The ID that uniquely identifies the request.
    - `messageId` string: The ID that uniquely identifies the sent email request.
    - `to` string: The recipient email address.
    - `from` string: From email address.
    - `text` string: The text from email body.
    - `sentAt` string, date-time: Tells when the email was initiated. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
    - `doneAt` string, date-time: Date and time when the Infobip services finished processing the email (i.e. delivered to the destination, waiting for delivery, etc.).
    - `messageCount` integer: Email request count.
    - `price` 34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1Price: Sent email price.
      - `pricePerMessage` number: Price per one email request.
      - `currency` string: The currency in which the price is expressed.
    - `status` 34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1Status: Indicates whether the initiated email has been successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status.
      - `groupId` integer: Status group ID.
      - `groupName` string: Status group name.
      - `id` integer: Status ID.
      - `name` string: Status name.
      - `description` string: Human-readable description of the status.
      - `action` string: Action name.
    - `error` 34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1Error
      - `groupId` integer
      - `groupName` string
      - `id` integer
      - `name` string
      - `description` string
      - `permanent` boolean
  - `cursor` 34438aa163eb13a2a06ad96ae98170e41cc2ee8902e8b7655aba73ceb0bb23f1CursorPageInfo: Cursor information.
    - `limit` integer: Requested limit.
    - `nextCursor` string: The `cursor` value you will use in your next request to fetch the subsequent set of results.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
