The Diagnostics API provides best-effort plain-text diagnostic snapshots for a sandbox. It is intended for human operators and troubleshooting agents who need to collect runtime diagnostic material without depending on a stable structured observability model. Endpoints return a JSON descriptor whose payload is either embedded inline asDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/opensandbox-group/OpenSandbox/llms.txt
Use this file to discover all available pages before exploring further.
content or made available through a short-lived contentUrl for larger payloads. The diagnostic content itself is text/plain display-oriented text — do not parse individual lines as a stable schema, as the format may change across server versions.
Both endpoints share the base URL http://localhost:8080/v1 and require the OPEN-SANDBOX-API-KEY header.
GET /v1/sandboxes//diagnostics/logs
Retrieves a best-effort descriptor for sandbox diagnostic log text. Depending on the selectedscope and server configuration, log text may include sandbox container stdout/stderr, lifecycle diagnostic text, network diagnostic text, or other implementation-defined diagnostic material.
Auth: OPEN-SANDBOX-API-KEY header required.
Path Parameters
Unique sandbox identifier.
Query Parameters
Diagnostic scope selector. Known values include
container, lifecycle, runtime, network, process, and all. Supported scopes are implementation-defined and may vary by deployment. Pass all for a best-effort aggregate across supported scopes.Response — 200 OK
Unique sandbox identifier echoed from the request.
Diagnostic payload kind. Value:
logs.Diagnostic scope used for this response.
How the diagnostic text payload is delivered. Enum:
inline, url.Media type of the diagnostic payload. Example:
"text/plain; charset=utf-8".Inline diagnostic text payload. Present only when
delivery is inline.URL where the diagnostic text can be downloaded. Present only when
delivery is url.Payload size in bytes, when known.
Expiration time for the download URL (RFC 3339). Present when
delivery is url.Whether the diagnostic payload was intentionally truncated by the server due to size limits.
Non-fatal warnings about payload completeness or availability (e.g. expired Kubernetes Events).
Example
GET /v1/sandboxes//diagnostics/events
Retrieves a best-effort descriptor for sandbox diagnostic event text. Events are rendered as diagnostic text rather than a stable structured model. Depending on the scope and runtime, event text may include lifecycle transitions, Kubernetes Events, network diagnostic events, or process activity events. Auth:OPEN-SANDBOX-API-KEY header required.
Path Parameters
Unique sandbox identifier.
Query Parameters
Diagnostic scope selector. Known values:
container, lifecycle, runtime, network, process, all. Pass all for best-effort aggregate.Response — 200 OK
The response schema is identical to the logs endpoint, withkind set to events.
Unique sandbox identifier.
Value:
events.Diagnostic scope used for this response.
Enum:
inline, url.Media type of the payload, e.g.
"text/plain; charset=utf-8".Inline event text. Present when
delivery is inline.Download URL. Present when
delivery is url.Payload size in bytes when known.
Download URL expiration (RFC 3339). Present when
delivery is url.Whether the payload was intentionally truncated.
Non-fatal warnings about payload completeness.
Example
Diagnostic Scopes
| Scope | Description |
|---|---|
container | Sandbox container stdout/stderr and process output. |
lifecycle | Lifecycle state transition events and provisioning diagnostic text. |
runtime | Platform or orchestration-layer events (e.g. Kubernetes Events). |
network | Network diagnostic text including egress policy and DNS events. |
process | Process activity events within the sandbox. |
all | Best-effort aggregate across all supported scopes for this deployment. |
Supported scopes are implementation-defined. Servers may expose only a subset of the scopes listed above, and may add new scopes in future versions. Requests for unsupported scopes return
501 Not Implemented.Delivery Modes
| Delivery | When Used | Fields Present |
|---|---|---|
inline | Payload fits within server response size limits. | content |
url | Payload exceeds size limits; a download URL is issued. | contentUrl, expiresAt, contentLength |