Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Retrieve a list of received emails

GET/emails/receivingRetrieve a list of received emails

Parameters

limitintegerquery

Maximum number of received emails to return.

afterstring · uuidquery

Pagination cursor to fetch results after this email ID. Cannot be used with 'before'.

beforestring · uuidquery

Pagination cursor to fetch results before this email ID. Cannot be used with 'after'.

Responses

200OKapplication/json
objectListReceivedEmailsResponse
dataarray of object

Array containing received email information.

Show child attributes
Show array items
attachmentsarray of object

Array of attachments for this email.

Show child attributes
Show array items
content_dispositionstring

How the attachment should be displayed.

one of "inline", "attachment"

content_idstring

The content ID for inline attachments.

content_typestring

The MIME type of the attachment.

filenamestring

The filename of the attachment.

idstring · uuid

The ID of the attachment.

sizeinteger

Size of the attachment in bytes.

bccarray of string

The BCC recipients.

Show child attributes
ccarray of string

The CC recipients.

Show child attributes
created_atstring · date-time

Timestamp when the email was received.

fromstring

The sender email address.

idstring · uuid

The ID of the received email.

message_idstring

The unique message ID from the email headers.

reply_toarray of string

The reply-to addresses.

Show child attributes
subjectnull | string

The email subject.

toarray of string

The recipient email addresses.

Show child attributes
has_moreboolean

Indicates if there are more results available.

objectstring

Type of the response object.

Example response
{
  "data": [
    {
      "attachments": [
        {
          "content_disposition": "attachment",
          "content_id": "string",
          "content_type": "string",
          "filename": "string",
          "id": "00000000-0000-0000-0000-000000000000",
          "size": 0
        }
      ],
      "bcc": [
        "string"
      ],
      "cc": [
        "string"
      ],
      "created_at": "2023-10-06T23:47:56.678Z",
      "from": "sender@example.com",
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "message_id": "<message-id@example.com>",
      "reply_to": [
        "string"
      ],
      "subject": "Hello World",
      "to": [
        "delivered@resend.dev"
      ]
    }
  ],
  "has_more": false,
  "object": "list"
}
Documentation menu