POST
/
sandboxes
/
{sandboxName}
/
previews
/
{previewName}
/
tokens
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>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sandboxName
string
required

Name of the Sandbox

previewName
string
required

Name of the Preview

Body

application/json

Token for a Preview

Response

200 - application/json
successful operation

Token for a Preview