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.messaging10dlc.phoneNumberAssignmentByProfile.listPhoneNumberStatus('taskId');console.log(response.records);
Check the status of the individual phone number/campaign assignments associated with the supplied taskId.
GET
/
phoneNumberAssignmentByProfile
/
{taskId}
/
phoneNumbers
JavaScript
Copy
Ask AI
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.messaging10dlc.phoneNumberAssignmentByProfile.listPhoneNumberStatus('taskId');console.log(response.records);