FaxTerra

Testing

A fax to a test number is never dialled and uses none of your pages. It moves through the same statuses, emails and webhook events as a real fax, so your software can handle every outcome before it sends one.

Test numbers

+12015550100
Delivered. The same pages then arrive in your inbox as a fax from this number, if your account has a fax number.
+12015550101
Delivered after about ten seconds.
+12015550102
Busy on the first attempt. The automatic retry delivers it within a few minutes.
+12015550103
Fails because no fax machine answers.
+12015550104
Fails the way a voice line fails. The quote warns you before you send.

They work from every way you can send: the API, MCP, the website, the apps and fax by email. A quote answers "route": "test" and "pageUnits": 0, and the fax's status and its webhook events carry "test": true. The busy number's retry runs the same steps as any automatic retry, but waits 60 seconds at each one.

curl -X POST https://faxterra.com/api/v1/faxes \
  -H "Authorization: Bearer $FAXTERRA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "to": "+12015550101", "text": "A test fax", "recipientConsent": true }'

Receiving

Once a fax to +12015550100 is delivered, the same pages arrive on your account's own fax number as a received fax from +12015550100. The fax.received event, the inbox and the text and image reads all work on it as on any received fax, and it is kept for your account's usual retention. It only ever goes to the account that sent it.

An account without a fax number gets no echo. The send is still delivered, and its status says "echo": "no_number".

Webhook test events

POST /api/v1/webhooks/{id}/test sends one of your endpoints a signed event of the type you choose, with "test": true and a fax id that matches no fax. GET /api/v1/webhooks lists your endpoints and their ids. The webhooks page has an example of every event.

What a test fax doesn't do

  • It can have up to 5 pages, the cover page included, and 5 MB of documents. A larger one is refused with TEST_FAX_TOO_LARGE.
  • An account can send 50 test faxes in any 24 hours, echoes included. The next is refused with TEST_FAX_DAILY_LIMIT. A quote for a test number shows these limits and how many the account has sent.
  • It counts toward your account's hourly sending limit, like any send.
  • It can't be retried by hand. Send it again, or resend it with POST /api/v1/faxes/{id}/resend.
  • It is never split into parts, whatever its length.

Payments

A checkout is always real. POST /api/v1/checkout opens a live Stripe checkout, and paying it charges the card. To find out whether a send needs more pages without buying any, ask POST /api/v1/faxes/quote.