Outbound policies
List the project's outbound policies
Headers
X-Project-IDThe project the request acts on, as prj_ and its lowercase UUID; optional while the
organization has one active project.
List the project's outbound policies › Responses
Every outbound policy.
Create an outbound policy
Headers
Idempotency-KeyOne nonblank key of at most 128 characters; a retry with the same key repeats the outcome.
X-Project-IDThe project the request acts on, as prj_ and its lowercase UUID; optional while the
organization has one active project.
Create an outbound policy › Request Body
namerecording_channelsrecording_moderecording_retention_daysconcurrencycpsdaily_spend_limit_minormax_call_duration_secondsmax_destination_rate_minorCreate an outbound policy › Responses
The policy was created and is live.
applied_servicesattached_servicescurrencyidnamerevisionThe save revision the ETag quotes; send it back as If-Match.
statussystem_defaultas_ofbilling_groupcreated_atcreated_byRead an outbound policy of the project
path Parameters
policy_idOutbound policy id
Headers
X-Project-IDThe project the request acts on, as prj_ and its lowercase UUID; optional while the
organization has one active project.
Read an outbound policy of the project › Responses
The outbound policy.
applied_servicesattached_servicescurrencyidnamerevisionThe save revision the ETag quotes; send it back as If-Match.
statussystem_defaultas_ofbilling_groupcreated_atcreated_byDelete an outbound policy, detaching its services when asked
path Parameters
policy_idOutbound policy id
query Parameters
detachDetach every attached service first; each detach saves that service's trunk.
Headers
Idempotency-KeyOne nonblank key of at most 128 characters; a retry with the same key repeats the outcome.
X-Project-IDThe project the request acts on, as prj_ and its lowercase UUID; optional while the
organization has one active project.
Delete an outbound policy, detaching its services when asked › Responses
The policy was deleted; detached trunks re-apply in the background.
Replace an outbound policy's limits and recording
path Parameters
policy_idOutbound policy id
Headers
If-MatchThe quoted revision the caller last read, so a concurrent change answers 412.
Idempotency-KeyOne nonblank key of at most 128 characters; a retry with the same key repeats the outcome.
X-Project-IDThe project the request acts on, as prj_ and its lowercase UUID; optional while the
organization has one active project.
Replace an outbound policy's limits and recording › Request Body
namerecording_channelsrecording_moderecording_retention_daysconcurrencycpsdaily_spend_limit_minormax_call_duration_secondsmax_destination_rate_minorReplace an outbound policy's limits and recording › Responses
The policy was saved; every attached trunk re-applies in the background.
applied_servicesattached_servicescurrencyidnamerevisionThe save revision the ETag quotes; send it back as If-Match.
statussystem_defaultas_ofbilling_groupcreated_atcreated_byList services attached to an outbound policy
path Parameters
policy_idOutbound policy id
Headers
X-Project-IDThe project the request acts on, as prj_ and its lowercase UUID; optional while the
organization has one active project.
List services attached to an outbound policy › Responses
Every service attached to the policy.
Allow, deny or remove destinations of an outbound policy
path Parameters
policy_idOutbound policy id
Headers
If-MatchThe quoted revision the caller last read, so a concurrent change answers 412.
Idempotency-KeyOne nonblank key of at most 128 characters; a retry with the same key repeats the outcome.
X-Project-IDThe project the request acts on, as prj_ and its lowercase UUID; optional while the
organization has one active project.
Allow, deny or remove destinations of an outbound policy › Responses
The destination rules were changed.
applied_servicesattached_servicescurrencyidnamerevisionThe save revision the ETag quotes; send it back as If-Match.
statussystem_defaultas_ofbilling_groupcreated_atcreated_by