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

# Create a campaign

> Creates a draft campaign in the current workspace. Sends nothing. Refuses an empty name (flash 'Campaign name is required', no campaign created). A non-numeric or negative min_gap_minutes silently falls back to 15.

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



## OpenAPI

````yaml /openapi.json post /campaigns/new
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/new:
    post:
      tags:
        - Campaigns
      summary: Create a campaign
      description: >-
        Creates a draft campaign in the current workspace. Sends nothing.
        Refuses an empty name (flash 'Campaign name is required', no campaign
        created). A non-numeric or negative min_gap_minutes silently falls back
        to 15.


        **Minimum role:** `edit` (`x-min-role`). **Destructive:** `false`
        (`x-destructive`).
      operationId: campaigns_new_campaign
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                body:
                  description: First-email body (legacy single-email field).
                  type: string
                min_gap_minutes:
                  description: Minimum minutes between sends from one mailbox. Default 15.
                  type: integer
                name:
                  description: Campaign name.
                  type: string
                subject:
                  description: First-email subject (legacy single-email field).
                  type: string
              required:
                - name
              type: object
      responses:
        '200':
          description: >-
            Redirect to the new campaign (status draft). The new campaign id is
            in the redirect URL.
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.