Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful Response
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"
}
}Create a new customer service record for the provided phone number.
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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Show child attributes
Was this page helpful?