---
title: "Configure outbound compliance policy"
method: PUT
path: "/v1/telephony/compliance/policy"
tags: ["Telephony"]
---

# Configure outbound compliance policy

`PUT /v1/telephony/compliance/policy`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/v1/telephony/compliance/policy`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Set bounded calling windows, countries, velocity limits, and at most two pre-answer attempts. Strong defaults apply to omitted fields.

## Request body

- TelephonyCompliancePolicyInput
  - `status` 'active' | 'suspended'
  - `allowed_countries` string[]
  - `calling_window_start_hour` integer
  - `calling_window_end_hour` integer
  - `max_calls_per_24_hours` integer
  - `max_calls_per_destination_24_hours` integer: Maximum calls to one destination in an exact rolling 24-hour window.
  - `max_attempts` integer
  - `require_cnam_for_sales` boolean

## Response `200`

Updated policy

- TelephonyCompliancePolicy
  - `status` 'active' | 'suspended'
  - `allowed_countries` string[]
  - `calling_window_start_hour` integer
  - `calling_window_end_hour` integer
  - `max_calls_per_24_hours` integer
  - `max_calls_per_destination_24_hours` integer: Maximum calls to one destination in an exact rolling 24-hour window.
  - `max_attempts` integer
  - `require_cnam_for_sales` boolean
  - `object` string
  - `version` integer, nullable
  - `updated_at` integer, nullable
  - `guidance` object
    - `consent` string
    - `quiet_hours` string
    - `dnc` string

## Other responses

- `400`: Invalid request (bad field, unsupported value)
- `401`: Missing or invalid API key (`code: unauthorized`)

---

[API](https://skmtc.dev/pyai/apis/pyai-api.md) · [All operations](https://skmtc.dev/pyai/apis/pyai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pyai/apis/pyai-api/revisions/271a1539185b?raw)
