> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salessequencer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Assign mailboxes to a campaign

> Assigns the given mailboxes to the campaign. Ids from other workspaces and already-assigned ids are ignored. With no valid ids it flashes 'No mailboxes selected'. Note: a campaign with no assigned mailboxes sends from every active mailbox in the workspace, so assigning narrows the sender pool.

**Minimum role:** `edit` (`x-min-role`). **Destructive:** `false` (`x-destructive`).



## OpenAPI

````yaml /openapi.json post /campaigns/{campaign_id}/mailboxes/add
openapi: 3.0.3
info:
  title: Sales Sequencer API
  version: '1'
  description: >-
    Every Sales Sequencer action over HTTP. Each call runs as the API key's
    creator, with that user's role, in the key's workspace. Auth: X-API-Key
    header.
servers:
  - url: https://api.salessequencer.com/api/v1
security:
  - key: []
paths:
  /campaigns/{campaign_id}/mailboxes/add:
    post:
      tags:
        - Campaigns
      summary: Assign mailboxes to a campaign
      description: >-
        Assigns the given mailboxes to the campaign. Ids from other workspaces
        and already-assigned ids are ignored. With no valid ids it flashes 'No
        mailboxes selected'. Note: a campaign with no assigned mailboxes sends
        from every active mailbox in the workspace, so assigning narrows the
        sender pool.


        **Minimum role:** `edit` (`x-min-role`). **Destructive:** `false`
        (`x-destructive`).
      operationId: campaigns_add_mailboxes
      parameters:
        - in: path
          name: campaign_id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                mailbox_ids:
                  description: Repeatable. Mailbox ids to assign.
                  type: array
                  items:
                    type: integer
              required:
                - mailbox_ids
              type: object
      responses:
        '200':
          description: Redirect to the mailboxes tab; flash 'Added N mailboxes'.
components:
  securitySchemes:
    key:
      in: header
      name: X-API-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.