List secrets for an environment
Secrets are encrypted at rest. This endpoint returns each value encrypted, not as plain text.
To read the plain values, send the name and value of the secrets you need to POST /v1/decrypt:
API key scope: env.read
Team role permission: env.read
Authorizations
API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.
Path Parameters
ID of the project.
^[a-fA-F0-9]{24}$PREVIEW for secrets used by preview deployments; any other value means production. Use the path without this segment for production.
PRODUCTION, PREVIEW Query Parameters
Also return variables shared by the project's environment, marked with source: environment.
Accepted for compatibility. Every secret is returned.
Accepted for compatibility. Every secret is returned.
Accepted for compatibility. Secrets are always sorted by name.