import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const outboundVoiceProfile = await client.outboundVoiceProfiles.retrieve('1293384261075731499');
console.log(outboundVoiceProfile.data);{
"data": {
"id": "1293384261075731499",
"record_type": "outbound_voice_profile",
"name": "office",
"connections_count": 12,
"traffic_type": "conversational",
"service_plan": "global",
"concurrent_call_limit": 10,
"enabled": true,
"tags": [
"office-profile"
],
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"BR",
"AU"
],
"max_destination_rate": 10,
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"call_recording": {
"call_recording_type": "by_caller_phone_number",
"call_recording_caller_phone_numbers": [
"+19705555098"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3"
},
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"calling_window": {
"start_time": "08:00:00",
"end_time": "20:00:00",
"calls_per_cld": 5
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}Retrieves the details of an existing outbound voice profile.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const outboundVoiceProfile = await client.outboundVoiceProfiles.retrieve('1293384261075731499');
console.log(outboundVoiceProfile.data);{
"data": {
"id": "1293384261075731499",
"record_type": "outbound_voice_profile",
"name": "office",
"connections_count": 12,
"traffic_type": "conversational",
"service_plan": "global",
"concurrent_call_limit": 10,
"enabled": true,
"tags": [
"office-profile"
],
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"BR",
"AU"
],
"max_destination_rate": 10,
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"call_recording": {
"call_recording_type": "by_caller_phone_number",
"call_recording_caller_phone_numbers": [
"+19705555098"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3"
},
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"calling_window": {
"start_time": "08:00:00",
"end_time": "20:00:00",
"calls_per_cld": 5
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1293384261075731499"
Successful response
Show child attributes
A user-supplied name to help with organization.
3"office"
Identifies the resource.
"1293384261075731499"
Identifies the type of the resource.
"outbound_voice_profile"
Amount of connections associated with this outbound voice profile.
12
Specifies the type of traffic allowed in this profile.
conversational "conversational"
Indicates the coverage of the termination regions.
global "global"
Must be no more than your global concurrent call limit. Null means no limit.
10
Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections.
true
["office-profile"]Setting for how costs for outbound profile are calculated.
rate-deck "rate-deck"
The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2.
["US", "BR", "AU"]Maximum rate (price per minute) for a Destination to be allowed when making outbound calls.
The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice profile in a day before disallowing new calls.
"100.00"
Specifies whether to enforce the daily_spend_limit on this outbound voice profile.
true
Show child attributes
Specifies which calls are recorded.
all, none, by_caller_phone_number When call_recording_type is 'by_caller_phone_number', only outbound calls using one of these numbers will be recorded. Numbers must be specified in E164 format.
["+19705555098"]When using 'dual' channels, the final audio file will be a stereo recording with the first leg on channel A, and the rest on channel B.
single, dual "dual"
The audio file format for calls being recorded.
wav, mp3 "mp3"
{
"call_recording_type": "by_caller_phone_number",
"call_recording_caller_phone_numbers": ["+19705555098"],
"call_recording_channels": "dual",
"call_recording_format": "mp3"
}The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned).
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
(BETA) Specifies the time window and call limits for calls made using this outbound voice profile. Note that all times are UTC in 24-hour clock time.
Show child attributes
(BETA) The UTC time of day (in HH:MM format, 24-hour clock) when calls are allowed to start.
"08:00"
(BETA) The UTC time of day (in HH:MM format, 24-hour clock) when calls are no longer allowed to start.
"20:00"
(BETA) The maximum number of calls that can be initiated to a single called party (CLD) within the calling window. A null value means no limit.
5
{
"start_time": "08:00:00",
"end_time": "20:00:00",
"calls_per_cld": 5
}ISO 8601 formatted date-time indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date-time indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
{
"id": "1293384261075731499",
"record_type": "outbound_voice_profile",
"name": "office",
"connections_count": 12,
"traffic_type": "conversational",
"service_plan": "global",
"concurrent_call_limit": 10,
"enabled": true,
"tags": ["office-profile"],
"usage_payment_method": "rate-deck",
"whitelisted_destinations": ["US", "BR", "AU"],
"max_destination_rate": 10,
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"call_recording": {
"call_recording_type": "by_caller_phone_number",
"call_recording_caller_phone_numbers": ["+19705555098"],
"call_recording_channels": "dual",
"call_recording_format": "mp3"
},
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"calling_window": {
"start_time": "08:00:00",
"end_time": "20:00:00",
"calls_per_cld": 5
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}Was this page helpful?