cURL
curl --request POST \ --url https://api.klavis.ai/local-sandbox/{local_sandbox_id}/upload-url \ --header 'Authorization: Bearer <token>'
{ "upload_url": "<string>", "expires_in_minutes": 123 }
Generates a signed URL to upload a tar.gz archive containing your workspace files. Once uploaded, use the /initialize endpoint to unpack it into the sandbox.
tar.gz
/initialize
Your Klavis AI API key.
The local sandbox identifier
Successful Response
Response for the upload URL endpoint.
Signed GCS URL to PUT the tar.gz archive to
Minutes until the upload URL expires