{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentline-cloud/json-schema/agentline-cloud-message-send-schema.json",
  "title": "MessageSend",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentline-cloud-messages-api-openapi.yml#/components/schemas/MessageSend",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id",
      "description": "ID of the AI agent sending the SMS (e.g. 'agt_abc123')"
    },
    "to_number": {
      "type": "string",
      "title": "To Number",
      "description": "Destination phone number in E.164 format (e.g. '+12125551234')"
    },
    "body": {
      "type": "string",
      "title": "Body",
      "description": "SMS message text content"
    },
    "media_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Media Url",
      "description": "URL of media to attach (MMS)"
    },
    "from_number_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From Number Id",
      "description": "Specific phone number ID to send from; defaults to the agent's assigned number"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "to_number",
    "body"
  ]
}