import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const portingOrdersActivationJob of client.portingOrders.activationJobs.list(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
)) {
console.log(portingOrdersActivationJob.id);
}{
"data": [
{
"id": "f1486bae-f067-460c-ad43-73a92848f902",
"status": "created",
"activation_type": "scheduled",
"activate_at": "2021-03-19T10:07:15.527Z",
"activation_windows": [
{
"start_at": "2021-03-19T10:07:15.527Z",
"end_at": "2021-03-19T10:07:15.527Z"
}
],
"record_type": "porting_activation_job",
"created_at": "2021-03-19T10:07:15.527Z",
"updated_at": "2021-03-19T10:07:15.527Z"
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Returns a list of your porting activation jobs.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const portingOrdersActivationJob of client.portingOrders.activationJobs.list(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
)) {
console.log(portingOrdersActivationJob.id);
}{
"data": [
{
"id": "f1486bae-f067-460c-ad43-73a92848f902",
"status": "created",
"activation_type": "scheduled",
"activate_at": "2021-03-19T10:07:15.527Z",
"activation_windows": [
{
"start_at": "2021-03-19T10:07:15.527Z",
"end_at": "2021-03-19T10:07:15.527Z"
}
],
"record_type": "porting_activation_job",
"created_at": "2021-03-19T10:07:15.527Z",
"updated_at": "2021-03-19T10:07:15.527Z"
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Porting Order id
Successful response
Show child attributes
Uniquely identifies this activation job
"f1486bae-f067-460c-ad43-73a92848f902"
Specifies the status of this activation job
created, in-process, completed, failed Specifies the type of this activation job
scheduled, on-demand ISO 8601 formatted date indicating when the activation job should be executed. This time should be between some activation window.
"2021-03-19T10:07:15.527Z"
List of allowed activation windows for this activation job
Show child attributes
ISO 8601 formatted date indicating when the activation window starts
"2021-03-19T10:07:15.527Z"
ISO 8601 formatted date indicating when the activation window ends
"2021-03-19T10:07:15.527Z"
Identifies the type of the resource.
"porting_activation_job"
ISO 8601 formatted date indicating when the resource was created.
"2021-03-19T10:07:15.527Z"
ISO 8601 formatted date indicating when the resource was created.
"2021-03-19T10:07:15.527Z"
Was this page helpful?