List Secrets
GET
/secrets
const url = 'https://api.mengi.cloud/secrets';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.mengi.cloud/secretsList all secrets for the current user by querying OpenBao directly.
If deployment_id is provided, only secrets for that deployment are returned.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
SecretListResponse
object
Example generated
{ "secrets": [ { "name": "example", "key": "example", "deployment_id": "example" } ], "total": 1}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}