Send Session Input
/v1/agents/sessions/{session_id}/eventsSend exactly one event per request: agent.session.input.message or agent.session.input.cancel. Returns 202 with no body; follow progress on the event stream. The SandBase extension form {"input": "…", "file_ids": [...]} sends text with up to 10 ready attachments and cannot be combined with events. A 409 session_input_pending means earlier input is still being delivered: wait, and do not resend with a new key.
Path parameters
Session ID (ses_ prefix).
Headers
Optional but recommended. Reuse the same key when retrying the same input.
Request body
Either events or input/file_ids.
Exactly one event. input.message carries input as text or one user input_text message; input.cancel carries no input.
SandBase extension. Non-empty text up to 256 KiB.
SandBase extension. Up to 10 distinct attachment IDs with status ready.