---
title: "Detach a sender email from a campaign"
method: DELETE
path: "/campaigns/{id}/sender-emails/{senderEmailId}"
tags: ["Campaigns"]
---

# Detach a sender email from a campaign

`DELETE /campaigns/{id}/sender-emails/{senderEmailId}`

## Request

- Base URL: `https://api.emailchaser.com/r`
- URL: `https://api.emailchaser.com/r/campaigns/{id}/sender-emails/{senderEmailId}`
- Auth: HTTP bearer

Detaches a sender email from a campaign. A running campaign only sends through the sender emails attached to it, so after this call the campaign stops sending through this mailbox: unsent follow-ups to emails this sender already sent are canceled, the sender is removed from the campaign's unsent emails, and a running campaign is rescheduled onto its remaining senders. Emails already sent are untouched. Idempotent: detaching a sender that is not attached is a no-op.

## Path parameters

- `id` integer, required
- `senderEmailId` integer, required

## Response `200`

Sender email detached

- ModelsDetachCampaignSenderResponse
  - `campaignId` integer
  - `detached` boolean: Detached is false when the sender email was not attached to the campaign (the call is idempotent and does nothing in that case).
  - `message` string
  - `senderEmailIds` integer[]: SenderEmailIDs lists every sender email still attached to the campaign after this call.

## Other responses

- `400`: Invalid campaign or sender email ID
- `401`: Unauthorized - invalid or missing API key
- `404`: Campaign or sender email not found
- `500`: Failed to detach sender email

---

[API](https://skmtc.dev/emailchaser/apis/emailchaser-api.md) · [All operations](https://skmtc.dev/emailchaser/apis/emailchaser-api/llms.txt) · [OpenAPI document](https://skmtc.dev/emailchaser/apis/emailchaser-api/revisions/8b114990abb7?raw)
