Getting started
Back to home
Getting started

Follow runtime logs

Receive runtime log updates as server-sent events. Access is rechecked while the stream is open. MCP clients use bounded log reads instead.

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

Path parameters

NameValue
projectIdRequired resource ID from an earlier API response.

Query parameters

NameTypeRequiredLimits
tailintegerNoMinimum 1; Maximum 500
sincestringNoSee schema

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}/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.