Skip to main content
GET
/
secrets
Get Box secrets setup
curl --request GET \
  --url https://ascii.dev/api/box/v1/secrets \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "type": "secrets.info",
  "environmentId": "env_123",
  "envContents": "OPENAI_API_KEY=sk-...\n",
  "secretFiles": [
    {
      "path": ".config/service-account.json",
      "contents": "{\"type\":\"service_account\"}"
    }
  ]
}

Authorizations

Authorization
string
header
required

Box API key in the form box_.... Create and rotate keys in the Box dashboard or through the v1 API key endpoints.

Response

Current secret setup metadata.

ok
boolean
required
Example:

true

type
string
required

Stable success envelope discriminator added by v1.

environmentId
string
required
envContents
string
required
secretFiles
object[]
required
success
boolean
pushed
object

Present on update; counts how many active Boxes received the new environment.