Error Handling and Rate Limits
All errors use RFC 9457 application/problem+json with a stable machine-readable code, a correlationId, and a timestamp:
{
"type": "https://api.efax.com/problems/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "The eFax API credential is missing, invalid, or has been revoked.",
"instance": "/v1/faxes",
"code": "EFAX-401-UNAUTHENTICATED",
"correlationId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2026-06-24T17:05:32Z"
}
Error Catalog
| Code | Status | Meaning | What You Should Do |
|---|---|---|---|
| EFAX-400-BAD- REQUEST | 400 | Requests couldn't be parsed (bad JSON/ multipart, wrong type). | Fix the request syntax. |
| EFAX-401- UNAUTHENTICATED | 401 | Missing/invalid/revoked credential. | Re-authenticate; don't retry blindly. |
| EFAX-403- FORBIDDEN | 403 | Authenticated but not permitted. | Request access/entitlement from an admin. |
| EFAX-404- NOT-FOUND | 404 | Fax or document not found. | Verify the fax_id.
|
| EFAX-413- TOO-LARGE | 413 | Upload exceeds 100 MB total. | Reduce total size. |
| EFAX-415- UNSUPPORTED- MEDIA | 415 | Unsupported document type. | Use a supported type (PDF/TIFF/…). |
| EFAX-422- UNPROCESSABLE | 422 | Well-formed but invalid (0 recipients, >20 files, bad cover page, out-of-range parameter). | Fix the offending value. |
| EFAX-429-RATE- LIMITED | 429 | Account rate limit exceeded. See below for more details. | Back off; honor Retry-After. |
| EFAX-500- INTERNAL | 500 | Unexpected internal error. | Contact support with the correlationId.
|
| EFAX-503- DOWNSTREAM- UNAVAILABLE | 503 | A backend is temporarily unavailable/timed out. | Retry later with backoff. |
Best Practices - Error Handling
-
Branch on
code, not ondetail. Thecodeis stable; the human-readabledetailmay change. -
Capture the correlation ID on every request. It is returned in the
X-Correlation-Idresponse header on all responses, and incorrelationIdon error bodies. Log it, and quote it when you contact support. You cannot set your own; the API generates one per request. -
Retry only what's safe.
429and503are retryable with backoff. Other4xxerrors are not retryable, fix the request instead. -
Use exponential backoff with jitter for retries and cap total attempts, to avoid retry storms.
-
Distinguish "envelope rejected" (
4xx) from "per-recipient failure" (202 + outcome: failed) - they need different handling (see Sending Faxes).
Rate Limits
The API enforces account-level rate limits. When you exceed yours, you receive 429 (EFAX-429-RATE-LIMITED) with a Retry-After header telling you how many seconds to wait, use it as your back-off signal.
Best Practices - Rate Limits
-
Honor
Retry-Afterand add jitter so multiple workers don't retry in lockstep. -
Smooth out bursts. Queue and pace large batch jobs rather than firing thousands of requests at once.
-
Read efficiently. Use filtered list calls and reasonable page sizes instead of many single-fax polls.
-
Guard your AI automations so a runaway loop can't exhaust your rate budget (see Using AI Assistants).