fax_sent
— When a fax is successfully sentfax_received
— When a fax is successfully receivedhook
: Contains metadata about the webhook itself.data
: Contains information about the fax that triggered the event.fax_sent
event is triggered when a fax is successfully sent.
hook.id
is not equal to data.id
, the fax is being retried. If hook.id
equals data.id
, it indicates the fax is being sent for the first time.Name | Type | Required | Description | Restrictions |
---|---|---|---|---|
hook | object | Yes | Hook and event description | none |
id | string | Yes | Fax ID | none |
event | string | Yes | Event type | none |
event_time | string | Yes | Time of the event. Format: YYYY-MM-DD HH:mm:ss | none |
target | string | Yes | Configured URL target for this webhook | none |
data | object | Yes | Callback data, depends on the event type | none |
id | string | Yes | Fax session ID. This ID might differ from the one returned by listFaxes | none |
uid | string | Yes | Sender user ID | none |
pages | number | Yes | Number of pages in the fax | none |
from | string | Yes | Sender number. Might be a user ID for faxes sent from free accounts | none |
to | string | Yes | Fax destination number. Might be a user ID for faxes sent from free accounts | none |
start_time | string | Yes | Time at which faxing session started. Format: YYYY-MM-DD HH:mm:ss | none |
file | string | Yes | File ID | none |
file_name | string | Yes | Human-readable file name | none |
cost | number | Yes | Fax cost (in pages) | none |
status | FaxStatus | Yes | Fax status | none |
fax_received
event is triggered when a fax is successfully received.
fax_received
is identical to the fax_sent
event.