cURL
curl --request GET \ --url https://api.getgranite.ai/api/agent/run
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Stream agent execution events via EventSource. Accepts either prompt (new run) or run_id (view existing) as query parameter.
The task prompt for a new agent run
Existing run ID to view
Successful Response