{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentline-cloud/json-schema/agentline-cloud-call-request-schema.json",
  "title": "CallRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentline-cloud-calls-api-openapi.yml#/components/schemas/CallRequest",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id",
      "description": "ID of the AI agent making the call (e.g. 'agt_abc123')"
    },
    "to_number": {
      "type": "string",
      "title": "To Number",
      "description": "Destination phone number in E.164 format (e.g. '+12125551234')"
    },
    "system_prompt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "System Prompt",
      "description": "Per-call system prompt override. Replaces the agent's default prompt for this call ONLY. If omitted, the agent's default system_prompt is used."
    },
    "initial_greeting": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Initial Greeting",
      "description": "Per-call greeting override. Replaces the agent's default greeting for this call ONLY. If omitted, the agent's default initial_greeting is used."
    },
    "voice_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Voice Id",
      "description": "Override the TTS voice for this call: preset name (e.g. 'female-1') or Cartesia UUID"
    },
    "from_number_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From Number Id",
      "description": "Specific phone number ID to call from; defaults to the agent's assigned number"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "to_number"
  ]
}