---
title: "Get workflow logs"
method: GET
path: "/workflow/{workflowId}/log"
tags: ["workflows"]
---

# Get workflow logs

`GET /workflow/{workflowId}/log`

Retrieves the output logs for the Nextflow main job of the workflow identified by the given `workflowId`.

## Path parameters

- `workflowId` string, required

## Query parameters

- `workspaceId` integer
- `next` string
- `maxLength` integer

## Response `200`

OK

- WorkflowLogResponse
  - `log` LogPage
    - `downloads` LogPageDownload[]
      - `displayText` string
      - `fileName` string
      - `saveName` string
    - `entries` IteratorString
    - `forwardToken` string
    - `message` string
    - `pending` boolean
    - `rewindToken` string
    - `truncated` boolean

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
