---
title: "Get Box secrets setup"
method: GET
path: "/secrets"
tags: ["Box"]
---

# Get Box secrets setup

`GET /secrets`

Returns the environment variables and secret files configured for Boxes.

## Response `200`

Current secret setup metadata.

- SecretsResponse
  - `ok` boolean, required
  - `type` string, required — Stable success envelope discriminator added by v1.
  - `success` boolean
  - `environmentId` string, required
  - `envContents` string, required
  - `secretFiles` SecretFile[], required
    - `path` string, required
    - `contents` string, required — Secret file contents. Treat as sensitive.
  - `pushed` object — Present on update; counts how many active Boxes received the new environment.

## Other responses

- `401` — Missing or invalid bearer token.

---

[API](https://skmtc.dev/ascii/apis/box-public-api-v1.md) · [All operations](https://skmtc.dev/ascii/apis/box-public-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ascii/box-public-api-v1/revisions/82d576f82046/schema)
