Telephony

Record destination consent

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

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

Request body

destinationstring required
level'express' | 'express_written' required
purposesstring[] required
timezonestring required
evidence_refstring required
captured_atinteger required
expires_atinteger nullable

Example request

{
  "destination": "+14155550123",
  "timezone": "America/Los_Angeles"
}

Response

Consent recorded

Changes

No recorded changes to this operation across all 1 revision of this API.