Brume · Docs
API

Superadmin

Super-admin operations across every tenant.

GET
/api/superadmin/upstream

Return the upstream URL and redacted credential state to a superadmin.

The stored API key is never returned; only its non-secret hint is exposed.

Response Body

application/json

curl -X GET "https://example.com/api/superadmin/upstream"
{}
PUT
/api/superadmin/upstream

Validate, persist, and audit a superadmin upstream configuration update.

The URL must be non-empty and replacement keys must use the brm_ prefix. Omitting a key preserves the encrypted credential, and the response exposes only its non-secret hint.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/api/superadmin/upstream" \  -H "Content-Type: application/json" \  -d '{    "upstream_gateway_url": "string"  }'
{}