import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.phoneNumberAssignmentByProfile.retrieveStatus('taskId');
console.log(response.status);{
"taskId": "<string>",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Check the status of the task associated with assigning all phone numbers on a messaging profile to a campaign by taskId.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.phoneNumberAssignmentByProfile.retrieveStatus('taskId');
console.log(response.status);{
"taskId": "<string>",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Was this page helpful?