---
title: "List agent runs"
method: GET
path: "/agents/runs"
tags: ["agents"]
---

# List agent runs

`GET /agents/runs`

Lists background agent runs in a workspace, newest first.

## Query parameters

- `workspaceId` integer
- `search` string
- `max` integer
- `offset` integer

## Response `200`

OK

- ListAgentRunsResponse
  - `agentRuns` AgentRunDbDto[]
    - `actorId` integer, nullable
    - `agentRunName` string, nullable
    - `dateCreated` string, date-time
    - `id` string
    - `lastUpdated` string, date-time
    - `sessionId` string, nullable
    - `sourcePipelineId` string, nullable
    - `status` 'pending' | 'running' | 'completed' | 'failed'
    - `threadId` string, nullable
    - `title` string, nullable
    - `trigger` AgentRunTrigger
      - `entityId` string
      - `type` string
    - `workflowId` string, nullable
    - `workspaceId` integer
  - `totalSize` integer

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/97f7655d105a/schema)
