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 secrets in the active organization’s namespace (defaults to the user’s personal org). If deployment_id is provided, the deployment’s org namespace is listed and the result contains the secrets that deployment can consume: its own deployment-scoped secrets plus the org-wide (unscoped) ones. Other deployments’ scoped secrets are excluded.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
SecretListResponse
object
Examplegenerated
{ "secrets": [ { "name": "example", "key": "example", "deployment_id": "example", "database_id": "example", "organization_id": "example" } ], "total": 1}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}