# Read a message's delivery

URL: https://heaven.dev/docs/reference/computers/mail-status
Updated: 2026-11-21

Read the delivery status of an outgoing message by the ID returned when the Computer sent it. Requires owner or root access.

`GET /v1/computer/?view=mail+status`

## Parameters

- `computer` (string, required): Computer name or ID.
- `message` (string, required): Message ID returned when the Computer sent the mail.

## Returns

- `data` (object, always present): The recorded status of an outgoing message.
  - `accepted` (boolean): Whether Heaven durably accepted the message for sending. May be omitted.
  - `failure` (object): Sending failure and any retry timing. May be omitted.
    - `error` (string, always present): Explanation of the failure.
    - `kind` (string, always present): Failure category.
    - `retry_after` (integer): Retry delay in seconds. May be omitted.
  - `id` (string): Message ID. May be omitted.
  - `receiving_enabled` (boolean, always present): Whether the sending Computer can currently receive mail.
  - `receiving_reason` (string): Why receiving is unavailable, when applicable. May be omitted.
  - `status` (string): Recorded sending state. Reconcile an unknown outcome before resending. May be omitted.
  - `success` (boolean): Whether the sending attempt succeeded. Recipient delivery is not confirmed. May be omitted.

## Errors

Each code is explained in full at https://heaven.dev/docs/reference/errors.

| Code | Status | What happened |
|---|---:|---|
| `invalid` | 400 | An input is missing or invalid. |
| `unauthenticated` | 401 | The credential is missing, invalid, expired or revoked. |
| `denied` | 403 | The caller lacks permission for this action. |
| `not_found` | 404 | The resource is absent or inaccessible to this caller. |
| `conflict` | 409 | The request conflicts with the current resource state or an earlier request. |
| `over_capacity` | 409 | The request exceeds a resource or credential allowance. |
| `access_list_full` | 409 | The change would exceed the access-list allowance. |
| `rate_limited` | 429 | The caller's request rate exceeds its limit. |
| `busy` | 429 | Too much work is in progress to accept this request. |
| `unknown` | 503 | The outcome is unconfirmed; a change may have happened. |
| `unavailable` | 503 | The service or requested feature is unavailable. |

## Notes

- API key permission: `mail status`.

## Examples

```sh tab="heaven CLI"
heaven mail status COMPUTER MESSAGE
```

```sh tab="SSH"
ssh cli@heaven.dev mail status COMPUTER MESSAGE
```

```sh tab="cURL"
curl "https://heaven.dev/v1/computer/?view=mail+status&computer=my-site&message=c2a7e9f1-5b3d-4e68-8f10-7a9b0c1d2e3f" \
  -H "Authorization: Bearer $HEAVEN_API_KEY"
```

```json tab="MCP"
{ "tool": "mail_status",
  "arguments": { "computer": "my-site", "message": "c2a7e9f1-5b3d-4e68-8f10-7a9b0c1d2e3f" } }
```

Response:

```json title="Response excerpt"
{
  "version": 1,
  "data": {
    "accepted": true,
    "id": "c2a7e9f1-5b3d-4e68-8f10-7a9b0c1d2e3f",
    "receiving_enabled": true,
    "status": "provider_accepted",
    "success": true
  }
}
```
