Skip to main content
PUT
Set contact restricted channels
Send the contact’s full list of restricted channels: it replaces the current one. Channels are any of email, sms, whatsapp and phone_voice (phone calls). Duplicates are dropped and the response lists the channels sorted. Send an empty list to lift every restriction.
To add or lift a single channel, read restricted_channels from Get contact first, then send the new full list.
  • The API key needs the contacts:write scope.
  • A contact ID that isn’t in your organization returns 404.
  • A change moves the contact’s updated_at forward, so List contacts with updated_after picks it up. Sending the list the contact already has changes and records nothing.
  • Every change is recorded in the audit log with the before and after lists, who made it and from where. See Audit Logs API.
  • Changing restricted channels doesn’t fire the Contact Updated workflow trigger.
Once a channel is restricted, a send to the contact on it is refused with HTTP 422 and error: "contact_channel_restricted"; see refused sends. Replies in a session the contact started on that channel are still delivered. Restricted channels explains what a restriction stops and what still goes through.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contact_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
restricted_channels
enum<string>[]
required

Channels this contact asked not to be contacted on: any of email, sms, whatsapp, phone_voice. Replaces the current list; send an empty list to lift every restriction.

Maximum array length: 4
Available options:
email,
sms,
whatsapp,
phone_voice

Response

Default Response

contact_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
restricted_channels
enum<string>[]
required

Channels this contact asked not to be contacted on: any of email, sms, whatsapp, phone_voice. Nothing your team, workflows, sequences or the API start goes out to the contact on a listed channel; AI replies to the contact's messages and your team's replies in a session on that channel are still delivered. Empty when nothing is restricted.

Available options:
email,
sms,
whatsapp,
phone_voice