Initialize sandbox from your uploaded data
curl --request POST \
--url https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sandbox_id": "<string>",
"status": "idle",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Local Sandbox
Initialize sandbox from your uploaded data
Extracts the uploaded tar.gz archive into the sandbox workspace. This must be called after successfully uploading the file using the URL from /upload-url.
POST
/
local-sandbox
/
{local_sandbox_id}
/
initialize
Initialize sandbox from your uploaded data
curl --request POST \
--url https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/local-sandbox/{local_sandbox_id}/initialize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sandbox_id": "<string>",
"status": "idle",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Your Klavis AI API key.
Path Parameters
The local sandbox identifier
Query Parameters
GCS bucket region where the archive was uploaded. Must match the region used in the /upload-url call. Defaults to 'us'.
Available options:
us, asia 