Skip to main content
GET
/
api
/
agent
/
run
Run an agent or view existing run with streaming
curl --request GET \
  --url https://api.getgranite.ai/api/agent/run
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Query Parameters

prompt
string | null

The task prompt for a new agent run

run_id
string | null

Existing run ID to view

Response

Successful Response