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

# Create Broadcast

> Creates a new broadcast campaign



## OpenAPI

````yaml POST /public-api/broadcasts
openapi: 3.0.0
info:
  title: Agents Public API
  version: '1.0'
  description: REST API for managing contacts, campaigns, and conversations
  termsOfService: https://agents.nineteen58.co.za/terms
  contact:
    name: API Support
    url: https://agents.nineteen58.co.za/support
    email: support@nineteen58.co.za
servers:
  - url: https://agents.nineteen58.co.za
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /public-api/broadcasts:
    post:
      tags:
        - Broadcasts
      summary: Create a new broadcast
      description: Creates a new broadcast campaign
      operationId: postpublicapibroadcasts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - agent_id
                - channel
                - prompt_id
                - voice_id
                - contact_ids
                - schedule_config
              properties:
                agent_id:
                  type: string
                  format: uuid
                  description: ID of the agent to use for the broadcast
                channel:
                  type: string
                  enum:
                    - phone
                    - advanced-voice
                  description: Communication channel for the broadcast
                prompt_id:
                  type: string
                  format: uuid
                  description: ID of the prompt to use for the broadcast
                voice_id:
                  type: string
                  description: ID of the voice to use for the broadcast
                first_sentence:
                  type: string
                  description: First sentence the agent will say
                contact_ids:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: Array of contact IDs to include in the broadcast
                schedule_config:
                  type: object
                  required:
                    - timezoneAsInteger
                    - start_hour
                    - end_hour
                    - days_of_week
                    - interval
                  properties:
                    timezoneAsInteger:
                      type: integer
                      description: Timezone offset for scheduling calls
                    start_hour:
                      type: integer
                      minimum: 0
                      maximum: 23
                      description: Hour of the day to start calls (0-23)
                    end_hour:
                      type: integer
                      minimum: 0
                      maximum: 23
                      description: Hour of the day to end calls (0-23)
                    days_of_week:
                      type: array
                      items:
                        type: string
                      description: Days of the week to schedule calls
                    interval:
                      type: integer
                      minimum: 2
                      description: Interval between calls (must be >= 2)
                name:
                  type: string
                  description: Name of the broadcast
                description:
                  type: string
                  description: Description of the broadcast
                test:
                  type: boolean
                  description: Whether this is a test broadcast
      responses:
        '201':
          description: Broadcast created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  schedule:
                    type: object
                    properties:
                      schedule:
                        type: array
                        items:
                          type: object
                          properties:
                            contactPhoneNumber:
                              type: string
                            scheduledTime:
                              type: string
                              format: date-time
        '400':
          description: Bad request - Invalid input
        '401':
          description: Unauthorized - Invalid or missing API key
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````