Get all outbound voice profiles belonging to the user that match the given filters.
Successful response
Array of objects (Outbound Voice Profile) | |
object (PaginationMeta) |
Unauthorized
Bad request
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.OutboundVoiceProfile.list(page={"number":1,"size":20})
{- "data": [
- {
- "billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "call_recording": {
- "call_recording_caller_phone_numbers": [
- "+19705555098"
], - "call_recording_channels": "dual",
- "call_recording_format": "mp3",
- "call_recording_type": "by_caller_phone_number"
}, - "concurrent_call_limit": 10,
- "connections_count": 12,
- "created_at": "2018-02-02T22:25:27.521Z",
- "daily_spend_limit": "100.00",
- "daily_spend_limit_enabled": true,
- "enabled": true,
- "id": "1293384261075731499",
- "max_destination_rate": 10,
- "name": "office",
- "record_type": "outbound_voice_profile",
- "service_plan": "global",
- "tags": [
- "office-profile"
], - "traffic_type": "conversational",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "usage_payment_method": "rate-deck",
- "whitelisted_destinations": [
- "US",
- "BR",
- "AU"
]
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Create an outbound voice profile.
Parameters that can be defined when creating an outbound voice profile
Successful response
Unauthorized
Resource not found
Bad request
{- "billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "concurrent_call_limit": 10,
- "daily_spend_limit": "100.00",
- "daily_spend_limit_enabled": true,
- "enabled": true,
- "max_destination_rate": 10,
- "name": "office",
- "service_plan": "global",
- "tags": [
- "office-profile"
], - "traffic_type": "conversational",
- "usage_payment_method": "rate-deck",
- "whitelisted_destinations": [
- "US",
- "BR",
- "AU"
]
}
{- "data": {
- "billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "call_recording": {
- "call_recording_caller_phone_numbers": [
- "+19705555098"
], - "call_recording_channels": "dual",
- "call_recording_format": "mp3",
- "call_recording_type": "by_caller_phone_number"
}, - "concurrent_call_limit": 10,
- "connections_count": 12,
- "created_at": "2018-02-02T22:25:27.521Z",
- "daily_spend_limit": "100.00",
- "daily_spend_limit_enabled": true,
- "enabled": true,
- "id": "1293384261075731499",
- "max_destination_rate": 10,
- "name": "office",
- "record_type": "outbound_voice_profile",
- "service_plan": "global",
- "tags": [
- "office-profile"
], - "traffic_type": "conversational",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "usage_payment_method": "rate-deck",
- "whitelisted_destinations": [
- "US",
- "BR",
- "AU"
]
}
}
Deletes an existing outbound voice profile.
Successful response
object (OutboundVoiceProfile) | |||||||||||||||||||||||||||||||||||||
|
Unauthorized
Resource not found
Bad request
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.OutboundVoiceProfile.retrieve('id') res.delete()
{- "data": {
- "billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "call_recording": {
- "call_recording_caller_phone_numbers": [
- "+19705555098"
], - "call_recording_channels": "dual",
- "call_recording_format": "mp3",
- "call_recording_type": "by_caller_phone_number"
}, - "concurrent_call_limit": 10,
- "connections_count": 12,
- "created_at": "2018-02-02T22:25:27.521Z",
- "daily_spend_limit": "100.00",
- "daily_spend_limit_enabled": true,
- "enabled": true,
- "id": "1293384261075731499",
- "max_destination_rate": 10,
- "name": "office",
- "record_type": "outbound_voice_profile",
- "service_plan": "global",
- "tags": [
- "office-profile"
], - "traffic_type": "conversational",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "usage_payment_method": "rate-deck",
- "whitelisted_destinations": [
- "US",
- "BR",
- "AU"
]
}
}
Retrieves the details of an existing outbound voice profile.
Successful response
object (OutboundVoiceProfile) | |||||||||||||||||||||||||||||||||||||
|
Unauthorized
Resource not found
Bad request
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.OutboundVoiceProfile.retrieve("id")
{- "data": {
- "billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "call_recording": {
- "call_recording_caller_phone_numbers": [
- "+19705555098"
], - "call_recording_channels": "dual",
- "call_recording_format": "mp3",
- "call_recording_type": "by_caller_phone_number"
}, - "concurrent_call_limit": 10,
- "connections_count": 12,
- "created_at": "2018-02-02T22:25:27.521Z",
- "daily_spend_limit": "100.00",
- "daily_spend_limit_enabled": true,
- "enabled": true,
- "id": "1293384261075731499",
- "max_destination_rate": 10,
- "name": "office",
- "record_type": "outbound_voice_profile",
- "service_plan": "global",
- "tags": [
- "office-profile"
], - "traffic_type": "conversational",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "usage_payment_method": "rate-deck",
- "whitelisted_destinations": [
- "US",
- "BR",
- "AU"
]
}
}
Updates an existing outbound voice profile.
Parameters that can be updated on an outbound voice profile
billing_group_id | string <uuid> Default: null The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned). |
object (OutboundCallRecording) | |
concurrent_call_limit | integer Must be no more than your global concurrent call limit. Null means no limit. |
daily_spend_limit | string 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. |
daily_spend_limit_enabled | boolean Default: false Specifies whether to enforce the daily_spend_limit on this outbound voice profile. |
enabled | boolean Default: true Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections. |
max_destination_rate | number Maximum rate (price per minute) for a Destination to be allowed when making outbound calls. |
name required | string >= 3 characters A user-supplied name to help with organization. |
service_plan | string (ServicePlan) Indicates the coverage of the termination regions. International and Global are the same but International may only be used for high volume/short duration Outbound Voice Profiles. |
tags | Array of strings |
traffic_type | string (TrafficType) Specifies the type of traffic allowed in this profile. |
usage_payment_method | string (UsagePaymentMethod) Setting for how costs for outbound profile are calculated. |
whitelisted_destinations | Array of strings Default: ["US","CA"] The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2. |
Successful response
object (OutboundVoiceProfile) | |||||||||||||||||||||||||||||||||||||
|
Unauthorized
Resource not found
Bad request
{- "billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "concurrent_call_limit": 10,
- "daily_spend_limit": "100.00",
- "daily_spend_limit_enabled": true,
- "enabled": true,
- "max_destination_rate": 10,
- "name": "office",
- "service_plan": "global",
- "tags": [
- "office-profile"
], - "traffic_type": "conversational",
- "usage_payment_method": "rate-deck",
- "whitelisted_destinations": [
- "US",
- "BR",
- "AU"
]
}
{- "data": {
- "billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "call_recording": {
- "call_recording_caller_phone_numbers": [
- "+19705555098"
], - "call_recording_channels": "dual",
- "call_recording_format": "mp3",
- "call_recording_type": "by_caller_phone_number"
}, - "concurrent_call_limit": 10,
- "connections_count": 12,
- "created_at": "2018-02-02T22:25:27.521Z",
- "daily_spend_limit": "100.00",
- "daily_spend_limit_enabled": true,
- "enabled": true,
- "id": "1293384261075731499",
- "max_destination_rate": 10,
- "name": "office",
- "record_type": "outbound_voice_profile",
- "service_plan": "global",
- "tags": [
- "office-profile"
], - "traffic_type": "conversational",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "usage_payment_method": "rate-deck",
- "whitelisted_destinations": [
- "US",
- "BR",
- "AU"
]
}
}