Read sandbox logs and metrics
Returns container logs and/or CPU and memory samples for one sandbox.
Defaults to the last hour. Narrow the window with since/until (ISO-8601 timestamps) and cap the volume with limit, which applies to logs and metrics independently.
cpu_usage is a cumulative counter in seconds — compute a rate by differencing consecutive samples.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
sandbox_id
Headers
x-workspace-id
UUID of the workspace that scopes this request. List the workspaces you belong to with GET /workspaces.
Query parameters
since
Start of the window (ISO-8601). Defaults to one hour ago.
until
End of the window (ISO-8601). Defaults to now.
limit
Maximum rows returned per stream (logs and metrics each).
stream
Filter log lines by stream.
include
Comma-separated subset of logs and metrics.
Response
Successful Response
sandbox_id
sandbox_name
logs
metrics
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error