import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.phoneNumberAssignmentByProfile.retrievePhoneNumberStatus('taskId');
console.log(response.records);{
"records": [
{
"taskId": "667a80f8-b0a9-49d0-b9ab-a7a1bcc45086",
"phoneNumber": "+12024567890",
"status": "pending"
}
]
}Check the status of the individual phone number/campaign assignments associated with the supplied taskId.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.phoneNumberAssignmentByProfile.retrievePhoneNumberStatus('taskId');
console.log(response.records);{
"records": [
{
"taskId": "667a80f8-b0a9-49d0-b9ab-a7a1bcc45086",
"phoneNumber": "+12024567890",
"status": "pending"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Show child attributes
The ID of the task associated with the phone number.
"667a80f8-b0a9-49d0-b9ab-a7a1bcc45086"
The phone number that the status is being checked for.
"+12024567890"
The status of the associated phone number assignment.
"pending"
Was this page helpful?