Query parameters
-
From string
Retrieve only those faxes sent from this phone number, specified in E.164 format.
-
To string
Retrieve only those faxes sent to this phone number, specified in E.164 format.
-
DateCreatedOnOrBefore string(date-time)
Retrieve only those faxes with a
date_created
that is before or equal to this value, specified in ISO 8601 format. -
DateCreatedAfter string(date-time)
Retrieve only those faxes with a
date_created
that is later than this value, specified in ISO 8601 format. -
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
GET /v1/Faxes
curl \
-X GET https://fax.twilio.com/v1/Faxes \
--user "username:password"
Response examples (200)
{
"faxes": [
{
"account_sid": "string",
"api_version": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"direction": "inbound",
"duration": 42,
"from": "string",
"links": {},
"media_sid": "string",
"media_url": "string",
"num_pages": 42,
"price": 42.0,
"price_unit": "string",
"quality": "standard",
"sid": "string",
"status": "queued",
"to": "string",
"url": "https://example.com"
}
],
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
}
}
Response examples (200)
{
"faxes": [
{
"account_sid": "string",
"api_version": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"direction": "inbound",
"duration": 42,
"from": "string",
"links": {},
"media_sid": "string",
"media_url": "string",
"num_pages": 42,
"price": 42.0,
"price_unit": "string",
"quality": "standard",
"sid": "string",
"status": "queued",
"to": "string",
"url": "https://example.com"
}
],
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
}
}