POST /v1/consents
View as MarkdownFor AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.
Permissions and opt-outs
Record a recipient's written consent with its evidence. Sends to a number are refused until consent is on file.
Requires an API key. See authentication.
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
phone | string | yes | A US or Canadian phone number. E.164 (+13125550123) is best; national formats are accepted. |
seller_name | string | yes | Who the messages come from, exactly as the recipient saw it. |
method | web_form, sms_reply, signed_document, recorded_call | yes | |
disclosure_text | string | yes | The exact wording the recipient agreed to. Must say messages use a prerecorded, artificial or AI-generated voice and that consent is not a condition of purchase. |
source_url | string | no | |
ip | string | no | |
user_agent | string | no | |
signed_name | string | no | |
evidence | string | no | Anything else that proves the consent (form payload, call recording link). It is hashed into the evidence record. |
captured_at | string | no | When the person consented, if earlier than now. |
Responses
| Status | Meaning |
|---|---|
| 201 | The consent record with its evidence hashes. |
| 401 | Missing or invalid API key. |
| 429 | Rate limited. |
| other | Error envelope. |
Failures use the standard envelope described in errors.
Try VoiceDeliver for $1 on Individual, Growth and Scale.See pricing