---
title: "Get Workflow Execution Logs"
method: GET
path: "/v1/workflows/executions/{execution_id}/logs"
tags: ["workflows.executions"]
---

# Get Workflow Execution Logs

`GET /v1/workflows/executions/{execution_id}/logs`

Retrieve logs for a workflow execution.

Use `after`/`before`/`order` on the first request to set the time range and sort order; for
the next pages pass the `cursor` from the previous response (it remembers the range and order).

## Path parameters

- `execution_id` string, required

## Query parameters

- `run_id` string, uuid, nullable — Filter logs by workflow run ID
- `activity_id` string, nullable — Filter logs by activity ID
- `after` string, date-time, nullable — Only return logs at or after this timestamp
- `before` string, date-time, nullable — Only return logs before this timestamp
- `order` 'asc' | 'desc' — First-page sort order: 'asc' (oldest first) or 'desc'. Ignored when `cursor` is set.
- `cursor` string, nullable — Pagination cursor from a previous response's `next_cursor`; carries the window and order
- `limit` integer — Maximum number of logs to return

## Response `200`

Successful Response

- ExecutionLogSearchResponse
  - `results` ExecutionLogRecord[], required
    - `timestamp` string, date-time, required
    - `trace_id` string, required
    - `span_id` string, required
    - `severity_text` string, required
    - `body` string, required
    - `log_attributes` object, required
  - `next_cursor` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/revisions/933c4ebdcd72/schema)
