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

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

const customerServiceRecord = await client.customerServiceRecords.retrieve('customer_service_record_id');

console.log(customerServiceRecord.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"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

customer_service_record_id
string
required

The ID of the customer service record

Response

Successful Response

data
object