curl --request POST \
--url https://api.blaxel.ai/v0/sandboxes/{sandboxName}/previews/{previewName}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"metadata": {
"name": "<string>",
"previewName": "<string>",
"resourceName": "<string>",
"resourceType": "<string>",
"workspace": "<string>"
},
"spec": {
"expired": true,
"expiresAt": "<string>",
"token": "<string>"
}
}'
{
"metadata": {
"name": "<string>",
"previewName": "<string>",
"resourceName": "<string>",
"resourceType": "<string>",
"workspace": "<string>"
},
"spec": {
"expired": true,
"expiresAt": "<string>",
"token": "<string>"
}
}
Creates a token for a Sandbox Preview.
curl --request POST \
--url https://api.blaxel.ai/v0/sandboxes/{sandboxName}/previews/{previewName}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"metadata": {
"name": "<string>",
"previewName": "<string>",
"resourceName": "<string>",
"resourceType": "<string>",
"workspace": "<string>"
},
"spec": {
"expired": true,
"expiresAt": "<string>",
"token": "<string>"
}
}'
{
"metadata": {
"name": "<string>",
"previewName": "<string>",
"resourceName": "<string>",
"resourceType": "<string>",
"workspace": "<string>"
},
"spec": {
"expired": true,
"expiresAt": "<string>",
"token": "<string>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Name of the Sandbox
Name of the Preview
Token for a Preview
successful operation
Token for a Preview
Was this page helpful?