Fetch multiple call resources
GET/texml/Accounts/:account_sid/Calls
Returns multiple call resouces for an account. This endpoint is eventually consistent.
Request
Path Parameters
The id of the account the resource belongs to.
Query Parameters
The number of the page to be displayed, zero-indexed, should be used in conjuction with PageToken.
The number of records to be displayed on a page
Used to request the next page of results.
Filters calls by the to number.
Filters calls by the from number.
Possible values: [canceled
, completed
, failed
, busy
, no-answer
]
Filters calls by status.
Filters calls by their start date. Expected format is YYYY-MM-DD.
Filters calls by their start date (after). Expected format is YYYY-MM-DD
Filters calls by their start date (before). Expected format is YYYY-MM-DD
Filters calls by their end date. Expected format is YYYY-MM-DD
Filters calls by their end date (after). Expected format is YYYY-MM-DD
Filters calls by their end date (before). Expected format is YYYY-MM-DD
Responses
200: Multiple call resources.
- application/json
404: Resource not found
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/texml/Accounts/:account_sid/Calls' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"calls": [],
"end": 0,
"first_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=0&PageSize=1",
"next_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ",
"page": 0,
"page_size": 1,
"start": 0,
"uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=0&PageSize=1"
}
{
"errors": [
{
"detail": "Resource not found"
}
]
}