Skip to main content
POST
/
sandboxes
/
{sandbox_id}
/
secrets
Attach a secret to a sandbox
curl --request POST \
  --url https://api.superserve.ai/sandboxes/{sandbox_id}/secrets \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "env_key": "<string>",
  "secret_name": "<string>"
}
'
{
  "env_key": "<string>",
  "secret_name": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

sandbox_id
string<uuid>
required

The unique identifier of the sandbox.

Body

application/json
env_key
string
required

Environment variable the stand-in token is exposed under.

secret_name
string
required

Name of the team secret to bind.

Response

Secret attached

env_key
string
secret_name
string