Secrets (env. scope)
Bulk delete
Delete multiple secrets.
Delete multiple secrets.
Request Body
application/json
The list of secrets (keys) to delete.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/environment/secrets/delete" \ -H "Content-Type: application/json" \ -d '[ "string" ]'{
"deleted_count": 10,
"not_found_secrets": [
"OPENAI_API_KEY",
"OPENAI_API_SECRET"
]
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}Bulk create POST
Create new secrets in the current environment from the authenticated environment account API key. The secrets cannot be created if they already exist.
Bulk set (upsert) PUT
Create or update secrets in the selected environment. The secret will be updated if it already exists or created if it does not exist.