---
title: "List received emails"
method: GET
path: "/v1/email/inbound-messages"
tags: ["email-inbound-messages"]
---

# List received emails

`GET /v1/email/inbound-messages`

## Request

- Base URL: `https://us1.platform.bird.com`
- URL: `https://us1.platform.bird.com/v1/email/inbound-messages`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `bird_session`

Returns a paginated list of received emails for the workspace, newest first. Filter by sender address, by the inbound address or mailbox that received the mail, or by a received-time range. Mail a mailbox received is listed whatever its placement, including spam and blocked mail, with its `mailbox_id` and, while the mailbox keeps it, its `thread_id`. Received emails are retained for 30 days.

## Query parameters

- `from` string, email
- `inbound_address_id` string
- `mailbox_id` string
- `received_after` string, date-time
- `received_before` string, date-time
- `limit` integer
- `starting_after` string
- `ending_before` string

## Headers

- `X-Workspace-Id` string
- `X-Organization-Id` string

## Response `200`

Paginated list of received emails.

- InboundEmailMessageList
  - `data` InboundEmailMessage[], required: Page of received emails, newest first.
    - `id` string, required
    - `from` EmailAddress, required: An email address with an optional display name.
      - `email` string, email, required: Email address.
      - `name` string: Display name shown alongside the address in mail clients.
    - `to` EmailAddress[], required: Recipients on the message's To header.
      - `email` string, email, required: Email address.
      - `name` string: Display name shown alongside the address in mail clients.
    - `cc` EmailAddress[], required: Recipients on the message's Cc header.
      - `email` string, email, required: Email address.
      - `name` string: Display name shown alongside the address in mail clients.
    - `subject` string, nullable, required: Subject line as received, or `null` when the message had no subject.
    - `message_id` string, nullable, required: RFC 5322 Message-ID header from the sender, or `null` when the sender did not include one.
    - `in_reply_to` string, nullable, required: The `In-Reply-To` header, which holds the Message-ID this message is replying to. `null` when the message is not a reply.
    - `references` string[]: The References header, which holds every Message-ID in this conversation, oldest first. Left out when the message arrived without one.
    - `mailbox_id` string, required
    - `thread_id` string, nullable, required: Mailbox conversation this message belongs to, or `null` when it was not received by a mailbox or has since been deleted from it.
    - `authentication` 'pass' | 'fail' | 'unknown' | 'null', nullable, required: DMARC result for the domain in the received message's `From` header. - `pass`: SPF or DKIM passed and aligned with that domain. - `fail`: DMARC was evaluated and did not pass. - `unknown`: no trustworthy verdict is available. This follows `dmarc_pass` and does not verify a particular person. The receiving provider currently supplies no DMARC result, so received messages report `unknown`.
    - `spf_pass` boolean, nullable, required: Whether the receiving provider reports that SPF authorized the envelope sender for the sending server. A soft failure is `false`. Missing, neutral and inconclusive results are `null`.
    - `dkim_pass` boolean, nullable, required: Whether the receiving provider verified a DKIM signature. A passing signature makes this `true` even when another signature fails. Missing signatures and inconclusive verification results are `null`.
    - `dmarc_pass` boolean, nullable, required: Whether SPF or DKIM passed and aligned with the domain in the message's `From` header. The receiving provider currently supplies no DMARC result, so this is `null`.
    - `spam_score` number, nullable, required: Content spam score when available. The receiving provider currently supplies no score, so this is `null`.
    - `attachments` InboundAttachment[], required: Metadata for each attachment found on the message. Empty when the message had no attachments.
      - `id` string, required
      - `filename` string, nullable, required: Filename from the attachment's Content-Disposition, or `null` when the sender did not name the part.
      - `content_type` string, nullable, required: MIME type parsed from the attachment part, or `null` when absent.
      - `size` integer, required: Size of the attachment in bytes.
    - `received_at` string, date-time, required: When the message was received.
  - `next_cursor` string, nullable, required: Cursor for the next page. Pass back as `starting_after` to advance forward. `null` when no next page exists.
  - `prev_cursor` string, nullable, required: Cursor for the previous page. Pass back as `ending_before` to step backward. `null` when no previous page exists.
  - `refresh_cursor` string, nullable, required: Refresh anchor, the first row of this response. Pass back as `ending_before` to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-`null` whenever `data` is non-empty; `null` only on an empty page. Distinct from `prev_cursor`.

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Insufficient permissions
- `404`: Resource not found
- `422`: The request has invalid field values, violates a business rule, or carries a query parameter the endpoint does not declare. Field validation errors use `type: validation_error` and include the affected fields in `details`. Business-rule errors identify the failed rule in `type`.
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/messagebird/apis/bird-api.md) · [All operations](https://skmtc.dev/messagebird/apis/bird-api/llms.txt) · [OpenAPI document](https://skmtc.dev/messagebird/apis/bird-api/revisions/6dfce1179799?raw)
