POST
/
customers
/
{id}
/
unsubscribe
curl --request POST \
  --url https://api.pocketflows.com/customers/{id}/unsubscribe \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "campaign",
  "campaign_id": "<string>"
}'
{
  "id": "<string>",
  "email_address": "<string>",
  "phone_number": "<string>",
  "metadata": "<any>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the customer

Body

application/json

Response

200 - application/json

The Customer object which was unsubscribed

The response is of type object.