Share a checkpoint with another organization
const url = 'https://api.global.stillbox.example/v1/checkpoints/cp-7k2m9q4x8w3z5r6t/shares';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expires_in_days":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.global.stillbox.example/v1/checkpoints/cp-7k2m9q4x8w3z5r6t/shares \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expires_in_days": 1 }'Makes a code another organization in this region can use to start a sandbox from the checkpoint’s files. Only files come along: not its memory or running programs, and not its sandbox’s settings, environment, internet rules or secrets. Well-known login files (Claude, Codex, OpenCode, Hermes, git, GitHub, cloud and package registry logins, SSH keys, browser profiles) are removed from the copy. The code is shown once; revoke it at any time.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
How long the code works (default 7 days).
Example generated
{ "expires_in_days": 1}Responses
Section titled “Responses”The share, with its code
object
The code to give the other organization. Only returned when the share is made.
The code’s last characters, to tell codes apart.
How many sandboxes were started from it.
Example generated
{ "id": "example", "checkpoint_id": "example", "code": "example", "hint": "example", "created_at": "2026-04-15T12:00:00Z", "expires_at": "2026-04-15T12:00:00Z", "revoked_at": "2026-04-15T12:00:00Z", "uses": 1}The request is invalid
object
Example
{ "code": "not_found"}The API key is missing or invalid
object
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
object
Example
{ "code": "not_found"}The checkpoint isn’t ready
object
Example
{ "code": "not_found"}