FaxTerra Webhooks API
An owner or admin adds an https endpoint in Settings, under Developer tools, and chooses its events; each is a POST of a WebhookEvent. It is signed: FaxTerra-Signature is t=,v1=." with the endpoint's secret, shown once when the endpoint is added>. Compute it over the raw body, compare in constant time, and refuse a t more than 300 seconds from your clock. Roll secret on the endpoint in Settings replaces the secret; the old one stops at once. Answer any 2xx; anything else, or no answer, is tried again with a growing wait for about 3 days. 20 failures in a row turn the endpoint off and email the person who added it. Every outbound fax that ends sends its event, including one that fails before it is dialled. Three endings send none, because the call that caused them already answered: a fax you delete, a fax held for your number that you cancel, and a resume offer you restart with a retry. The same event can arrive more than once: act on its id once. It carries ids, status and counts, never the document; read the fax with GET /faxes/{id} or GET /inbox/{id}. An account with the HIPAA add-on gets no numbers and no reference in the event.