Secrets
Search project secrets
Search for secrets in a project by exact name or value.
Search for secrets in a project by exact name or value.
Path Parameters
project_identifier*string
The name or ID of the project.
Query Parameters
name?string
The name of the secret to search for. Required if 'value' is not provided. Cannot be used with 'value'.
value?string
The value of the secret to search for. Maximum secret value size: 16 KB. Required if 'name' is not provided. Cannot be used with 'name'.
include_value?boolean
Return the actual values of the secrets in the response. Only applicable if searching by name. If include_value is not provided, the properties 'secretValue' will be null.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/projects/string/secrets/search"[
{
"secret_value": "3000",
"environments": [
{
"name": "app_1-dev",
"id": "env_oyq9JCyu5QCCds4EpkePyp"
},
{
"name": "app_1-dev",
"id": "env_2vKmcBluEENNfFKtXzrHBS"
}
]
},
{
"secret_value": "6000",
"environments": [
{
"name": "api-dev",
"id": "env_a2kKcBluEENNfFKtXzrHBS"
}
]
}
]{
"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
}
}
}