The Deployment Logs endpoint opens a Server-Sent Events (SSE) stream that delivers log lines in real time as your deployment progresses. Under the hood, the API subscribes to a Redis channel keyed to the deployment ID (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/deploy-your-app/llms.txt
Use this file to discover all available pages before exploring further.
logs:<id>). As the build worker publishes messages — covering everything from repository cloning through Docker build output to container startup — they are forwarded to the browser or client instantly, with no polling required.
GET /api/v1/deployments/:id/logs
Log streaming connects to the Redis pub/sub bus and does not require
session authentication on the route itself — the connection is scoped to the
deployment ID in the URL. Treat deployment IDs as secret tokens and avoid
exposing them publicly. For general authentication details, see the
Authentication reference.
Request
Path Parameters
The CUID of the deployment whose logs you want to stream (e.g.,
clxyz123abc456def). Obtain this from the
List Deployments or
Get Deployment endpoints.Response
The endpoint responds immediately with HTTP 200 and keeps the connection open as a Server-Sent Events stream.| Header | Value |
|---|---|
Content-Type | text/event-stream |
Cache-Control | no-cache, no-transform |
Connection | keep-alive |
data: line:
- The deployment reaches a terminal state (
SUCCESSorFAILED) and the worker closes the Redis channel. - The client closes the connection (e.g., navigates away or calls
EventSource.close()).
Example
Using curl
-N flag disables output buffering so events are printed as they arrive.
Using the browser EventSource API
Error Responses
Because the endpoint upgrades to an SSE stream, most transport-level errors manifest as a closed connection rather than a JSON error body. The following conditions cause the stream never to open:| Status | Condition |
|---|---|
500 | Redis connection failed or another server-side error prevented the subscription from being established. |
logs field directly.