> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tenant-scoped Mail submission receipts. Request bodies and bindings are omitted.

> Email submission attempts and Mail receipts; not recipient acceptance

### Response

`MailDeliveryResponse`

**data** `MailDeliveryPage` *required*

**MailDeliveryPage**

**count** `integer` *required*

Minimum: `0`.

**deliveries** `MailDeliveryView[]` *required*

**MailDeliveryView**

**attempts** `integer (int32)` *required*

**connection\_id** `string,null`

**control\_number** `string` *required*

**created\_at** `string (date-time)` *required*

**document\_id** `string,null`

**id** `string` *required*

**last\_error** `string,null`

**mail\_receipt** `MailReceipt,null`

**next\_attempt\_at** `string (date-time)` *required*

**partner\_id** `string` *required*

**reference** `string` *required*

**status** `string` *required*

accepted means Mail queue acceptance; legacy\_accepted has no durable receipt.

**transaction\_set** `string` *required*

**updated\_at** `string (date-time)` *required*

**success** `boolean` *required*

### Status codes

| Code | Meaning |
| - | - |
| `200` | Email submission attempts and Mail receipts; not recipient acceptance |
| `403` | Workspace credential required |

### Using this contract

Read the [source OpenAPI document](/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request GET \
  --url 'https://api.edi.stateset.com/v1/deliveries/mail' \
  --header "Authorization: Bearer $EDI_API_TOKEN"
```

```json 200 theme={null}
{
  "data": {
    "count": 2,
    "deliveries": [
      {
        "attempts": 1,
        "connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "control_number": "string",
        "created_at": "2026-08-31T14:22:05Z",
        "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "last_error": "string",
        "mail_receipt": {
          "accepted_at": "2026-08-31T14:22:05Z",
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "message_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "status": "queued"
        },
        "next_attempt_at": "2026-08-31T14:22:05Z",
        "partner_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "reference": "ORD-10042",
        "status": "pending",
        "transaction_set": "string",
        "updated_at": "2026-08-31T14:22:05Z"
      }
    ]
  },
  "success": true
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.