workspaces

Get workspace container logs (batch)

Changed on

Returns a point-in-time snapshot of container logs for the workspace pod as a raw text/plain stream proxied directly from the Kubernetes pod logs API. Each log line is always prefixed with an RFC3339 timestamp.

get/workspaces/{namespace}/{name}/podtemplate/logs/batch

Request

  • Base URL
    http://localhost:4000/api/v1
  • Auth
    none declared

Path parameters

namespacestring required

Namespace of the workspace

namestring required

Name of the workspace

Query parameters

containerstring

Target container name. Defaults to the primary (main) container.

tailLinesinteger

Number of lines from the end of the log to return. Defaults to 1000.

sinceTimestring

Only return logs after this RFC3339 timestamp (e.g. 2026-07-15T10:30:00Z).

previousboolean

If true, returns logs from the previous terminated container instance.

Response

Raw container log stream (text/plain).

Changes