Skip to main content

Lists the phone number blocks jobs

GET 
/phone_number_blocks/jobs

Lists the phone number blocks jobs

Request

Query Parameters

    filter[type] string

    Possible values: [delete_phone_number_block]

    Filter the phone number blocks jobs by type.

    filter[status] string

    Possible values: [pending, in_progress, completed, failed]

    Filter the phone number blocks jobs by status.

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

    sort string

    Possible values: [created_at]

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

Responses

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

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/phone_number_blocks/jobs' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"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": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}