---
title: "Streams the logs for a current job/execution via WebSocket"
method: GET
path: "/api/v1/orchestrator/jobs/{id}/logs"
tags: ["Orchestrator"]
---

# Streams the logs for a current job/execution via WebSocket

`GET /api/v1/orchestrator/jobs/{id}/logs`

Establishes a WebSocket connection to stream output from the job specified by `id`
The stream will continue until either the client disconnects or the execution completes

## Path parameters

- `id` string, required

## Query parameters

- `execution_id` string
- `tail` boolean
- `follow` boolean

## Other responses

- `101` — Switching Protocols to WebSocket
- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2024-09-12** `a7f3a8af14ba` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the non-success response with the status `101`
- **2024-07-03** `5c4b2ddaaaba` — 2 info
  - removed the non-success response with the status `101`
  - added the success response with the status `200`

[Change history](https://skmtc.dev/bacalhau-project/apis/bacalhau-api/changes/api/v1/orchestrator/jobs/:id/logs/get.md)

---

[API](https://skmtc.dev/bacalhau-project/apis/bacalhau-api.md) · [All operations](https://skmtc.dev/bacalhau-project/apis/bacalhau-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bacalhau-project/apis/bacalhau-api/revisions/9470ca2a198b?raw)
