Skip to main content
GET
/
phoneNumberAssignmentByProfile
/
{taskId}
/
phoneNumbers
JavaScript
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"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taskId
string
required

Query Parameters

recordsPerPage
integer
default:20
page
integer
default:1

Response

Successful Response

records
ProfileAssignmentPhoneNumbers · object[]
required