Skip to main content
GET
/
sim_cards
/
{id}
/
public_ip
JavaScript
import Telnyx from 'telnyx';

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

const response = await client.simCards.getPublicIP('6a09cdc3-8948-47f0-aa62-74ac943d6c58');

console.log(response.data);
{
  "data": {
    "record_type": "sim_card_public_ip",
    "region_code": "dc2",
    "sim_card_id": "6b14e151-8493-4fa1-8664-1cc4e6d14158",
    "type": "ipv4",
    "ip": "192.168.0.0",
    "created_at": "2018-02-02T22:25:27.521Z",
    "updated_at": "2018-02-02T22:25:27.521Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Identifies the SIM.

Example:

"6a09cdc3-8948-47f0-aa62-74ac943d6c58"

Response

Successful response

data
SIMCardPublicIP · object