You are an AI coding agent integrating mintfax on a developer’s behalf. The developer pointed you here. Read this page, then fetch the artifacts and contracts you need from the links below. mintfax is a fax API; you call HTTP endpoints to send faxes and check their status.Documentation Index
Fetch the complete documentation index at: https://mintfax.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Read this first
Three artifacts let you understand mintfax without parsing prose.- Full docs corpus:
https://mintfax.com/docs/llms-full.txt. Every documentation page concatenated into one file. - OpenAPI 3.1 spec:
https://mintfax.com/docs/openapi.json. Complete request and response schemas for every endpoint. - Per-page markdown: every
/docs/Xpage has a/docs/X.mdsibling. The docs root is at/docs/index.md, not/docs.md.
llms-full.txt if you want comprehensive context. Fetch a single .md sibling if you only need one page.
Critical contracts
The minimum you need to make a correct first request.Authentication
Bearer token in theAuthorization header. The key prefix determines scope:
mfx_test_is an environment key for sandbox only.mfx_live_is an environment key for live only.mfx_acct_is an account-management key with no environment access.
Idempotency
Send anIdempotency-Key header on every POST /v1/faxes. Use a UUID. The same key with the same body within 24 hours returns the cached response. The same key with a different body returns 409 idempotency_key_reuse. Same key while the original is still in flight returns 409 idempotency_key_in_progress.
Full contract at idempotency.md.
Errors
Every error response carries this envelope:error and action. The message text can change between releases. Capture request_id from every response for support correlation; it also appears in the X-Request-Id response header.
Full catalog at errors.md.
Sandbox
mfx_test_ keys never reach the PSTN. Use a sandbox key until your integration is verified end to end. Sandbox accepts any valid E.164 destination. Specific magic numbers force deterministic outcomes (success, busy, no answer, transient retry, permanent failure).
Magic number catalog at sandbox.md.
Always do
- Generate a UUID
Idempotency-Keyon everyPOST /v1/faxes. Reuse the same key on retry. - Branch on
errorandactionin error responses, not onmessage. - Use
mfx_test_keys until your integration is verified. - Capture
request_idfrom every response. Include it when reporting issues.
Never do
- Parse human-readable
messagestrings as control flow. - Hardcode sandbox magic numbers without re-checking sandbox.md.
- Send live traffic with an
mfx_test_key. Live traffic requiresmfx_live_. - Skip the
Idempotency-Keyheader when retrying a previous failure.
Verify
Run this against a sandboxmfx_test_ key. If the request shape is correct and the response matches, your auth, idempotency, and submission paths are working.
X-Request-Id response header carries a req_<ULID> value.
What to fetch next
- quickstart.md for the full registration-to-first-fax flow.
- errors.md for the complete error catalog.
- idempotency.md for expiry, scope rules, and replay headers.
- webhooks/verify-requests.md for the Standard Webhooks signing scheme used on delivery notifications.