---
title: "Unenroll prospects"
method: DELETE
path: "/campaigns/{id}/enrollments"
tags: ["Enrollments"]
---

# Unenroll prospects

`DELETE /campaigns/{id}/enrollments`

## Request

- Base URL: `https://warmysender.com/api/v1`
- URL: `https://warmysender.com/api/v1/campaigns/{id}/enrollments`
- Auth: HTTP bearer

Removes prospects from a campaign (soft-stop — their audit history is preserved and any pending sends are cancelled). Provide at least one of prospectIds, emails.

Required scope: `enrollments:write`.

## Path parameters

- `id` string, required

## Request body

- object
  - `prospectIds` string[]: Prospect ids to unenroll.
  - `emails` string[]: Prospect emails to unenroll.

## Response `200`

Success

## Other responses

- `400`: `validation_error` — No targets given or body invalid.
- `401`: `unauthorized` — Missing or invalid API key.
- `403`: `insufficient_scope` — The API key lacks the scope this endpoint requires.
- `404`: `not_found` — Campaign not found.
- `429`: `rate_limited` — Too many requests — slow down and retry after the Retry-After delay.

---

[API](https://skmtc.dev/warmysender/apis/warmysender-public-api.md) · [All operations](https://skmtc.dev/warmysender/apis/warmysender-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/warmysender/apis/warmysender-public-api/revisions/289e9c167a1a?raw)
