{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/plusai-com/json-schema/plusai-com-send-agent-session-message-request-schema.json",
  "title": "SendAgentSessionMessageRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/plusai-com-openapi.json#/components/schemas/SendAgentSessionMessageRequest",
  "properties": {
    "attachments": {
      "description": "Files to attach to the message, as for `POST /r/v0/agent/sessions`.\n",
      "items": {
        "properties": {
          "fileId": {
            "type": "string"
          }
        },
        "required": [
          "fileId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "callbackUrl": {
      "description": "HTTPS URL invoked when this turn ends, replacing the session's\ncallback URL. Must be a public HTTPS address (no localhost/private\nIPs).\n",
      "format": "uri",
      "type": "string"
    },
    "expectedTurn": {
      "description": "The session's `turn` the caller last saw. The message is refused\nwith `409 CONVERSATION_ADVANCED` if the session has moved on.\n",
      "minimum": 0,
      "type": "integer"
    },
    "prompt": {
      "description": "The follow-up instruction for the agent.",
      "type": "string"
    }
  },
  "required": [
    "prompt"
  ],
  "type": "object"
}