Secrets

Delete a secret by it's Id

DEL
Deletes a specific Secret from the Environment or Space as is the case

Path parameters

secretIdstringRequired
The ID of the secret.

Response

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

Errors

DEL
$curl -X DELETE https://api.x.flatfile.com/v1/secrets/us_sec_YOUR_ID \
> -H "Authorization: Bearer <token>"
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}