# Retrieve a fax

`GET https://api.morevoice.ai/v1/faxes/{id}`

Returns the `Fax` object. Answers `404` with the code `resource_missing` when nothing has this ID in this organisation and mode.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `faxes_retrieve`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A fax ID (`fax_…`). |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |

## Responses

### 200 OK

OK Returns `Fax`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"fax"` | — |
| `id` | `string` | A fax ID (prefix `fax_`). |
| `livemode` | `boolean` | `true` in live mode, `false` in test mode. |
| `direction` | `"inbound" \| "outbound"` | `inbound`: received on one of your fax numbers. `outbound`: sent from one. |
| `status` | `"queued" \| "sending" \| "receiving" \| "received" \| "delivered" \| "failed" \| "cancelled"` | Received faxes: `receiving` → `received` \| `failed`. Sent faxes: `queued` → `sending` → `delivered` \| `failed` (a busy or dropped line is tried again, up to `max_attempts`); `queued` → `cancelled`. |
| `phone_number_id` | `string \| null` | Your number it was received on or sent from; null once that number was released. |
| `local_number` | `string` | Your number (E.164) at the time of the fax. |
| `remote_number` | `string` | The other party: the sender of a received fax, the destination of a sent one. |
| `remote_station_id` | `string \| null` | The station id (TSI / CSID) the far fax machine announced. |
| `pages` | `integer` | Pages received, or pages of the document sent. |
| `attempts` | `integer` | Sent faxes: tries made so far. |
| `max_attempts` | `integer` | Sent faxes: the most tries it gets. |
| `next_attempt_at` | `string \| null` | Sent faxes waiting (`queued`): when the next try starts. |
| `has_document` | `boolean` | The PDF can be downloaded (GET /v1/faxes/{id}/document). |
| `file_name` | `string` | Sent faxes: the uploaded file's name. |
| `size_bytes` | `integer` | Size of the PDF in bytes. |
| `error_code` | `"busy" \| "no_answer" \| "rejected" \| "not_a_fax" \| "line_failed" \| "transmission" \| "no_line" \| "converter_unavailable" \| … \| null` | Why the fax failed: `busy`, `no_answer`, `rejected` (the far machine refused it), `not_a_fax` (no fax machine answered), `line_failed`, `transmission`, `no_line` (the number has no line that carries fax), `converter_unavailable`, `flag_off`, `cancelled`, `timeout` or `number_gone`. |
| `call_id` | `string \| null` | When the fax arrived on a voice call (fax tone detection on a voice number): that call. |
| `created` | `string` | An ISO-8601 timestamp in UTC. |
| `completed_at` | `string \| null` | When it was received, delivered, failed or cancelled. |

Example:

```json
{
  "attempts": 1,
  "call_id": null,
  "completed_at": "2026-11-06T09:16:05.000Z",
  "created": "2026-11-06T09:14:22.000Z",
  "direction": "outbound",
  "error_code": null,
  "file_name": "referral.pdf",
  "has_document": true,
  "id": "fax_5kQp2mZr8YtVx1Lb3",
  "livemode": true,
  "local_number": "+97235550100",
  "max_attempts": 3,
  "next_attempt_at": null,
  "object": "fax",
  "pages": 3,
  "phone_number_id": "pn_7H2kLm9QxR4tYb",
  "remote_number": "+97235550199",
  "remote_station_id": "ACME CLINIC",
  "size_bytes": 184320,
  "status": "delivered"
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment

const fax = await mv.faxes.retrieve("fax_7Hk2Lm9Qp");
console.log(fax);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

fax = client.faxes.retrieve("fax_7Hk2Lm9Qp")
print(fax)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/faxes/fax_7Hk2Lm9Qp \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
