Skip to main content

Endpoint

Send JSON to POST /query:

Request Structure

Request Fields

parts (required)

Array of text and/or base64-encoded files that make up the user’s message. Text part:
File part:

kwargs (optional)

Optional metadata passed to your agent handler. Common uses:
  • session_id - For conversation continuity
  • Custom fields - Any additional data your agent needs

Example: Simple Text Request

Example: Request with Session

The -N flag disables buffering in curl, allowing you to see the streaming response in real-time.

Next Steps