Contents
- Introduction
- Quickstart
- Authentication
- Responses and errors
- Idempotency
- Pagination
- Rate limits
- File limits
- Fax statuses
- Webhooks
- Send a fax
- Price a fax
- List faxes
- Get a fax
- Get a fax’s timeline
- Get a fax’s PDF
- Cancel a fax
- Upload a document
- List documents
- Get a document
- Get a document’s PDF
- List fax numbers
- List destinations
- Create an endpoint
- List endpoints
- Get an endpoint
- Update an endpoint
- Delete an endpoint
- Rotate the signing secret
- List deliveries
- Resend a delivery
- Stream live events
FaxNook API
Send and receive faxes from your own software. REST with JSON, signed webhooks, and safe retries.
Base URL: https://api.faxnook.com
Prefer generating a client? Download the OpenAPI JSON or YAML.
Quickstart
- Create an API key under Settings, Developers, with the
fax:sendandfax:readscopes. - Upload your document, or pass a public link as
mediaUrl. - Send the fax with an
Idempotency-Key. - Add a webhook to hear when it is delivered.
Numbers are in E.164 form, such as +14155550142. Without a +, pass country as well.
curl -X POST https://api.faxnook.com/v1/faxes \
-H "Authorization: Bearer fxn_your_api_key" \
-H "Idempotency-Key: 6f1c2f0e-order-1042" \
-H "Content-Type: application/json" \
-d '{
"to": "+14155550142",
"documentId": "doc_01a1975f8c2b7a26aca1205cc73e630f",
"resolution": "fine"
}'const response = await fetch('https://api.faxnook.com/v1/faxes', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY, 'Idempotency-Key': '6f1c2f0e-order-1042', 'Content-Type': 'application/json' },
body: JSON.stringify({
"to": "+14155550142",
"documentId": "doc_01a1975f8c2b7a26aca1205cc73e630f",
"resolution": "fine"
}),
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://api.faxnook.com/v1/faxes",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}", "Idempotency-Key": "6f1c2f0e-order-1042"},
json={
"to": "+14155550142",
"documentId": "doc_01a1975f8c2b7a26aca1205cc73e630f",
"resolution": "fine"
},
timeout=30,
)
data = response.json()["data"]Authentication
Send your key as a Bearer token. Keys act for the whole workspace, so keep them on your server and never in a browser or an app.
Scopes
fax:send | Send and cancel faxes, and upload documents. |
fax:read | Read faxes, download them, and stream live events. |
numbers:read | Read your fax numbers. |
documents:read | Read and download documents. |
webhooks:manage | Manage webhook endpoints and deliveries. |
Authorization: Bearer fxn_your_api_keyResponses and errors
Success is { data, meta }. Failure is { error } with a stable code to branch on. Include request_id when you contact support; it is also in the X-Request-Id header.
All error codes
| Status | Code | Meaning |
|---|---|---|
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
402 | INSUFFICIENT_CREDIT | Prepaid credit does not cover this fax. Add credit and retry. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
402 | FAX_LOCKED | A received fax beyond the allowance. It opens once paid from credit. |
403 | EMAIL_NOT_VERIFIED | The account’s email address is not confirmed yet. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
410 | FILE_PURGED | The file was permanently deleted. |
400 | DESTINATION_NOT_SUPPORTED | This country or number type cannot be faxed. |
400 | DOCUMENT_TOO_MANY_PAGES | The document has more than 50 pages. |
400 | URL_NOT_ALLOWED | This URL is refused: it must be public HTTPS. |
409 | NO_FAX_NUMBER | The workspace has no active number it may send from. |
409 | DOCUMENT_NOT_READY | The document is still converting, or its conversion failed. |
409 | FAX_STATE_CONFLICT | The fax is past the point where this is possible. |
409 | IDEMPOTENCY_IN_PROGRESS | The first request with this key is still running. Retry shortly. |
422 | IDEMPOTENCY_KEY_REUSED | This Idempotency-Key was used with a different request. |
413 | PAYLOAD_TOO_LARGE | The file is over 20 MB. |
415 | UNSUPPORTED_MEDIA_TYPE | This file type cannot be faxed, or it may be unsafe. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
500 | INTERNAL_ERROR | Something went wrong on our side. Retry with the same Idempotency-Key. |
503 | SERVICE_UNAVAILABLE | Temporarily unavailable. Retry with backoff. |
{
"error": {
"code": "VALIDATION_FAILED",
"message": "Some details are not valid. Please check them and try again.",
"details": {
"issues": [
{
"path": "to",
"code": "too_small",
"message": "Too small"
}
]
},
"request_id": "req_01a1"
}
}Idempotency
A network failure can leave you unsure whether a fax went out. Send an Idempotency-Key header on POST requests, with one unique value per action, such as your order id. A retry with the same key and request returns the first response for 24 hours and does not send again.
- Same key with a different request:
IDEMPOTENCY_KEY_REUSED. - First request still running:
IDEMPOTENCY_IN_PROGRESS. Retry shortly.
Pagination
Lists return 20 items by default and up to 100 with first. When there is more, pass meta.next_cursor as after. A null cursor means you have reached the end.
Rate limits
Each API key can make 600 requests a minute. Over that you get 429 RATE_LIMITED with a Retry-After header in seconds: wait that long, then retry.
File limits
Up to 20 MB and 50 pages per document, as PDF, Word, Excel, PowerPoint, OpenDocument, RTF, TXT, CSV or an image (JPG, PNG, TIFF, GIF, BMP, WebP, AVIF). Download links last 5 minutes, so request a new one rather than storing it.
Fax statuses
queued | Accepted and waiting to be sent. |
processing | The document is being prepared. |
sending | Being transmitted now. |
delivered | Done: the recipient’s machine confirmed it. |
failed | Done: not delivered. failureReason says why, and any charge is returned. |
canceled | Done: stopped by you, and its charge returned. |
received | A fax that arrived on one of your numbers. |
draft | Waiting for its document to finish converting. |
Webhooks
We POST a signed JSON event to your HTTPS endpoint when something happens. data holds the same Fax or FaxNumber object the API returns. Answer with a 2xx within 10 seconds, and do slow work afterwards.
Events
fax.queued | Accepted and waiting to be sent. |
fax.sending | Being transmitted now. |
fax.delivered | The recipient’s machine confirmed it. |
fax.failed | It could not be delivered. See failureReason. |
fax.received | A fax arrived on one of your numbers. |
number.provisioned | A fax number is ready to use. |
number.released | A fax number was released. |
Verify the signature
Every request has FaxNook-Signature: t=<unix seconds>,v1=<hex>. v1 is the HMAC-SHA256 of <t>.<raw body> using the endpoint’s secret. Verify against the raw bytes, and reject old timestamps.
Retries
Failed deliveries are retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 15 hours, then marked failed. You can resend them.
Events can arrive more than once or out of order. Use the FaxNook-Event-Id header to skip duplicates, and createdAt to order them.
import { createHmac, timingSafeEqual } from 'node:crypto';
/** rawBody: the exact bytes received, before any JSON parsing. */
export function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const age = Date.now() / 1000 - Number(parts.t);
if (!(age < 300)) return false;
const expected = createHmac('sha256', secret)
.update(`${parts.t}.${rawBody}`)
.digest();
const given = Buffer.from(parts.v1 ?? '', 'hex');
return given.length === expected.length && timingSafeEqual(given, expected);
}import hashlib
import hmac
import time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(part.split("=", 1) for part in header.split(","))
if time.time() - int(parts["t"]) >= 300:
return False
signed = parts["t"].encode() + b"." + raw_body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", "")){
"id": "evt_01a1975f8c2b7a26aca1205cc73e630f",
"type": "fax.delivered",
"createdAt": "2026-11-01T14:30:00.000Z",
"data": {
"id": "fax_01a17eb9bb6379f3b8e651638272bdc0",
"status": "delivered",
"to": "+14155550142",
"pages": 3,
"...": "the rest of the Fax object"
}
}Send a fax
Send from an uploaded document (documentId), a public link (mediaUrl), or a file in a multipart request with the same fields, where coverPage is JSON text. A document still converting is sent as soon as it is ready. This sends a real fax and may use plan pages or credit: check the cost first with GET /v1/faxes/price. On a plan, each page uses the destination’s plan pages per page (planPagesPerPage: 1 in the US, more where faxing costs more), and received pages use 1 each. Pages to countries outside the plan, and plan pages beyond the monthly allowance, are paid from credit; without enough, the fax is refused with INSUFFICIENT_CREDIT (its details say how much is missing). Always use an Idempotency-Key.
Headers
Idempotency-Key | A unique value per fax. Retries with it return the first response instead of sending again. See Idempotency. |
Body
| Field | Type | Description |
|---|---|---|
torequired | string | The fax number, in E.164 or with country. |
country | string, nullable | ISO 3166-1 alpha-2, to read a number without a +. |
resolution | enum, nullable | Default standard. fine suits small print and forms; superfine is the sharpest and slowest. One of standard, fine, superfine. |
coverPage | object, nullable | An optional cover page sent first, charged as one page. |
coverPage.to | string | |
coverPage.from | string | |
coverPage.subject | string | |
coverPage.message | string | |
numberId | string, nullable | Which of your numbers to send from. Default: your first active number. |
documentId | string | An uploaded document. Give this or mediaUrl. |
mediaUrl | string | A public HTTPS link to the file. Give this or documentId. |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with fax_. |
direction | enum | One of outbound, inbound. |
status | enum | See Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received. |
from | string, nullable | Sending number in E.164. Null when sent without a dedicated number. |
to | string | Destination in E.164. |
viaEmail | boolean | Sent by emailing the fax address. |
title | string, nullable | The document name, when there is one. |
pages | integer, nullable | Known once the document is ready. |
billedPages | integer, nullable | Pages charged: the document, plus the cover page if there is one. |
resolution | enum | One of standard, fine, superfine. |
attempts | integer | Transmission attempts so far. |
failureCode | string, nullable | Machine-readable reason when failed. |
failureReason | string, nullable | The reason in plain language. |
coverPage | object, nullable | |
coverPage.to | string | |
coverPage.from | string | |
coverPage.subject | string | |
coverPage.message | string | |
numberId | string, nullable | The dedicated number used, if any. |
documentId | string, nullable | |
locked | boolean | A received fax beyond your allowance: its file opens once paid from credit. |
createdAt | date-time | |
sentAt | date-time, nullable | |
completedAt | date-time, nullable | |
folderId | string, nullable | |
starred | boolean | |
archivedAt | date-time, nullable | |
readAt | date-time, nullable | When a received fax was first opened. Null is unread. |
deletedAt | date-time, nullable | |
restorableUntil | date-time, nullable | In the trash: when it is removed for good. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
403 | EMAIL_NOT_VERIFIED | The account’s email address is not confirmed yet. |
400 | DESTINATION_NOT_SUPPORTED | This country or number type cannot be faxed. |
402 | INSUFFICIENT_CREDIT | Prepaid credit does not cover this fax. Add credit and retry. |
409 | NO_FAX_NUMBER | The workspace has no active number it may send from. |
409 | DOCUMENT_NOT_READY | The document is still converting, or its conversion failed. |
400 | URL_NOT_ALLOWED | This URL is refused: it must be public HTTPS. |
413 | PAYLOAD_TOO_LARGE | The file is over 20 MB. |
415 | UNSUPPORTED_MEDIA_TYPE | This file type cannot be faxed, or it may be unsafe. |
422 | IDEMPOTENCY_KEY_REUSED | This Idempotency-Key was used with a different request. |
409 | IDEMPOTENCY_IN_PROGRESS | The first request with this key is still running. Retry shortly. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X POST https://api.faxnook.com/v1/faxes \
-H "Authorization: Bearer fxn_your_api_key" \
-H "Idempotency-Key: 6f1c2f0e-order-1042" \
-H "Content-Type: application/json" \
-d '{
"to": "+14155550142",
"documentId": "doc_01a1975f8c2b7a26aca1205cc73e630f",
"resolution": "fine"
}'const response = await fetch('https://api.faxnook.com/v1/faxes', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY, 'Idempotency-Key': '6f1c2f0e-order-1042', 'Content-Type': 'application/json' },
body: JSON.stringify({
"to": "+14155550142",
"documentId": "doc_01a1975f8c2b7a26aca1205cc73e630f",
"resolution": "fine"
}),
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://api.faxnook.com/v1/faxes",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}", "Idempotency-Key": "6f1c2f0e-order-1042"},
json={
"to": "+14155550142",
"documentId": "doc_01a1975f8c2b7a26aca1205cc73e630f",
"resolution": "fine"
},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "fax_01a17eb9bb6379f3b8e651638272bdc0",
"direction": "outbound",
"status": "queued",
"from": "+15615550101",
"to": "+14155550142",
"viaEmail": false,
"title": "letter.pdf",
"pages": 1,
"billedPages": null,
"resolution": "standard",
"attempts": 1,
"failureCode": null,
"failureReason": null,
"coverPage": null,
"numberId": "num_01a17eb9bb6379f3b8e651638272bdc0",
"documentId": "doc_01a17eb9bb6379f3b8e651638272bdc0",
"locked": false,
"createdAt": "2026-11-01T14:30:00.000Z",
"sentAt": null,
"completedAt": null,
"folderId": null,
"starred": false,
"archivedAt": null,
"readAt": null,
"deletedAt": null,
"restorableUntil": null
},
"meta": {
"request_id": "req_01a1"
}
}Price a fax
What sending a fax to to would cost this account now, without sending it: plan pages it would use (its pages × planPagesPerPage), credit it would take, and whether the balance covers it. Prices vary by country and sometimes by number range (mobiles, remote areas), so price the actual number. The same rules apply when you send.
Query parameters
| Name | Type | Description |
|---|---|---|
to | string | The fax number, ideally with + and country code. |
pages | integer | Pages of the document, 1 to 50. |
coverPage | boolean | true when the fax has a cover page: it is charged as one more page. |
country | string | ISO country for a number without a country code, e.g. GB. |
resolution | string | standard (default), fine or superfine. |
Response fields
| Field | Type | Description |
|---|---|---|
to | string | The number as FaxNook reads it, in E.164. |
pages | integer | Billable pages: the document, plus a cover page. |
resolution | enum | One of standard, fine, superfine. |
totalCents | integer | The price from credit at this number’s rate (what a fax costs without a plan). |
currency | string | |
includedInPlans | boolean | Pages to this number can use plan pages. |
planPagesPerPage | integer, nullable | Plan pages one page to this number uses; null when not in plans. |
fineSurchargeCentsPerPage | integer | |
superfineSurchargeCentsPerPage | integer | |
free | boolean | It would be the free first fax (never for API keys). |
planPages | integer | Plan pages this fax would use now. |
creditCents | integer | Credit this fax would use now: extra pages, or the full price outside the plan. |
creditBalanceCents | integer | |
enoughCredit | boolean | False: sending now fails with INSUFFICIENT_CREDIT until credit is added. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
400 | DESTINATION_NOT_SUPPORTED | This country or number type cannot be faxed. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/faxes/price \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/faxes/price', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/faxes/price",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"to": "+14155550142",
"pages": 1,
"resolution": "standard",
"totalCents": 1,
"currency": "USD",
"includedInPlans": false,
"planPagesPerPage": null,
"fineSurchargeCentsPerPage": 1,
"superfineSurchargeCentsPerPage": 1,
"free": false,
"planPages": 1,
"creditCents": 1,
"creditBalanceCents": 1,
"enoughCredit": false
},
"meta": {
"request_id": "req_01a1"
}
}List faxes
Newest first. Archived and deleted faxes are left out.
Query parameters
| Name | Type | Description |
|---|---|---|
first | integer | Page size, up to 100. Default 20. |
after | string | The meta.next_cursor of the previous page. |
status | string | Comma-separated: delivered,failed. |
direction | string | outbound or inbound. |
since | date-time | Created at or after this time. |
until | date-time | Created before this time. |
numberId | string | Only this fax number. |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with fax_. |
direction | enum | One of outbound, inbound. |
status | enum | See Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received. |
from | string, nullable | Sending number in E.164. Null when sent without a dedicated number. |
to | string | Destination in E.164. |
viaEmail | boolean | Sent by emailing the fax address. |
title | string, nullable | The document name, when there is one. |
pages | integer, nullable | Known once the document is ready. |
billedPages | integer, nullable | Pages charged: the document, plus the cover page if there is one. |
resolution | enum | One of standard, fine, superfine. |
attempts | integer | Transmission attempts so far. |
failureCode | string, nullable | Machine-readable reason when failed. |
failureReason | string, nullable | The reason in plain language. |
coverPage | object, nullable | |
coverPage.to | string | |
coverPage.from | string | |
coverPage.subject | string | |
coverPage.message | string | |
numberId | string, nullable | The dedicated number used, if any. |
documentId | string, nullable | |
locked | boolean | A received fax beyond your allowance: its file opens once paid from credit. |
createdAt | date-time | |
sentAt | date-time, nullable | |
completedAt | date-time, nullable | |
folderId | string, nullable | |
starred | boolean | |
archivedAt | date-time, nullable | |
readAt | date-time, nullable | When a received fax was first opened. Null is unread. |
deletedAt | date-time, nullable | |
restorableUntil | date-time, nullable | In the trash: when it is removed for good. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/faxes \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/faxes', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/faxes",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": [
{
"id": "fax_01a17eb9bb6379f3b8e651638272bdc0",
"direction": "outbound",
"status": "queued",
"from": "+15615550101",
"to": "+14155550142",
"viaEmail": false,
"title": "letter.pdf",
"pages": 1,
"billedPages": null,
"resolution": "standard",
"attempts": 1,
"failureCode": null,
"failureReason": null,
"coverPage": null,
"numberId": "num_01a17eb9bb6379f3b8e651638272bdc0",
"documentId": "doc_01a17eb9bb6379f3b8e651638272bdc0",
"locked": false,
"createdAt": "2026-11-01T14:30:00.000Z",
"sentAt": null,
"completedAt": null,
"folderId": null,
"starred": false,
"archivedAt": null,
"readAt": null,
"deletedAt": null,
"restorableUntil": null
}
],
"meta": {
"request_id": "req_01a1",
"next_cursor": "eyJpZCI6Ii4uLiJ9"
}
}Get a fax
For updates as they happen, use webhooks rather than polling.
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with fax_. |
direction | enum | One of outbound, inbound. |
status | enum | See Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received. |
from | string, nullable | Sending number in E.164. Null when sent without a dedicated number. |
to | string | Destination in E.164. |
viaEmail | boolean | Sent by emailing the fax address. |
title | string, nullable | The document name, when there is one. |
pages | integer, nullable | Known once the document is ready. |
billedPages | integer, nullable | Pages charged: the document, plus the cover page if there is one. |
resolution | enum | One of standard, fine, superfine. |
attempts | integer | Transmission attempts so far. |
failureCode | string, nullable | Machine-readable reason when failed. |
failureReason | string, nullable | The reason in plain language. |
coverPage | object, nullable | |
coverPage.to | string | |
coverPage.from | string | |
coverPage.subject | string | |
coverPage.message | string | |
numberId | string, nullable | The dedicated number used, if any. |
documentId | string, nullable | |
locked | boolean | A received fax beyond your allowance: its file opens once paid from credit. |
createdAt | date-time | |
sentAt | date-time, nullable | |
completedAt | date-time, nullable | |
folderId | string, nullable | |
starred | boolean | |
archivedAt | date-time, nullable | |
readAt | date-time, nullable | When a received fax was first opened. Null is unread. |
deletedAt | date-time, nullable | |
restorableUntil | date-time, nullable | In the trash: when it is removed for good. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0 \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "fax_01a17eb9bb6379f3b8e651638272bdc0",
"direction": "outbound",
"status": "queued",
"from": "+15615550101",
"to": "+14155550142",
"viaEmail": false,
"title": "letter.pdf",
"pages": 1,
"billedPages": null,
"resolution": "standard",
"attempts": 1,
"failureCode": null,
"failureReason": null,
"coverPage": null,
"numberId": "num_01a17eb9bb6379f3b8e651638272bdc0",
"documentId": "doc_01a17eb9bb6379f3b8e651638272bdc0",
"locked": false,
"createdAt": "2026-11-01T14:30:00.000Z",
"sentAt": null,
"completedAt": null,
"folderId": null,
"starred": false,
"archivedAt": null,
"readAt": null,
"deletedAt": null,
"restorableUntil": null
},
"meta": {
"request_id": "req_01a1"
}
}Get a fax’s timeline
Everything that happened to the fax, oldest first.
Response fields
| Field | Type | Description |
|---|---|---|
type | string | What happened, for example created or provider.delivered. |
source | enum | One of provider, system, user. |
attempt | integer, nullable | |
failureCode | string, nullable | |
ignored | boolean | A late or repeated update that changed nothing. |
createdAt | date-time |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/events \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/events', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/events",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": [
{
"type": "created",
"source": "system",
"attempt": null,
"failureCode": null,
"ignored": false,
"createdAt": "2026-11-01T14:30:00.000Z"
}
],
"meta": {
"request_id": "req_01a1"
}
}Get a fax’s PDF
A signed link valid for 5 minutes: what was received, or exactly what was transmitted, with its cover page.
Query parameters
| Name | Type | Description |
|---|---|---|
inline | boolean | True to open in the browser rather than download. |
Response fields
| Field | Type | Description |
|---|---|---|
url | string | A signed link. Do not store it. |
expiresAt | date-time | The link stops working at this time. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
402 | FAX_LOCKED | A received fax beyond the allowance. It opens once paid from credit. |
410 | FILE_PURGED | The file was permanently deleted. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/download \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/download', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/download",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"url": "https://files.example.com/signed-link",
"expiresAt": "2026-11-01T14:30:00.000Z"
},
"meta": {
"request_id": "req_01a1"
}
}Cancel a fax
Stops a fax not yet delivered and returns its charge. If sending has started, the recipient may still get some pages.
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with fax_. |
direction | enum | One of outbound, inbound. |
status | enum | See Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received. |
from | string, nullable | Sending number in E.164. Null when sent without a dedicated number. |
to | string | Destination in E.164. |
viaEmail | boolean | Sent by emailing the fax address. |
title | string, nullable | The document name, when there is one. |
pages | integer, nullable | Known once the document is ready. |
billedPages | integer, nullable | Pages charged: the document, plus the cover page if there is one. |
resolution | enum | One of standard, fine, superfine. |
attempts | integer | Transmission attempts so far. |
failureCode | string, nullable | Machine-readable reason when failed. |
failureReason | string, nullable | The reason in plain language. |
coverPage | object, nullable | |
coverPage.to | string | |
coverPage.from | string | |
coverPage.subject | string | |
coverPage.message | string | |
numberId | string, nullable | The dedicated number used, if any. |
documentId | string, nullable | |
locked | boolean | A received fax beyond your allowance: its file opens once paid from credit. |
createdAt | date-time | |
sentAt | date-time, nullable | |
completedAt | date-time, nullable | |
folderId | string, nullable | |
starred | boolean | |
archivedAt | date-time, nullable | |
readAt | date-time, nullable | When a received fax was first opened. Null is unread. |
deletedAt | date-time, nullable | |
restorableUntil | date-time, nullable | In the trash: when it is removed for good. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
409 | FAX_STATE_CONFLICT | The fax is past the point where this is possible. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X POST https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/cancel \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/cancel', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/cancel",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "fax_01a17eb9bb6379f3b8e651638272bdc0",
"direction": "outbound",
"status": "queued",
"from": "+15615550101",
"to": "+14155550142",
"viaEmail": false,
"title": "letter.pdf",
"pages": 1,
"billedPages": null,
"resolution": "standard",
"attempts": 1,
"failureCode": null,
"failureReason": null,
"coverPage": null,
"numberId": "num_01a17eb9bb6379f3b8e651638272bdc0",
"documentId": "doc_01a17eb9bb6379f3b8e651638272bdc0",
"locked": false,
"createdAt": "2026-11-01T14:30:00.000Z",
"sentAt": null,
"completedAt": null,
"folderId": null,
"starred": false,
"archivedAt": null,
"readAt": null,
"deletedAt": null,
"restorableUntil": null
},
"meta": {
"request_id": "req_01a1"
}
}Upload a document
A multipart upload with one file field: PDF, Word (DOC, DOCX), Excel (XLS, XLSX), PowerPoint (PPT, PPTX), OpenDocument (ODT, ODS, ODP), RTF, TXT, CSV, or an image (JPG, PNG, TIFF, GIF, BMP, WebP, AVIF), up to 20 MB and 50 pages. Every file is scanned for malware. PDFs are ready at once; other formats convert in the background.
Body
filerequired | The document, as a multipart file field. |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with doc_. |
filename | string | |
mimeType | string | The detected type of the uploaded file. |
sizeBytes | integer | |
pageCount | integer, nullable | Known once status is ready. |
status | enum | PDFs are ready at once; other formats convert. One of uploaded, converting, ready, failed. |
failureReason | string, nullable | |
createdAt | date-time | |
deletedAt | date-time, nullable | |
restorableUntil | date-time, nullable |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
413 | PAYLOAD_TOO_LARGE | The file is over 20 MB. |
415 | UNSUPPORTED_MEDIA_TYPE | This file type cannot be faxed, or it may be unsafe. |
400 | DOCUMENT_TOO_MANY_PAGES | The document has more than 50 pages. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X POST https://api.faxnook.com/v1/documents \
-H "Authorization: Bearer fxn_your_api_key" \
-F "[email protected]"import { readFile } from 'node:fs/promises';
const form = new FormData();
form.append('file', new Blob([await readFile('letter.pdf')]), 'letter.pdf');
const response = await fetch('https://api.faxnook.com/v1/documents', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
body: form,
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://api.faxnook.com/v1/documents",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
files={"file": open("letter.pdf", "rb")},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "doc_01a17eb9bb6379f3b8e651638272bdc0",
"filename": "letter.pdf",
"mimeType": "application/pdf",
"sizeBytes": 1,
"pageCount": 1,
"status": "ready",
"failureReason": null,
"createdAt": "2026-11-01T14:30:00.000Z",
"deletedAt": null,
"restorableUntil": null
},
"meta": {
"request_id": "req_01a1"
}
}List documents
Newest first.
Query parameters
| Name | Type | Description |
|---|---|---|
first | integer | Page size, up to 100. Default 20. |
after | string | The meta.next_cursor of the previous page. |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with doc_. |
filename | string | |
mimeType | string | The detected type of the uploaded file. |
sizeBytes | integer | |
pageCount | integer, nullable | Known once status is ready. |
status | enum | PDFs are ready at once; other formats convert. One of uploaded, converting, ready, failed. |
failureReason | string, nullable | |
createdAt | date-time | |
deletedAt | date-time, nullable | |
restorableUntil | date-time, nullable |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/documents \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/documents', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/documents",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": [
{
"id": "doc_01a17eb9bb6379f3b8e651638272bdc0",
"filename": "letter.pdf",
"mimeType": "application/pdf",
"sizeBytes": 1,
"pageCount": 1,
"status": "ready",
"failureReason": null,
"createdAt": "2026-11-01T14:30:00.000Z",
"deletedAt": null,
"restorableUntil": null
}
],
"meta": {
"request_id": "req_01a1",
"next_cursor": "eyJpZCI6Ii4uLiJ9"
}
}Get a document
Poll this to follow a conversion, or send the fax now: it waits for the document.
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with doc_. |
filename | string | |
mimeType | string | The detected type of the uploaded file. |
sizeBytes | integer | |
pageCount | integer, nullable | Known once status is ready. |
status | enum | PDFs are ready at once; other formats convert. One of uploaded, converting, ready, failed. |
failureReason | string, nullable | |
createdAt | date-time | |
deletedAt | date-time, nullable | |
restorableUntil | date-time, nullable |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/documents/doc_01a1975f8c2b7a26aca1205cc73e630f \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/documents/doc_01a1975f8c2b7a26aca1205cc73e630f', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/documents/doc_01a1975f8c2b7a26aca1205cc73e630f",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "doc_01a17eb9bb6379f3b8e651638272bdc0",
"filename": "letter.pdf",
"mimeType": "application/pdf",
"sizeBytes": 1,
"pageCount": 1,
"status": "ready",
"failureReason": null,
"createdAt": "2026-11-01T14:30:00.000Z",
"deletedAt": null,
"restorableUntil": null
},
"meta": {
"request_id": "req_01a1"
}
}Get a document’s PDF
A signed link valid for 5 minutes.
Query parameters
| Name | Type | Description |
|---|---|---|
inline | boolean | True to open in the browser rather than download. |
Response fields
| Field | Type | Description |
|---|---|---|
url | string | A signed link. Do not store it. |
expiresAt | date-time | The link stops working at this time. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
409 | DOCUMENT_NOT_READY | The document is still converting, or its conversion failed. |
410 | FILE_PURGED | The file was permanently deleted. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/documents/doc_01a1975f8c2b7a26aca1205cc73e630f/download \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/documents/doc_01a1975f8c2b7a26aca1205cc73e630f/download', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/documents/doc_01a1975f8c2b7a26aca1205cc73e630f/download",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"url": "https://files.example.com/signed-link",
"expiresAt": "2026-11-01T14:30:00.000Z"
},
"meta": {
"request_id": "req_01a1"
}
}List fax numbers
The dedicated numbers of your workspace. Use id as numberId when sending.
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with num_. |
e164 | string | |
country | string | ISO 3166-1 alpha-2. |
areaCode | string, nullable | |
status | enum | One of awaiting_payment, provisioning, active, release_pending, released. |
assignedUserId | string, nullable | |
monthlyPriceCents | integer | What this number adds per month. 0 if included. |
releaseAt | date-time, nullable | When a number being released goes away. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/numbers \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/numbers', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/numbers",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": [
{
"id": "num_01a17eb9bb6379f3b8e651638272bdc0",
"e164": "+15615550101",
"country": "US",
"areaCode": null,
"status": "active",
"assignedUserId": null,
"monthlyPriceCents": 1,
"releaseAt": null
}
],
"meta": {
"request_id": "req_01a1"
}
}List destinations
Every country that can be faxed: its prices when paid from credit, and for plans whether it is included and how many plan pages one page uses (planPagesPerPage, up to maxPlanPagesPerPage in its dearest number range). No API key needed.
Response fields
| Field | Type | Description |
|---|---|---|
country | string | ISO 3166-1 alpha-2. |
countryName | string | |
callingCode | string, nullable | For example +44. |
baseCents | integer | Per fax, when paid from credit. |
perPageCents | integer | Per page, when paid from credit. |
fineSurchargeCentsPerPage | integer | |
superfineSurchargeCentsPerPage | integer | |
maxPerPageCents | integer | Per page in the dearest number range (mobiles, special numbers). |
currency | string | |
variesByNumber | boolean | Some number ranges here are priced differently. |
freeFaxEligible | boolean | |
includedInPlans | boolean | Pages here use a plan allowance. |
planPagesPerPage | integer, nullable | Plan pages one page here uses (1 in the US, more where faxing costs more). |
maxPlanPagesPerPage | integer, nullable | Plan pages per page in the dearest number range here. |
partlyInPlans | boolean | In plans, but some number ranges here are paid from credit only. |
openToNewAccounts | boolean | New accounts and guests may fax here; false means established accounts only. |
Errors
| Status | Code | Meaning |
|---|---|---|
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/public/destinationsconst response = await fetch('https://api.faxnook.com/v1/public/destinations');
const { data } = await response.json();import requests
response = requests.get(
"https://api.faxnook.com/v1/public/destinations",
timeout=30,
)
data = response.json()["data"]{
"data": [
{
"country": "US",
"countryName": "United States",
"callingCode": "+1",
"baseCents": 1,
"perPageCents": 1,
"fineSurchargeCentsPerPage": 1,
"superfineSurchargeCentsPerPage": 1,
"maxPerPageCents": 1,
"currency": "USD",
"variesByNumber": false,
"freeFaxEligible": false,
"includedInPlans": false,
"planPagesPerPage": null,
"maxPlanPagesPerPage": null,
"partlyInPlans": false,
"openToNewAccounts": false
}
],
"meta": {
"request_id": "req_01a1"
}
}Create an endpoint
Must be a public HTTPS URL. The signing secret is returned once.
Body
| Field | Type | Description |
|---|---|---|
urlrequired | string | Your public HTTPS URL. |
eventsrequired | array of enum | Which events to send. One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released. |
description | string, nullable | A note for yourself. |
enabled | boolean | Default true. |
Response fields
| Field | Type | Description |
|---|---|---|
secret | string | For verifying signatures. Shown once: store it now. |
endpoint | object | |
endpoint.id | string | Starts with whe_. |
endpoint.url | string | |
endpoint.events | array of enum | One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released. |
endpoint.enabled | boolean | |
endpoint.description | string, nullable | |
endpoint.createdAt | date-time |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
400 | URL_NOT_ALLOWED | This URL is refused: it must be public HTTPS. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X POST https://api.faxnook.com/v1/webhook-endpoints \
-H "Authorization: Bearer fxn_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhooks/faxnook",
"events": [
"fax.delivered",
"fax.failed",
"fax.received"
]
}'const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"url": "https://example.com/webhooks/faxnook",
"events": [
"fax.delivered",
"fax.failed",
"fax.received"
]
}),
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://api.faxnook.com/v1/webhook-endpoints",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
json={
"url": "https://example.com/webhooks/faxnook",
"events": [
"fax.delivered",
"fax.failed",
"fax.received"
]
},
timeout=30,
)
data = response.json()["data"]{
"data": {
"secret": "whsec_shown_once",
"endpoint": {
"id": "whe_01a17eb9bb6379f3b8e651638272bdc0",
"url": "https://example.com/webhooks/faxnook",
"events": [
"fax.queued"
],
"enabled": false,
"description": null,
"createdAt": "2026-11-01T14:30:00.000Z"
}
},
"meta": {
"request_id": "req_01a1"
}
}List endpoints
All endpoints of the workspace.
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with whe_. |
url | string | |
events | array of enum | One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released. |
enabled | boolean | |
description | string, nullable | |
createdAt | date-time |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/webhook-endpoints \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/webhook-endpoints",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": [
{
"id": "whe_01a17eb9bb6379f3b8e651638272bdc0",
"url": "https://example.com/webhooks/faxnook",
"events": [
"fax.queued"
],
"enabled": false,
"description": null,
"createdAt": "2026-11-01T14:30:00.000Z"
}
],
"meta": {
"request_id": "req_01a1"
}
}Get an endpoint
The secret is never shown again.
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with whe_. |
url | string | |
events | array of enum | One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released. |
enabled | boolean | |
description | string, nullable | |
createdAt | date-time |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "whe_01a17eb9bb6379f3b8e651638272bdc0",
"url": "https://example.com/webhooks/faxnook",
"events": [
"fax.queued"
],
"enabled": false,
"description": null,
"createdAt": "2026-11-01T14:30:00.000Z"
},
"meta": {
"request_id": "req_01a1"
}
}Update an endpoint
Change the URL, events, description or whether it is enabled. Send only what changes.
Body
| Field | Type | Description |
|---|---|---|
url | string | Your public HTTPS URL. |
events | array of enum | Which events to send. One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released. |
description | string, nullable | A note for yourself. |
enabled | boolean | False pauses deliveries. |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Starts with whe_. |
url | string | |
events | array of enum | One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released. |
enabled | boolean | |
description | string, nullable | |
createdAt | date-time |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
400 | URL_NOT_ALLOWED | This URL is refused: it must be public HTTPS. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X PATCH https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f \
-H "Authorization: Bearer fxn_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f', {
method: 'PATCH',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"enabled": false
}),
});
const { data } = await response.json();import os
import requests
response = requests.patch(
"https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
json={
"enabled": False
},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "whe_01a17eb9bb6379f3b8e651638272bdc0",
"url": "https://example.com/webhooks/faxnook",
"events": [
"fax.queued"
],
"enabled": false,
"description": null,
"createdAt": "2026-11-01T14:30:00.000Z"
},
"meta": {
"request_id": "req_01a1"
}
}Delete an endpoint
Events stop being sent to it right away.
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X DELETE https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f', {
method: 'DELETE',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});import os
import requests
response = requests.delete(
"https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)No content.Rotate the signing secret
Returned once. The old secret stops working immediately, so update your server straight away.
Response fields
| Field | Type | Description |
|---|---|---|
secret | string | The new signing secret. Shown once; the old one stops working. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X POST https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/rotate-secret \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/rotate-secret', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/rotate-secret",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"secret": "whsec_shown_once"
},
"meta": {
"request_id": "req_01a1"
}
}List deliveries
The delivery log of an endpoint, newest first.
Query parameters
| Name | Type | Description |
|---|---|---|
first | integer | Page size, up to 100. Default 20. |
after | string | The meta.next_cursor of the previous page. |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | |
endpointId | string | |
eventId | string | The same across retries and resends: use it to deduplicate. |
eventType | string | |
status | enum | One of pending, delivered, failed. |
attempts | integer | |
responseStatus | integer, nullable | What your server last answered. |
responseBody | string, nullable | The start of what your server last answered. |
nextRetryAt | date-time, nullable | |
deliveredAt | date-time, nullable | |
createdAt | date-time |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
400 | VALIDATION_FAILED | A field is missing or invalid. details.issues lists each one. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/deliveries \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/deliveries', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/deliveries",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": [
{
"id": "whd_01a17eb9bb6379f3b8e651638272bdc0",
"endpointId": "whe_01a17eb9bb6379f3b8e651638272bdc0",
"eventId": "evt_01a17eb9bb6379f3b8e651638272bdc0",
"eventType": "fax.delivered",
"status": "pending",
"attempts": 1,
"responseStatus": null,
"responseBody": null,
"nextRetryAt": null,
"deliveredAt": null,
"createdAt": "2026-11-01T14:30:00.000Z"
}
],
"meta": {
"request_id": "req_01a1",
"next_cursor": "eyJpZCI6Ii4uLiJ9"
}
}Resend a delivery
Queues it again with the same event id, so your deduplication still works.
Response fields
| Field | Type | Description |
|---|---|---|
id | string | |
endpointId | string | |
eventId | string | The same across retries and resends: use it to deduplicate. |
eventType | string | |
status | enum | One of pending, delivered, failed. |
attempts | integer | |
responseStatus | integer, nullable | What your server last answered. |
responseBody | string, nullable | The start of what your server last answered. |
nextRetryAt | date-time, nullable | |
deliveredAt | date-time, nullable | |
createdAt | date-time |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
404 | NOT_FOUND | It does not exist, or belongs to another workspace. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl -X POST https://api.faxnook.com/v1/webhook-deliveries/whd_01a1975f8c2b7a26aca1205cc73e630f/resend \
-H "Authorization: Bearer fxn_your_api_key"const response = await fetch('https://api.faxnook.com/v1/webhook-deliveries/whd_01a1975f8c2b7a26aca1205cc73e630f/resend', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://api.faxnook.com/v1/webhook-deliveries/whd_01a1975f8c2b7a26aca1205cc73e630f/resend",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
timeout=30,
)
data = response.json()["data"]{
"data": {
"id": "whd_01a17eb9bb6379f3b8e651638272bdc0",
"endpointId": "whe_01a17eb9bb6379f3b8e651638272bdc0",
"eventId": "evt_01a17eb9bb6379f3b8e651638272bdc0",
"eventType": "fax.delivered",
"status": "pending",
"attempts": 1,
"responseStatus": null,
"responseBody": null,
"nextRetryAt": null,
"deliveredAt": null,
"createdAt": "2026-11-01T14:30:00.000Z"
},
"meta": {
"request_id": "req_01a1"
}
}Stream live events
Server-Sent Events with fax and number updates while connected. Events are not stored or replayed, so use webhooks for anything you must not miss.
Errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | The API key is missing, wrong, expired or revoked. |
403 | INSUFFICIENT_SCOPE | The key lacks the scope this endpoint needs. |
402 | PLAN_UPGRADE_REQUIRED | The workspace’s plan does not include API access. |
429 | RATE_LIMITED | Too many requests. Wait for the Retry-After seconds. |
curl https://api.faxnook.com/v1/events \
-H "Authorization: Bearer fxn_your_api_key" \
-H "Accept: text/event-stream" -Nconst response = await fetch('https://api.faxnook.com/v1/events', {
headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});import os
import requests
response = requests.get(
"https://api.faxnook.com/v1/events",
headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
stream=True,
)event: fax.delivered
data: {"id":"fax_01a17eb9bb6379f3b8e651638272bdc0","status":"delivered","to":"+14155550142", …}
: ping
