API (Agent)
The API (Agent) allows you to interact programmatically with your deployed agent by sending queries and receiving responses. This information is also directly available within the platform.
Query API
Purpose
Send a question to your agent and receive a structured response after it passes through the full agent processing flow.
Endpoint
Parameters
key
Unique public key assigned to the agent
query
User question or message
memory_id
Optional ID to maintain continuity in a session
query_id
Optional session key for current agent conversation
Sample Request
Sample Response
Query Feedback API
Purpose
Submit reviews, comments, or ratings on the responses returned by your agent. Useful for training insights or performance tracking.
Endpoint
Parameters
key
Unique public key assigned to the agent
query
Original user input
response
Response generated by the agent
feedback
Freeform text comment (e.g., review or evaluation)
feedback_type
"positive" or "negative"
Sample Request
Sample Response
This API set allows you to:
Automate agent interaction via backend systems.
Log and analyze performance of responses.
Collect user satisfaction metrics for continuous improvement.
Last updated