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/streamPath parameters
| Name | Value |
|---|---|
projectId | Required resource ID from an earlier API response. |
Query parameters
| Name | Type | Required | Limits |
|---|---|---|---|
tail | integer | No | Minimum 1; Maximum 500 |
since | string | No | See 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.