Skip to main content
POST
This endpoint opts a lead’s email or phone number out of outreach. Agents and team members cannot contact the opted-out email or phone number, and any pending messages to it are cancelled. The other address is not affected. Opt-outs are applied at the workspace level. If multiple leads share the same email or phone number, the opt-out applies to all of them. Removing the opt-out restores outreach to that email or phone number across all associated leads. When all addresses for a lead are opted out, the lead’s status changes to OPTED_OUT and didOptOut is true. To opt a lead out of both email and phone outreach, make two requests: one with scope set to EMAIL and one with scope set to PHONE.

Authentication

Requires the x-api-key header with a valid workspace API key.

Path Parameters

string
required
The unique identifier of the lead.

Request Body

boolean
required
When true, opts the address out. When false, removes the opt-out.
enum
required
EMAIL or PHONE. The address to change. EMAIL covers email. PHONE covers texts, calls, and WhatsApp.

Response

boolean
Whether the request succeeded