Skip to main content
GET
/
runs
List runs
curl --request GET \
  --url https://api.ziet.ai/v1/runs \
  --header 'Authorization: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "agent_id": "<string>",
      "status": "created",
      "input": {},
      "output": {},
      "max_steps": 123,
      "max_tokens": 123,
      "memory": {
        "id": "<string>",
        "run_id": "<string>",
        "created_at": "2023-11-07T05:31:56Z"
      },
      "steps": [
        {
          "id": "<string>",
          "type": "action",
          "status": "pending",
          "action_id": "<string>",
          "input": {},
          "output": {},
          "started_at": "2023-11-07T05:31:56Z",
          "completed_at": "2023-11-07T05:31:56Z"
        }
      ],
      "error": {
        "message": "<string>",
        "code": "<string>"
      },
      "metadata": {},
      "created_at": "2023-11-07T05:31:56Z",
      "started_at": "2023-11-07T05:31:56Z",
      "completed_at": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "total": 123,
    "limit": 123,
    "offset": 123,
    "has_more": true
  }
}

Authorizations

Authorization
string
header
required

Format: 'Api-Key sk_live_YOUR_KEY'

Query Parameters

limit
integer
default:20
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0
agent_id
string
status
enum<string>
Available options:
created,
running,
waiting_approval,
completed,
failed,
cancelled

Response

List of runs

data
object[]
pagination
object