Skip to main content
POST
/
access_ip_ranges
JavaScript
import Telnyx from 'telnyx';

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

const accessIPRange = await client.accessIPRanges.create({ cidr_block: 'cidr_block' });

console.log(accessIPRange.id);
{
  "id": "<string>",
  "cidr_block": "<string>",
  "status": "pending",
  "user_id": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
cidr_block
string
required
description
string

Response

Successful Response

id
string
required
cidr_block
string
required
status
enum<string>
required

An enumeration.

Available options:
pending,
added
user_id
string
required
description
string
created_at
string<date-time>
updated_at
string<date-time>