Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

List customer service records

GET 
/customer_service_records

List customer service records.

Request

Query Parameters

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

    sort[] string

    Possible values: [created_at, -created_at]

    Specifies the sort order for results. If not given, results are sorted by created_at in descending order.

    filter[phone_number][eq] string

    Filters records to those with a specified number.

    filter[phone_number][in][] string[]

    Filters records to those with at least one number in the list.

    filter[status][eq] string

    Possible values: [pending, completed, failed]

    Filters records to those with a specific status.

    filter[status][in][] string[]

    Possible values: [pending, completed, failed]

    Filters records to those with a least one status in the list.

    filter[created_at][lt] date-time

    Filters records to those created before a specific date.

    filter[created_at][lt] date-time

    Filters records to those created after a specific date.

Responses

200: Successful Response

401: The required authentication headers were either invalid or not included in the request.

403: You do not have permission to perform the requested action on the specified resource or resources.

422: Unprocessable entity. Check the 'detail' field in response for details.

500: An unexpected error occurred.

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
}
}