Skip to main content
GET
/
phone_number_blocks
/
jobs
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const jobs = await client.phoneNumberBlocks.jobs.list();

console.log(jobs.data);
{
  "data": [
    {
      "id": "42587e44-3a3e-46de-9255-0c9a7a1d1ec7",
      "record_type": "phone_numbers_job",
      "status": "pending",
      "type": "delete_phone_number_block",
      "etc": "2020-10-30T18:10:00.000Z",
      "created_at": "2020-10-23T18:10:00.000Z",
      "updated_at": "2020-10-23T18:10:01.000Z",
      "successful_operations": [],
      "failed_operations": []
    }
  ],
  "meta": {
    "page_number": 2,
    "page_size": 25,
    "total_pages": 3,
    "total_results": 55
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page
object

Consolidated page parameter (deepObject style). Originally: page[size], page[number]

sort
enum<string>

Specifies the sort order for results. If not given, results are sorted by created_at in descending order.

Available options:
created_at
Example:

"created_at"

filter
object

Consolidated filter parameter (deepObject style). Originally: filter[type], filter[status]

Response

Successful response with a list of phone number blocks background jobs.

data
object[]
meta
object