List customer service records
GET/customer_service_records
List customer service records.
Request
Query Parameters
Possible values: >= 1
Default value: 1
The page number to load
Possible values: >= 1
and <= 250
Default value: 20
The size of the page
Possible values: [created_at
, -created_at
]
Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
Filters records to those with a specified number.
Filters records to those with at least one number in the list.
Possible values: [pending
, completed
, failed
]
Filters records to those with a specific status.
Possible values: [pending
, completed
, failed
]
Filters records to those with a least one status in the list.
Filters records to those created before a specific date.
Filters records to those created after a specific date.
Responses
200: Successful Response
- application/json
401: The required authentication headers were either invalid or not included in the request.
- application/json
403: You do not have permission to perform the requested action on the specified resource or resources.
- application/json
422: Unprocessable entity. Check the 'detail' field in response for details.
- application/json
500: An unexpected error occurred.
- application/json
Request samples
curl -L 'https://apidev.telnyx.com/v2/customer_service_records' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"id": "f1486bae-f067-460c-ad43-73a92848f902",
"phone_number": "+12065551212",
"status": "completed",
"error_message": "CSR information not available.",
"result": {
"carrier_name": "ABC CARRIER, INC.",
"associated_phone_numbers": [
"+12065551212"
],
"admin": {
"name": "John Doe",
"billing_phone_number": "+12065551212",
"account_number": "1234567890",
"authorized_person_name": "John Doe"
},
"address": {
"administrative_area": "NY",
"locality": "New York",
"postal_code": "10001",
"street_address": "123 Main St",
"full_address": "123 Main St; New York; NY; 10001"
}
},
"record_type": "customer_service_record",
"created_at": "2021-03-19T10:07:15.527Z",
"updated_at": "2021-03-19T10:07:15.527Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}
{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "The required authentication headers were either invalid or not included in the request.",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}
{
"errors": [
{
"code": "10010",
"title": "Authorization failed",
"detail": "You do not have permission to perform the requested action on the specified resource or resources.",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10010"
}
}
]
}
{
"errors": [
{
"code": "10002",
"title": "Invalid phone number",
"detail": "The phone number is invalid.",
"source": {
"pointer": "/phone_numbers",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10002"
}
}
]
}
{
"errors": [
{
"code": "10007",
"title": "Unexpected error",
"detail": "An unexpected error occurred.",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10007"
}
}
]
}