{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentline-cloud/json-schema/agentline-cloud-keyless-buy-body-schema.json",
  "title": "KeylessBuyBody",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentline-cloud-openapi.json#/components/schemas/KeylessBuyBody",
  "properties": {
    "agent_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Name",
      "description": "Display name for the voice agent"
    },
    "system_prompt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "System Prompt",
      "description": "Personality/behavior instructions spoken on ALL calls"
    },
    "initial_greeting": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Initial Greeting",
      "description": "Opening line spoken when a call connects"
    },
    "voice_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Voice Id",
      "description": "TTS voice preset (e.g. 'female-1') or a voice UUID"
    },
    "transfer_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Transfer Number",
      "description": "Must be the owner phone. Live transfers dial only owner_phone."
    },
    "voicemail_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Voicemail Message",
      "description": "Message left if the call goes to voicemail"
    },
    "owner_phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Phone",
      "description": "Owner's E.164 phone. Calls from it enter task mode, and it is the only live-call transfer destination."
    },
    "country": {
      "type": "string",
      "title": "Country",
      "description": "Country code: 'US' or 'CA'",
      "default": "US"
    },
    "number_type": {
      "type": "string",
      "title": "Number Type",
      "description": "'local' or 'tollfree'",
      "default": "local"
    },
    "area_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Area Code",
      "description": "Preferred 3-digit US or Canada area code"
    }
  },
  "type": "object"
}