POST /unsubscribe/{delivery_id}
This endpoint lets you set a global unsubscribed status outside of the subscription pathways native to Customer.io. If you use custom unsubscribe links, you can host a custom unsubscribe page and use this API to send unsubscribe data, associated with a particular delivery, to Customer.io.
NOTE: This endpoint requires a Content-type: application/json
header. This endpoint does not require an Authorization
header.
Your request sets a person's unsubscribed
attribute to true
, attributes their unsubscribe request to the individual email/delivery that they unsubscribed from, and lets you segment your audience based on email_unsubscribed
events when you use a custom subscription center.
If you use a custom subscription center (managing subscriptions to various types of messages with custom attributes), this request does not set a custom attribute. You must perform a separate request to update a person's custom subscription attributes.
Servers
- https://track.customer.io
Path parameters
Name | Type | Required | Description |
---|---|---|---|
delivery_id |
String | Yes |
The delivery resulting in a request to unsubscribe. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
unsubscribe |
Boolean | No |
If true, a person's |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.