Fax for Agents API reference
Fax for Agents is a fax API, a hosted MCP server and SDKs built so AI agents can send and receive faxes. It is made by JSB Holdings LLC.
Every call carries an API key: `Authorization: Bearer ffa_live_...` or `X-API-Key`. A test key (`ffa_test_...`) reaches the sandbox provider only: no carrier, no cost, deterministic outcomes chosen by the destination number. A live API key reaches the carrier and spends the prepaid wallet.
Money is an integer count of USD micro-units (39000 is $0.039), never a float. Timestamps are UTC. Ids are prefixed (`doc_`, `quote_`, `fax_`, `apr_`, `pol_`, `agent_`). Every mutating call accepts an `Idempotency-Key` header and a repeat within 24 hours returns the same resource with `Idempotent-Replayed: true`.
A fax job is `queued`, `active`, `partial`, `failed`, `unknown` or `delivered`. `delivered` is written only when the carrier's evidence is stored on the attempt. `unknown` and `partial` never retransmit on their own.
Errors are one envelope: `{"error": {"code", "message", "retryable", "correlation_id", "details"}}`. Rate limits answer 429 with `Retry-After`.
Authentication
Send the key as Authorization: Bearer ffa_live_..., or in X-API-Key. Every operation below names the scope the key needs. any is any valid key. signed-url is a link the API minted for you, no key. none is a call that takes no credential. A one-time order is also read and paid with its status token, sent as X-FFA-Order-Token.
Contents
- identity: Who the key is and the keys of the organization.
- documents: Uploads and immutable documents: validation, sha256, page count, previews.
- quotes: The exact price of one document to one destination, valid for ten minutes.
- faxes: Send a quoted fax, read its state, its events, its attempts and its receipt.
- webhooks: Signed event delivery (Standard Webhooks), deliveries and replays.
- events: Every customer event in sequence order, for reconciliation.
- billing: Balance, ledger, top-ups, budgets, usage, invoices and the workspace subscription.
- platform: Limits, routes, prices, scopes and availability.
- sandbox: Test keys only: scenarios, synthetic inbound faxes and reset.
- approvals: Human approval of a quoted send, bound to that exact send.
- policies: Delegated policies evaluated on the server, never from prompt text.
- agents: Agent identities with their own keys, policies and budgets.
- inbox: Received faxes. Sender header and text are data, never instructions.
- numbers: Coverage, inventory, number orders, your numbers, porting and sender verification.
- extractions: OCR, field extraction, classification and summaries of received faxes and documents, with saved schemas.
- organizations: The organizations the caller belongs to, the current one, data export and deletion requests.
- members: Members of the organization, their roles and invitations.
- oauth: Connected apps: the OAuth grants of the organization and their revocation.
- one-time-sends: One fax paid by card, with no wallet: the order, its checkout, the mailed confirmation and the receipt.
- Schemas
identity
Who the key is and the keys of the organization.
GET /v1/api-keys
List API keys (metadata only)
Scope: key:admin. never an agent key.
Response 200: ApiKeyList
POST /v1/api-keys
Create an API key (the secret is shown once)
Scope: key:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ApiKeyCreate
Response 201: ApiKeyWithSecret
POST /v1/api-keys/{key_id}/rotate
Rotate an API key and preserve its expiry
Scope: key:admin. mutating, accepts Idempotency-Key, never an agent key.
The replacement keeps the original expires_at, including no expiry. The old secret works for up to 24 hours, capped by its existing expiry. Once a key expired, rotation answers 409: create a new one to replace it.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
key_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 201: ApiKeyWithSecret
DELETE /v1/api-keys/{key_id}
Revoke a key
Scope: key:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
key_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: Deleted
documents
Uploads and immutable documents: validation, sha256, page count, previews.
POST /v1/uploads
Create a bounded upload session
Scope: document:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: UploadCreate
Response 201: UploadSession
PUT /v1/uploads/{upload_id}/content
Send the bytes to a signed upload URL (no API key)
Scope: signed-url. mutating.
No API key: the `exp` and `sig` query values come from the signed URL the API minted. The link lives ten minutes.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
upload_id | path | string | yes | |
exp | query | string or null | ||
sig | query | string or null | ||
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: UploadSession
POST /v1/uploads/{upload_id}/complete
Finalize an upload (size and hash checked)
Scope: document:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
upload_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: UploadComplete
Response 200: UploadSession
DELETE /v1/uploads/{upload_id}
Cancel an incomplete upload
Scope: document:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
upload_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: Deleted
POST /v1/documents
Create an immutable document from an upload or from text
Scope: document:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: DocumentCreate
Response 201: Document
GET /v1/documents
List documents, newest first
Scope: document:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer | ||
source | query | upload | image | text | markdown | html | inbound or null | Only documents of this source; "inbound" is the files of received faxes. | |
exclude_source | query | upload | image | text | markdown | html | inbound or null | Leave this source out; "inbound" lists the documents you made. | |
q | query | string or null | Part of a file name, or of the sender's number for a received fax. |
Response 200: DocumentPage
GET /v1/documents/{document_id}
Read a document's hash, pages and validation state
Scope: document:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes |
Response 200: Document
PATCH /v1/documents/{document_id}
Rename a document
Scope: document:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: DocumentUpdate
Response 200: Document
DELETE /v1/documents/{document_id}
Delete a document (its bytes and previews)
Scope: document:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: Deleted
GET /v1/documents/{document_id}/validation
Validation warnings
Scope: document:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes |
Response 200: DocumentValidation
GET /v1/documents/{document_id}/download
A short-lived signed download URL
Scope: document:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes |
Response 200: SignedUrl
GET /v1/documents/{document_id}/content
The PDF bytes behind a signed URL (no API key)
Scope: signed-url.
No API key: the `exp` and `sig` query values come from the signed URL the API minted. The link lives ten minutes.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes | |
exp | query | string or null | ||
sig | query | string or null |
Response 200: bytes
GET /v1/documents/{document_id}/pages
Rendered pages with signed preview URLs
Scope: document:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes |
Response 200: DocumentPages
GET /v1/documents/{document_id}/pages/{page_number}/content
A page PNG behind a signed URL (no API key)
Scope: signed-url.
No API key: the `exp` and `sig` query values come from the signed URL the API minted. The link lives ten minutes.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
document_id | path | string | yes | |
page_number | path | integer | yes | |
exp | query | string or null | ||
sig | query | string or null |
Response 200: bytes
quotes
The exact price of one document to one destination, valid for ten minutes.
POST /v1/fax-quotes
Price an exact document to one destination
Scope: fax:quote. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: QuoteCreate
Response 201: Quote
GET /v1/fax-quotes/{quote_id}
Read a quote
Scope: fax:quote.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
quote_id | path | string | yes |
Response 200: Quote
faxes
Send a quoted fax, read its state, its events, its attempts and its receipt.
POST /v1/faxes
Send a quoted fax. Pass an Idempotency-Key.
Scope: fax:send. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: FaxCreate
Response 201: FaxJob
GET /v1/faxes
List fax jobs, newest first
Scope: fax:read.
Fax jobs of the credential's organization and environment, newest first, in pages of `limit`. Every filter combines with the others and with `cursor`: pass the same filters with the `next_cursor` of the page before. `created_after` and `created_before` narrow the list to the jobs created in a time range, the start included and the end left out. A range whose start is after its end is refused with 422 invalid_request.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
state | query | string or null | ||
idempotency_key | query | string or null | Find the send job using its Idempotency-Key. This lookup requires the stored replay record. An empty result does not prove no fax was sent. | |
q | query | string or null | Find faxes by destination or by id. Text that starts with fax_ is the beginning of a job id. Anything else is read as a fax number in any spelling: its digits are looked for anywhere in the destination. Combines with state. | |
created_after | query | string or null | Only jobs created at or after this time. ISO 8601, for example 2026-11-16T00:00:00Z. A time without an offset is read as UTC. Combines with created_before, the other filters and cursor. | |
created_before | query | string or null | Only jobs created before this time, which is left out. ISO 8601, for example 2026-11-17T00:00:00Z. A time without an offset is read as UTC. With created_after, a range that starts after it ends is refused. | |
cursor | query | string or null | ||
limit | query | integer |
Response 200: FaxJobPage
GET /v1/faxes/{fax_id}
Read a fax job (with evidence once delivered)
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
fax_id | path | string | yes |
Response 200: FaxJob
GET /v1/faxes/{fax_id}/events
Ordered events of one fax
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
fax_id | path | string | yes |
Response 200: EventPage
GET /v1/faxes/{fax_id}/attempts
Attempt history
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
fax_id | path | string | yes |
Response 200: AttemptPage
GET /v1/faxes/{fax_id}/receipt
Delivery evidence as a receipt (JSON)
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
fax_id | path | string | yes |
Response 200: Receipt
GET /v1/faxes/{fax_id}/receipt.pdf
The same receipt as a one-page PDF
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
fax_id | path | string | yes |
Response 200: bytes
POST /v1/faxes/{fax_id}/cancel
Cancel if still possible (best effort once sending)
Scope: fax:cancel. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
fax_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: FaxJob
webhooks
Signed event delivery (Standard Webhooks), deliveries and replays.
POST /v1/webhooks
Register a destination (secret shown once)
Scope: webhook:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: WebhookCreate
Response 201: WebhookWithSecret
PATCH /v1/webhooks/{webhook_id}
Change url, filters or pause
Scope: webhook:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
webhook_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: WebhookUpdate
Response 200: Webhook
DELETE /v1/webhooks/{webhook_id}
Remove a destination
Scope: webhook:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
webhook_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: Deleted
POST /v1/webhooks/{webhook_id}/rotate-secret
New secret. The old one signs too for 24 hours
Scope: webhook:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
webhook_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: WebhookWithSecret
POST /v1/webhooks/{webhook_id}/test
Send a signed webhook.test event to this destination
Scope: webhook:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
webhook_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 202: Event
GET /v1/webhook-deliveries
Delivery attempts (no payload secrets)
Scope: webhook:admin. never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
webhook_id | query | string or null | ||
event_id | query | string or null | ||
cursor | query | string or null | ||
limit | query | integer |
Response 200: DeliveryPage
GET /v1/webhook-deliveries/{delivery_id}
One delivery with the body that was sent (no secrets)
Scope: webhook:admin. never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
delivery_id | path | string | yes |
Response 200: DeliveryDetail
POST /v1/webhook-deliveries/{delivery_id}/replay
Replay the event with the same event id
Scope: webhook:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
delivery_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 202: Delivery
events
Every customer event in sequence order, for reconciliation.
GET /v1/events
Events for reconciliation, oldest first from the cursor
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
type | query | string or null | ||
cursor | query | string or null | The cursor from the previous page (opaque). | |
limit | query | integer |
Response 200: EventPage
billing
Balance, ledger, top-ups, budgets, usage, invoices and the workspace subscription.
GET /v1/ledger
Wallet transactions, newest first
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer |
Response 200: LedgerPage
GET /v1/statement
The wallet statement: one line per event with the balance after it, newest first
Scope: billing:read.
One line per event on the wallet, signed the way the balance moved. type filters the lines by the type they carry. kind is the same filter by its older name, and both at once answer 422 unless they agree. A hold and its release name what they were for in ref_type: fax_job, extraction or number_order. GET /v1/ledger keeps the reference as it was booked, fax_job for every hold.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer | ||
type | query | string or null | Only the lines whose type is this one: topup, fax, received_fax, number, extraction, release, refund, dispute, credit, adjustment, other. | |
kind | query | string or null | The same filter as type, by the name it had before 2026-11-15. Sent with type, it has to name the same type. | |
from | query | string or null | First UTC day, YYYY-MM-DD, included. | |
to | query | string or null | Last UTC day, YYYY-MM-DD, included. |
Response 200: StatementPage
GET /v1/statement.csv
The wallet statement as CSV: every line the filters select
Scope: billing:read.
One line per event on the wallet, signed the way the balance moved. type filters the lines by the type they carry. kind is the same filter by its older name, and both at once answer 422 unless they agree. A hold and its release name what they were for in ref_type: fax_job, extraction or number_order. GET /v1/ledger keeps the reference as it was booked, fax_job for every hold. The file's columns for them are reference_type and reference_id.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
type | query | string or null | Only the lines whose type is this one: topup, fax, received_fax, number, extraction, release, refund, dispute, credit, adjustment, other. | |
kind | query | string or null | The same filter as type, by the name it had before 2026-11-15. Sent with type, it has to name the same type. | |
from | query | string or null | First UTC day, YYYY-MM-DD, included. | |
to | query | string or null | Last UTC day, YYYY-MM-DD, included. |
Response 200: bytes
GET /v1/billing-settings
Billing settings of the organization
Scope: billing:read.
Response 200: BillingSettings
PATCH /v1/billing-settings
Change the billing email or the low-balance threshold
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: BillingSettingsPatch
Response 200: BillingSettings
POST /v1/topup-sessions
Open a hosted Checkout to fund the live wallet (10 to 1000 USD)
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: TopupCreate
Response 201: TopupSession
GET /v1/topup-sessions
Top-up sessions, newest first
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer |
Response 200: TopupSessionPage
GET /v1/topup-sessions/{topup_session_id}
Read a top-up session
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
topup_session_id | path | string | yes | |
check_checkout | query | boolean | Ask Stripe about the Checkout of an open top-up and answer its state as checkout_status. The page Stripe returns the person to asks it, because the event that credits the wallet can arrive seconds after the payment. |
Response 200: TopupSession
POST /v1/topup-sessions/{topup_session_id}/cancel
Cancel an open top-up, so its hosted Checkout can no longer be paid
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
Closes the Checkout of a manual or setup top-up that is still open and answers the session with status canceled. Canceling a setup payment also turns off the auto top-up that waited on it. A top-up already canceled or expired is answered as it is. One that was paid, declined or charged off session answers 409.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
topup_session_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: TopupSession
GET /v1/topup-sessions/{topup_session_id}/receipt
Stripe's receipt for a paid top-up (manual, setup or automatic)
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
topup_session_id | path | string | yes |
Response 200: PaymentReceipt
POST /v1/auto-topups
Opt in to auto top-up (threshold, amount, daily cap). The card is saved at the first payment
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: AutoTopupCreate
Response 201: AutoTopup
DELETE /v1/auto-topups/{auto_topup_id}
Turn auto top-up off
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
auto_topup_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: Deleted
GET /v1/budgets
Spending caps of this environment
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
include_archived | query | boolean | Also list removed budgets with history. |
Response 200: BudgetList
POST /v1/budgets
Create a daily or monthly cap for the organization, a project or an agent
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: BudgetCreate
Response 201: Budget
PATCH /v1/budgets/{budget_id}
Change a cap's limit or status
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
budget_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: BudgetPatch
Response 200: Budget
DELETE /v1/budgets/{budget_id}
Remove a cap: deleted when it never charged a hold, archived when it has history
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
budget_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: BudgetRemoved
GET /v1/usage
Usage rollups by day, direction, destination and project
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
from | query | string or null | ||
to | query | string or null | ||
group_by | query | string | Comma-separated subset. | |
project_id | query | string or null |
Response 200: UsageReport
POST /v1/usage-exports
Export usage as CSV behind a signed download
Scope: billing:read. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: UsageExportCreate
Response 201: UsageExport
GET /v1/usage-exports/{export_id}
Read a usage export (fresh link)
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
export_id | path | string | yes |
Response 200: UsageExport
GET /v1/usage-exports/{export_id}/content
The CSV behind a signed URL (no API key)
Scope: signed-url.
No API key: the `exp` and `sig` query values come from the signed URL the API minted. The link lives ten minutes.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
export_id | path | string | yes | |
exp | query | string or null | ||
sig | query | string or null |
Response 200: bytes
GET /v1/invoices
Stripe invoices and receipts (hosted links)
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer |
Response 200: InvoicePage
GET /v1/invoices/{invoice_id}
One Stripe invoice
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
invoice_id | path | string | yes |
Response 200: Invoice
GET /v1/invoices/{invoice_id}/receipt
Stripe's receipt for a paid invoice
Scope: billing:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
invoice_id | path | string | yes |
Response 200: PaymentReceipt
POST /v1/subscriptions/checkout
Open a hosted Checkout for the Agent workspace subscription
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
Answers the address of Stripe's payment page for the plan. It is refused with 409 while the plan is active or a Checkout of it is still open, so the plan is never paid twice.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 201: SubscriptionCheckout
GET /v1/subscriptions
Subscriptions and the workspace entitlement
Scope: billing:read.
Response 200: SubscriptionList
POST /v1/billing-portal-sessions
Open the Stripe customer portal (cards, invoices, the subscription)
Scope: billing:write. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 201: PortalSession
platform
Limits, routes, prices, scopes and availability.
sandbox
Test keys only: scenarios, synthetic inbound faxes and reset.
GET /v1/sandbox/scenarios
The scenario catalog and active fixtures
Scope: sandbox:write.
Response 200: SandboxScenarios
POST /v1/sandbox/scenarios
Select the outcome of the next sends
Scope: sandbox:write. mutating, accepts Idempotency-Key.
The choice lasts 24 hours. A destination has one fixture: a second call for the same destination replaces the first, and a call with no destination replaces the organization-wide one.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: SandboxScenarioCreate
Response 201: SandboxFixture
POST /v1/sandbox/inbound-faxes
Create a synthetic inbound fax (the same pipeline as a real one)
Scope: sandbox:write. mutating, accepts Idempotency-Key.
A synthetic PDF goes through ``inbox.service.receive_now``: the private document, the inbox item, the ``fax.received`` event with its download reference, exactly as a carrier delivery (M8).
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: SandboxInboundCreate
Response 201: InboxItemSummary
DELETE /v1/sandbox/data
Reset this organization's test data
Scope: sandbox:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: SandboxReset
approvals
Human approval of a quoted send, bound to that exact send.
POST /v1/approval-requests
Ask a human to approve a quoted send, or ask for help (grants nothing)
Scope: approval:request. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ApprovalRequestCreate
Response 200: ApprovalRequest
GET /v1/approval-requests
Approval requests, pending first
Scope: approval:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
status | query | string or null | pending, approved, used, rejected, revoked or expired. used finds the approvals a send consumed; their status reads approved and consumed_by_job_id names the fax. | |
cursor | query | string or null | ||
limit | query | integer |
Response 200: ApprovalRequestPage
GET /v1/approval-requests/{approval_id}
Read one request
Scope: approval:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
approval_id | path | string | yes |
Response 200: ApprovalRequest
POST /v1/approval-requests/{approval_id}/approve
Approve the bound quote (approval:decide, fresh session or independent API credential)
Scope: approval:decide. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
approval_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ApprovalDecision
Response 200: ApprovalRequest
POST /v1/approval-requests/{approval_id}/reject
Reject with a reason (a help request closes without one)
Scope: approval:decide. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
approval_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ApprovalDecision
Response 200: ApprovalRequest
POST /v1/approvals/{approval_id}/revoke
Revoke an approval nobody has used yet
Scope: approval:decide. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
approval_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ApprovalDecision
Response 200: ApprovalRequest
policies
Delegated policies evaluated on the server, never from prompt text.
POST /v1/policy-rule-checks
Check a draft's destination lists against each other. Writes nothing
Scope: policy:read.
For the editor of a policy: which numbers of allowed_destinations are already allowed by one of allowed_countries or allowed_country_prefixes. Routed with the rate card, the way an evaluation routes a destination. Entries that are not numbers the card serves are left out. Nothing is stored and no policy is read. Idempotency-Key is accepted but ignored: a repeat checks the lists again.
Request body: PolicyRuleCheckCreate
Response 200: PolicyRuleCheck
POST /v1/policies
Create a delegated policy (version 1)
Scope: policy:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: PolicyCreate
Response 201: Policy
GET /v1/policies/effective
What the calling API key is allowed to do alone, and whether a human is needed otherwise
Scope: policy:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
key_id | query | string or null | An API key in your organization. Uses the key's environment. Choose either key_id or agent_id. | |
agent_id | query | string or null | An agent in your organization. Uses the current environment and excludes bindings to individual keys. | |
connection_id | query | string or null | A connected app (an OAuth grant, GET /v1/oauth/grants) in your organization; a signed-in person sees their own. Uses the connection's environment. Choose at most one of key_id, agent_id and connection_id. |
Response 200: EffectivePolicies
GET /v1/organizations/current/auto-send
Read the auto-send setting for connected apps in this environment
Scope: policy:read.
Response 200: AutoSendSetting
PUT /v1/organizations/current/auto-send
Let connected apps send without asking, inside two limits (owner)
Scope: org:admin. mutating, accepts Idempotency-Key, never an agent key.
The environment comes from X-FFA-Environment. When enabled, every connected app of the organization (OAuth connections such as ChatGPT or Claude, and API keys flagged connected_app) sends in that environment with no approval per fax, inside the amount per fax and the faxes per day. A hosted integration the server marks requires_human_approval still needs a person. The first enable creates a managed policy. Every later save is a new policy version with its audit row. A browser session needs a sign-in from the last 15 minutes.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: AutoSendUpdate
Response 200: AutoSendSetting
GET /v1/policies/{policy_id}
Read a policy (its current version)
Scope: policy:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
policy_id | path | string | yes |
Response 200: Policy
PATCH /v1/policies/{policy_id}
Change a policy: a new immutable version
Scope: policy:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
policy_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: PolicyUpdate
Response 200: Policy
GET /v1/policies/{policy_id}/versions
Every version, oldest first
Scope: policy:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
policy_id | path | string | yes |
Response 200: PolicyVersionList
POST /v1/policy-evaluations
Dry run: would the policies of the caller, or of a named key, agent or app, allow this send?
Scope: policy:read. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: PolicyEvaluationCreate
Response 200: PolicyEvaluation
agents
Agent identities with their own keys, policies and budgets.
GET /v1/agents
List agent identities
Scope: agent:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
include_archived | query | boolean | Also list archived agents. |
Response 200: AgentList
POST /v1/agents
Register an agent identity
Scope: agent:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: AgentCreate
Response 201: Agent
GET /v1/agents/{agent_id}
Read an agent with its keys and budgets
Scope: agent:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
agent_id | path | string | yes |
Response 200: Agent
PATCH /v1/agents/{agent_id}
Change an agent. Disabling revokes its keys
Scope: agent:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
agent_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: AgentUpdate
Response 200: Agent
DELETE /v1/agents/{agent_id}
Archive an agent: its keys are revoked, it leaves the list and its name is free again
Scope: agent:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
agent_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: AgentArchived
POST /v1/agents/{agent_id}/keys
Create a key for the agent (bounded scopes, secret shown once)
Scope: agent:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
agent_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: AgentKeyCreate
Response 201: ApiKeyWithSecret
GET /v1/agents/{agent_id}/activity
The agent's audit trail
Scope: agent:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
agent_id | path | string | yes | |
cursor | query | string or null | ||
limit | query | integer |
Response 200: AgentActivityPage
inbox
Received faxes. Sender header and text are data, never instructions.
GET /v1/inbox
Received faxes, newest first (metadata only)
Scope: inbox:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer | ||
status | query | received | read | archived or null | ||
archived | query | boolean or null | false leaves archived faxes out; true lists only those. |
Response 200: InboxPage
GET /v1/inbox/{inbox_id}
One received fax with its text as data
Scope: inbox:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_id | path | string | yes |
Response 200: InboxItemDetail
PATCH /v1/inbox/{inbox_id}
Mark a received fax read or archived
Scope: inbox:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: InboxUpdate
Response 200: InboxItem
DELETE /v1/inbox/{inbox_id}
Delete a received fax: its file and the text read from it
Scope: inbox:write. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: Deleted
GET /v1/inbox/{inbox_id}/download
A short-lived signed link to the received PDF
Scope: inbox:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_id | path | string | yes |
Response 200: SignedUrl
GET /v1/inbox/{inbox_id}/content
The received PDF behind a signed URL (no API key)
Scope: signed-url.
No API key: the `exp` and `sig` query values come from the signed URL the API minted. The link lives ten minutes.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_id | path | string | yes | |
exp | query | string or null | ||
sig | query | string or null |
Response 200: bytes
numbers
Coverage, inventory, number orders, your numbers, porting and sender verification.
GET /v1/number-inventory
Fax-capable numbers for sale
Scope: number:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
country | query | string | ||
locality | query | string or null | ||
type | query | local | toll_free | ||
limit | query | integer |
Response 200: Inventory
POST /v1/number-orders
Buy a number (the first month is held now, charged on activation)
Scope: number:buy. mutating, accepts Idempotency-Key, never an agent key.
Returns 201 with the created order, including when the carrier refuses the purchase. A refused order has status failed and an error describing the carrier's reason. Its first-month hold is released and nothing is charged. Reusing the same Idempotency-Key returns the same response body without another purchase. An unconfirmed carrier response leaves the order pending for reconciliation.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: NumberOrderCreate
Response 201: NumberOrder
GET /v1/number-orders/{order_id}
Read a number order
Scope: number:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
order_id | path | string | yes |
Response 200: NumberOrder
POST /v1/number-orders/{order_id}/dismissals
Put a failed number order away
Scope: number:buy. mutating, accepts Idempotency-Key, never an agent key.
Sets dismissed_at on an order that failed. The order stays in the list. An order that did not fail answers 409 conflict.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
order_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: NumberOrder
GET /v1/numbers
Your numbers
Scope: number:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
include_released | query | boolean |
Response 200: NumberList
GET /v1/numbers/{number_id}
One number
Scope: number:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
number_id | path | string | yes |
Response 200: Number
PATCH /v1/numbers/{number_id}
Label, inbound route and PDF by mail of a number
Scope: number:buy. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
number_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: NumberUpdate
Response 200: Number
POST /v1/numbers/{number_id}/release-requests
Release a number (confirm with the number itself. 30-day quarantine follows)
Scope: number:buy. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
number_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ReleaseRequest
Response 200: Number
POST /v1/portability-checks
Can these numbers port in
Scope: number:read. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: PortabilityCheckCreate
Response 201: PortabilityCheck
POST /v1/port-orders
Request a port-in (handled with you)
Scope: number:buy. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: PortOrderCreate
Response 201: PortOrder
GET /v1/port-orders/{port_id}
One port order
Scope: number:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
port_id | path | string | yes |
Response 200: PortOrder
POST /v1/port-out-requests
Note a port-out of one of your numbers
Scope: number:buy. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: PortOutRequestCreate
Response 201: PortOrder
POST /v1/sender-verifications
Verify a number of yours as a sender (only numbers you own)
Scope: number:buy. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: SenderVerificationCreate
Response 201: SenderVerification
extractions
OCR, field extraction, classification and summaries of received faxes and documents, with saved schemas.
POST /v1/extractions
Read a received fax or a document: OCR per page, then fields against a schema
Scope: document:extract. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ExtractionCreate
Response 201: Extraction
GET /v1/extractions
Extractions, newest first
Scope: document:extract.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_item_id | query | string or null | ||
document_id | query | string or null | ||
cursor | query | string or null | ||
limit | query | integer |
Response 200: ExtractionPageList
GET /v1/extractions/{extraction_id}
One extraction with its corrections
Scope: document:extract.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
extraction_id | path | string | yes |
Response 200: Extraction
POST /v1/extractions/{extraction_id}/corrections
Record a reviewer's correction of one field (stored beside the extraction, never merged)
Scope: document:extract. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
extraction_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: CorrectionCreate
Response 201: Correction
POST /v1/classifications
Classify a received fax or a document into one of your document types, or abstain
Scope: document:extract. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: ClassificationCreate
Response 201: Extraction
GET /v1/classifications
Classifications, newest first
Scope: document:extract.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_item_id | query | string or null | ||
document_id | query | string or null | ||
cursor | query | string or null | ||
limit | query | integer |
Response 200: ExtractionPageList
GET /v1/classifications/{classification_id}
One classification
Scope: document:extract.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
classification_id | path | string | yes |
Response 200: Extraction
POST /v1/document-summaries
Summarise a received fax or a document. Every sentence cites its pages
Scope: document:extract. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: SummaryCreate
Response 201: Extraction
GET /v1/document-summaries
Summaries, newest first
Scope: document:extract.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
inbox_item_id | query | string or null | ||
document_id | query | string or null | ||
cursor | query | string or null | ||
limit | query | integer |
Response 200: ExtractionPageList
GET /v1/document-summaries/{summary_id}
One summary
Scope: document:extract.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
summary_id | path | string | yes |
Response 200: Extraction
GET /v1/extraction-schemas
Your extraction schemas
Scope: document:extract.
Response 200: ExtractionSchemaList
POST /v1/extraction-schemas
Save a versioned extraction schema (the same name again is the next version)
Scope: document:extract. mutating, accepts Idempotency-Key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: SchemaCreate
Response 201: ExtractionSchema
GET /v1/extraction-schemas/{schema_id}
One schema version
Scope: document:extract.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
schema_id | path | string | yes |
Response 200: ExtractionSchema
organizations
The organizations the caller belongs to, the current one, data export and deletion requests.
GET /v1/organizations/current
The organization you are looking at
Scope: account:read.
Response 200: Organization
PATCH /v1/organizations/current
Rename the organization
Scope: member:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: OrganizationPatch
Response 200: Organization
POST /v1/organizations/current/export-requests
Ask for an export of the organization's data (owner)
Scope: org:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 202: Requested
POST /v1/organizations/current/deletion-requests
Ask for the organization and its data to be deleted (owner)
Scope: org:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 202: Requested
GET /v1/organizations/current/data-requests
The organization's export and deletion requests and where each stands
Scope: account:read.
Response 200: DataRequestList
DELETE /v1/organizations/current/deletion-requests/{request_id}
Withdraw an open deletion request (owner)
Scope: org:admin. mutating, accepts Idempotency-Key, never an agent key.
Works while the request is open. Once a person at Fax for Agents has started the deletion the organization answers 410 to every call, this one included.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
request_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: DataRequest
GET /v1/organization/export-archives/{token}
Download an organization archive with a signed link valid for 72 hours
Scope: signed-url.
No API key: the `exp` and `sig` query values come from the signed URL the API minted. The link lives 72 hours.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
token | path | string | yes | |
exp | query | string or null | ||
sig | query | string or null |
Response 200: bytes
GET /v1/records/faxes.csv
The fax history as CSV: every fax sent and received in the range
Scope: fax:read.
Needs two scopes: fax:read, which x-required-scope names, and inbox:read as well. One line per fax of the key's environment, sent and received, oldest first. A sent fax counts by when it was created and a received one by when it arrived. The lines carry what each fax cost the wallet, never the document or its text. A range of more than 20000 lines answers 422: choose fewer days.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
from | query | string or null | First UTC day, YYYY-MM-DD, included. | |
to | query | string or null | Last UTC day, YYYY-MM-DD, included. |
Response 200: bytes
GET /v1/records/audit.csv
The audit trail as CSV: every action on the organization in the range
Scope: org:admin. never an agent key.
One line per audit row of the organization, oldest first: when, who (actor and a label), what (action), on what (resource_type and resource_id) and the row's data as JSON. Never a document's content. A range of more than 20000 lines answers 422: choose fewer days. Needs the scope org:admin, which an owner has. An agent is refused.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
from | query | string or null | First UTC day, YYYY-MM-DD, included. | |
to | query | string or null | Last UTC day, YYYY-MM-DD, included. |
Response 200: bytes
members
Members of the organization, their roles and invitations.
PATCH /v1/members/{member_id}
Change a member's role
Scope: member:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
member_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: MemberPatch
Response 200: Member
DELETE /v1/members/{member_id}
Remove a member (owner)
Scope: org:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
member_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 204: bytes
GET /v1/invitations
Open invitations
Scope: member:admin. never an agent key.
Response 200: InvitationList
POST /v1/invitations
Invite someone by email (a link that works for 7 days)
Scope: member:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: InvitationCreate
Response 201: Invitation
POST /v1/invitations/{invitation_id}/resend
Send an open invitation again: a new link for 7 days, and the old link stops working
Scope: member:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
invitation_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: Invitation
POST /v1/invitations/{invitation_id}/link
Make a new link for an open invitation, to hand over yourself (the old link stops working)
Scope: member:admin. mutating, accepts Idempotency-Key, never an agent key.
No mail is sent. The link is shown once, like a key's secret: the server keeps only its hash. It joins the organization only for a person signed in with the invited address.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
invitation_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 200: InvitationLink
DELETE /v1/invitations/{invitation_id}
Withdraw an invitation
Scope: member:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
invitation_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 204: bytes
oauth
Connected apps: the OAuth grants of the organization and their revocation.
GET /v1/oauth/grants
Your connected apps in this organization
Scope: key:admin. never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer |
Response 200: GrantList
DELETE /v1/oauth/grants/{grant_id}
Revoke a connected app
Scope: key:admin. mutating, accepts Idempotency-Key, never an agent key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
grant_id | path | string | yes | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 204: bytes
one-time-sends
One fax paid by card, with no wallet: the order, its checkout, the mailed confirmation and the receipt.
GET /v1/one-time-sends/config
Whether one-time sends are open here, and the card and limits an order is priced and checked by
Scope: none.
No API key is needed.
Response 200: OneTimeConfig
POST /v1/one-time-sends/preview
Count the pages of a document before an order is made
Scope: fax:send.
Reads a file (or text) exactly as the create would and answers its page count and its first page as a small picture, or the create's own refusal: too_many_pages, encrypted_pdf, unsupported_format, document_too_large and the other document codes. The price of the document follows from the count and the route of GET /v1/one-time-sends/config. Nothing is stored: no order, no account, no file. No credential is needed. Idempotency-Key is accepted but ignored: the call changes nothing, so a repeat reads the file again.
Response 200: OneTimeInspection
POST /v1/one-time-sends/cover-checks
Measure the room the cover sheet leaves for its message, before an order is made
Scope: none.
Lays out the cover sheet exactly as the create would, with the fields given so far, and answers whether the message fits on its one page and how many more lines fit, or how much of it fits when it runs over. The create refuses a cover that does not fit with invalid_request on cover. This call says so while the message is written. Every field may be empty. Nothing is stored and no credential is needed. Idempotency-Key is accepted but ignored: the call changes nothing. No API key is needed.
Request body: OneTimeCoverCheck
Response 200: OneTimeCoverRoom
POST /v1/one-time-sends
Create a one-time order: one document to one fax number, priced from the card
Scope: fax:send. mutating, accepts Idempotency-Key.
No credential is needed. The answer carries the price, the page count and the status token. The next step is the checkout. A live key with fax:send or a signed-in session may create an order for its organization. Nothing is charged and nothing is sent by this call.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Response 201: OneTimeOrderCreated
GET /v1/one-time-sends
List the organization's one-time orders, newest first
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
cursor | query | string or null | ||
limit | query | integer | ||
status | query | draft | checkout_open | authorized | awaiting_confirmation | released | capturing | canceling | captured | released_hold | expired | refused | settle_failed | refunding | refunded | canceled or null |
Response 200: OneTimeOrderPage
POST /v1/one-time-sends/from-quote
Create a one-time order from a live quote the wallet does not cover
Scope: fax:send. mutating, accepts Idempotency-Key.
The quote supplies the document, the destination and the cover. The price is the card's one-time price, not the quote's. The quote then belongs to the order. Needs a live key with fax:send. A key needs what a wallet send of the quote needs: approval_id, or a delegated policy that allows the send. Paying by card replaces neither. Without one the answer is 403 approval_required.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. |
Request body: OneTimeFromQuote
Response 201: OneTimeOrderCreated
POST /v1/one-time-sends/by-token
What a confirmation link is for, without using it
Scope: none.
The confirm page reads this before the click, with the token in the body. Nothing is consumed by reading it, and nothing is changed: the call is a read that keeps the token out of the address. Idempotency-Key is accepted but ignored. No API key is needed.
Request body: OneTimeConfirm
Response 200: OneTimeConfirmSummary
GET /v1/one-time-sends/by-token/{token}
What a confirmation link is for, without using it (token in the path)
Scope: none.
Kept for pages loaded before 2026-11-12. The token in a path reaches access logs, so new callers post it to /v1/one-time-sends/by-token instead. Nothing is consumed by reading it. No API key is needed.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
token | path | string | yes |
Response 200: OneTimeConfirmSummary
GET /v1/one-time-sends/{one_time_order_id}
Read a one-time order: where it stands, what to do next, and the fax with its evidence
Scope: fax:read.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
one_time_order_id | path | string | yes | |
t | query | string or null | The status token, when no header carries it. | |
X-FFA-Order-Token | header | string | The status token of the order, for a caller without a key or a session. |
Response 200: OneTimeOrder
GET /v1/one-time-sends/{one_time_order_id}/receipt.pdf
The receipt of a one-time order's fax as a one-page PDF
Scope: fax:read.
The delivery receipt of the order's fax: the state, the pages, the document hash, the carrier's evidence as it was reported, and what became of the card. It says charged only once the payment provider confirmed the capture. A key or session of the order's organization may read it, and so may the status token, as the header or as ?t=. 409 conflict while the fax has not ended or the order has no fax.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
one_time_order_id | path | string | yes | |
t | query | string or null | The status token, when no header carries it. | |
X-FFA-Order-Token | header | string | The status token of the order, for a caller without a key or a session. |
Response 200: bytes
GET /v1/one-time-sends/{one_time_order_id}/pages/{page_number}
One page of a one-time order as a picture: the cover sheet, then the document
Scope: fax:read.
Page 1 is the cover sheet. Before the fax is released the cover is drawn from the order as it will be printed, and the other pages from the uploaded document. After the release the pages are the file that went to the carrier. order.preview says how many pages can be asked for. 404 not_found for a page that does not exist or a copy that is no longer held (deleted after the send, or after its retention). A key or session of the order's organization may read it, and so may the status token, as the header or as ?t=.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
one_time_order_id | path | string | yes | |
page_number | path | integer | yes | |
t | query | string or null | The status token, when no header carries it. | |
X-FFA-Order-Token | header | string | The status token of the order, for a caller without a key or a session. |
Response 200: bytes
POST /v1/one-time-sends/{one_time_order_id}/checkout
Open the card payment of a one-time order
Scope: fax:send. mutating, accepts Idempotency-Key.
Answers the hosted payment page of the order. The card is held there, not charged. A failed fax costs nothing. A fax that stops part way is charged the price of the pages the carrier confirms, and the rest of the hold is released. A second call answers the same page while it can still be paid, and a new one after it expired. An order whose aup_accepted is false needs {"accept_aup": true} in the body once, from the status token or a session: the person who pays accepts the policy, never a key.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
one_time_order_id | path | string | yes | |
t | query | string or null | The status token, when no header carries it. | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. | |
X-FFA-Order-Token | header | string | The status token of the order, for a caller without a key or a session. |
Response 201: OneTimeCheckout
POST /v1/one-time-sends/{one_time_order_id}/confirm
Confirm a one-time order with the token of the mailed link: the fax is released
Scope: none. mutating.
Proves the sender's address and releases the fax. In a browser without a session it also signs the payer in and sets the session cookies. Idempotency-Key is accepted but ignored: the link works once. A repeat by the same signed-in person answers the confirmed order again. Any other repeat answers 409 link_used and sends nothing. No API key is needed.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
one_time_order_id | path | string | yes |
Request body: OneTimeConfirm
Response 200: OneTimeConfirmed
POST /v1/one-time-sends/{one_time_order_id}/resend-confirmation
Mail the confirmation link of a one-time order again
Scope: fax:send. mutating, accepts Idempotency-Key.
At most three times per order and once in ten minutes. The earlier links keep working.
| parameter | in | type | required | meaning |
|---|---|---|---|---|
one_time_order_id | path | string | yes | |
t | query | string or null | The status token, when no header carries it. | |
Idempotency-Key | header | string | Replay the first successful response for the same request within 24 hours. Reusing the idempotency header with a different request returns 409 idempotency_key_conflict. Responses include Idempotent-Replayed: true on replay. | |
X-FFA-Order-Token | header | string | The status token of the order, for a caller without a key or a session. |
Response 200: OneTimeOrder
Schemas
Agent
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
purpose | string or null | yes | |
enabled | boolean | yes | |
status | string | yes | |
project_id | string or null | yes | |
policy_ids | array of string | yes | |
contact_email | string or null | yes | |
budget_id | string or null | yes | |
budgets | array of object | yes | |
keys | array of ApiKey | yes | |
created_by | string | yes | |
created_at | string | yes | |
updated_at | string | yes | |
disabled_at | string or null | yes | |
archived_at | string or null | Set on an archived agent: disabled for good and left out of the list. |
AgentActivity
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
actor | string | yes | |
actor_label | string | The actor in words: a member's email, the agent's name, an API key's prefix. | |
action | string | yes | |
resource_type | string | yes | |
resource_id | string or null | yes | |
data | object | yes | |
correlation_id | string or null | yes | |
created_at | string | yes |
AgentActivityPage
| field | type | required | meaning |
|---|---|---|---|
items | array of AgentActivity | yes | |
next_cursor | string or null |
AgentArchived
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
deleted | boolean | yes | Always false: an agent has history and its row is kept. |
archived | boolean | yes | |
keys_revoked | integer | yes |
AgentCreate
| field | type | required | meaning |
|---|---|---|---|
name | string | yes | |
purpose | string or null | Shown to humans, never evaluated. | |
policy_ids | array of string | ||
contact_email | string or null | Where decided approvals are mailed. |
AgentKeyCreate
| field | type | required | meaning |
|---|---|---|---|
label | string | ||
environment | live | test | ||
scopes | array of string or null | Omit for the default agent set. Never approval:decide, key:admin, policy:admin, agent:admin. | |
expires_in_days | integer or null |
AgentList
| field | type | required | meaning |
|---|---|---|---|
items | array of Agent | yes |
AgentUpdate
| field | type | required | meaning |
|---|---|---|---|
name | string or null | ||
purpose | string or null | ||
enabled | boolean or null | false revokes every key of the agent. | |
policy_ids | array of string or null | ||
contact_email | string or null |
AlreadyAllowed
| field | type | required | meaning |
|---|---|---|---|
number | string | yes | |
countries | array of string | yes | The listed countries whose route serves this number. |
prefixes | array of string | yes | The listed prefixes this number's route carries. |
ApiKey
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
label | string | yes | |
prefix | string | yes | |
environment | live | test | yes | |
project_id | string or null | yes | |
agent_id | string or null | yes | |
scopes | array of string | yes | |
created_at | string | yes | |
last_used_at | string or null | yes | |
expires_at | string or null | yes | |
revoked_at | string or null | yes | |
rotated_from_id | string or null | yes | |
connected_app | boolean | The key belongs to a connected app used over stdio, such as the Gemini CLI extension. The organization's auto-send setting (Settings, Connected apps) binds it like an OAuth connection. |
ApiKeyCreate
| field | type | required | meaning |
|---|---|---|---|
label | string | yes | |
environment | live | test | ||
scopes | array of string or null | Omit for the default agent set; '*' for all. | |
expires_in_days | integer or null | ||
connected_app | boolean | This key is for a connected app such as the Gemini CLI extension: the auto-send setting binds it. Not available on an agent's key. |
ApiKeyList
| field | type | required | meaning |
|---|---|---|---|
items | array of ApiKey | yes |
ApiKeyWithSecret
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
label | string | yes | |
prefix | string | yes | |
environment | live | test | yes | |
project_id | string or null | yes | |
agent_id | string or null | yes | |
scopes | array of string | yes | |
created_at | string | yes | |
last_used_at | string or null | yes | |
expires_at | string or null | yes | |
revoked_at | string or null | yes | |
rotated_from_id | string or null | yes | |
connected_app | boolean | The key belongs to a connected app used over stdio, such as the Gemini CLI extension. The organization's auto-send setting (Settings, Connected apps) binds it like an OAuth connection. | |
secret | string | yes | Shown once. Store it now; it cannot be read back. |
ApprovalDecision
| field | type | required | meaning |
|---|---|---|---|
reason | string or null |
ApprovalDocument
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
filename | string or null | yes | The file's name; null when the document row is gone. |
page_count | integer or null | yes | |
state | available | deleted | changed | yes | available: the document is the one the request binds. deleted: it was deleted. changed: its sha256 is no longer the bound one. A send with this approval is refused in the last two. |
ApprovalRequest
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
kind | send | help | yes | |
status | pending | approved | rejected | revoked | expired | yes | |
quote_id | string or null | yes | |
bound | object | yes | |
message | string or null | yes | |
requested_by | string | yes | |
requested_by_name | string or null | The requester as people read it: the key's label, the agent's name, the connected app's name or the person's address. null when the actor has no row in the organization any more. | |
decided_by | string or null | yes | |
decided_by_name | string or null | The decider, named the same way. | |
document | ApprovalDocument or null | The document a send request binds (bound.document_id). null for a help request. | |
reason | string or null | yes | |
consumed_by_job_id | string or null | yes | |
created_at | string | yes | |
expires_at | string or null | yes | |
decided_at | string or null | yes | |
notified | boolean or null | On creation: whether the organization was mailed. false when the request repeats a pending one or the organization's daily cap of request mails is reached; the request is still shown in the dashboard. |
ApprovalRequestCreate
| field | type | required | meaning |
|---|---|---|---|
kind | send | help | ||
quote_id | string or null | The quote to bind (kind send). | |
message | string or null | What the person should know (kind help). Shown as data. | |
fax_job_id | string or null |
ApprovalRequestPage
| field | type | required | meaning |
|---|---|---|---|
items | array of ApprovalRequest | yes | |
next_cursor | string or null |
Attempt
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
fax_job_id | string | yes | |
attempt_number | integer | yes | |
provider | string | yes | |
provider_ref | string or null | yes | |
status | string | yes | |
pages_sent | integer | yes | |
failure_code | string or null | yes | |
evidence | object or null | yes | |
error | string or null | yes | |
started_at | string | yes | |
finished_at | string or null | yes |
AttemptPage
| field | type | required | meaning |
|---|---|---|---|
items | array of Attempt | yes |
AutoSendSetting
| field | type | required | meaning |
|---|---|---|---|
environment | live | test | yes | |
enabled | boolean | yes | |
max_amount_micro | integer | yes | Amount per fax, at most, in micro-units of USD. |
daily_max_jobs | integer | yes | Faxes per UTC day, at most, across every connected app. |
policy_id | string or null | yes | The managed policy; null before the first enable. |
version | integer or null | yes |
AutoSendUpdate
| field | type | required | meaning |
|---|---|---|---|
enabled | boolean | yes | |
max_amount_micro | integer | Amount per fax, at most, in micro-units of USD (5000000 is five US dollars). | |
daily_max_jobs | integer | Faxes per UTC day. |
AutoTopup
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
status | pending_setup | active | disabled | yes | |
threshold_micro | integer | yes | |
amount_micro | integer | yes | |
daily_cap_micro | integer | yes | |
payment_method_saved | boolean | yes | |
setup_session_id | string or null | yes | |
setup_url | string or null | Where to save the card while status is pending_setup. | |
created_at | string | yes | |
updated_at | string | yes | |
last_attempt_at | string or null | yes | |
disabled_at | string or null | yes |
AutoTopupCreate
| field | type | required | meaning |
|---|---|---|---|
threshold_micro | integer | yes | Top up when a hold or a charge leaves the available balance below this. At most 1000 USD, the largest single top-up. |
amount_micro | integer | yes | Whole dollars, 10 to 1000 USD. |
daily_cap_micro | integer | yes | Never more than this per UTC day. |
AutoTopupList
| field | type | required | meaning |
|---|---|---|---|
items | array of AutoTopup | yes |
Balance
| field | type | required | meaning |
|---|---|---|---|
environment | live | test | yes | |
currency | string | yes | |
available_micro | integer | yes | |
held_micro | integer | yes | |
held_jobs | integer | How many fax jobs still have their hold in place: queued, sending, or ended unknown and waiting for a reconcile. Their holds add up to held_micro. | |
top_up_url | string or null | The dashboard page where a person adds funds to the wallet. A key cannot top up. |
BillingSettings
| field | type | required | meaning |
|---|---|---|---|
org_id | string | yes | |
billing_email | string or null | yes | |
low_balance_threshold_micro | integer | yes | |
low_balance_active | boolean | yes | |
workspace | boolean | yes | |
disputed | boolean | yes | |
stripe_customer | boolean | yes |
BillingSettingsPatch
| field | type | required | meaning |
|---|---|---|---|
billing_email | string or null | ||
low_balance_threshold_micro | integer or null |
Budget
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
scope | organization | project | agent | yes | |
project_id | string or null | yes | |
agent_id | string or null | yes | |
period | daily | monthly | yes | |
limit_micro | integer | yes | |
spent_micro | integer | yes | |
remaining_micro | integer | yes | |
status | active | disabled | yes | |
resets_at | string | yes | |
created_at | string | yes | |
updated_at | string | yes | |
archived_at | string or null | Set on a removed budget that has history. It is disabled for good. |
BudgetCreate
| field | type | required | meaning |
|---|---|---|---|
scope | organization | project | agent | ||
project_id | string or null | ||
agent_id | string or null | ||
period | daily | monthly | yes | |
limit_micro | integer | yes |
BudgetList
| field | type | required | meaning |
|---|---|---|---|
items | array of Budget | yes |
BudgetPatch
| field | type | required | meaning |
|---|---|---|---|
limit_micro | integer or null | ||
status | active | disabled or null |
BudgetRemoved
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
deleted | boolean | yes | True when the budget never charged a hold and its row is gone. |
archived | boolean | yes | True when the budget has history: disabled and hidden, row kept. |
Capabilities
| field | type | required | meaning |
|---|---|---|---|
environment | live | test | yes | |
provider | string | yes | |
send | boolean | yes | |
receive | boolean | yes | |
numbers | boolean | yes | |
routes | array of string | yes | |
formats | array of string | yes | |
max_pages | integer | yes | |
max_upload_bytes | integer | yes | |
price_version | string | yes | |
rates | object | yes | |
scopes | array of string | yes | Every scope the platform defines, the list a new key is made from. It is not what the calling credential holds: GET /v1/me returns that under scopes. |
default_scopes | array of string | The scopes a key gets when POST /v1/api-keys names none. | |
admin_scopes | array of string | The scopes that administer the organization: keys, webhooks, billing, members, policies, agents, approval decisions and number purchases. An agent's own key never carries one. | |
approvals | boolean | yes | |
extraction | boolean | yes | |
extraction_pricing | object | What POST /v1/extractions charges, in micro-units. page_micro is for every page read. escalated_page_micro is added for a page the stronger model reads again. max_pages is the most pages one extraction reads. With a test key, extractions are free. | |
limits | map of integer | yes | requests_per_minute is the limit of the calling credential: 3000 while the organization's Agent workspace is active, 600 otherwise. The RateLimit-Limit header of every answer says the same. The other keys are the life of a quote and of a download link in seconds, and the largest HTML document in bytes. |
one_time | object | yes | One fax paid by card on this server. enabled: orders are taken here. published: the price card offers the product. routes: the routes sold one fax at a time, empty while not enabled. max_document_pages: the most document pages one order takes. Prices are in GET /v1/one-time-sends/config. |
ClassificationCreate
| field | type | required | meaning |
|---|---|---|---|
inbox_item_id | string or null | ||
document_id | string or null | ||
max_pages | integer or null | ||
strict | boolean | Refuse with page_limit_exceeded when the document has more pages than would be read, instead of reading the first ones and warning. | |
document_types | array of string | yes | |
abstain_below | number | ||
strong_model_if_below | number |
Correction
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
extraction_id | string | yes | |
field | string | yes | |
value | object | yes | |
note | string or null | yes | |
created_by | string | yes | |
created_at | string | yes |
CorrectionCreate
| field | type | required | meaning |
|---|---|---|---|
field | string or null | ||
value | object | ||
note | string or null |
Coverage
| field | type | required | meaning |
|---|---|---|---|
coverage_version | string or null | yes | |
generated_at | string or null | yes | |
orderable_now | array of string | yes | |
outbound | object | yes | |
inbound | object | yes | |
excluded | object | yes | |
note | string or null | yes |
DataRequest
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
kind | export | deletion | yes | |
status | open | closed | withdrawn | yes | open until a person at Fax for Agents answers it; withdrawn by an owner; else closed. |
created_at | string | yes | |
due_at | string | yes | 30 days after the request: when it is answered at the latest. |
closed_at | string or null | yes |
DataRequestList
| field | type | required | meaning |
|---|---|---|---|
items | array of DataRequest | yes |
Deleted
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
deleted | boolean |
Delivery
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
webhook_id | string | yes | The destination the event is sent to. |
webhook_url | string or null | The destination's URL, kept after the destination is deleted. | |
event_id | string | yes | The event sent. The webhook-id header carries the same id. |
event_type | string | yes | The event's type, such as fax.delivered. |
attempt | integer | yes | How many attempts were made so far. |
status | string | yes | pending: an attempt is due or waits for its time. delivered: the destination answered 2xx. exhausted: every attempt of the schedule failed. failed: it stopped early, because the destination was deleted or paused, or its address was refused. |
response_status | integer or null | yes | The HTTP status of the last attempt's answer. Null before an attempt, or when none came. |
error | string or null | yes | Why the last attempt failed, in words. Null once delivered. |
duration_ms | integer or null | yes | How long the last attempt took, in milliseconds. |
replay_of | string or null | yes | The delivery this one sends again (POST /v1/webhook-deliveries/{delivery_id}/replay). Null for a first delivery. |
schedule_s | array of integer | yes | The wait before each attempt, in seconds after the one before. The first attempt waits 0 seconds. |
next_attempt_at | string or null | yes | When the next attempt is due. Null once the delivery has ended. |
created_at | string | yes | |
delivered_at | string or null | yes | When the destination answered 2xx. Null until then. |
webhook_deleted | boolean | yes | True when the destination was deleted since. The deliveries that were waiting are not sent, and no delivery to it can be replayed. |
DeliveryDetail
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
webhook_id | string | yes | The destination the event is sent to. |
webhook_url | string or null | The destination's URL, kept after the destination is deleted. | |
event_id | string | yes | The event sent. The webhook-id header carries the same id. |
event_type | string | yes | The event's type, such as fax.delivered. |
attempt | integer | yes | How many attempts were made so far. |
status | string | yes | pending: an attempt is due or waits for its time. delivered: the destination answered 2xx. exhausted: every attempt of the schedule failed. failed: it stopped early, because the destination was deleted or paused, or its address was refused. |
response_status | integer or null | yes | The HTTP status of the last attempt's answer. Null before an attempt, or when none came. |
error | string or null | yes | Why the last attempt failed, in words. Null once delivered. |
duration_ms | integer or null | yes | How long the last attempt took, in milliseconds. |
replay_of | string or null | yes | The delivery this one sends again (POST /v1/webhook-deliveries/{delivery_id}/replay). Null for a first delivery. |
schedule_s | array of integer | yes | The wait before each attempt, in seconds after the one before. The first attempt waits 0 seconds. |
next_attempt_at | string or null | yes | When the next attempt is due. Null once the delivery has ended. |
created_at | string | yes | |
delivered_at | string or null | yes | When the destination answered 2xx. Null until then. |
webhook_deleted | boolean | yes | True when the destination was deleted since. The deliveries that were waiting are not sent, and no delivery to it can be replayed. |
request_headers | map of string | yes | The headers every attempt carries. webhook-id is the event id. webhook-timestamp and webhook-signature are made at each attempt and are not stored, so their values here say what they hold. The signing secret is never returned. |
payload | object | yes | The JSON body that is sent, the same at every attempt. |
DeliveryPage
| field | type | required | meaning |
|---|---|---|---|
items | array of Delivery | yes | |
next_cursor | string or null |
Document
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
status | string | yes | |
source | string | yes | |
filename | string | yes | |
content_type | string | yes | |
size_bytes | integer | yes | |
sha256 | string | yes | |
page_count | integer | yes | |
render_status | string | yes | |
render_reason | string or null | yes | |
validation | object | yes | |
converted_from | string or null | The name of the image this PDF was converted from, as the person gave it. filename is the PDF's own name. Null for a document that was not an image. | |
received | DocumentReceived or null | Set in the list (GET /v1/documents) on the file of a received fax, source inbound. It names the inbox item, the sender as the sending machine gave it, and the time. Null everywhere else. | |
upload_id | string or null | yes | |
created_at | string | yes | |
expires_at | string or null | yes | |
deleted_at | string or null | yes |
DocumentCreate
| field | type | required | meaning |
|---|---|---|---|
upload_id | string or null | ||
text | string or null | Plain text rendered to a letter PDF. | |
markdown | string or null | Markdown (headings, lists, emphasis, code) rendered to PDF. | |
html | string or null | HTML rendered to PDF by a headless browser with scripts off and no network: inline CSS and data: images print, external resources are counted as blocked. US letter unless @page says otherwise. At most 2 MiB. | |
filename | string or null |
DocumentPage
| field | type | required | meaning |
|---|---|---|---|
items | array of Document | yes | |
next_cursor | string or null | ||
total | integer or null | How many documents the filters match in all, across every page. |
DocumentPages
| field | type | required | meaning |
|---|---|---|---|
document_id | string | yes | |
page_count | integer | yes | |
render_status | string | yes | |
render_reason | string or null | yes | |
items | array of PagePreview | yes |
DocumentReceived
| field | type | required | meaning |
|---|---|---|---|
inbox_item_id | string | yes | |
from | string or null | ||
received_at | string | yes |
DocumentUpdate
| field | type | required | meaning |
|---|---|---|---|
filename | string | yes | The new file name. The stored file is a PDF: a name without .pdf gets it added. |
DocumentValidation
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
status | string | yes | |
page_count | integer | yes | |
render_status | string | yes | |
render_reason | string or null | yes | |
warnings | array of object | yes |
EffectivePolicies
| field | type | required | meaning |
|---|---|---|---|
actor | string | yes | |
environment | live | test | yes | |
under_policy | boolean | yes | |
approval_required_without_policy | boolean | yes | |
requires_human_approval | boolean | Server-set for hosted integration clients and their keys: every send needs a person's approval, whatever the policies say. | |
policies | array of Policy | yes | |
rules_order | array of string | yes |
ErrorBody
| field | type | required | meaning |
|---|---|---|---|
code | string | yes | A stable code such as invalid_token, scope_missing, not_found, quote_expired, insufficient_balance, approval_required, rate_limited, live_provider_unavailable, one_time_unavailable. |
message | string | yes | One sentence a person can act on. |
retryable | boolean | yes | True when the failure passes on its own: the same call, sent again unchanged after a short wait, is expected to work. False when the same call gets the same answer until the request or the resource changes. |
correlation_id | string or null | The X-Request-Id of the request. Quote it when you write to hello@faxforagents.com. | |
details | object | Code-specific fields, for example details.scope on scope_missing. |
ErrorEnvelope
| field | type | required | meaning |
|---|---|---|---|
error | ErrorBody | yes |
Event
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
type | string | yes | |
created_at | string | yes | |
org_id | string | yes | |
environment | live | test | yes | |
project_id | string or null | yes | |
resource_type | string | yes | |
resource_id | string | yes | |
fax_job_id | string or null | yes | |
schema_version | integer | yes | |
correlation_id | string or null | yes | |
data | object | yes |
EventPage
| field | type | required | meaning |
|---|---|---|---|
items | array of Event | yes | |
next_cursor | string or null |
Extraction
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
kind | extract | classify | summarize | yes | |
status | pending | queued | running | completed | failed | yes | |
environment | live | test | yes | |
document_id | string | yes | |
inbox_item_id | string or null | yes | |
schema_id | string or null | yes | |
schema | object or null | ||
options | object | yes | |
pages_requested | integer | yes | |
pages_processed | integer | yes | |
pages_escalated | integer | yes | |
document_pages | integer | yes | The document's page count. Above pages_processed on a completed row means the cap left pages unread; output.truncated and a warning say so. |
confidence | number or null | yes | |
pages | array of ExtractionPage | yes | |
output | object or null | yes | |
models | object | yes | |
price_micro | integer | yes | |
currency | string | yes | |
error_code | string or null | yes | |
created_by | string | yes | |
created_at | string | yes | |
started_at | string or null | yes | |
completed_at | string or null | yes | |
corrections | array of object or null |
ExtractionCreate
| field | type | required | meaning |
|---|---|---|---|
inbox_item_id | string or null | ||
document_id | string or null | ||
max_pages | integer or null | ||
strict | boolean | Refuse with page_limit_exceeded when the document has more pages than would be read, instead of reading the first ones and warning. | |
schema | object or null | A JSON Schema object of string, number, boolean or date fields with descriptions. | |
schema_id | string or null | ||
strong_model_if_below | number |
ExtractionPage
| field | type | required | meaning |
|---|---|---|---|
page | integer | yes | |
text | string | yes | |
confidence | number | yes | |
language | string or null | ||
status | string | yes | |
model | string | yes | |
escalated | boolean | ||
warnings | array of string |
ExtractionPageList
| field | type | required | meaning |
|---|---|---|---|
items | array of Extraction | yes | |
next_cursor | string or null |
ExtractionSchema
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
version | integer | yes | |
description | string or null | yes | |
schema | object | yes | |
status | string | yes | |
created_by | string | yes | |
created_at | string | yes |
ExtractionSchemaList
| field | type | required | meaning |
|---|---|---|---|
items | array of ExtractionSchema | yes |
FaxCreate
| field | type | required | meaning |
|---|---|---|---|
quote_id | string | yes | |
client_reference | string or null | ||
approval_id | string or null | An approved approval request bound to this quote. Consumed by this one send. |
FaxJob
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
direction | string | yes | |
state | queued | active | partial | failed | unknown | delivered | yes | |
failure_code | string or null | yes | |
to | string | yes | |
from | string or null | ||
route | string | yes | |
document_id | string | yes | |
document_sha256 | string | yes | |
transmitted_sha256 | string or null | yes | |
quote_id | string or null | yes | |
billable_pages | integer | yes | |
cover_pages | integer | yes | |
quality | string | ||
sender_name | string or null | ||
delete_after_send | boolean | ||
pages_sent | integer | yes | |
amount_micro | integer | yes | |
captured_micro | integer | yes | |
currency | string | yes | |
provider | string | yes | |
provider_ref | string or null | yes | |
client_reference | string or null | yes | |
approval_id | string or null | The approval request a person approved for this send. Null when another path authorized it: a delegated policy (policy_version_id), a test key no policy binds, or the payer's confirmation of a one-time order. | |
policy_version_id | string or null | The version of the delegated policy that allowed this send. A version never changes, so it shows the limits the send was allowed under. Null when no policy decided the send. | |
attempt_count | integer | yes | |
created_at | string | yes | |
updated_at | string | yes | |
completed_at | string or null | yes | |
cancel_requested_at | string or null | yes | |
evidence | object or null | The carrier's evidence once delivered or partial; null before. | |
one_time_order_id | string or null | The one-time order this fax was paid by; null for a wallet fax. | |
one_time | OneTimeJob or null | ||
route_paused | boolean | An operator has paused sends on this fax's route while the fax waits for a line (queued or between tries). It goes out when the route is resumed. Read when the fax is read, not stored. |
FaxJobPage
| field | type | required | meaning |
|---|---|---|---|
items | array of FaxJob | yes | |
next_cursor | string or null |
Grant
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
org_id | string | yes | |
organization | string | yes | |
user_id | string | yes | |
client_id | string | yes | |
client_host | string | yes | |
client_name | string or null | yes | |
environment | test | live | yes | |
scopes | array of string | yes | |
created_at | string | yes | |
last_used_at | string or null | yes | |
revoked_at | string or null | yes |
GrantList
| field | type | required | meaning |
|---|---|---|---|
items | array of Grant | yes | |
next_cursor | string or null |
InboxItem
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
from | string or null | ||
to | string | yes | |
pages | integer | yes | |
status | string | yes | |
document_id | string or null | yes | |
received_at | string | yes | |
amount_micro | integer | What the received pages were charged, in micro-USD. 0 in test. | |
note | string or null | ||
environment | live | test | ||
number_id | string or null | ||
project_id | string or null | ||
partial_content | boolean | ||
media_status | string | ||
file_deleted_at | string or null | When the file of this fax was deleted. media_status is then deleted and there is no download. Null while the file is kept. | |
duration_secs | integer or null | ||
provider | string | ||
read_at | string or null | ||
expires_at | string or null |
InboxItemDetail
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
from | string or null | ||
to | string | yes | |
pages | integer | yes | |
status | string | yes | |
document_id | string or null | yes | |
received_at | string | yes | |
amount_micro | integer | What the received pages were charged, in micro-USD. 0 in test. | |
note | string or null | ||
environment | live | test | ||
number_id | string or null | ||
project_id | string or null | ||
partial_content | boolean | ||
media_status | string | ||
file_deleted_at | string or null | When the file of this fax was deleted. media_status is then deleted and there is no download. Null while the file is kept. | |
duration_secs | integer or null | ||
provider | string | ||
read_at | string or null | ||
expires_at | string or null | ||
document | object or null | ||
text | string or null | ||
extraction_id | string or null |
InboxItemSummary
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
from | string or null | ||
to | string | yes | |
pages | integer | yes | |
status | string | yes | |
document_id | string or null | yes | |
received_at | string | yes | |
amount_micro | integer | What the received pages were charged, in micro-USD. 0 in test. | |
note | string or null |
InboxPage
| field | type | required | meaning |
|---|---|---|---|
items | array of InboxItem | yes | |
next_cursor | string or null | ||
unread | integer | The faxes nobody has opened yet in this environment, whatever the filters. |
InboxUpdate
| field | type | required | meaning |
|---|---|---|---|
status | received | read | archived or null |
Inventory
| field | type | required | meaning |
|---|---|---|---|
country | string | yes | |
number_type | string | yes | |
locality | string or null | yes | The area that was searched for. Null in test: test numbers are made up and have no city. |
items | array of InventoryNumber | yes | |
recurring_period | string | yes | |
note | string | yes |
InventoryNumber
| field | type | required | meaning |
|---|---|---|---|
e164 | string | yes | |
country | string | yes | |
number_type | string | yes | |
locality | string or null | yes | |
monthly_micro | integer | yes | |
currency | string | yes | |
setup_micro | integer | yes | |
owned | boolean | True when your organization already holds this number. An order of it is refused. |
Invitation
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
email | string | yes | |
role | owner | admin | member | viewer | yes | |
invited_by | string | yes | |
created_at | string | yes | |
expires_at | string | yes | |
accepted_at | string or null | yes |
InvitationCreate
| field | type | required | meaning |
|---|---|---|---|
email | string | yes | |
role | owner | admin | member | viewer |
InvitationLink
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
url | string | yes | The new invitation link. Shown once. |
expires_at | string | yes |
InvitationList
| field | type | required | meaning |
|---|---|---|---|
items | array of Invitation | yes |
Invoice
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
number | string or null | yes | |
status | string or null | yes | |
currency | string | yes | |
amount_due_micro | integer | yes | |
amount_paid_micro | integer | yes | |
subscription_id | string or null | yes | |
hosted_invoice_url | string or null | yes | |
invoice_pdf | string or null | yes | |
created_at | string or null | yes |
InvoicePage
| field | type | required | meaning |
|---|---|---|---|
items | array of Invoice | yes | |
next_cursor | string or null |
LedgerEntry
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
txn_id | string | yes | |
account | string | yes | |
amount_micro | integer | yes | |
kind | string | yes | |
ref_type | string or null | yes | |
ref_id | string or null | yes | |
memo | string or null | yes | |
created_at | string | yes |
LedgerPage
| field | type | required | meaning |
|---|---|---|---|
items | array of LedgerEntry | yes | |
next_cursor | string or null |
Me
| field | type | required | meaning |
|---|---|---|---|
org_id | string | yes | |
project_id | string | yes | |
key_id | string | yes | |
key_prefix | string | yes | |
environment | live | test | yes | |
scopes | array of string | yes | |
actor | string | yes |
Member
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
email | string | yes | |
name | string or null | yes | |
role | owner | admin | member | viewer | yes | |
user_id | string or null | yes | |
created_at | string | yes |
MemberList
| field | type | required | meaning |
|---|---|---|---|
items | array of Member | yes |
MemberPatch
| field | type | required | meaning |
|---|---|---|---|
role | owner | admin | member | viewer or null | Required. Optional in the schema so a foreign id is a 404 first. |
Number
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
e164 | string | yes | |
country | string | yes | |
number_type | string | yes | |
locality | string or null | yes | |
status | string | yes | |
label | string or null | yes | |
project_id | string or null | yes | |
inbound_webhook_id | string or null | yes | |
inbound_status | string | yes | |
email_pdf | boolean | When true, the notice mail of a fax received on this number carries the PDF as an attachment. Live numbers only. Off by default. | |
provider | string | yes | |
monthly_micro | integer | yes | |
currency | string | yes | |
included_with_workspace | boolean | True while the organization's Agent workspace pays this number's monthly charge: the oldest live local number, pending or active, while the plan is active. Its renewals then take nothing from the wallet. When the plan ends, the next renewal charges monthly_micro. | |
order_id | string or null | yes | |
created_at | string | yes | |
activated_at | string or null | yes | |
renews_at | string or null | yes | |
released_at | string or null | yes |
NumberList
| field | type | required | meaning |
|---|---|---|---|
items | array of Number | yes |
NumberOrder
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
status | string | yes | |
e164 | string or null | yes | |
country | string or null | yes | |
number_type | string or null | yes | |
number_id | string or null | yes | |
number | Number or null | yes | |
provider | string | yes | |
recurring_charge_micro | integer | yes | Charged every month on the activation day. |
recurring_period | string | yes | |
first_month_hold_micro | integer | yes | Held now, captured when the number activates. 0 for a test number, and 0 when the Agent workspace pays the first month: the number's included_with_workspace is then true. |
currency | string | yes | |
error | string or null | yes | |
created_at | string | yes | |
completed_at | string or null | yes | |
dismissed_at | string or null | When a person put this failed order away. Null until then. |
NumberOrderCreate
| field | type | required | meaning |
|---|---|---|---|
e164 | string | yes | A number from GET /v1/number-inventory, E.164. |
label | string or null | ||
project_id | string or null | Inbound faxes are filed under this project. | |
inbound_webhook_id | string or null | The webhook that receives fax.received for this number (default: all). |
NumberOrderList
| field | type | required | meaning |
|---|---|---|---|
items | array of NumberOrder | yes |
NumberUpdate
| field | type | required | meaning |
|---|---|---|---|
label | string or null | ||
project_id | string or null | ||
inbound_webhook_id | string or null | ||
email_pdf | boolean or null | Attach the PDF of each received fax to the notice mail. The mail goes to the verified address of an owner of the organization and to no other address. A PDF over 15 MiB is not attached. It needs the scope number:buy. An agent, an OAuth connection and a connected app are refused. |
OneTimeAttempts
| field | type | required | meaning |
|---|---|---|---|
made | integer | yes | |
max | integer | yes | |
last_failure_code | string or null | yes | |
last_finished_at | string or null | yes | |
retry_delay_seconds | integer | yes |
OneTimeCard
| field | type | required | meaning |
|---|---|---|---|
last4 | string or null | yes | |
brand | string or null | yes |
OneTimeCheckout
| field | type | required | meaning |
|---|---|---|---|
order_id | string | yes | |
checkout_url | string | yes | |
expires_at | string | yes | |
amount_micro | integer | yes | |
currency | string | yes |
OneTimeConfig
| field | type | required | meaning |
|---|---|---|---|
enabled | boolean | yes | |
reason | string or null | ||
price_version | string | yes | |
effective_from | string | yes | |
currency | string | yes | |
routes | map of OneTimeRoute | yes | |
max_document_pages | integer | yes | |
max_upload_bytes | integer | yes | |
max_text_chars | integer | yes | |
formats | array of string | yes | |
aup_version | string | yes | |
aup_url | string | yes | |
terms_url | string | yes | |
queue | OneTimeQueue or null | The wait a fax ordered now would face for a carrier line. Null when one-time sends are closed here or the carrier has no line limit. |
OneTimeConfirm
| field | type | required | meaning |
|---|---|---|---|
token | string | yes | The token of the link in the confirmation mail. |
OneTimeConfirmSummary
| field | type | required | meaning |
|---|---|---|---|
order_id | string | yes | |
state | ok | link_used | link_canceled | link_expired | yes | |
status | draft | checkout_open | authorized | awaiting_confirmation | released | capturing | canceling | captured | released_hold | expired | refused | settle_failed | refunding | refunded | canceled | yes | |
to | string | yes | |
sender_name | string | yes | |
email | string | yes | |
document_pages | integer | yes | |
amount_micro | integer | yes | |
currency | string | yes | |
confirm_deadline_at | string or null | yes |
OneTimeConfirmed
| field | type | required | meaning |
|---|---|---|---|
order | OneTimeOrder | yes | |
signed_in | boolean | yes | |
me | object or null |
OneTimeCoverCheck
| field | type | required | meaning |
|---|---|---|---|
sender_name | string or null | Printed in the From line. | |
email | string or null | Printed in the From line. | |
to | string or null | The destination, when one is typed. | |
to_name | string or null | The recipient's name, printed in the To line. At most 120 characters, not counting spaces at either end. | |
subject | string or null | Printed in a Subject line when it is given. At most 200 characters, not counting spaces at either end. | |
message | string or null | The note printed under the Message heading. It has to fit on the one cover page. At most 2,000 characters, not counting spaces at either end. |
OneTimeCoverRoom
| field | type | required | meaning |
|---|---|---|---|
fits | boolean | yes | The cover with this message fits on its one page. |
message_chars | integer | yes | The length of the message as it will be printed. |
lines_left | integer or null | How many more lines of message text fit on the page. Null when the message is empty, since the first line also brings its heading, and when it does not fit. | |
fits_chars | integer or null | When the message runs over: how much of its start fits with the same line breaks. Null when it fits, and when the page is full without any message. |
OneTimeFromQuote
| field | type | required | meaning |
|---|---|---|---|
quote_id | string | yes | |
sender_name | string | yes | Printed on the cover sheet. 2 to 120 characters. |
accept_aup | boolean | A session sends true: the signed-in person accepts the acceptable use policy and the terms. A key's value is not recorded: the person who pays accepts on the order's page. | |
email | string or null | ||
approval_id | string or null | An approved, unused approval request for this quote (POST /v1/approval-requests). A key needs it unless a delegated policy allows the send. A session needs none. | |
source_ref | string or null | ||
delete_after_send | boolean or null | Delete the document and the transmitted copy the moment the fax ends in delivered, partial or failed. The order, the receipt and the carrier evidence stay; they hold no document content. A fax that ends unknown keeps the document until the carrier reports, or until the retention period ends. Left out, the quote's own delete_after_send applies. |
OneTimeInspection
| field | type | required | meaning |
|---|---|---|---|
document_pages | integer | yes | |
thumbnail_png_base64 | string or null | yes | |
warnings | array of object |
OneTimeJob
| field | type | required | meaning |
|---|---|---|---|
order_id | string | yes | |
status | draft | checkout_open | authorized | awaiting_confirmation | released | capturing | canceling | captured | released_hold | expired | refused | settle_failed | refunding | refunded | canceled or null | ||
amount_micro | integer or null | ||
captured_micro | integer or null | ||
refunded_micro | integer or null | What was refunded to the card after the charge, in micro-units. | |
document_pages | integer or null | The pages of the order's document. The cover sheet is not counted. | |
card | OneTimeCard or null | ||
sender_name | string or null | On a receipt: the sender's name. | |
email | string or null | On a receipt: the address the order was made with. | |
authorized_at | string or null | On a receipt: when the card was held. | |
settled_at | string or null | On a receipt: when the payment provider confirmed the charge, or the release. | |
failure_code | string or null | On a receipt: why the order ended unpaid. | |
price | map of integer or null | On a receipt: flat_micro, included_pages and extra_page_micro the amount follows from. |
OneTimeOrder
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
status | draft | checkout_open | authorized | awaiting_confirmation | released | capturing | canceling | captured | released_hold | expired | refused | settle_failed | refunding | refunded | canceled | yes | |
next | checkout | confirm | wait | done | yes | |
environment | live | test | yes | |
source | web | api | mcp | yes | |
email | string | yes | |
email_verified | boolean | yes | |
sender_name | string | yes | |
to | string | yes | |
route | string | yes | |
cover | object or null | yes | |
document_pages | integer | yes | |
document_sha256 | string | yes | |
document_id | string or null | yes | |
delete_after_send | boolean | The sender asked for the document and the transmitted copy to be deleted the moment the fax ends in delivered, partial or failed. | |
document_deleted | boolean | True once no copy of the document is held. It was deleted after the send, by the retention period or by its owner. Or the order ended before its release and the uploaded file was removed. The order, the fax and the carrier evidence stay, and they hold no document content. | |
document_expires_at | string or null | When the retention period deletes the stored document. Null before the release and once the document is deleted. | |
price | OneTimePrice | yes | |
amount_micro | integer | yes | |
captured_micro | integer | yes | |
refunded_micro | integer | What was refunded to the card after the charge, in micro-units, as the ledger holds it. Zero when nothing was refunded. captured_micro stays what was charged. | |
refund_pending_micro | integer | A refund on its way to the card that the payment provider has not confirmed yet, in micro-units, while the order is refunding. Zero otherwise. | |
card | OneTimeCard or null | yes | |
checkout_url | string or null | yes | |
checkout_expires_at | string or null | yes | |
authorized_at | string or null | yes | |
confirm_deadline_at | string or null | yes | |
capture_deadline_at | string or null | yes | |
confirm_mail_sent_at | string or null | yes | |
resend_allowed_at | string or null | When the confirmation mail may be asked for again; null when it may not. | |
queue | OneTimeQueue or null | The wait for a carrier line while the order has not ended and its fax is not on a line yet. Null for an ended order, a fax that is sending, and a test order. | |
released_at | string or null | yes | |
settled_at | string or null | yes | |
quote_id | string or null | yes | |
fax_job_id | string or null | yes | |
failure_code | string or null | yes | |
aup_version | string | yes | |
aup_accepted | boolean | Whether a person accepted the acceptable use policy and the terms for this order. False for an order a key created until the payer accepts on the order's page; the checkout needs it. | |
status_url | string or null | The order's page for the person who pays or confirms, with a fresh status token. Present on a read by a key or session of the order's organization while the order is not done. | |
warnings | array of object | ||
fax | object or null | The fax job (the FaxJob shape) once the order was released; null before. | |
attempts | OneTimeAttempts or null | The tries of the order's fax while it has not ended. It says how many were made, of how many, and why the last one did not get through. Null before the fax exists and once it ended. | |
preview | OneTimePreview or null | Whether the order's pages can be looked at (the cover sheet and the document). Present on the read of one order; null in a list and in the create's answer. | |
created_at | string | yes | |
updated_at | string | yes |
OneTimeOrderCreated
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
status | draft | checkout_open | authorized | awaiting_confirmation | released | capturing | canceling | captured | released_hold | expired | refused | settle_failed | refunding | refunded | canceled | yes | |
next | checkout | confirm | wait | done | yes | |
environment | live | test | yes | |
source | web | api | mcp | yes | |
email | string | yes | |
email_verified | boolean | yes | |
sender_name | string | yes | |
to | string | yes | |
route | string | yes | |
cover | object or null | yes | |
document_pages | integer | yes | |
document_sha256 | string | yes | |
document_id | string or null | yes | |
delete_after_send | boolean | The sender asked for the document and the transmitted copy to be deleted the moment the fax ends in delivered, partial or failed. | |
document_deleted | boolean | True once no copy of the document is held. It was deleted after the send, by the retention period or by its owner. Or the order ended before its release and the uploaded file was removed. The order, the fax and the carrier evidence stay, and they hold no document content. | |
document_expires_at | string or null | When the retention period deletes the stored document. Null before the release and once the document is deleted. | |
price | OneTimePrice | yes | |
amount_micro | integer | yes | |
captured_micro | integer | yes | |
refunded_micro | integer | What was refunded to the card after the charge, in micro-units, as the ledger holds it. Zero when nothing was refunded. captured_micro stays what was charged. | |
refund_pending_micro | integer | A refund on its way to the card that the payment provider has not confirmed yet, in micro-units, while the order is refunding. Zero otherwise. | |
card | OneTimeCard or null | yes | |
checkout_url | string or null | yes | |
checkout_expires_at | string or null | yes | |
authorized_at | string or null | yes | |
confirm_deadline_at | string or null | yes | |
capture_deadline_at | string or null | yes | |
confirm_mail_sent_at | string or null | yes | |
resend_allowed_at | string or null | When the confirmation mail may be asked for again; null when it may not. | |
queue | OneTimeQueue or null | The wait for a carrier line while the order has not ended and its fax is not on a line yet. Null for an ended order, a fax that is sending, and a test order. | |
released_at | string or null | yes | |
settled_at | string or null | yes | |
quote_id | string or null | yes | |
fax_job_id | string or null | yes | |
failure_code | string or null | yes | |
aup_version | string | yes | |
aup_accepted | boolean | Whether a person accepted the acceptable use policy and the terms for this order. False for an order a key created until the payer accepts on the order's page; the checkout needs it. | |
status_url | string | yes | |
warnings | array of object | ||
fax | object or null | The fax job (the FaxJob shape) once the order was released; null before. | |
attempts | OneTimeAttempts or null | The tries of the order's fax while it has not ended. It says how many were made, of how many, and why the last one did not get through. Null before the fax exists and once it ended. | |
preview | OneTimePreview or null | Whether the order's pages can be looked at (the cover sheet and the document). Present on the read of one order; null in a list and in the create's answer. | |
created_at | string | yes | |
updated_at | string | yes | |
status_token | string | yes |
OneTimeOrderPage
| field | type | required | meaning |
|---|---|---|---|
items | array of OneTimeOrder | yes | |
next_cursor | string or null |
OneTimePreview
| field | type | required | meaning |
|---|---|---|---|
state | draft | sent | deleted | unavailable | yes | |
pages | integer | yes | |
cover_pages | integer | yes |
OneTimePrice
| field | type | required | meaning |
|---|---|---|---|
price_version | string | yes | |
currency | string | yes | |
flat_micro | integer | yes | |
included_pages | integer | yes | |
extra_page_micro | integer | yes | |
cover_included | boolean | yes |
OneTimeQueue
| field | type | required | meaning |
|---|---|---|---|
queued | boolean | yes | |
jobs_ahead | integer | yes | |
estimated_wait_minutes | integer | yes | |
paused | boolean | An operator has paused sends on this route. A fax to it is kept and goes out when the route is resumed; no time can be estimated. A one-time order that is not sent within 48 hours of its release is canceled and the card is not charged. |
OneTimeRoute
| field | type | required | meaning |
|---|---|---|---|
label | string | yes | |
flat_micro | integer | yes | |
included_pages | integer | yes | |
extra_page_micro | integer | yes | |
cover_included | boolean | yes |
Organization
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
role | owner | admin | member | viewer or null | yes | |
created_at | string | yes | |
members | integer | yes |
OrganizationList
| field | type | required | meaning |
|---|---|---|---|
items | array of OrganizationSummary | yes |
OrganizationPatch
| field | type | required | meaning |
|---|---|---|---|
name | string | yes |
OrganizationSummary
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
role | owner | admin | member | viewer | yes | |
suspended_at | string or null | Set while a review has paused sending for the whole organization. A send answers `account_suspended` until it is cleared. Reads keep working. |
PagePreview
| field | type | required | meaning |
|---|---|---|---|
page_number | integer | yes | |
width_px | integer or null | yes | |
height_px | integer or null | yes | |
url | string | yes |
PaymentReceipt
| field | type | required | meaning |
|---|---|---|---|
url | string | yes | Stripe's hosted receipt for the payment. It says what was paid and when. |
pdf_url | string or null | The same receipt as a PDF, where Stripe has one: the receipt of a paid invoice, which a top-up paid in Checkout has. Null for a charge without an invoice, such as an automatic top-up: its receipt is the page at url. | |
amount_micro | integer | yes | |
amount_refunded_micro | integer | yes | |
currency | string | yes | |
payment_intent_id | string | yes | |
paid_at | string or null | yes | |
topup_session_id | string or null | ||
invoice_id | string or null |
Policy
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
purpose | string or null | yes | |
enabled | boolean | yes | |
version | integer | yes | |
current_version_id | string or null | yes | |
rules | object | yes | |
managed | string or null | connected_apps when a Settings switch (the auto-send setting) manages this policy. Such a policy is read here and changed only through PUT /v1/organizations/current/auto-send. | |
created_by | string | yes | |
created_at | string | yes | |
updated_at | string | yes |
PolicyCreate
| field | type | required | meaning |
|---|---|---|---|
name | string | yes | |
purpose | string or null | Why this policy exists. Shown, never evaluated. | |
rules | object | yes | See the PolicyRules schema in docs/APPROVALS.md. |
enabled | boolean |
PolicyEvaluation
| field | type | required | meaning |
|---|---|---|---|
decision | allow | deny | yes | |
rule | string or null | yes | The rule that failed first when a policy denied the plan. Null on allow, and when no policy binds the caller. |
reason | string | yes | Why, in one sentence. |
policy_id | string or null | yes | The policy that allowed the plan, or the first one that denied it. Null when none binds. |
policy_version_id | string or null | yes | The version of that policy that decided. |
policy_name | string or null | yes | The name of that policy. Null when none binds. |
version | integer or null | yes | The number of that version: 1 for the policy's first rules, one more for each change. Null when none binds. |
managed | string or null | connected_apps when the organization's auto-send setting decided, else null. | |
denials | array of object | yes | Every policy that denied the plan, each with its policy_id, policy_version_id, decision, rule and reason. Empty on allow. |
usage | PolicyUsage or null | On allow: the deciding policy's counters for the day and the month before this send. | |
plan | object | yes | |
executed | boolean | ||
subject | string or null | The caller the plan was evaluated for: the calling principal, or the key, agent or connected app the request named. | |
under_policy | boolean or null | Whether any policy binds that caller. false with decision deny means no policy applies, not that a policy refused the plan. | |
approval_required | boolean or null | What a send of this plan by that caller would need: true when a person has to approve it. false when a policy allows it, and for a test send by a caller no policy binds. It is false for a signed-in owner's own live send too, which needs no approval. |
PolicyEvaluationCreate
| field | type | required | meaning |
|---|---|---|---|
quote_id | string or null | Evaluate an existing quote. | |
document_id | string or null | Or plan: this document ... | |
to | string or null | ... to this E.164 destination. | |
from | string or null | ||
key_id | string or null | Evaluate as this API key of your organization instead of the caller, in the key's environment. Choose at most one of key_id, agent_id and connection_id. | |
agent_id | string or null | Evaluate as this agent of your organization (bindings to single keys excluded). | |
connection_id | string or null | Evaluate as this connected app (an OAuth grant, GET /v1/oauth/grants), in the connection's environment. A signed-in person may name their own. |
PolicyList
| field | type | required | meaning |
|---|---|---|---|
items | array of Policy | yes |
PolicyRuleCheck
| field | type | required | meaning |
|---|---|---|---|
already_allowed | array of AlreadyAllowed | yes | The listed numbers a listed country or prefix allows anyway. A destination passes a policy when it matches any of the three lists, so for these numbers the number list adds nothing. |
PolicyRuleCheckCreate
| field | type | required | meaning |
|---|---|---|---|
allowed_destinations | array of string | The draft's exact E.164 numbers. | |
allowed_countries | array of string | The draft's ISO 3166-1 alpha-2 country codes, such as US or GB. | |
allowed_country_prefixes | array of string | The draft's dialing prefixes, written as the rate card routes on them, such as +44. |
PolicyUpdate
| field | type | required | meaning |
|---|---|---|---|
name | string or null | ||
purpose | string or null | ||
rules | object or null | ||
enabled | boolean or null |
PolicyUsage
| field | type | required | meaning |
|---|---|---|---|
day_jobs | integer | yes | Sends this policy allowed so far in the current UTC day. |
day_amount_micro | integer | yes | The amount of those sends in micro-USD, as priced when the policy allowed each one. A fax that fails later still counts. |
month_jobs | integer | yes | Sends this policy allowed so far in the current UTC month. |
month_amount_micro | integer | yes | The amount of this month's sends in micro-USD, counted the same way as the day's. |
PolicyVerdict
| field | type | required | meaning |
|---|---|---|---|
decision | allow | deny | yes | |
rule | string or null | yes | The rule that failed first when a policy denied the plan. Null on allow, and when no policy binds the caller. |
reason | string | yes | Why, in one sentence. |
policy_id | string or null | yes | The policy that allowed the plan, or the first one that denied it. Null when none binds. |
policy_version_id | string or null | yes | The version of that policy that decided. |
policy_name | string or null | yes | The name of that policy. Null when none binds. |
version | integer or null | yes | The number of that version: 1 for the policy's first rules, one more for each change. Null when none binds. |
managed | string or null | connected_apps when the organization's auto-send setting decided, else null. | |
denials | array of object | yes | Every policy that denied the plan, each with its policy_id, policy_version_id, decision, rule and reason. Empty on allow. |
usage | PolicyUsage or null | On allow: the deciding policy's counters for the day and the month before this send. |
PolicyVersion
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
policy_id | string | yes | |
version | integer | yes | |
name | string | yes | |
purpose | string or null | yes | |
enabled | boolean | yes | |
rules | object | yes | |
created_by | string | yes | |
created_by_name | string or null | Who wrote the version as people read it: a person's address or a key's label. | |
created_at | string | yes |
PolicyVersionList
| field | type | required | meaning |
|---|---|---|---|
items | array of PolicyVersion | yes |
PortOrder
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
direction | string | yes | |
status | string | yes | |
numbers | array of string | yes | |
request | object | yes | |
milestones | array of object | yes | |
provider | string | yes | |
created_at | string | yes | |
updated_at | string | yes |
PortOrderCreate
| field | type | required | meaning |
|---|---|---|---|
numbers | array of string | yes | |
note | string or null |
PortOrderList
| field | type | required | meaning |
|---|---|---|---|
items | array of PortOrder | yes |
PortOutRequestCreate
| field | type | required | meaning |
|---|---|---|---|
number_id | string | yes | |
note | string or null |
PortabilityCheck
| field | type | required | meaning |
|---|---|---|---|
items | array of object | yes | |
checked_at | string | yes |
PortabilityCheckCreate
| field | type | required | meaning |
|---|---|---|---|
numbers | array of string | yes |
PortalSession
| field | type | required | meaning |
|---|---|---|---|
url | string | yes | |
expires_at | string | yes |
Quote
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
document_id | string | yes | |
document_sha256 | string | yes | |
to | string | yes | |
from | string or null | ||
route | string | yes | |
document_pages | integer | yes | |
cover_pages | integer | yes | |
billable_pages | integer | yes | |
amount_micro | integer | yes | |
live_amount_micro | integer or null | What the same fax costs with a live key, in micro-units. It is the billable pages at the live rate of the destination, priced by the rule a live quote uses. A test quote is free (amount_micro 0), and this field says what the fax would cost live. On a live quote it equals amount_micro. Null when the rate card in force is not the one the quote was priced on (price_version) or no longer serves the destination. | |
currency | string | yes | |
price_version | string | yes | |
per_page_micro | integer | ||
pricing | per_page | one_time | per_page: priced from the rate card, paid from the wallet and sent with POST /v1/faxes. one_time: the quote of a one-time order, priced at the card's price for the order. Only the order sends it, and POST /v1/faxes refuses it with quote_pricing_mismatch. | |
route_label | string | ||
cover | object or null | yes | |
quality | string | ||
sender_name | string or null | ||
delete_after_send | boolean | ||
authorization_required | boolean | yes | |
policy_evaluation | PolicyVerdict or null | The dry run of the delegated policies that bind the caller, made with the quote. Null when no policy binds the caller. The send evaluates the policies again, with their counters locked. | |
route_paused | boolean | An operator has paused sends on this quote's route. A fax sent now is accepted and stays queued until the route is resumed. Read when the quote is answered, not stored. | |
warnings | array of object | yes | |
expires_at | string | yes | |
expired | boolean | yes | |
consumed_by_job_id | string or null | yes | |
created_at | string | yes |
QuoteCreate
| field | type | required | meaning |
|---|---|---|---|
document_id | string | yes | |
to | string | yes | Destination in E.164, for example +12025550123. |
from | string or null | A number you own; omit for the shared pool. | |
cover | object or null | Cover sheet fields: to_name, from_name, subject, message. Counts as a page. | |
quality | standard | fine | superfine | ultra | Fax resolution. standard is the fax standard's 204 by 98 dpi, fine (the default) 204 by 196, superfine 204 by 392. ultra asks the carrier for its darkest text processing at the same superfine resolution and takes longer to process: measured 2026-11-09, a page sent at ultra and one at superfine both arrived as 1728 by 4112 pixels, 204 by 391 dpi. The price does not change. The job echoes the level. | |
sender_name | string or null | The name that identifies the sender. The carrier gets it as the caller name for its header line. A fax without a cover sheet prints it in one line at the top of page one. The line also gives the sending number and the time in UTC. Letters, digits, spaces and - _ ~ ! . + only, at most 128 characters. Omit to use the organization's name. | |
delete_after_send | boolean | Delete the document and the transmitted copy the moment the fax ends in delivered, partial or failed. The job, its receipt and the carrier evidence stay; they hold no document content. A fax that ends unknown keeps the document until a reconcile settles it. Default: keep the document for the retention period. |
Receipt
| field | type | required | meaning |
|---|---|---|---|
fax_job_id | string | yes | |
state | string | yes | |
failure_code | string or null | yes | |
to | string | yes | |
from | string or null | ||
sender_name | string or null | The sender name the fax was sent with, when one was given. | |
document_sha256 | string | yes | |
transmitted_sha256 | string or null | yes | |
billable_pages | integer | yes | |
cover_pages | integer | How many of the billable pages are the cover sheet: 0 or 1. | |
pages_sent | integer | yes | |
amount_micro | integer | yes | |
captured_micro | integer | yes | |
currency | string | yes | |
provider | string | yes | |
provider_ref | string or null | The carrier's own reference for the last attempt, when it gave one. | |
created_at | string | yes | |
completed_at | string or null | yes | |
evidence | object or null | yes | |
attempts | array of Attempt | yes | |
note | string | yes | |
generated_at | string | yes | |
seller | Seller or null | The company that issues the receipt. | |
one_time | OneTimeJob or null | Set on the receipt of a fax that a one-time order paid for. It names the order, its status, the card and the amount held on the card. captured_micro in it is the amount charged, written once the payment provider confirmed the capture. For a card order read the money here. Null for a fax paid from the wallet. |
ReleaseRequest
| field | type | required | meaning |
|---|---|---|---|
confirm | string or null | The number itself, typed out, to confirm. |
Requested
| field | type | required | meaning |
|---|---|---|---|
requested | boolean | yes | |
kind | export | deletion | yes | |
message | string | yes | |
id | string or null | The request, as `GET .../data-requests` lists it. | |
created_at | string or null |
SandboxFixture
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
scenario | string | yes | |
destination | string or null | yes | |
created_at | string | yes | |
expires_at | string | yes |
SandboxInboundCreate
| field | type | required | meaning |
|---|---|---|---|
to | string | yes | |
from | string or null | ||
pages | integer | ||
partial_content | boolean | Rehearse a cut-off transmission. |
SandboxReset
| field | type | required | meaning |
|---|---|---|---|
reset | boolean | yes | |
deleted | map of integer | yes | |
wallet_available_micro | integer | yes |
SandboxScenarioCreate
| field | type | required | meaning |
|---|---|---|---|
scenario | string | yes | |
destination | string or null | Apply to one destination; omit for every send. |
SandboxScenarios
| field | type | required | meaning |
|---|---|---|---|
scenarios | array of map of string | yes | |
destinations | array of map of string | yes | |
fixtures | array of SandboxFixture | yes |
SchemaCreate
| field | type | required | meaning |
|---|---|---|---|
name | string | yes | |
description | string or null | ||
schema | object | yes |
Seller
| field | type | required | meaning |
|---|---|---|---|
name | string | yes | |
address | string | yes | |
product | string | yes | |
email | string | yes |
SenderVerification
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
from | string | yes | |
status | string | yes | |
method | string | yes | |
number_id | string or null | yes | |
created_at | string | yes | |
verified_at | string or null | yes |
SenderVerificationCreate
| field | type | required | meaning |
|---|---|---|---|
from | string | yes | A number your organization owns, E.164. |
ServiceStatus
| field | type | required | meaning |
|---|---|---|---|
status | ok | degraded | yes | |
version | string | yes | |
environment | live | test | yes | |
provider | string | yes | |
database | boolean | yes | |
worker_beat_age_s | integer or null | ||
status_page | string or null |
SignedUrl
| field | type | required | meaning |
|---|---|---|---|
url | string | yes | |
expires_at | string | yes | |
content_type | string | yes |
StatementLine
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
created_at | string | yes | |
type | topup | fax | received_fax | number | extraction | release | refund | dispute | credit | adjustment | other | yes | What the line is, in one word. The type filter of the statement takes these values. |
description | string | yes | What happened, in plain words. Never an account name. |
amount_micro | integer | yes | Signed the way the wallet moved: positive is money in. |
balance_after_micro | integer | yes | The available balance right after this line. |
ref_type | string or null | yes | What ref_id is. A hold or its release names what it was for: fax_job, extraction or number_order. Other lines name what they were booked against, such as stripe_payment_intent for a top-up or inbox_item for a received fax. |
ref_id | string or null | yes | The id of that object, such as fax_..., ext_..., nord_... or inb_..., or the payment's id at the card processor. Null when the line names none. |
StatementPage
| field | type | required | meaning |
|---|---|---|---|
items | array of StatementLine | yes | |
next_cursor | string or null |
Subscription
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
product | string | yes | |
status | string | yes | |
stripe_subscription_id | string | yes | |
stripe_price_id | string or null | yes | |
cancel_at_period_end | boolean | yes | |
cancel_at | string or null | yes | When Stripe is set to end the subscription. A cancel in the billing portal sets it to the end of the period and leaves cancel_at_period_end false. |
ends_at | string or null | yes | When the subscription ends without being charged again. That is cancel_at when it comes no later than current_period_end, or current_period_end after a cancel at the period's end. Null while it renews, and whenever entitled is false, as after it ended. |
current_period_end | string or null | yes | |
entitled | boolean | yes | |
created_at | string | yes | |
updated_at | string | yes | |
canceled_at | string or null | yes |
SubscriptionCheckout
| field | type | required | meaning |
|---|---|---|---|
url | string | yes | |
stripe_session_id | string | yes | |
product | string | yes |
SubscriptionList
| field | type | required | meaning |
|---|---|---|---|
items | array of Subscription | yes | |
workspace | boolean | yes | |
plan | WorkspacePlan | yes | |
next_cursor | string or null |
SummaryCreate
| field | type | required | meaning |
|---|---|---|---|
inbox_item_id | string or null | ||
document_id | string or null | ||
max_pages | integer or null | ||
strict | boolean | Refuse with page_limit_exceeded when the document has more pages than would be read, instead of reading the first ones and warning. | |
strong_model_if_below | number |
TopupCreate
| field | type | required | meaning |
|---|---|---|---|
amount_usd | integer | yes | Whole US dollars, 10 to 1000 per session. |
TopupSession
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
kind | manual | auto | setup | yes | |
amount_micro | integer | yes | |
currency | string | yes | |
status | open | completed | expired | canceled | failed | yes | |
url | string or null | The hosted Checkout page while the session is open. | |
stripe_session_id | string or null | yes | |
stripe_payment_intent_id | string or null | yes | |
auto_topup_id | string or null | yes | |
error | string or null | yes | |
created_at | string | yes | |
expires_at | string or null | yes | |
completed_at | string or null | yes | |
checkout_status | open | complete | processing | expired or null | Stripe's own state of the hosted Checkout, read from Stripe when a read of an open top-up asks with check_checkout=true. complete: the payment was made at Stripe, and the wallet is credited when Stripe's event arrives, usually within seconds. processing: the person finished at Stripe with a payment method that confirms later, such as a bank debit, which can take days. Null when not asked, when the top-up is not open (Stripe is asked about an open top-up only), or when Stripe could not be read. |
TopupSessionPage
| field | type | required | meaning |
|---|---|---|---|
items | array of TopupSession | yes | |
next_cursor | string or null |
UploadComplete
| field | type | required | meaning |
|---|---|---|---|
sha256 | string or null | Optional: fail if the bytes differ. |
UploadCreate
| field | type | required | meaning |
|---|---|---|---|
filename | string | yes | |
content_type | string or null | application/pdf, image/png, image/jpeg or image/tiff. An image becomes 8-bit gray letter pages, since fax is monochrome. A frame wider than it is tall is rotated. A frame above 300 dpi letter is downsampled. Every TIFF frame is a page. PNG and JPEG take the first frame. The bytes must be the declared type. Left out, the type is read from the filename: .pdf, .png, .jpg, .jpeg, .tif or .tiff. A name with no known ending is taken as application/pdf. A filename that ends in an office, text or other image format is refused here with unsupported_format. | |
size_bytes | integer | yes | The exact number of bytes of the file. The session is refused at complete with 409 conflict when the bytes received differ. |
UploadSession
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
status | string | yes | |
filename | string | yes | |
content_type | string | yes | |
declared_size | integer | yes | |
received_size | integer | yes | |
sha256 | string or null | yes | |
created_at | string | yes | |
expires_at | string | yes | |
completed_at | string or null | yes | |
upload_url | string or null | ||
upload_method | string or null | ||
upload_url_expires_at | string or null |
UsageExport
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
environment | live | test | yes | |
status | ready | expired | yes | |
params | object | yes | |
row_count | integer | yes | |
content_type | string | yes | |
url | string or null | yes | |
created_at | string | yes | |
expires_at | string | yes |
UsageExportCreate
| field | type | required | meaning |
|---|---|---|---|
from | string or null | ISO date; default 30 days ago. | |
to | string or null | ISO date; default today. |
UsageItem
| field | type | required | meaning |
|---|---|---|---|
day | string or null | ||
direction | string or null | ||
route | string or null | ||
destination | string or null | ||
project_id | string or null | ||
pages | integer | yes | |
jobs | integer | yes | |
amount_micro | integer | yes |
UsageReport
| field | type | required | meaning |
|---|---|---|---|
environment | live | test | yes | |
from | string | yes | |
to | string | yes | |
group_by | array of string | yes | |
currency | string | yes | |
items | array of UsageItem | yes | |
totals | map of integer | yes |
Webhook
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
url | string | yes | |
description | string or null | yes | |
event_types | array of string | yes | |
status | string | yes | |
failing | boolean | True when the latest delivery this destination was sent did not get a 2xx answer. It turns false with the next delivery that does. | |
previous_secret_expires_at | string or null | yes | |
created_at | string | yes | |
updated_at | string | yes |
WebhookCreate
| field | type | required | meaning |
|---|---|---|---|
url | string | yes | |
description | string or null | ||
event_types | array of string or null | Empty or omitted: every event type. |
WebhookList
| field | type | required | meaning |
|---|---|---|---|
items | array of Webhook | yes |
WebhookUpdate
| field | type | required | meaning |
|---|---|---|---|
url | string or null | ||
description | string or null | ||
event_types | array of string or null | ||
status | active | paused or null |
WebhookWithSecret
| field | type | required | meaning |
|---|---|---|---|
id | string | yes | |
url | string | yes | |
description | string or null | yes | |
event_types | array of string | yes | |
status | string | yes | |
failing | boolean | True when the latest delivery this destination was sent did not get a 2xx answer. It turns false with the next delivery that does. | |
previous_secret_expires_at | string or null | yes | |
created_at | string | yes | |
updated_at | string | yes | |
secret | string | yes | whsec_... Shown once. Verify webhook-signature with it. |
WorkspacePlan
| field | type | required | meaning |
|---|---|---|---|
active | boolean | yes | The plan is active: a subscription is active, trialing or past due. |
credit_micro | integer | yes | The fax credit each paid invoice of the plan adds to the live wallet. |
records_keep_days | integer | yes | How long live documents and received faxes are kept while the plan is active. |
document_keep_days | integer | yes | How long a document is kept without the plan. |
inbox_keep_days | integer | yes | How long a received fax is kept without the plan. |
requests_per_minute | integer | yes | The request limit of each credential of the organization now. |
plan_requests_per_minute | integer | yes | The request limit of each credential while the plan is active. |
standard_requests_per_minute | integer | yes | The request limit of each credential without it. |
included_numbers | integer | yes | Local numbers whose monthly charge the plan pays. |
included_number_id | string or null | yes | The number the plan pays for now: the oldest live local number, while the plan is active. |
included_number | string or null | yes | That number, E.164. |
ended_at | string or null | yes | When the plan last ended. Null while it is active or if it never was. |
cleanup_at | string or null | yes | When records older than the standard time (30 days for a document, 90 for a received fax) are deleted after the plan ended. Null while the plan is active. |
export_open | boolean | yes | GET /v1/records/faxes.csv and /v1/records/audit.csv answer: while the plan is active and until cleanup_at. |
InsufficientBalance
| field | type | required | meaning |
|---|---|---|---|
error | object | yes |