---
title: "Record destination consent"
method: POST
path: "/v1/telephony/compliance/consents"
tags: ["Telephony"]
---

# Record destination consent

`POST /v1/telephony/compliance/consents`

## Request

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

Store tenant-scoped consent evidence. Sales requires express written consent. The response masks the destination.

## Request body

- object
  - `destination` string, required
  - `level` 'express' | 'express_written', required
  - `purposes` string[], required
  - `timezone` string, required
  - `evidence_ref` string, required
  - `captured_at` integer, required
  - `expires_at` integer, nullable

## Response `201`

Consent recorded

## 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)
