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

# Create a new campaign call

> Create a new campaign call with the specified configuration



## OpenAPI

````yaml post /api/agents/{agentId}/calls/campaign
openapi: 3.1.0
info:
  title: Strada Voice API
  version: 1.0.0
  description: API for managing voice calls
servers:
  - url: https://api.getstrada.com
    description: Production server
security: []
paths:
  /api/agents/{agentId}/calls/campaign:
    post:
      tags:
        - Calls
      summary: Create a new campaign call
      description: Create a new campaign call with the specified configuration
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
          description: ID of the agent to use for the campaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCampaignCallRequest'
      responses:
        '201':
          description: Campaign call created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCampaignCallResponse'
        '400':
          description: Bad request - invalid input
        '403':
          description: Forbidden - invalid authentication or authorization
        '404':
          description: Not found - agent or schedule not found
      security:
        - bearerAuth: []
components:
  schemas:
    CreateCampaignCallRequest:
      type: object
      required:
        - campaignName
        - scheduleId
        - phoneNumber
        - phoneNumberId
        - variables
      properties:
        campaignName:
          type: string
          maxLength: 40
          description: Name of the campaign
        scheduleId:
          type: string
          description: ID of the schedule to use for the campaign
        phoneNumber:
          type: string
          pattern: ^\+[1-9]\d{1,14}$
          description: Phone number in E.164 format (e.g. +19876543210)
        phoneNumberId:
          type: string
          description: ID of the phone number to use
        variables:
          type: object
          additionalProperties:
            type: string
          description: Key-value pairs of variables required by the agent
        callRetryConfigId:
          type: string
          description: Optional ID of the retry configuration to use for failed calls
        localPresenceEnabled:
          type: boolean
          description: >-
            Enable local presence to match customer area codes. Requires
            organization to have local presence phone numbers configured.
          default: false
        maxConcurrentCalls:
          type: integer
          minimum: 1
          description: >-
            Maximum number of concurrent calls for this campaign. Cannot exceed
            organization's maxConcurrentCalls limit.
        endCampaignAt:
          type: integer
          description: >-
            Unix timestamp in milliseconds when the campaign should end. Must be
            in the future.
          example: 1735689600000
    CreateCampaignCallResponse:
      type: object
      properties:
        message:
          type: string
          example: Campaign call queued successfully
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Key authentication

````