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

# Queue outbound call(s) from your Agent

> Backwards compatible with the previous endpoint. You can pass a single "target" and optional "context" (old behavior), or provide "targets" to enqueue multiple calls. This endpoint queues tasks instead of dialing immediately.



## OpenAPI

````yaml post /api/v2/agent/outboundCall
openapi: 3.0.0
info:
  version: 2.0.0
  title: Vida API
  description: Vida API Documentation
servers:
  - url: https://api.vida.dev
    description: Vida Production
    variables:
      baseUrl:
        default: api.vida.dev
        description: Production API Root
security: []
paths:
  /api/v2/agent/outboundCall:
    post:
      tags:
        - Agents
      summary: Queue outbound call(s) from your Agent
      description: >-
        Backwards compatible with the previous endpoint. You can pass a single
        "target" and optional "context" (old behavior), or provide "targets" to
        enqueue multiple calls. This endpoint queues tasks instead of dialing
        immediately.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              oneOf:
                - type: object
                  required:
                    - target
                  properties:
                    target:
                      type: string
                      description: Phone in E.164 or VIDA username
                      example: '+1234567890'
                    context:
                      type: string
                      description: Context for the agent to use during the call
                      example: 'Name: Lyle Pratt. Interested in product demo.'
                    taskContext:
                      type: string
                      description: Task-specific context injected only for this call
                    greeting:
                      type: string
                      description: Custom greeting to use at call start
                    waitToGreet:
                      type: boolean
                      description: Delay greeting until caller speaks
                    accountId:
                      type: integer
                      description: Optional agent account id override for the call
                    scheduledFor:
                      type: integer
                      description: Unix seconds in the future to schedule the call
                    meta:
                      type: object
                      description: Optional metadata
                    externalTaskId:
                      type: string
                      description: >-
                        Optional customer-provided identifier applied to created
                        task(s)
                - type: object
                  required:
                    - targets
                  properties:
                    targets:
                      description: Array of destinations or objects with per-item options
                      oneOf:
                        - type: array
                          items:
                            type: string
                            example: '+1234567890'
                        - type: array
                          items:
                            type: object
                            required:
                              - target
                            properties:
                              target:
                                type: string
                                example: '+1234567890'
                              context:
                                type: string
                              taskContext:
                                type: string
                              agentId:
                                type: integer
                              scheduledFor:
                                type: integer
                              greeting:
                                type: string
                              waitToGreet:
                                type: boolean
                              meta:
                                type: object
                              externalTaskId:
                                type: string
                                description: Identifier applied to this task
                    context:
                      type: string
                      description: >-
                        Context applied to all items when targets is an array of
                        strings
                    taskContext:
                      type: string
                      description: >-
                        Task-specific context applied to all items when targets
                        is an array of strings
                    greeting:
                      type: string
                      description: >-
                        Greeting applied to all items when targets is an array
                        of strings
                    waitToGreet:
                      type: boolean
                      description: >-
                        Delay greeting until caller speaks for all items when
                        targets is an array of strings
                    accountId:
                      type: integer
                      description: >-
                        Account id applied to all items when not provided per
                        item
                    scheduledFor:
                      type: integer
                      description: Schedule applied to all items when not provided per item
                    scheduleSpacingSec:
                      type: integer
                      description: >-
                        If provided, stagger scheduledFor by this many seconds
                        per index
                      example: 30
                    meta:
                      type: object
                      description: Metadata applied to all items when not provided per item
                    externalTaskId:
                      type: string
                      description: Identifier applied to all created tasks
            examples:
              single:
                summary: Single target, backwards compatible
                value:
                  target: '+15551234567'
                  context: Call back about pricing
              batchStrings:
                summary: Multiple string targets with shared context
                value:
                  targets:
                    - '+15551230001'
                    - '+15551230002'
                    - '+15551230003'
                  context: Follow up on demo request
                  scheduleSpacingSec: 15
              batchObjects:
                summary: Multiple object targets with per-item overrides
                value:
                  targets:
                    - target: '+15551230001'
                      context: VIP
                      scheduledFor: 1730000000
                    - target: '+15551230002'
                  accountId: 1234
      responses:
        '200':
          description: Queued successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Outbound call initiated.
                  inserted:
                    type: integer
                    example: 3
                  tasks:
                    type: array
                    items:
                      type: object
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '500':
          description: Server Error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: query
      name: token
      description: Vida API Token

````