AF AgentFax Get API access

Fax API for AI agents

Fax API for agents that need a receipt.

One endpoint for regulated document delivery. Idempotent sends, dry-run validation, signed delivery webhooks, and docs your agent can actually read.

POST /v1/faxes idempotent retries dry runs signed webhooks

Quickstart

Dry-run it before you send it.

Agents can prove the number, the document URL, and the request shape are valid before spending money or transmitting a regulated document. Flip dry_run off and the same request sends for real.

Full quickstart, error model, and webhook guide →

Request
curl https://agentfax-api.scshome.workers.dev/v1/faxes \
  -H "Authorization: Bearer afx_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: contract-8921-v1" \
  -d '{
    "to": "+13125550123",
    "media_url": "https://example.com/contracts/8921.pdf",
    "client_reference": "contract-8921",
    "dry_run": true
  }'
Response · 202
{
  "fax": {
    "id": "fax_9b2f4e81c6d34a08b2ee71c3a90d55f2",
    "object": "fax",
    "status": "validated",
    "to": "+13125550123",
    "client_reference": "contract-8921",
    "idempotency_key": "contract-8921-v1",
    "created_at": "2026-07-03T14:02:09Z"
  },
  "dry_run": true
}
Idempotency

Retries without duplicate faxes

Every send can carry a stable idempotency key, so tool retries return the original fax object instead of paying for a second transmission.

Dry runs

Validate before transmit

Agents can prove request validity before sending regulated, expensive, or irreversible documents.

Delivery events

Delivery state as data

Fax state is normalized into queued, sending, delivered, failed, and canceled — polled or pushed over signed webhooks.

Machine docs

OpenAPI and llms.txt

Machines get small, explicit docs. Humans get a direct quickstart, error model, and webhook guide.

Built for machine readers

Point your agent at one file.

The entire API fits in a prompt. Hand your agent llms.txt for the rules, or the OpenAPI schema for the full contract — no scraping, no guessing.

Get started

Put a paper trail behind your agent.

Onboard through Stripe, get an API key, and send your first dry run in minutes.

Developer plan · $49/month · billed through Stripe