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

# Send Broadcast

> Queues a draft broadcast immediately, or schedules it when `scheduled_at` is supplied.



## OpenAPI

````yaml /openapi.json post /broadcasts/{broadcast}/send
openapi: 3.1.0
info:
  title: Dugble API
  description: >-
    Programmatic access to Dugble email, SMS, sending infrastructure, contacts,
    audiences, suppressions, and broadcasts. Authenticate with a team token sent
    as a Bearer token.
  version: 1.0.0
  contact:
    name: Dugble Support
    email: support@dugble.com
servers:
  - url: https://api.dugble.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Email
    description: Send and manage transactional emails.
  - name: SMS
    description: Send and manage SMS messages.
  - name: Domains
    description: Manage and verify sending domains.
  - name: Templates
    description: Create, version, publish, preview, and test reusable email templates.
  - name: Sender IDs
    description: Manage SMS sender IDs.
  - name: Contacts
    description: Manage contacts and their audience memberships.
  - name: Contact Properties
    description: Manage typed custom property definitions used by contacts.
  - name: Topics
    description: Manage contact subscription topics.
  - name: Segments
    description: Manage audience segments.
  - name: Suppressions
    description: Manage suppressed email recipients.
  - name: Broadcasts
    description: Create, schedule, and analyze email broadcasts.
paths:
  /broadcasts/{broadcast}/send:
    post:
      tags:
        - Broadcasts
      summary: Send Broadcast
      description: >-
        Queues a draft broadcast immediately, or schedules it when
        `scheduled_at` is supplied.
      operationId: sendBroadcast
      parameters:
        - $ref: '#/components/parameters/BroadcastId'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BroadcastSendRequest'
      responses:
        '202':
          description: Broadcast accepted for sending or scheduling.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BroadcastEnvelope'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    BroadcastId:
      name: broadcast
      in: path
      required: true
      schema:
        type: string
        format: uuid
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: Optional idempotency key for mutation requests. Maximum 256 characters.
      schema:
        type: string
        maxLength: 256
  schemas:
    BroadcastSendRequest:
      type: object
      properties:
        scheduled_at:
          type: string
          format: date-time
          description: Must be in the future.
    BroadcastEnvelope:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/BroadcastResource'
    BroadcastResource:
      type: object
      required:
        - id
        - team_id
        - name
        - status
        - segment_id
        - from_email
        - subject
        - html
        - variable_bindings
        - audience_count
        - eligible_count
        - suppressed_count
        - queued_count
        - failed_count
        - revision
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        team_id:
          type: string
          format: uuid
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - scheduled
            - queued
            - sent
            - failed
            - canceled
        segment_id:
          type: string
          format: uuid
        topic_id:
          type: string
          format: uuid
        from_email:
          type: string
          format: email
        from_name:
          type: string
        reply_to_email:
          type: string
          format: email
        subject:
          type: string
        preview_text:
          type: string
        html:
          type: string
        text:
          type: string
        variable_bindings:
          type: object
          additionalProperties: true
        scheduled_at:
          type: string
          format: date-time
        queued_at:
          type: string
          format: date-time
        sent_at:
          type: string
          format: date-time
        canceled_at:
          type: string
          format: date-time
        audience_count:
          type: integer
          format: int64
        eligible_count:
          type: integer
          format: int64
        suppressed_count:
          type: integer
          format: int64
        queued_count:
          type: integer
          format: int64
        failed_count:
          type: integer
          format: int64
        revision:
          type: integer
          format: int64
          minimum: 1
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - BAD_REQUEST
                - UNAUTHORIZED
                - FORBIDDEN
                - STEP_UP_REQUIRED
                - NOT_FOUND
                - CONFLICT
                - PAYMENT_REQUIRED
                - PAYLOAD_TOO_LARGE
                - UNPROCESSABLE_ENTITY
                - TOO_MANY_REQUESTS
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
            message:
              type: string
  responses:
    Error:
      description: >-
        The request failed. See the HTTP status and structured error code for
        the category.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Team token
      description: >-
        Pass a Dugble team token in the Authorization header as Bearer <token>.
        Team token secrets use the dgb_team_ prefix.

````