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

# Create a campaign

> Built, not started — call `/campaigns/{id}/start`. SMS by default; set `type: "voice"` for a voice campaign. Requires the data plane.



## OpenAPI

````yaml /openapi.json post /api/public/campaigns
openapi: 3.1.0
info:
  title: Verbose API
  version: 1.0.0
  description: >-
    Programmatic access to the Verbose platform — contacts, lists, segments, SMS
    & voice campaigns, AI agents, messages and calls, numbers, registration,
    flows, analytics, and webhooks. All endpoints live under `/api/public` and
    authenticate with a workspace API key.
servers:
  - url: https://astrasend-mocha.vercel.app
    description: Production
security:
  - bearerAuth: []
tags:
  - name: General
    description: Key + workspace.
  - name: Contacts
    description: The people you reach.
  - name: Lists
    description: Static groups of contacts.
  - name: Segments
    description: Live, rule-based audiences.
  - name: Suppression
    description: Numbers to keep off your sends.
  - name: Campaigns
    description: SMS & voice campaigns.
  - name: Messages
    description: One-off SMS.
  - name: Calls
    description: One-off outbound voice calls.
  - name: Agents
    description: AI SMS & voice agents.
  - name: Conversations
    description: Inbox threads.
  - name: Numbers
    description: Phone numbers & pools.
  - name: Offers
    description: Destinations + conversion attribution.
  - name: Analytics
    description: Metrics & custom reports.
  - name: 10DLC
    description: US A2P brand + campaign registration.
  - name: Shortcode
    description: Short-code requests.
  - name: Flows
    description: Multi-step automations.
  - name: Webhooks
    description: Event subscriptions.
paths:
  /api/public/campaigns:
    post:
      tags:
        - Campaigns
      summary: Create a campaign
      description: >-
        Built, not started — call `/campaigns/{id}/start`. SMS by default; set
        `type: "voice"` for a voice campaign. Requires the data plane.
      operationId: createCampaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/SmsCampaignInput'
                - $ref: '#/components/schemas/VoiceCampaignInput'
            examples:
              sms:
                value:
                  name: June promo
                  message: Hi {{first_name}}, 20% off. Reply STOP to opt out.
                  list_id: 8f3c
                  number_id: 1a2b
                  follow_ups:
                    - message: Last day!
                      delay_minutes: 1440
              voice:
                value:
                  type: voice
                  name: Callbacks
                  list_id: 8f3c
                  voice_agent_id: ag_1
                  number_id: 1a2b
      responses:
        '200':
          $ref: '#/components/responses/Ok'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    SmsCampaignInput:
      type: object
      required:
        - name
        - message
        - list_id
      properties:
        name:
          type: string
        message:
          type: string
        list_id:
          type: string
        number_id:
          type: string
          description: Sending number (or pool_id).
        pool_id:
          type: string
        send_rate:
          type: integer
          minimum: 1
          maximum: 5
          default: 1
        link_domain:
          type: string
        destination_url:
          type: string
        follow_ups:
          type: array
          items:
            $ref: '#/components/schemas/FollowUp'
          maxItems: 3
        suppression_list_ids:
          type: array
          items:
            type: string
    VoiceCampaignInput:
      type: object
      required:
        - type
        - name
        - list_id
        - voice_agent_id
        - number_id
      properties:
        type:
          type: string
          enum:
            - voice
        name:
          type: string
        list_id:
          type: string
        voice_agent_id:
          type: string
        number_id:
          type: string
          description: Caller ID.
        calls_per_minute:
          type: integer
          minimum: 1
          maximum: 120
          default: 10
        scheduled_at:
          type: string
          format: date-time
        suppression_list_ids:
          type: array
          items:
            type: string
    FollowUp:
      type: object
      required:
        - message
      properties:
        message:
          type: string
        delay_minutes:
          type: integer
          default: 5
        link_domain:
          type: string
        destination_url:
          type: string
    Error:
      type: object
      properties:
        ok:
          type: boolean
          example: false
        error:
          type: string
  responses:
    Ok:
      description: Success
      content:
        application/json:
          schema:
            type: object
            properties:
              ok:
                type: boolean
                example: true
            additionalProperties: true
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            ok: false
            error: list_id is required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API key (`as_live_…`), created under Settings → API keys.

````