---
title: "Subscribe or unsubscribe a WebSocket client to log streaming"
method: PATCH
path: "/internal/logs/subscribe"
---

# Subscribe or unsubscribe a WebSocket client to log streaming

`PATCH /internal/logs/subscribe`

Subscribes or unsubscribes the current client from live log streaming over the WebSocket.

## Request body

- object
  - `clientId` string, required — WebSocket client ID
  - `enabled` boolean, required — Enable or disable log streaming for this client

## Response `200`

Subscription updated

---

[API](https://skmtc.net/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.net/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/versions/9fb6092a836d/schema)
