Create a traffic policy profile
Create a new traffic policy profile. At least one of services, ip_ranges, or domains must be provided.
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The type of the traffic policy profile.
Available options:
whitelist, blacklist Example:
"whitelist"
Array of PCEF service IDs to include in the profile.
Example:
["service_123", "service_456"]Array of IP ranges in CIDR notation.
Example:
["10.64.0.0/24", "10.64.0.0/25"]Array of domain names.
Example:
["www.hbomax.com", "netflix.com"]Bandwidth limit in kbps. Must be 512 or 1024.
Available options:
512, 1024 Example:
512
Response
Successful Response
JavaScript