---
title: "Unsubscribe a customer from campaigns and triggers"
method: POST
path: "/customers/{id}/unsubscribe"
tags: ["Customers"]
---

# Unsubscribe a customer from campaigns and triggers

`POST /customers/{id}/unsubscribe`

## Path parameters

- `id` string, required

## Request body

- union
  - object
    - `type` 'campaign', required — The type of unsubscribe. `campaign` in this case indicates unsubscribing from a single campaign
    - `campaign_id` string, required — The ID of the campaign to unsubscribe from
  - object
    - `type` 'trigger', required — The type of unsubscribe. `trigger` in this case indicates unsubscribing from a single trigger
    - `trigger_id` string, required — The ID of the trigger to unsubscribe from
  - object
    - `type` 'all', required — The type of unsubscribe. `all` in this case indicates unsubscribing from all campaigns
  - object
    - `type` 'future', required — The type of unsubscribe. `future` in this case indicates unsubscribing from all current and future campaigns

## Response `200`

The `Customer` object which was unsubscribed

- Customer
  - `id` string, required — The ID of the customer
  - `external_id` string, nullable, required — The external ID of the customer
  - `email_address` string, nullable, required — The email address of the customer
  - `phone_number` string, nullable, required — The phone number of the customer
  - `full_name` string, nullable, required — The full name of the customer
  - `metadata` object, required — The metadata associated with this customer
  - `unsubscribed` 'future' | 'campaign', nullable, required — The unsubscribe status of the customer

---

[API](https://skmtc.dev/pocketflows/apis/pocketflows-api.md) · [All operations](https://skmtc.dev/pocketflows/apis/pocketflows-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pocketflows/pocketflows-api/revisions/26723490b96f/schema)
