{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/call2me-app/json-schema/call2me-app-src-routers-internal-create-call-request-schema.json",
  "title": "CreateCallRequest",
  "description": "Request to create a call record.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/call2me-app-internal-api-openapi.yml#/components/schemas/src__routers__internal__CreateCallRequest",
  "properties": {
    "call_id": {
      "type": "string",
      "title": "Call Id"
    },
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Id"
    },
    "room_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Room Name"
    },
    "from_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From Number"
    },
    "to_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "To Number"
    },
    "direction": {
      "type": "string",
      "title": "Direction",
      "default": "web"
    },
    "call_type": {
      "type": "string",
      "title": "Call Type",
      "default": "web_call"
    },
    "call_status": {
      "type": "string",
      "title": "Call Status",
      "default": "in_progress"
    },
    "start_timestamp": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Timestamp"
    }
  },
  "type": "object",
  "required": [
    "call_id",
    "agent_id"
  ]
}