Skip to main content
GET
/
agents
/
{id}
/
runs
List runs for an agent
curl --request GET \
  --url https://origami.chat/api/v2/agents/{id}/runs \
  --header 'Authorization: Bearer <token>'
{
  "runs": [
    {
      "id": "<string>",
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "prompt": "<string>",
      "steps": {
        "completed": 1,
        "max": 2
      },
      "startedAt": "2023-11-07T05:31:56Z",
      "completedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 50,
    "total": 1,
    "hasMore": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Query Parameters

page
integer
default:0
Required range: x >= 0
pageSize
integer
default:50
Required range: 1 <= x <= 100

Response

A page of run summaries

runs
object[]
required
pagination
object
required

Standard pagination envelope used by every v2 list endpoint. Callers know to stop when hasMore === false; total is the unfiltered row count for the listing's scope.