Skip to main content
GET
/
customer_service_records
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const customerServiceRecords = await client.customerServiceRecords.list();

console.log(customerServiceRecords.data);
{
  "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": {
    "page_number": 2,
    "page_size": 25,
    "total_pages": 3,
    "total_results": 55
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
object

Consolidated page parameter (deepObject style). Originally: page[size], page[number]

filter
object

Consolidated filter parameter (deepObject style). Originally: filter[phone_number][eq], filter[phone_number][in][], filter[status][eq], filter[status][in][], filter[created_at][lt], filter[created_at][gt]

sort
object

Consolidated sort parameter (deepObject style). Originally: sort[value]

Response

Successful Response

data
object[]
meta
object