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.retrieveStatus('taskId');console.log(response.status);
Check the status of the task associated with assigning all phone numbers on a messaging profile to a campaign by taskId.
GET
/
phoneNumberAssignmentByProfile
/
{taskId}
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.retrieveStatus('taskId');console.log(response.status);