---
title: "Get an agent execution"
method: GET
path: "/api/v1/agent-executions/{id}"
tags: ["AI"]
---

# Get an agent execution

`GET /api/v1/agent-executions/{id}`

## Request

- Base URL: `https://your-deployment.example.com`
- URL: `https://your-deployment.example.com/api/v1/agent-executions/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns the status, reasoning trace, and (once terminal) the final answer of a run started by `POST /api/v1/agent-executions`. `steps` grows while the run is in flight, so polling this endpoint is also how a REST caller follows the loop. Safe (GET) requests on this route are exempt from the per-day API-key quota: a poll consumes no daily slot, and only the per-minute burst limit applies.

## Path parameters

- `id` string, required

## Response `200`

The execution, its trace, and its answer if it has finished.

- GetAgentExecutionResponse200
  - `id` string, required
  - `status` 'pending' | 'running' | 'continuing' | 'awaiting_permission' | 'awaiting_subagent' | 'awaiting_dag_children' | 'paused' | 'completed' | 'failed' | 'aborted', required
  - `session_id` string, nullable, required
  - `answer` string, nullable, required
  - `error` string, nullable, required
  - `steps` object[], required
    - `type` 'thought' | 'action' | 'observation' | 'final_answer', required
    - `content` string, required
    - `iteration` integer
    - `tool_name` string
  - `total_iterations` number, nullable, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The API key does not hold any of the required scopes.
- `404`: No execution with that id is visible to the caller.
- `405`: The path does not serve this HTTP method.
- `422`: Request failed validation.
- `429`: Per-user rate limit exceeded.

---

[API](https://skmtc.dev/bike4mind/apis/bike4mind-api.md) · [All operations](https://skmtc.dev/bike4mind/apis/bike4mind-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bike4mind/apis/bike4mind-api/revisions/d437aaac22ac?raw)
