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

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

const customerServiceRecord = await client.customerServiceRecords.create({ phone_number: '+1234567890' });

console.log(customerServiceRecord.data);
{
  "data": {
    "id": "db7cebdb-21a8-4e89-8f51-e03ba6b799bb",
    "phone_number": "+2003271000",
    "status": "pending",
    "error_message": null,
    "result": null,
    "webhook_url": "https://example.com/webhook",
    "created_at": "2023-01-01T00:00:00Z",
    "updated_at": "2023-01-01T00:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
phone_number
string
required

A valid US phone number in E164 format.

Example:

"+1234567890"

webhook_url
string

Callback URL to receive webhook notifications.

Example:

"https://example.com/webhook"

additional_data
object

Response

Successful Response

data
object