> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-beta.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.getzep.com/_mcp/server.

# Get episode debug logs

GET https://api.getzep.com/api/v4/graphs/{graph_uuid}/episodes/{episode_uuid}/debug-logs

Returns the ingestion workflow log of an episode. The log exists only when debug logging was enabled for the project when the episode was ingested (see `debug_log.enable`). The log holds episode content, so an API key with an ABAC policy needs an explicit grant of this action; the `readonly` macro does not grant it.

Reference: https://docs-beta.getzep.com/sdk-reference/graph/episode/get-debug-logs

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key  `) — Type "Api-Key" followed by a space and the project API key.

## Request

### Path parameters

- `graph_uuid` (string, required) — Graph UUID
- `episode_uuid` (string, required) — Episode UUID

## Response

### 200

OK

- `completed_at` (string, optional) — The time the ingestion workflow completed, present only after completion.
- `entries` (list of v4.DebugLogEntry, optional) — The log entries, oldest first.
- `error` (string, optional) — The error message, present only when the status is error.
- `started_at` (string, optional) — The time the ingestion workflow started.
- `status` (enum, optional) — The state of the ingestion workflow.
  - Allowed values: `running`, `completed`, `error`

## Errors

### 400 Bad Request Error

Bad Request

- `error` (v4.ErrorBody, optional)

### 401 Unauthorized Error

Unauthorized

- `error` (v4.ErrorBody, optional)

### 403 Forbidden Error

Forbidden

- `error` (v4.ErrorBody, optional)

### 404 Not Found Error

Not Found

- `error` (v4.ErrorBody, optional)

## Types

### v4.DebugLogEntry

- `level` (enum, optional) — The severity of the entry.
  - Allowed values: `debug`, `info`, `warning`, `error`
- `logged_at` (string, optional) — The time the entry was written.
- `message` (string, optional) — The log message.

### v4.ErrorBody

- `code` (string, optional)
- `details` (map from string to any, optional)
- `message` (string, optional)
- `param` (string, optional)
- `request_id` (string, optional)

## Examples

**Response**

```json
{
  "completed_at": "string",
  "entries": [
    {
      "level": "debug",
      "logged_at": "string",
      "message": "string"
    }
  ],
  "error": "string",
  "started_at": "string",
  "status": "running"
}
```