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 JSON metadata part plus one or more binary files parts.

  • 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_number to 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), or failed (every recipient failed).

  • Do not treat 202 as "everything worked." Branch on outcome, then inspect each fax_ids entry. Each queued recipient gets its own fax_id to track.

  • One recipient failing does not stop the others.

  • A 4xx response (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 a failed outcome.


Cover Pages

  • Discover available templates and their required fields with GET /v1/cover-pages before 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 (commonly to-name, from-name, fax-back-number). Omitting a required field returns 422.


Best Practices

  • Always branch on outcome, then persist each returned fax_id against 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-pages rather than hard-coding field lists.

  • Pass originating_fax_number whenever 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; a 202 means the request was accepted.

 

Return to the top of this page.