---
title: "Get an agent log"
method: GET
path: "/agents/log/{eventId}"
tags: ["agents"]
---

# Get an agent log

`GET /agents/log/{eventId}`

## Path parameters

- `eventId` string, required — Event ID

## Query parameters

- `environmentId` string, required — Environment ID

## Headers

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

## Response `200`

Response with status 200

- TypeAgentsGetDetailedAgentLogResponse
  - `data` TypeAgentsDetailedAgentLog, required — A log of an agent execution
    - `eventId` string, required — Event ID
    - `success` boolean, required — Whether the agent execution was successful
    - `createdAt` string, date-time, required
    - `completedAt` string, date-time, required
    - `duration` integer, required — The duration of the agent execution
    - `topic` string, required — The topics of the agent execution
    - `context` object, required — The context of the agent execution
    - `log` string — The log 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/versions/9d3a9979cd96/schema)
