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

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

const wirelessBlocklists = await client.wirelessBlocklists.list();

console.log(wirelessBlocklists.data);
{
  "data": [
    {
      "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
      "record_type": "wireless_blocklist",
      "created_at": "2018-02-02T22:25:27.521Z",
      "updated_at": "2018-02-02T22:25:27.521Z",
      "name": "My wireless blocklist.",
      "type": "country",
      "values": [
        "CA",
        "MX",
        "US"
      ]
    }
  ],
  "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[number]
integer
default:1

The page number to load.

Required range: x >= 1
page[size]
integer
default:20

The size of the page.

Required range: 1 <= x <= 250
filter[name]
string

The name of the Wireless Blocklist.

filter[type]
string

When the Private Wireless Gateway was last updated.

filter[values]
string

Values to filter on (inclusive).

Response

Successful Response

data
object[]
meta
object