---
title: "Get all executions in your environment"
method: GET
path: "/agents/executions"
tags: ["agents"]
---

# Get all executions in your environment

`GET /agents/executions`

## Query parameters

- `environmentId` string, required — Environment ID
- `agentId` string — Agent ID
- `spaceId` string — Space ID
- `success` boolean — Boolean
- `pageSize` integer — Number of logs to return in a page (default 20)
- `pageNumber` integer — Based on pageSize, which page of records to return

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Response `200`

Response with status 200

- TypeAgentsGetExecutionsResponse
  - `pagination` TypeCommonsPagination — pagination info
    - `currentPage` integer, required — current page of results
    - `pageCount` integer, required — total number of pages of results
    - `totalCount` integer, required — total available results
  - `data` TypeAgentsExecution[], required
    - `eventId` string, required — Event ID
    - `success` boolean, required — Whether the agent execution was successful
    - `spaceId` string — Space ID
    - `createdAt` string, date-time, required
    - `completedAt` string, date-time, required
    - `duration` integer, required — The duration of the agent execution
    - `requestTime` integer — The amount of time the agent spent making http requests
    - `requestCount` integer — The number of requests made by the agent
    - `memoryUsage` integer — The memory usage of the agent
    - `topic` string, required — The topics of the agent execution

## Other responses

- `400` — Error response with status 400
- `404` — Error response with status 404

---

[API](https://skmtc.net/flatfile/apis/api-reference.md) · [All operations](https://skmtc.net/flatfile/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flatfile/api-reference/revisions/9d3a9979cd96/schema)
