<Sendfax>
Send a fax document on the call.
Sends the fax document at the URL in its text (a TIFF file) on the call; use it on an answered call, e.g. an outbound API call. Note the element name is <Sendfax> and its faxident/faxheader attributes are all lower case.
Example
Section titled “Example”<Response> <Sendfax faxident="+14155550123" faxheader="Example Co" statusCallback="https://example.com/fax-status">https://example.com/docs/invoice.tif</Sendfax></Response>Attributes
Section titled “Attributes”| Attribute | Values | Default | Description |
|---|---|---|---|
faxident |
string | none |
Station identifier (TSI) sent to the receiver, usually your fax number. |
faxheader |
string | — | Header line printed at the top of each page. |
statusCallback |
An absolute http:// or https:// URL | — | URL notified with the fax result. |
statusCallbackMethod |
GET, POST |
POST |
HTTP method for statusCallback. |
Callback parameters
Section titled “Callback parameters”Sent to statusCallback:
| Parameter | Description |
|---|---|
Direction |
FAX_SENT. |
FaxStatus |
success or failed. |
NumPages |
Pages transferred. |
ErrorCode |
Fax result code. |
ErrorMessage |
Fax result text. |
RemoteStationId |
The receiver’s fax station id. |
CallSid |
The call. |
AccountSid |
The account. |