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

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

const globalIP = await client.globalIPs.create();

console.log(globalIP.data);
{
  "data": {
    "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
    "record_type": "global_ip",
    "created_at": "2018-02-02T22:25:27.521Z",
    "updated_at": "2018-02-02T22:25:27.521Z",
    "ip_address": "198.51.100.1",
    "ports": {
      "tcp": [
        80,
        8080
      ],
      "udp": [
        5000,
        5050
      ]
    },
    "name": "test interface",
    "description": "test interface"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
ports
object

A Global IP ports grouped by protocol code.

Example:
{ "tcp": [80, 8080], "udp": [5000, 5050] }
name
string

A user specified name for the address.

Example:

"test interface"

description
string

A user specified description for the address.

Example:

"test interface"

Response

Successful response

data
Global IP · object