EndpointsList access grants

Sandboxes

List access grants

Who may use the sandbox and how. Requires any grant on the sandbox.

GET/sandboxes/{id}/access
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

idstringrequired

Sandbox id (sbx_...).

Pattern: ^sbx_[A-Za-z0-9]{1,64}$

Example: "sbx_j572abc123def456"

cursorstring

Pagination cursor from a previous response's next_cursor.

Maximum string length: 512

limitintegerdefault:50

Items per page (1-100, default 50)

Required range: 1 <= x <= 100

Example: 50

Response

application/json

SandboxAccessGrantList

dataobject[]required
child attributes
data.idstringrequired

Sandbox access grant id (sbxg_...).

Pattern: ^sbxg_[A-Za-z0-9]{1,64}$

Example: "sbxg_j572abc123def456"

data.sandbox_idstringrequired

Sandbox id (sbx_...).

Pattern: ^sbx_[A-Za-z0-9]{1,64}$

Example: "sbx_j572abc123def456"

data.subject_typeenum<string>required

A Workspace member, an OpenCode Server, or every current member of this sandbox's Workspace.

Available options: user, opencode, workspace

data.subject_idstringrequired
data.permissionsenum<string>[]required
data.created_byobjectrequired
child attributes
data.created_by.typeenum<string>required

user: a workspace member. opencode: an OpenCode Server (oc_...).

Available options: user, opencode

data.created_by.idstringrequired

Required string length: 1 - 100

data.created_atintegerrequired

Grant time (Unix seconds).

Required range: x >= 0

has_morebooleanrequired

True if more items exist after this page.

next_cursorstring | nullrequired

Opaque cursor for the next page, or null if no more pages.