Skip to content

Teams, projects and keys

GET /v1/team/members

Requires a signed-in user session (browser or CLI) with the team’s owner or admin role. Ordinary members and API keys receive 403 forbidden.

{
"items": [
{
"id": "user_…",
"email": "researcher@example.com",
"name": "Researcher",
"role": "member",
"running_boxes": 2,
"spent_30d_micro": 48210000
}
]
}
  • running_boxes: count of Boxes currently recorded as pending or running for that member.
  • spent_30d_micro: posted usage over the last 30 days in micro-credits attributed to the Box creator (including Boxes started with their API keys). Unposted usage is excluded, and only current team members are listed, so member totals may not sum to team spend if members have left.

See Team access and invitations for invitations and role permissions.

GET /v1/projects

Returns { "items": [...] }. Archived projects are excluded. Project-scoped API keys see only their bound project.

{
"id": "prj_…",
"slug": "default",
"name": "Default",
"created_at": 1794000000,
"active_sandboxes": 2,
"api_keys": 1,
"spent_30d_micro": 48210000
}

active_sandboxes counts pending and running Boxes. spent_30d_micro is the project’s last 30 days of posted usage in micro-credits.

POST /v1/projects
Field Required Meaning
slug yes Lowercase letters, digits, and dashes (starting with a letter or digit, max 39 characters); unique in the team
name no Display name; defaults to slug

Returns 201 with { "id": "prj_…", "slug": "…", "name": "…" }. Returns 409 conflict if the slug is already taken (including by an archived project). Project-scoped API keys cannot create, rename, or delete projects (403 forbidden).

PATCH /v1/projects/{slug}

Send { "name": "New name" } (1–64 characters). Returns 200 with { "id": "prj_…", "slug": "…", "name": "…" }. Only the display name changes; the slug stays fixed.

DELETE /v1/projects/{slug}
Condition Result
Never ran a Box Deleted; returns { "status": "deleted" } and the slug can be reused
Has run Boxes Archived; returns { "status": "archived" }, leaves all lists, keeps billing history, and keeps the slug reserved
Has a pending or running Box 409 conflict — stop its Boxes first
default project 409 conflict — cannot be deleted
Project has API keys the caller cannot revoke 403 forbidden — a team owner or admin must revoke those keys first

Deleting or archiving a project also revokes its project-scoped API keys and cannot be undone.

GET /v1/keys

Returns { "items": [...] }. The full secret is never returned; start holds its leading prefix. Project-scoped keys see only keys scoped to their project.

{
"id": "…",
"name": "ci",
"start": "rsi_AbCdE",
"project_id": null,
"created_by": "you@example.com",
"can_revoke": true,
"created_at": "2026-11-15T10:00:00.000Z",
"expires_at": null,
"last_used_at": null
}

can_revoke is true for a signed-in user session on the caller’s own keys, and on all team keys for team owners and admins. It is always false when authenticating with an API key.

POST /v1/keys

Requires a signed-in user session (browser or CLI); API keys receive 403 forbidden.

Field Required Meaning
name yes Label for the key (1–64 characters)
project no Active project slug to restrict the key to; omit for team-wide scope
expires_in_days no Integer from 1 to 3650; omit for no expiration

Returns 201:

{
"id": "…",
"name": "ci",
"key": "rsi_…",
"start": "rsi_AbCdE",
"project_id": null
}

key is returned only once in this response — save it immediately. A key’s scope cannot be changed after creation; create a replacement key instead.

DELETE /v1/keys/{id}

Requires a signed-in user session (browser or CLI); API keys receive 403 forbidden. Members can revoke their own keys; team owners and admins can revoke any key in the team.

Returns 204 No Content on success, or 404 not_found if the key does not exist or the caller cannot revoke it. Revocation immediately prevents future use without modifying the created_with snapshot on existing Boxes.