import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const mobileVoiceConnection = await client.mobileVoiceConnections.delete('id');
console.log(mobileVoiceConnection.data);{
"data": {
"id": "<string>",
"record_type": "mobile_voice_connection",
"active": true,
"connection_name": "<string>",
"tags": [
"<string>"
],
"webhook_event_url": "<string>",
"webhook_event_failover_url": "<string>",
"webhook_api_version": "1",
"webhook_timeout_secs": 123,
"outbound": {
"channel_limit": 123,
"outbound_voice_profile_id": "<string>"
},
"inbound": {
"channel_limit": 123
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const mobileVoiceConnection = await client.mobileVoiceConnections.delete('id');
console.log(mobileVoiceConnection.data);{
"data": {
"id": "<string>",
"record_type": "mobile_voice_connection",
"active": true,
"connection_name": "<string>",
"tags": [
"<string>"
],
"webhook_event_url": "<string>",
"webhook_event_failover_url": "<string>",
"webhook_api_version": "1",
"webhook_timeout_secs": 123,
"outbound": {
"channel_limit": 123,
"outbound_voice_profile_id": "<string>"
},
"inbound": {
"channel_limit": 123
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the mobile voice connection
Successful response
Show child attributes
Identifies the resource.
Identifies the type of the resource.
mobile_voice_connection "mobile_voice_connection"
Indicates if the connection is active.
The name of the connection.
A list of tags associated with the connection.
The URL where webhooks are sent.
The failover URL where webhooks are sent.
The API version for webhooks.
1, 2 The timeout for webhooks in seconds.
Was this page helpful?