Send
Use this endpoint for the Fax method to send a Fax.
Path parameters
AccountSid
The Project ID that uniquely identifies the Account.
Request
MediaUrl
The URL hosting the fax media to send.
To
The phone number, in E.164 format, or SIP URI the fax will be sent to.
From
The phone number, in E.164 format, or client identifier the fax will be sent from.
Quality
The quality of the fax. Default is 'fine'.
Allowed values:
StatusCallback
The URL to send status callback requests to when the fax status changes.
StatusCallbackMethod
The HTTP method to use for status callback requests. Default is 'POST'.
Allowed values:
StatusCallbackEvent
The events that trigger status callback requests. Valid values: 'initiated', 'ringing', 'answered', 'completed', 'ringing_forwarded', 'ringing_queued'. Default is ['completed'].
StoreMedia
Whether to store the fax media. Default is 'true'.
Allowed values:
Ttl
Time to live in minutes for the fax. Must be between 5 and 300. Default is 60.
SipAuthUsername
The username for SIP authentication.
SipAuthPassword
The password for SIP authentication.
Response
account_sid
The unique identifier for the account this fax is associated with.
api_version
The version of the SignalWire API.
date_created
The date and time, in ISO 8601 format, the fax was created.
date_updated
The date and time, in ISO 8601 format, the fax was updated.
direction
The direction of the fax.
Allowed values:
from
The phone number, in E.164 format, the fax was sent from.
media_url
The URL hosting the received media, or null if not available.
media_sid
The unique identifier for the media instance associated with the fax instance.
num_pages
The number of pages in the fax document, or null if not yet determined.
price
The cost of the fax, or null if not yet calculated.
price_unit
The currency, in ISO 4217 format, of the price.
quality
The quality of the fax.
Allowed values:
sid
The unique identifier of the fax.
status
The status of the fax.
to
The phone number, in E.164 format, the fax was sent to.
duration
The time, in seconds, it took to deliver a fax.
links
The URL links for resources associated with the fax.
url
The URL of this resource.
error_code
Error code for this resource, or null if no error.
error_message
The description of this error, or null if no error.
Request examples
StatusCallback parameters
The StatusCallback request contains the following parameters:
RemoteStationId
The transmitting subscriber identification (TSID) reported by the fax machine that sent in the fax.
FaxStatus
The status of the fax.
OriginalMediaUrl
The original URL passed when a fax is sent.
NumPages
The number of pages received from a successful fax.
MediaSid
The SID that uniquely identifies the fax media.
MediaUrl
The media URL to request to retrieve incoming media.
ErrorCode
The error code provides more information on a failed fax.
ErrorMessage
The message explaining the reason for fax failure.