---
title: "Get a list of all mails sent by receivable"
method: GET
path: "/receivables/{receivable_id}/mails"
tags: ["Receivables"]
---

# Get a list of all mails sent by receivable

`GET /receivables/{receivable_id}/mails`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/receivables/{receivable_id}/mails`
- Auth: HTTP bearer

## Path parameters

- `receivable_id` string, required

## Query parameters

- `order` 'asc' | 'desc'
- `limit` integer
- `pagination_token` string
- `sort` 'status' | 'created_at' | 'updated_at'
- `status` 'pending' | 'processing' | 'sent' | 'partially_sent' | 'failed'
- `status__in` 'pending' | 'processing' | 'sent' | 'partially_sent' | 'failed'
- `created_at__gt` string, date-time
- `created_at__lt` string, date-time
- `created_at__gte` string, date-time
- `created_at__lte` string, date-time

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Response `200`

Successful Response

- ReceivableMailPaginationResponse
  - `data` ReceivableMailResponse[], required
    - `id` string, uuid, required
    - `created_at` string, date-time, required: The time the mail task was created
    - `updated_at` string, date-time, required: The time the mail task was updated
    - `recipients` ReceivableMailRecipients
      - `bcc` ReceivableMailRecipientState[]
        - `email` string, email, required: An email address of the recipient.
        - `error` string: An error message in case the mailing was unsuccessful.
        - `is_success` boolean, required: Whether mail was sent successfully.
      - `cc` ReceivableMailRecipientState[]
        - `email` string, email, required: An email address of the recipient.
        - `error` string: An error message in case the mailing was unsuccessful.
        - `is_success` boolean, required: Whether mail was sent successfully.
      - `to` ReceivableMailRecipientState[]
        - `email` string, email, required: An email address of the recipient.
        - `error` string: An error message in case the mailing was unsuccessful.
        - `is_success` boolean, required: Whether mail was sent successfully.
    - `status` 'pending' | 'processing' | 'sent' | 'partially_sent' | 'failed', required
  - `next_pagination_token` string: A token that can be sent in the `pagination_token` query parameter to get the next page of results, or `null` if there is no next page (i.e. you've reached the last page).
  - `prev_pagination_token` string: A token that can be sent in the `pagination_token` query parameter to get the previous page of results, or `null` if there is no previous page (i.e. you've reached the first page).

## Other responses

- `400`: Bad Request
- `401`: The `Authorization` header is missing or contains an invalid or expired access token. See [Authentication](https://docs.monite.com/api/concepts/authentication) to learn how to authenticate API calls.
- `403`: The specified access token does not have permissions to perform this operation.
- `404`: Not found
- `422`: Validation Error
- `429`: API rate limit has been exceeded. Check the response headers for the rate limit information.

---

[API](https://skmtc.dev/monite/apis/monite-2.md) - [All operations](https://skmtc.dev/monite/apis/monite-2/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-2/revisions/4299ccf95edb?raw)
