---
title: "List agent executions"
method: GET
path: "/agents/{id}/executions"
tags: ["Agents"]
---

# List agent executions

`GET /agents/{id}/executions`

## Request

- Base URL: `https://workflow.loopfour.ai/api/v1`
- URL: `https://workflow.loopfour.ai/api/v1/agents/{id}/executions`
- Auth: API key in header `x-api-key`

Returns execution history for an agent.

## Path parameters

- `id` string, required

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

Success

- object
  - `success` unknown
  - `data` AgentExecution[]
    - `id` string
    - `agentId` string
    - `status` 'pending' | 'running' | 'completed' | 'failed'
    - `input` object, nullable
    - `output` object, nullable
    - `error` object, nullable
    - `promptTokens` number, nullable
    - `completionTokens` number, nullable
    - `totalTokens` number, nullable
    - `estimatedCost` number, nullable
    - `latencyMs` number, nullable
    - `model` string, nullable
    - `provider` string, nullable
    - `workflowRunId` string, nullable
    - `createdAt` string, date-time
  - `meta` Meta: Pagination metadata returned by list endpoints
    - `cursor` string, nullable
    - `hasMore` boolean
    - `total` number, nullable
    - `limit` number, nullable
    - `offset` number, nullable

## Other responses

- `400`: Bad request — invalid parameters or request body.
- `401`: Missing or invalid API key.
- `403`: Forbidden — insufficient permissions for this resource.

---

[API](https://skmtc.dev/loopfour/apis/loopfour-workflows-api.md) - [All operations](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/revisions/872822a3af00?raw)
