Private beta

Faxline REST API

Send faxes, follow delivery and receive incoming faxes by webhook, from your own software. The API is in private beta: read the reference below and apply for access.

Overview

The API is organized around REST. It accepts JSON or multipart form bodies, returns JSON, and uses standard HTTP status codes. All requests must use HTTPS. The base URL and your keys are shared with you when your access is approved; the examples below use $FAXLINE_API.

Endpoints and fields may still change during the beta. Approved teams are notified before any breaking change.

Authentication

Authenticate with a secret API key in the Authorization header. Keys start with fl_live_ or fl_test_. Test keys accept requests but never dial a real number. Keep keys on your server; never ship them in a browser or mobile app.

curl $FAXLINE_API/v1/faxes \
  -H "Authorization: Bearer fl_live_••••••••••••"

Send a fax

POST/v1/faxes

Queues a fax and returns immediately. Follow progress with webhooks or by retrieving the fax.

FieldTypeDescription
tostringRecipient fax number in E.164 format, e.g. +12125550142. US and Canada.
filefile[]One or more PDF, JPG or PNG files (multipart). Up to 20 MB in total.
file_urlstring[]Alternatively, HTTPS URLs we download the documents from.
cover_pageobjectOptional cover page: name, phone, fax, message.
metadataobjectUp to 20 key/value pairs returned with the fax and in webhooks.

Send an Idempotency-Key header to make retries safe: repeating a request with the same key returns the original fax instead of sending a second one.

Request
curl -X POST $FAXLINE_API/v1/faxes \
  -H "Authorization: Bearer $FAXLINE_KEY" \
  -H "Idempotency-Key: 5f1c7e0a-order-1042" \
  -F to=+12125550142 \
  -F file=@referral.pdf \
  -F 'cover_page[name]=Northside Clinic' \
  -F 'metadata[order_id]=A-1042'
Response · 201
{
  "id": "fax_8Kq2v1sZb3",
  "direction": "outbound",
  "status": "queued",
  "to": "+12125550142",
  "from": "+13125550199",
  "pages": 3,
  "created_at": "2026-11-18T14:02:11Z",
  "metadata": { "order_id": "A-1042" }
}

Retrieve a fax

GET/v1/faxes/{id}

Returns a sent or received fax.

The fax object
{
  "id": "fax_8Kq2v1sZb3",
  "direction": "outbound",
  "status": "delivered",          // queued | sending | delivered | failed
  "to": "+12125550142",
  "from": "+13125550199",
  "pages": 3,
  "created_at": "2026-11-18T14:02:11Z",
  "delivered_at": "2026-11-18T14:03:05Z",
  "failure_reason": null,         // line_busy | no_answer | transmission_failed
  "metadata": { "order_id": "A-1042" }
}

List faxes

GET/v1/faxes?direction=inbound&limit=50

Newest first. Paginate with the opaque next_cursor from the previous page.

FieldTypeDescription
directionstringinbound or outbound. Both when omitted.
statusstringFilter by status.
limitinteger1–100, default 50.
cursorstringnext_cursor from the previous response.

Documents & receipts

GET/v1/faxes/{id}/document

GET/v1/faxes/{id}/receipt

Return a short-lived signed URL (valid for 10 minutes) to the fax as a PDF, or to the transmission receipt of a delivered fax. We don’t keep copies of your documents: files are fetched on request and deleted from our storage within an hour.

Response · 200
{
  "url": "https://files.faxline…/fax_8Kq2v1sZb3.pdf?token=…",
  "expires_at": "2026-11-18T14:15:00Z"
}

Numbers

GET/v1/numbers

GET/v1/numbers/available?area_code=212

POST/v1/numbers

DELETE/v1/numbers/{id}

List your fax numbers, search available numbers by area code, and add or release numbers. Faxes sent to your numbers are delivered by webhook.

Webhooks

Register an HTTPS endpoint and we POST an event when something happens. Each request is signed with HMAC-SHA256 in the Faxline-Signature header; verify it before trusting the body. Failed deliveries are retried with exponential backoff for up to 24 hours.

FieldTypeDescription
fax.queuedoutboundThe fax was accepted and is waiting to dial.
fax.deliveredoutboundAll pages were delivered. The receipt is available.
fax.failedoutboundDelivery failed; see failure_reason.
fax.receivedinboundA fax arrived on one of your numbers.
fax.received
{
  "id": "evt_3nVd8Lq0",
  "type": "fax.received",
  "created_at": "2026-11-18T15:20:44Z",
  "data": {
    "id": "fax_Q7w1mXc9",
    "direction": "inbound",
    "status": "delivered",
    "from": "+16175550123",
    "to": "+13125550199",
    "pages": 2
  }
}

Errors

Errors use conventional HTTP status codes and a JSON body with a machine-readable code.

FieldTypeDescription
400invalid_requestA parameter is missing or malformed.
401unauthorizedThe API key is missing or invalid.
402plan_requiredThe account has no active plan.
404not_foundThe fax or number does not exist.
409idempotency_conflictThe key was reused with a different request.
422invalid_recipientThe number is not a valid US or Canadian fax number.
429rate_limitedToo many requests; retry after the Retry-After header.
{ "error": { "code": "invalid_recipient", "message": "Faxes can only be sent to the US and Canada." } }

Limits

  • 20 MB of documents per fax.
  • Recipients in the United States and Canada.
  • Default rate limit of 10 requests per second per key, raised on request.

Apply for API access

We’re onboarding teams in small groups during the beta. Tell us what you’re building and we’ll get back to you by email.

API documentation – Faxline