View a list of faxes
GET/faxes
Request
Query Parameters
filter[created_at][gte] date-time
ISO 8601 date time for filtering faxes created after or on that date
filter[created_at][gt] date-time
ISO 8601 date time for filtering faxes created after that date
filter[created_at][lte] date-time
ISO 8601 formatted date time for filtering faxes created on or before that date
filter[created_at][lt] date-time
ISO 8601 formatted date time for filtering faxes created before that date
filter[direction][eq] string
The direction, inbound or outbound, for filtering faxes sent from this account
filter[from][eq] string
The phone number, in E.164 format for filtering faxes sent from this number
filter[to][eq] string
The phone number, in E.164 format for filtering faxes sent to this number
page[size] integer
Number of fax resourcxes for the single page returned
page[number] integer
Number of the page to be retrieved
Responses
200: List faxes response
- application/json
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/faxes' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"record_type": "fax",
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"connection_id": "c-1",
"direction": "outbound",
"from": "+123",
"to": "+456",
"media_url": "http://www.example.com/fax.pdf",
"store_media": true,
"stored_media_url": "https://s3.amazonaws.com/faxes-dev/user-1/cf4a6b52-bf8e-4945-9f49-611d0d2b083b.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxxxxxxxxx%2F20200505%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200505T095917Z&X-Amz-Expires=7200&X-Amz-SignedHeaders=host&X-Amz-Signature=fac2af40464fcc77673ad762db86e34f9c1b91a82699b5578c5327f53874df51",
"preview_url": "https://s3.amazonaws.com/faxes-dev/user-1/cf4a6b52-bf8e-4945-9f49-611d0d2b083b_preview.tiff?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxxxxxxxxx%2F20200505%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200505T095917Z&X-Amz-Expires=7200&X-Amz-SignedHeaders=host&X-Amz-Signature=fac2af40464fcc77673ad762db86e34f9c1b91a82699b5578c5327f53874df51",
"quality": "high",
"webhook_url": "http://www.example.com/webhooks",
"webhook_failover_url": "",
"status": "queued",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"created_at": "2020-05-05T09:59:12",
"updated_at": "2020-05-05T09:59:12"
}
],
"meta": {
"page_number": 2,
"page_size": 1,
"total_pages": 3,
"total_results": 3
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}