Endpoint
Send JSON toPOST /query:
Request Structure
Request Fields
parts (required)
Array of text and/or base64-encoded files that make up the user’s message.
Text 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
- Learn about response format
- See file upload examples