Customers
Unsubscribe a customer from campaigns and triggers
POST
/
customers
/
{id}
/
unsubscribe
Authorizations
Authorization
string
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
id
string
requiredThe ID of the customer
Body
application/json
type
enum<string>
requiredThe type of unsubscribe. campaign
in this case indicates unsubscribing from a single campaign
Available options:
campaign
campaign_id
string
requiredThe ID of the campaign to unsubscribe from
Response
200 - application/json
id
string
requiredThe ID of the customer
email_address
string | null
requiredThe email address of the customer
phone_number
string | null
requiredThe phone number of the customer
metadata
any
requiredThe metadata associated with this customer