> ## 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 In Thread

> Create a phone call for the specified thread. The callee number is parsed and validated, and the call is initiated or scheduled based on the input.



## OpenAPI

````yaml /api-reference/openapi.json post /voice/{thread_id}/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/{thread_id}/phone-call:
    post:
      tags:
        - Voice
      summary: Create Phone Call In Thread
      description: >-
        Create a phone call for the specified thread. The callee number is
        parsed and validated, and the call is initiated or scheduled based on
        the input.
      operationId: create_phone_call_in_thread_voice__thread_id__phone_call_post
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            title: Thread Id
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PhoneCallInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicCallInfo'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PhoneCallInput:
      properties:
        callee:
          type: string
          title: Callee
          description: >-
            The phone number to call. Ideally in E.164 format, otherwise parsed
            as a number containing a country code.
        project_id:
          type: string
          title: Project Id
          description: The UUID of the Puppeteer project.
        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.
        verification_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Verification Code
          description: Verification code from Twilio Verify
        appointment_opening_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Appointment Opening Id
          description: Appointment opening ID
        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: PhoneCallInput
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````