Checkpoints
4 endpoints at https://api.kosa8.com, sent with Authorization: Bearer $KOSA8_API_KEY. Generated from the API's own OpenAPI description, which a test holds to the router.
Checkpoints of every running or sleeping sandbox (up to 25), asked of each host; does not wake any#
GET
Responses/v1/checkpointsscope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/checkpoints \ -H "Authorization: Bearer $KOSA8_API_KEY"
Checkpoints, oldest first; does not wake a sleeping sandbox#
GET
Parameters/v1/sandboxes/{id}/checkpointsscope sandboxes:readidrequiredpath · stringSandbox id (sbx_…)
200401403404409501502
curl -s -X GET https://api.kosa8.com/v1/sandboxes/$SBX/checkpoints \ -H "Authorization: Bearer $KOSA8_API_KEY"
Save memory, processes and disk as a checkpoint; the newest 10 are kept#
POST
Parameters/v1/sandboxes/{id}/checkpointsscope sandboxes:writeidrequiredpath · stringSandbox id (sbx_…)
labelstringMax length 200.
201400401402403404409501502
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/checkpoints \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Go back to a checkpoint; the sandbox as it was is first saved as an automatic checkpoint (backup)#
POST
Parameters/v1/sandboxes/{id}/rewindscope sandboxes:writeidrequiredpath · stringSandbox id (sbx_…)
checkpoint_idrequiredstring—
200400401402403404409501502
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/rewind \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json