Secrets

List secrets

GET
Fetch all secrets for a given environmentId and optionally apply space overrides

Query parameters

environmentIdstringOptional
The Environment of the secret.
spaceIdstringOptional
The Space of the secret.

Response

This endpoint returns an object
data
list of objects
The value of a secret

Errors

GET
$curl -G https://api.x.flatfile.com/v1/secrets \
> -H "Authorization: Bearer <token>" \
> -d environmentId=us_env_YOUR_ID
Response
1{
2 "data": [
3 {
4 "id": "us_sec_YOUR_ID",
5 "name": "My Secret",
6 "value": "Sup3r$ecret\\/alue!",
7 "environmentId": "us_env_YOUR_ID",
8 "spaceId": "us_sp_YOUR_ID"
9 }
10 ]
11}