Skip to content

Share a checkpoint with another organization

POST
/checkpoints/{checkpoint_id}/shares
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.

checkpoint_id
required
string
Media typeapplication/json
object
expires_in_days

How long the code works (default 7 days).

integer
>= 1 <= 90

Example generated

{
"expires_in_days": 1
}

The share, with its code

Media typeapplication/json
object
id
required
string
checkpoint_id
required
string
code

The code to give the other organization. Only returned when the share is made.

string
hint
required

The code’s last characters, to tell codes apart.

string
created_at
required
string format: date-time
expires_at
required
string format: date-time
revoked_at
string format: date-time
uses
required

How many sandboxes were started from it.

integer

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

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The checkpoint isn’t ready

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}