Get presigned download URLs for checkpoint restoration.
Used when restoring a checkpoint that doesn’t exist locally (e.g., after cloning a repo on a new machine). Returns URLs for both the HEAD bundle (if the checkpoint was based on a HEAD commit) and the checkpoint bundle.
Supports two checkpoint formats:
The checkpoint metadata is looked up from the database (stored when the checkpoint was originally synced). If head_sha is present, both bundles are needed; otherwise only the checkpoint bundle.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request for presigned download URLs to restore a checkpoint.
The checkpoint_id is used to look up the checkpoint metadata from the database (worktree.checkpoint_metadata), which contains the head_sha needed to download the HEAD bundle.
Successful Response
Response containing presigned download URLs for checkpoint restoration.
To restore a checkpoint remotely:
For checkpoints created in empty repos (no HEAD), head_bundle_url will be null.