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

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

const accessIPAddressResponse = await client.accessIPAddress.create({ ip_address: 'ip_address' });

console.log(accessIPAddressResponse.id);
{
  "id": "<string>",
  "ip_address": "<string>",
  "source": "<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
ip_address
string
required
description
string

Response

Successful Response

id
string
required
ip_address
string
required
source
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>