Getting started
Back to home
Getting started

Follow deployment logs

Receive build or deployment log updates as server-sent events. MCP clients use the paginated read endpoint instead.

GET/api/customer/v1/projects/{projectId}/deployments/{deploymentId}/logs/stream

Path parameters

NameValue
projectIdRequired resource ID from an earlier API response.
deploymentIdRequired resource ID from an earlier API response.

Example request

Set HCODE_BASE_URL and HCODE_API_KEY as shown in Getting started. Replace resource variables with your own IDs.

curl --request GET "$HCODE_BASE_URL/api/customer/v1/projects/${PROJECT_ID}/deployments/${DEPLOYMENT_ID}/logs/stream" \
  --header "Authorization: Bearer $HCODE_API_KEY" \
  --no-buffer

Response

The response is a server-sent event stream. Keep the connection open to receive updates; access is rechecked while it is open.

See errors and retries for failure responses.