---
title: "Fetch execution logs for a dataset execution"
method: GET
path: "/v4/executions/{execution_id}/logs"
tags: ["v4", "Executions"]
---

# Fetch execution logs for a dataset execution

`GET /v4/executions/{execution_id}/logs`

## Path parameters

- `execution_id` union, required
  - string, uuid
  - string

## Query parameters

- `afterSequence` integer, nullable — Return logs after this sequence number
- `stream` 'stdout' | 'stderr', nullable — Filter by stream type
- `limit` integer — Max number of log entries to return

## Response `200`

Success

- SuccessResponseExecutionLogsResponse
  - `success` true, required — Flag for it request was successful
  - `data` ExecutionLogsResponse, required — Response wrapper for paginated execution logs.
    - `data` ExecutionLogSchema[], required — Log entries
      - `id` union — Log entry ID
        - string, uuid
        - string
      - `executionId` union, required — Execution grouping key
        - string, uuid
        - string
      - `teamId` union, required — Team that owns this execution
        - string, uuid
        - string
      - `stream` 'stdout' | 'stderr', required — Output stream type
      - `content` string, required — Log line content
      - `sequence` integer, required — Ordering within execution
      - `createdAt` string, date-time — When this log entry was created
    - `limit` integer, required — Max entries returned
    - `hasMore` boolean — Whether more entries exist
  - `meta` ResponseMeta
    - `requestId` string — Unique request identifier for tracing
    - `timestamp` string, date-time — Response timestamp (UTC)
    - `durationMs` integer, nullable — Request processing time in milliseconds

## Other responses

- `401` — Auth Invalid Token
- `403` — Forbidden Insufficient Permissions
- `422` — Validation Failed
- `426` — Business Quota Exceeded
- `500` — Internal Error

---

[API](https://skmtc.dev/definite/apis/defapi.md) · [All operations](https://skmtc.dev/definite/apis/defapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/definite/defapi/revisions/3943d8deb3be/schema)
