FaxNookFaxNookAPI v1OpenAPIAPI keys
Contents

FaxNook API

Send and receive faxes from your own software. REST with JSON, signed webhooks, and safe retries.

Base URL: https://api.faxnook.com

API access needs a plan that includes it. Requests made with a live key are real: they send real faxes and can use plan pages or credit.

Prefer generating a client? Download the OpenAPI JSON or YAML.

Quickstart

  1. Create an API key under Settings, Developers, with the fax:send and fax:read scopes.
  2. Upload your document, or pass a public link as mediaUrl.
  3. Send the fax with an Idempotency-Key.
  4. Add a webhook to hear when it is delivered.

Numbers are in E.164 form, such as +14155550142. Without a +, pass country as well.

Send your first fax
cURL
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"
}'
Node.js
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();
Python
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:sendSend and cancel faxes, and upload documents.
fax:readRead faxes, download them, and stream live events.
numbers:readRead your fax numbers.
documents:readRead and download documents.
webhooks:manageManage webhook endpoints and deliveries.
Header
Authorization: Bearer fxn_your_api_key

Responses 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
StatusCodeMeaning
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
402INSUFFICIENT_CREDITPrepaid credit does not cover this fax. Add credit and retry.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
402FAX_LOCKEDA received fax beyond the allowance. It opens once paid from credit.
403EMAIL_NOT_VERIFIEDThe account’s email address is not confirmed yet.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
410FILE_PURGEDThe file was permanently deleted.
400DESTINATION_NOT_SUPPORTEDThis country or number type cannot be faxed.
400DOCUMENT_TOO_MANY_PAGESThe document has more than 50 pages.
400URL_NOT_ALLOWEDThis URL is refused: it must be public HTTPS.
409NO_FAX_NUMBERThe workspace has no active number it may send from.
409DOCUMENT_NOT_READYThe document is still converting, or its conversion failed.
409FAX_STATE_CONFLICTThe fax is past the point where this is possible.
409IDEMPOTENCY_IN_PROGRESSThe first request with this key is still running. Retry shortly.
422IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was used with a different request.
413PAYLOAD_TOO_LARGEThe file is over 20 MB.
415UNSUPPORTED_MEDIA_TYPEThis file type cannot be faxed, or it may be unsafe.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
500INTERNAL_ERRORSomething went wrong on our side. Retry with the same Idempotency-Key.
503SERVICE_UNAVAILABLETemporarily unavailable. Retry with backoff.
Error 400
{
  "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

queuedAccepted and waiting to be sent.
processingThe document is being prepared.
sendingBeing transmitted now.
deliveredDone: the recipient’s machine confirmed it.
failedDone: not delivered. failureReason says why, and any charge is returned.
canceledDone: stopped by you, and its charge returned.
receivedA fax that arrived on one of your numbers.
draftWaiting 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.queuedAccepted and waiting to be sent.
fax.sendingBeing transmitted now.
fax.deliveredThe recipient’s machine confirmed it.
fax.failedIt could not be delivered. See failureReason.
fax.receivedA fax arrived on one of your numbers.
number.provisionedA fax number is ready to use.
number.releasedA 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.

Verify
Node.js
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);
}
Python
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", ""))
Event
{
  "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"
  }
}
Faxes

Send a fax

post/v1/faxesScope: fax:send

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-KeyA unique value per fax. Retries with it return the first response instead of sending again. See Idempotency.

Body

FieldTypeDescription
torequiredstringThe fax number, in E.164 or with country.
countrystring, nullableISO 3166-1 alpha-2, to read a number without a +.
resolutionenum, nullableDefault standard. fine suits small print and forms; superfine is the sharpest and slowest. One of standard, fine, superfine.
coverPageobject, nullableAn optional cover page sent first, charged as one page.
coverPage.tostring
coverPage.fromstring
coverPage.subjectstring
coverPage.messagestring
numberIdstring, nullableWhich of your numbers to send from. Default: your first active number.
documentIdstringAn uploaded document. Give this or mediaUrl.
mediaUrlstringA public HTTPS link to the file. Give this or documentId.
Response fields
FieldTypeDescription
idstringStarts with fax_.
directionenumOne of outbound, inbound.
statusenumSee Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received.
fromstring, nullableSending number in E.164. Null when sent without a dedicated number.
tostringDestination in E.164.
viaEmailbooleanSent by emailing the fax address.
titlestring, nullableThe document name, when there is one.
pagesinteger, nullableKnown once the document is ready.
billedPagesinteger, nullablePages charged: the document, plus the cover page if there is one.
resolutionenumOne of standard, fine, superfine.
attemptsintegerTransmission attempts so far.
failureCodestring, nullableMachine-readable reason when failed.
failureReasonstring, nullableThe reason in plain language.
coverPageobject, nullable
coverPage.tostring
coverPage.fromstring
coverPage.subjectstring
coverPage.messagestring
numberIdstring, nullableThe dedicated number used, if any.
documentIdstring, nullable
lockedbooleanA received fax beyond your allowance: its file opens once paid from credit.
createdAtdate-time
sentAtdate-time, nullable
completedAtdate-time, nullable
folderIdstring, nullable
starredboolean
archivedAtdate-time, nullable
readAtdate-time, nullableWhen a received fax was first opened. Null is unread.
deletedAtdate-time, nullable
restorableUntildate-time, nullableIn the trash: when it is removed for good.
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
403EMAIL_NOT_VERIFIEDThe account’s email address is not confirmed yet.
400DESTINATION_NOT_SUPPORTEDThis country or number type cannot be faxed.
402INSUFFICIENT_CREDITPrepaid credit does not cover this fax. Add credit and retry.
409NO_FAX_NUMBERThe workspace has no active number it may send from.
409DOCUMENT_NOT_READYThe document is still converting, or its conversion failed.
400URL_NOT_ALLOWEDThis URL is refused: it must be public HTTPS.
413PAYLOAD_TOO_LARGEThe file is over 20 MB.
415UNSUPPORTED_MEDIA_TYPEThis file type cannot be faxed, or it may be unsafe.
422IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was used with a different request.
409IDEMPOTENCY_IN_PROGRESSThe first request with this key is still running. Retry shortly.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
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"
}'
Node.js
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();
Python
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"]
Response 201
{
  "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

get/v1/faxes/priceScope: fax:read

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

NameTypeDescription
tostringThe fax number, ideally with + and country code.
pagesintegerPages of the document, 1 to 50.
coverPagebooleantrue when the fax has a cover page: it is charged as one more page.
countrystringISO country for a number without a country code, e.g. GB.
resolutionstringstandard (default), fine or superfine.
Response fields
FieldTypeDescription
tostringThe number as FaxNook reads it, in E.164.
pagesintegerBillable pages: the document, plus a cover page.
resolutionenumOne of standard, fine, superfine.
totalCentsintegerThe price from credit at this number’s rate (what a fax costs without a plan).
currencystring
includedInPlansbooleanPages to this number can use plan pages.
planPagesPerPageinteger, nullablePlan pages one page to this number uses; null when not in plans.
fineSurchargeCentsPerPageinteger
superfineSurchargeCentsPerPageinteger
freebooleanIt would be the free first fax (never for API keys).
planPagesintegerPlan pages this fax would use now.
creditCentsintegerCredit this fax would use now: extra pages, or the full price outside the plan.
creditBalanceCentsinteger
enoughCreditbooleanFalse: sending now fails with INSUFFICIENT_CREDIT until credit is added.
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
400DESTINATION_NOT_SUPPORTEDThis country or number type cannot be faxed.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/faxes/price \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
const response = await fetch('https://api.faxnook.com/v1/faxes/price', {
  headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();
Python
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"]
Response 200
{
  "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

get/v1/faxesScope: fax:read

Newest first. Archived and deleted faxes are left out.

Query parameters

NameTypeDescription
firstintegerPage size, up to 100. Default 20.
afterstringThe meta.next_cursor of the previous page.
statusstringComma-separated: delivered,failed.
directionstringoutbound or inbound.
sincedate-timeCreated at or after this time.
untildate-timeCreated before this time.
numberIdstringOnly this fax number.
Response fields
FieldTypeDescription
idstringStarts with fax_.
directionenumOne of outbound, inbound.
statusenumSee Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received.
fromstring, nullableSending number in E.164. Null when sent without a dedicated number.
tostringDestination in E.164.
viaEmailbooleanSent by emailing the fax address.
titlestring, nullableThe document name, when there is one.
pagesinteger, nullableKnown once the document is ready.
billedPagesinteger, nullablePages charged: the document, plus the cover page if there is one.
resolutionenumOne of standard, fine, superfine.
attemptsintegerTransmission attempts so far.
failureCodestring, nullableMachine-readable reason when failed.
failureReasonstring, nullableThe reason in plain language.
coverPageobject, nullable
coverPage.tostring
coverPage.fromstring
coverPage.subjectstring
coverPage.messagestring
numberIdstring, nullableThe dedicated number used, if any.
documentIdstring, nullable
lockedbooleanA received fax beyond your allowance: its file opens once paid from credit.
createdAtdate-time
sentAtdate-time, nullable
completedAtdate-time, nullable
folderIdstring, nullable
starredboolean
archivedAtdate-time, nullable
readAtdate-time, nullableWhen a received fax was first opened. Null is unread.
deletedAtdate-time, nullable
restorableUntildate-time, nullableIn the trash: when it is removed for good.
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/faxes \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
const response = await fetch('https://api.faxnook.com/v1/faxes', {
  headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();
Python
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"]
Response 200
{
  "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

get/v1/faxes/{id}Scope: fax:read

For updates as they happen, use webhooks rather than polling.

Response fields
FieldTypeDescription
idstringStarts with fax_.
directionenumOne of outbound, inbound.
statusenumSee Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received.
fromstring, nullableSending number in E.164. Null when sent without a dedicated number.
tostringDestination in E.164.
viaEmailbooleanSent by emailing the fax address.
titlestring, nullableThe document name, when there is one.
pagesinteger, nullableKnown once the document is ready.
billedPagesinteger, nullablePages charged: the document, plus the cover page if there is one.
resolutionenumOne of standard, fine, superfine.
attemptsintegerTransmission attempts so far.
failureCodestring, nullableMachine-readable reason when failed.
failureReasonstring, nullableThe reason in plain language.
coverPageobject, nullable
coverPage.tostring
coverPage.fromstring
coverPage.subjectstring
coverPage.messagestring
numberIdstring, nullableThe dedicated number used, if any.
documentIdstring, nullable
lockedbooleanA received fax beyond your allowance: its file opens once paid from credit.
createdAtdate-time
sentAtdate-time, nullable
completedAtdate-time, nullable
folderIdstring, nullable
starredboolean
archivedAtdate-time, nullable
readAtdate-time, nullableWhen a received fax was first opened. Null is unread.
deletedAtdate-time, nullable
restorableUntildate-time, nullableIn the trash: when it is removed for good.
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0 \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 200
{
  "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

get/v1/faxes/{id}/eventsScope: fax:read

Everything that happened to the fax, oldest first.

Response fields
FieldTypeDescription
typestringWhat happened, for example created or provider.delivered.
sourceenumOne of provider, system, user.
attemptinteger, nullable
failureCodestring, nullable
ignoredbooleanA late or repeated update that changed nothing.
createdAtdate-time
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/events \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 200
{
  "data": [
    {
      "type": "created",
      "source": "system",
      "attempt": null,
      "failureCode": null,
      "ignored": false,
      "createdAt": "2026-11-01T14:30:00.000Z"
    }
  ],
  "meta": {
    "request_id": "req_01a1"
  }
}

Cancel a fax

post/v1/faxes/{id}/cancelScope: fax:send

Stops a fax not yet delivered and returns its charge. If sending has started, the recipient may still get some pages.

Response fields
FieldTypeDescription
idstringStarts with fax_.
directionenumOne of outbound, inbound.
statusenumSee Fax statuses. One of draft, awaiting_payment, queued, processing, sending, delivered, failed, canceled, received.
fromstring, nullableSending number in E.164. Null when sent without a dedicated number.
tostringDestination in E.164.
viaEmailbooleanSent by emailing the fax address.
titlestring, nullableThe document name, when there is one.
pagesinteger, nullableKnown once the document is ready.
billedPagesinteger, nullablePages charged: the document, plus the cover page if there is one.
resolutionenumOne of standard, fine, superfine.
attemptsintegerTransmission attempts so far.
failureCodestring, nullableMachine-readable reason when failed.
failureReasonstring, nullableThe reason in plain language.
coverPageobject, nullable
coverPage.tostring
coverPage.fromstring
coverPage.subjectstring
coverPage.messagestring
numberIdstring, nullableThe dedicated number used, if any.
documentIdstring, nullable
lockedbooleanA received fax beyond your allowance: its file opens once paid from credit.
createdAtdate-time
sentAtdate-time, nullable
completedAtdate-time, nullable
folderIdstring, nullable
starredboolean
archivedAtdate-time, nullable
readAtdate-time, nullableWhen a received fax was first opened. Null is unread.
deletedAtdate-time, nullable
restorableUntildate-time, nullableIn the trash: when it is removed for good.
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
409FAX_STATE_CONFLICTThe fax is past the point where this is possible.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl -X POST https://api.faxnook.com/v1/faxes/fax_01a17eb9bb6379f3b8e651638272bdc0/cancel \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 200
{
  "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"
  }
}
Documents

Upload a document

post/v1/documentsScope: fax:send

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

filerequiredThe document, as a multipart file field.
Response fields
FieldTypeDescription
idstringStarts with doc_.
filenamestring
mimeTypestringThe detected type of the uploaded file.
sizeBytesinteger
pageCountinteger, nullableKnown once status is ready.
statusenumPDFs are ready at once; other formats convert. One of uploaded, converting, ready, failed.
failureReasonstring, nullable
createdAtdate-time
deletedAtdate-time, nullable
restorableUntildate-time, nullable
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
413PAYLOAD_TOO_LARGEThe file is over 20 MB.
415UNSUPPORTED_MEDIA_TYPEThis file type cannot be faxed, or it may be unsafe.
400DOCUMENT_TOO_MANY_PAGESThe document has more than 50 pages.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl -X POST https://api.faxnook.com/v1/documents \
  -H "Authorization: Bearer fxn_your_api_key" \
  -F "[email protected]"
Node.js
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();
Python
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"]
Response 201
{
  "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

get/v1/documentsScope: documents:read

Newest first.

Query parameters

NameTypeDescription
firstintegerPage size, up to 100. Default 20.
afterstringThe meta.next_cursor of the previous page.
Response fields
FieldTypeDescription
idstringStarts with doc_.
filenamestring
mimeTypestringThe detected type of the uploaded file.
sizeBytesinteger
pageCountinteger, nullableKnown once status is ready.
statusenumPDFs are ready at once; other formats convert. One of uploaded, converting, ready, failed.
failureReasonstring, nullable
createdAtdate-time
deletedAtdate-time, nullable
restorableUntildate-time, nullable
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/documents \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
const response = await fetch('https://api.faxnook.com/v1/documents', {
  headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();
Python
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"]
Response 200
{
  "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

get/v1/documents/{id}Scope: documents:read

Poll this to follow a conversion, or send the fax now: it waits for the document.

Response fields
FieldTypeDescription
idstringStarts with doc_.
filenamestring
mimeTypestringThe detected type of the uploaded file.
sizeBytesinteger
pageCountinteger, nullableKnown once status is ready.
statusenumPDFs are ready at once; other formats convert. One of uploaded, converting, ready, failed.
failureReasonstring, nullable
createdAtdate-time
deletedAtdate-time, nullable
restorableUntildate-time, nullable
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/documents/doc_01a1975f8c2b7a26aca1205cc73e630f \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 200
{
  "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"
  }
}
Numbers

List fax numbers

get/v1/numbersScope: numbers:read

The dedicated numbers of your workspace. Use id as numberId when sending.

Response fields
FieldTypeDescription
idstringStarts with num_.
e164string
countrystringISO 3166-1 alpha-2.
areaCodestring, nullable
statusenumOne of awaiting_payment, provisioning, active, release_pending, released.
assignedUserIdstring, nullable
monthlyPriceCentsintegerWhat this number adds per month. 0 if included.
releaseAtdate-time, nullableWhen a number being released goes away.
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/numbers \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
const response = await fetch('https://api.faxnook.com/v1/numbers', {
  headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();
Python
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"]
Response 200
{
  "data": [
    {
      "id": "num_01a17eb9bb6379f3b8e651638272bdc0",
      "e164": "+15615550101",
      "country": "US",
      "areaCode": null,
      "status": "active",
      "assignedUserId": null,
      "monthlyPriceCents": 1,
      "releaseAt": null
    }
  ],
  "meta": {
    "request_id": "req_01a1"
  }
}
Destinations

List destinations

get/v1/public/destinationsPublic

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
FieldTypeDescription
countrystringISO 3166-1 alpha-2.
countryNamestring
callingCodestring, nullableFor example +44.
baseCentsintegerPer fax, when paid from credit.
perPageCentsintegerPer page, when paid from credit.
fineSurchargeCentsPerPageinteger
superfineSurchargeCentsPerPageinteger
maxPerPageCentsintegerPer page in the dearest number range (mobiles, special numbers).
currencystring
variesByNumberbooleanSome number ranges here are priced differently.
freeFaxEligibleboolean
includedInPlansbooleanPages here use a plan allowance.
planPagesPerPageinteger, nullablePlan pages one page here uses (1 in the US, more where faxing costs more).
maxPlanPagesPerPageinteger, nullablePlan pages per page in the dearest number range here.
partlyInPlansbooleanIn plans, but some number ranges here are paid from credit only.
openToNewAccountsbooleanNew accounts and guests may fax here; false means established accounts only.
Errors
StatusCodeMeaning
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/public/destinations
Node.js
const response = await fetch('https://api.faxnook.com/v1/public/destinations');
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.faxnook.com/v1/public/destinations",
    timeout=30,
)
data = response.json()["data"]
Response 200
{
  "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"
  }
}
Webhook endpoints

Create an endpoint

post/v1/webhook-endpointsScope: webhooks:manage

Must be a public HTTPS URL. The signing secret is returned once.

Body

FieldTypeDescription
urlrequiredstringYour public HTTPS URL.
eventsrequiredarray of enumWhich events to send. One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released.
descriptionstring, nullableA note for yourself.
enabledbooleanDefault true.
Response fields
FieldTypeDescription
secretstringFor verifying signatures. Shown once: store it now.
endpointobject
endpoint.idstringStarts with whe_.
endpoint.urlstring
endpoint.eventsarray of enumOne of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released.
endpoint.enabledboolean
endpoint.descriptionstring, nullable
endpoint.createdAtdate-time
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
400URL_NOT_ALLOWEDThis URL is refused: it must be public HTTPS.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
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"
  ]
}'
Node.js
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();
Python
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"]
Response 201
{
  "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

get/v1/webhook-endpointsScope: webhooks:manage

All endpoints of the workspace.

Response fields
FieldTypeDescription
idstringStarts with whe_.
urlstring
eventsarray of enumOne of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released.
enabledboolean
descriptionstring, nullable
createdAtdate-time
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/webhook-endpoints \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints', {
  headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
const { data } = await response.json();
Python
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"]
Response 200
{
  "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

get/v1/webhook-endpoints/{id}Scope: webhooks:manage

The secret is never shown again.

Response fields
FieldTypeDescription
idstringStarts with whe_.
urlstring
eventsarray of enumOne of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released.
enabledboolean
descriptionstring, nullable
createdAtdate-time
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 200
{
  "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

patch/v1/webhook-endpoints/{id}Scope: webhooks:manage

Change the URL, events, description or whether it is enabled. Send only what changes.

Body

FieldTypeDescription
urlstringYour public HTTPS URL.
eventsarray of enumWhich events to send. One of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released.
descriptionstring, nullableA note for yourself.
enabledbooleanFalse pauses deliveries.
Response fields
FieldTypeDescription
idstringStarts with whe_.
urlstring
eventsarray of enumOne of fax.queued, fax.sending, fax.delivered, fax.failed, fax.received, number.provisioned, number.released.
enabledboolean
descriptionstring, nullable
createdAtdate-time
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
400URL_NOT_ALLOWEDThis URL is refused: it must be public HTTPS.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
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
}'
Node.js
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();
Python
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"]
Response 200
{
  "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

delete/v1/webhook-endpoints/{id}Scope: webhooks:manage

Events stop being sent to it right away.

Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl -X DELETE https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
const response = await fetch('https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f', {
  method: 'DELETE',
  headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
Python
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,
)
Response 204
No content.

Rotate the signing secret

post/v1/webhook-endpoints/{id}/rotate-secretScope: webhooks:manage

Returned once. The old secret stops working immediately, so update your server straight away.

Response fields
FieldTypeDescription
secretstringThe new signing secret. Shown once; the old one stops working.
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl -X POST https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/rotate-secret \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 200
{
  "data": {
    "secret": "whsec_shown_once"
  },
  "meta": {
    "request_id": "req_01a1"
  }
}

List deliveries

get/v1/webhook-endpoints/{id}/deliveriesScope: webhooks:manage

The delivery log of an endpoint, newest first.

Query parameters

NameTypeDescription
firstintegerPage size, up to 100. Default 20.
afterstringThe meta.next_cursor of the previous page.
Response fields
FieldTypeDescription
idstring
endpointIdstring
eventIdstringThe same across retries and resends: use it to deduplicate.
eventTypestring
statusenumOne of pending, delivered, failed.
attemptsinteger
responseStatusinteger, nullableWhat your server last answered.
responseBodystring, nullableThe start of what your server last answered.
nextRetryAtdate-time, nullable
deliveredAtdate-time, nullable
createdAtdate-time
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
400VALIDATION_FAILEDA field is missing or invalid. details.issues lists each one.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/webhook-endpoints/whe_01a1975f8c2b7a26aca1205cc73e630f/deliveries \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 200
{
  "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

post/v1/webhook-deliveries/{id}/resendScope: webhooks:manage

Queues it again with the same event id, so your deduplication still works.

Response fields
FieldTypeDescription
idstring
endpointIdstring
eventIdstringThe same across retries and resends: use it to deduplicate.
eventTypestring
statusenumOne of pending, delivered, failed.
attemptsinteger
responseStatusinteger, nullableWhat your server last answered.
responseBodystring, nullableThe start of what your server last answered.
nextRetryAtdate-time, nullable
deliveredAtdate-time, nullable
createdAtdate-time
Errors
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
404NOT_FOUNDIt does not exist, or belongs to another workspace.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl -X POST https://api.faxnook.com/v1/webhook-deliveries/whd_01a1975f8c2b7a26aca1205cc73e630f/resend \
  -H "Authorization: Bearer fxn_your_api_key"
Node.js
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();
Python
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"]
Response 202
{
  "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"
  }
}
Live events

Stream live events

get/v1/eventsScope: fax:read

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
StatusCodeMeaning
401UNAUTHENTICATEDThe API key is missing, wrong, expired or revoked.
403INSUFFICIENT_SCOPEThe key lacks the scope this endpoint needs.
402PLAN_UPGRADE_REQUIREDThe workspace’s plan does not include API access.
429RATE_LIMITEDToo many requests. Wait for the Retry-After seconds.
Request
cURL
curl https://api.faxnook.com/v1/events \
  -H "Authorization: Bearer fxn_your_api_key" \
  -H "Accept: text/event-stream" -N
Node.js
const response = await fetch('https://api.faxnook.com/v1/events', {
  headers: { Authorization: 'Bearer ' + process.env.FAXNOOK_API_KEY },
});
Python
import os
import requests

response = requests.get(
    "https://api.faxnook.com/v1/events",
    headers={"Authorization": f"Bearer {os.environ['FAXNOOK_API_KEY']}"},
    stream=True,
)
Response 200
event: fax.delivered
data: {"id":"fax_01a17eb9bb6379f3b8e651638272bdc0","status":"delivered","to":"+14155550142", …}

: ping