Check out our upcoming events and meetups! View events →
Associate one or more phone numbers with an enterprise for Number Reputation monitoring.
Validations:
+16035551234)Note: This operation is atomic — if any number fails validation, the entire request fails.
Maximum: 100 phone numbers per request.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.enterprises.reputation.numbers.associate(
'6a09cdc3-8948-47f0-aa62-74ac943d6c58',
{ phone_numbers: ['+16035551234'] },
);
console.log(response.data);{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "+16035551234",
"enterprise_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page_number": 123,
"page_size": 123,
"total_results": 123,
"total_pages": 123
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the enterprise (UUID)
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
List of phone numbers to associate for reputation monitoring (max 100)
1 - 100 elementsPhone number in E.164 format
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.enterprises.reputation.numbers.associate(
'6a09cdc3-8948-47f0-aa62-74ac943d6c58',
{ phone_numbers: ['+16035551234'] },
);
console.log(response.data);{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "+16035551234",
"enterprise_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page_number": 123,
"page_size": 123,
"total_results": 123,
"total_pages": 123
}
}