> ## 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.

# Turn campaign sending on or off for a mailbox

> Sets or flips Mailbox.enabled (whether campaigns may send from it). Unrecognised or missing value flips the current state. 404 JSON if not found.

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



## OpenAPI

````yaml /openapi.json post /mailboxes/{mailbox_id}/toggle-sending
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:
  /mailboxes/{mailbox_id}/toggle-sending:
    post:
      tags:
        - Mailboxes
      summary: Turn campaign sending on or off for a mailbox
      description: >-
        Sets or flips Mailbox.enabled (whether campaigns may send from it).
        Unrecognised or missing value flips the current state. 404 JSON if not
        found.


        **Minimum role:** `edit` (`x-min-role`). **Destructive:** `false`
        (`x-destructive`).
      operationId: mailboxes_toggle_sending
      parameters:
        - in: path
          name: mailbox_id
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                enabled:
                  description: >-
                    1/true/on to enable, 0/false/off to disable. Anything else
                    toggles.
                  type: string
              type: object
      responses:
        '200':
          description: 'JSON {ok: true, enabled: <bool>} or {ok: false, error: ''not_found''}.'
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.