Sending Faxes
Send is a single call: POST /v1/faxes. You submit routing metadata plus one or more document files, and the API creates the message, uploads the documents, and queues transmission for you.
-
Request format:
multipart/form-data, a JSONmetadatapart plus one or more binaryfilesparts. -
Limits: up to 20 files and 100 MB total per transmission.
-
Direction: always outbound; you don't specify a direction.
-
Sending number: you do not pass a subscription ID. The API resolves the sending subscription from your account. Use the optional
originating_fax_numberto control which of your fax numbers sends.
An assigned inbound fax number (DID) is not required to send outbound faxes. Your ability to send is based solely on your account's API permissions.
Basic send (single recipient), the metadata part:
{
"metadata": {
"recipients": [
{ "name": "Aetna Kentucky", "company": "Aetna", "fax_number": "+18553011564" }
]
}
}
Send with a cover page, the metadata part:
{
"metadata": {
"originating_fax_number": "+15555550123",
"recipients": [
{ "name": "Aetna Kentucky", "company": "Aetna", "fax_number": "+18553011564" }
] },
"cover_page": {
"name": "Default",
"fields": {
"to-name": "Dr. Eva Stone",
"from-name": "Records Dept",
"fax-back-number": "+15555550123",
"from-company": "Aetna",
"message": "Please confirm receipt."
}
}
}
The Response Model (Read This Carefully)
A well-formed send always returns 202 Accepted, even if some or all recipients failed. The body carries a top-level outcome and a per-recipient fax_ids array:
{
"outcome": "partial",
"fax_ids": [
{ "fax_id": "1f0a9d2c-...", "fax_number": "+18553011564", "status": "queued" },
{ "fax_number": "+1555", "status": "error", "error_code": "INVALID_FAX_NUMBER",
"error_message": "The recipient fax number '+1555' is not a valid E.164 fax number." }
],
"created_at": "2026-06-24T17:05:32Z"
}
-
outcome = succeeded(all recipients queued),partial(some queued, some failed), orfailed(every recipient failed). -
Do not treat
202as "everything worked." Branch onoutcome, then inspect eachfax_idsentry. Each queued recipient gets its ownfax_idto track. -
One recipient failing does not stop the others.
-
A
4xxresponse (e.g.,422) means your request envelope was invalid (malformed JSON, invalid cover page, zero recipients, more than 20 files) and nothing was sent, this is different from afailedoutcome.
Cover Pages
-
Discover available templates and their required fields with
GET /v1/cover-pagesbefore you build your send logic. Templates include: Announcement, Confidential, Urgent, Professional, Simple, Default. -
When you include a cover page you must supply every field in that template's
required_fields(commonlyto-name, from-name, fax-back-number). Omitting a required field returns422.
Best Practices
-
Always branch on
outcome, then persist each returnedfax_idagainst your own record. -
Validate recipient numbers (E.164, e.g.,
+18553011564) before sending to reduce per-recipient errors. -
Enforce the limits client-side (≤ 20 files, ≤ 100 MB total) to avoid
413/422. -
Discover cover-page templates dynamically with
GET /v1/cover-pagesrather than hard-coding field lists. -
Pass
originating_fax_numberwhenever your account has more than one fax number, so the sending number is deterministic. -
Make retries safe against duplicates. Only retry a send when you have not received a
202; a202means the request was accepted.