Before you begin
- A deployed agent and its ID, from its page in the dashboard.
- An API key in
ONECORTEX_API_KEY.
Stream the reply
-N turns off curl’s output buffering, so each event prints as it arrives. Replace agt_... with your agent’s ID:
Terminal
echo agent:
Output
Get one JSON response
Leave out"stream":true:
Terminal
Output
jq .result for the reply alone.
See the headers
Add-i to see the status and headers, including X-Request-Id to quote to support, and X-Onecortex-Session-Id to continue the conversation:
Terminal