---
title: "Public Remove Campaign Mailboxes Batch"
method: POST
path: "/campaigns/{campaign_id}/mailboxes/batch-delete"
tags: ["Campaigns"]
---

# Public Remove Campaign Mailboxes Batch

`POST /campaigns/{campaign_id}/mailboxes/batch-delete`

## Request

- Base URL: `https://public.outreach2day.com`
- URL: `https://public.outreach2day.com/campaigns/{campaign_id}/mailboxes/batch-delete`
- Auth: HTTP bearer

Campaigns endpoint for POST /campaigns/{campaign_id}/mailboxes/batch-delete.

## Path parameters

- `campaign_id` string, required

## Query parameters

- `workspaceId` integer, required

## Headers

- `Idempotency-Key` string, nullable

## Request body

- CampaignMailboxBatchDeleteIn
  - `mailboxIds` string[]: Mailbox email addresses to delete from the campaign in one request.

## Response `200`

Successful Response

- CampaignMailboxBatchDeleteOut
  - `status` string, nullable
  - `workspaceId` integer, nullable
  - `campaignId` string, nullable
  - `requestedCount` integer, nullable
  - `removedCount` integer, nullable
  - `skippedCount` integer, nullable
  - `invalidCount` integer, nullable
  - `failedCount` integer, nullable
  - `removedMailboxIds` string[]
  - `skippedMailboxIds` string[]
  - `invalidMailboxIds` string[]
  - `invalidMailboxes` CampaignMailboxBatchItemErrorOut[]
    - `mailboxId` string, nullable
    - `error` string, nullable
    - `message` string, nullable
    - `statusCode` integer, nullable
    - `detail` unknown
  - `failedMailboxIds` string[]
  - `failedMailboxes` CampaignMailboxBatchItemErrorOut[]
    - `mailboxId` string, nullable
    - `error` string, nullable
    - `message` string, nullable
    - `statusCode` integer, nullable
    - `detail` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/outreach2day/apis/outreach-today-public-api.md) · [All operations](https://skmtc.dev/outreach2day/apis/outreach-today-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/outreach2day/apis/outreach-today-public-api/revisions/0e5471143371?raw)
