v37

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-11200148.2 KB
Stacks

Get stack logs

Retrieve logs from all services in the stack

get/v1/stacks/{id}/logs

Path parameters

idstring required

Stack identifier

Example:stk_abc123

Query parameters

tailstring

Number of log lines to return per service

Example:100

Response

Structured logs from all services

idstring required

Stack ID

combinedLogsstring

Combined logs from all services (legacy support)

totalLineCountnumber required

Total log lines across all services

Example response

{
  "id": "stk_abc123",
  "services": [
    {
      "id": "sb_abc123",
      "name": "web",
      "role": "frontend",
      "logs": "npm install\nnpm start\nServer listening on port 3000",
      "lineCount": 150
    }
  ],
  "totalLineCount": 500
}