Revoke consent
Soft-revokes consent for a phone number. Records are preserved for audit purposes.
When line_id is omitted, revokes every active consent for (user, phone_number) in
the caller’s API-key environment. The response is always an array, even for single
revocations, reflecting the multi-line semantics.
Authentication
AuthorizationBearer
Send as Authorization: Bearer <your-key>. Obtain keys from the portal — prefix sk_live_ for production, sk_test_ for sandbox.
Query parameters
phone_number
E.164 phone number
line_id
Optionally scope to a specific line
Response
Consent revoked
consents
count
Number of consent records revoked in this call
Errors
401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
