Check out our upcoming events and meetups! View events →
Create a Wireless Blocklist to prevent SIMs from connecting to certain networks.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const wirelessBlocklist = await client.wirelessBlocklists.create({
name: 'My Wireless Blocklist',
type: 'country',
values: ['CA', 'US'],
});
console.log(wirelessBlocklist.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": "North American Wireless Blocklist",
"type": "country",
"values": [
"CA",
"MX",
"US"
]
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the Wireless Blocklist.
"My Wireless Blocklist"
The type of wireless blocklist.
country, mcc, plmn "country"
Values to block. The values here depend on the type of Wireless Blocklist.
ISO 3166-1 Alpha-2 Country Code.
"US"
["CA", "US"]Successful Response
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const wirelessBlocklist = await client.wirelessBlocklists.create({
name: 'My Wireless Blocklist',
type: 'country',
values: ['CA', 'US'],
});
console.log(wirelessBlocklist.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": "North American Wireless Blocklist",
"type": "country",
"values": [
"CA",
"MX",
"US"
]
}
}