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

# Create Phone Call

> Find or create a thread for the given phone number and project, then initiate a phone call.



## OpenAPI

````yaml /api-reference/openapi.json post /voice/phone-call
openapi: 3.1.0
info:
  title: Puppeteer Core API
  description: >-
    Core API for the Puppeteer AI platform. Manages domain models,
    conversations, voice calls, simulations, and integrations.


    [Documentation](https://docs.puppeteerai.com)
  version: 1.0.0
servers:
  - url: https://api.puppeteerai.com
    description: Production
security: []
tags:
  - name: Auth
    description: JWT token generation and organization creation.
  - name: Messages
    description: >-
      Send and receive messages, retrieve conversation history, search, and
      create messages in threads.
  - name: Threads
    description: Create and manage threads, aliases, scheduled events, and bulk operations.
  - name: Voice
    description: Voice call handling, scheduling, batch calls, and WebSocket LLM.
paths:
  /voice/phone-call:
    post:
      tags:
        - Voice
      summary: Create Phone Call
      description: >-
        Find or create a thread for the given phone number and project, then
        initiate a phone call.
      operationId: create_phone_call_voice_phone_call_post
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            description: API key for your Puppeteer organization.
            title: Authorization
          description: API key for your Puppeteer organization.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateThreadAndCallInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreadAndCallResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateThreadAndCallInput:
      properties:
        callee:
          type: string
          title: Callee
          description: The phone number to call, in E.164 format (e.g., +12025550123).
        project_id:
          type: string
          title: Project Id
          description: The UUID of the Puppeteer project.
        timezone:
          anyOf:
            - type: string
            - type: 'null'
          title: Timezone
          description: Timezone for the thread (e.g., "America/Chicago").
        json_data:
          anyOf:
            - type: string
            - type: 'null'
          title: Json Data
          description: >-
            JSON data as a string to be sent to the thread upon creation. This
            data will be processed by the thread's JSON input handler.
        scheduled_for:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Scheduled For
          description: >-
            ISO 8601 datetime to schedule the call for a future time. If
            omitted, the call starts immediately.
        background:
          type: boolean
          title: Background
          description: >-
            When true, the call is queued and the endpoint returns 202
            immediately. When false (default), the call is initiated
            synchronously.
          default: false
        retell_account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Retell Account Id
          description: >-
            The UUID of the Retell account to use. Required when the project has
            multiple phone numbers.
      type: object
      required:
        - callee
        - project_id
      title: CreateThreadAndCallInput
    ThreadAndCallResponse:
      properties:
        thread_id:
          type: string
          title: Thread Id
          description: The unique identifier for the thread (new or existing).
        call:
          $ref: '#/components/schemas/PublicCallInfo'
          description: Details about the initiated call.
      type: object
      required:
        - thread_id
        - call
      title: ThreadAndCallResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PublicCallInfo:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the call.
        call_type:
          type: string
          title: Call Type
          description: Type of call (e.g., "phone_call", "web_call").
        status:
          type: string
          title: Status
          description: >-
            Current status of the call (e.g., "queued", "ongoing", "ended",
            "scheduled").
        to_number:
          anyOf:
            - type: string
            - type: 'null'
          title: To Number
          description: The phone number being called (phone calls only).
        from_number:
          anyOf:
            - type: string
            - type: 'null'
          title: From Number
          description: The originating phone number (phone calls only).
        scheduled_for:
          anyOf:
            - type: string
            - type: 'null'
          title: Scheduled For
          description: ISO 8601 datetime if the call is scheduled.
        start_timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Timestamp
          description: Unix timestamp when the call started.
        end_timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Timestamp
          description: Unix timestamp when the call ended.
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
          description: Duration of the call in milliseconds.
      additionalProperties: true
      type: object
      required:
        - id
        - call_type
        - status
      title: PublicCallInfo
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````