import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const connection = await client.connections.retrieve('id');
console.log(connection.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "ip_connection",
"active": true,
"anchorsite_override": "Latency",
"connection_name": "string",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"webhook_event_url": "https://example.com",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_api_version": "1",
"outbound_voice_profile_id": "1293384261075731499"
}
}Retrieves the high-level details of an existing connection. To retrieve specific authentication information, use the endpoint for the specific connection type.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const connection = await client.connections.retrieve('id');
console.log(connection.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "ip_connection",
"active": true,
"anchorsite_override": "Latency",
"connection_name": "string",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"webhook_event_url": "https://example.com",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_api_version": "1",
"outbound_voice_profile_id": "1293384261075731499"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
IP Connection ID
Successful response with details about a connection.
Show child attributes
Identifies the specific resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
Identifies the type of the resource.
"ip_connection"
Defaults to true
true
Latency directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media.
Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany "Amsterdam, Netherlands"
"string"
ISO 8601 formatted date indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
The URL where webhooks related to this connection will be sent.
"https://example.com"
The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails.
"https://failover.example.com"
Determines which webhook format will be used, Telnyx API v1 or v2.
1, 2 "1"
Identifies the associated outbound voice profile.
"1293384261075731499"
Tags associated with the connection.
["tag1", "tag2"]{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "ip_connection",
"active": true,
"anchorsite_override": "Latency",
"connection_name": "string",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"webhook_event_url": "https://example.com",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_api_version": "1",
"outbound_voice_profile_id": "1293384261075731499"
}Was this page helpful?