Brume · Docs
API

Vue d’ensemble

Référence OpenAPI générée pour le domaine « Vue d’ensemble ».

GET
/api/tenants/domain/{hostname}

Resolve a public custom hostname to its tenant branding identity.

This read-only lookup returns the tenant slug, name, and white-label status, and reports a localized not-found error for an unknown domain.

Path Parameters

hostname*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/domain/string"
{  "is_whitelabel": true,  "name": "string",  "slug": "string"}
GET
/api/tenants/me/api-key-state

Report whether the current tenant has a key for the provider.

Returns only the tenant source marker and never credential material, so no key-management permission is required. Raises unauthorized when the request lacks tenant context.

Query Parameters

provider?string
Default"anthropic"

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/me/api-key-state"
{  "provider": "string",  "source": "string"}
GET
/api/tenants/me/setup-status

Return non-secret readiness signals for the current tenant.

Reports gateway, token, LLM-key, credit, and aggregate configuration state for onboarding without requiring key-management permission. May query the injected credit probe and raises unauthorized without tenant context.

Response Body

application/json

curl -X GET "https://example.com/api/tenants/me/setup-status"
{  "configured": true,  "gateway_available": true,  "has_credits": true,  "has_gateway_token": true,  "has_llm_key": true}
GET
/api/tenants/me/wallet-config

Return the non-secret wallet configuration visible to tenant members.

The handler performs a read-only database lookup; database errors propagate to the caller.

Response Body

application/json

curl -X GET "https://example.com/api/tenants/me/wallet-config"
{  "byok_allowed": true,  "is_brume_cloud": true,  "wallet_label": "string"}
GET
/api/tenants/mine

List tenants where the authenticated user has an active membership.

This read-only query returns tenant identifiers, names, and slugs ordered by name; invalid user identifiers propagate as request-processing errors.

Response Body

application/json

curl -X GET "https://example.com/api/tenants/mine"
[  {    "id": "string",    "name": "string",    "slug": "string"  }]
GET
/api/tenants/slug/{slug}

Check a public slug and suggest an unused variant when it is occupied.

This read-only lookup distinguishes reserved slugs from existing tenants and returns availability metadata without modifying tenant records.

Path Parameters

slug*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/slug/string"
{  "available": true,  "exists": false,  "suggestion": "string"}
GET
/api/tenants/{path_tenant_id}/gateway-balance
  • GATEWAY_BASE_URL absent → {"configured": False}.
  • No default profile / no ledger entry with a gateway token → {"configured": False}.
  • Else {"configured": True, "balance_eur", "name", "status"} ; on remote failure → {"configured": True, "error": "unreachable"}.

Path Parameters

path_tenant_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/gateway-balance"
{}
GET
/api/tenants/{slug}/favicon

Serve the configured tenant favicon with its stored media type.

This read-only endpoint returns cached binary content and reports a localized not-found error when no usable favicon is configured.

Path Parameters

slug*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/favicon"
null
GET
/api/tenants/{slug}/logo

Serve the configured tenant logo with its stored media type.

This read-only endpoint returns cached binary content and reports a localized not-found error when no usable logo is configured.

Path Parameters

slug*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/logo"
null
GET
/api/tenants/{slug}/theme

Return public theme and branding metadata for a tenant slug.

This read-only lookup supplies default empty theme data when no theme is configured and reports a localized not-found error for an unknown tenant.

Path Parameters

slug*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/tenants/string/theme"
{  "brand_name": "string",  "dark_theme": {    "property1": null,    "property2": null  },  "favicon_url": "string",  "logo_url": "string",  "tenant_name": "string",  "theme": {    "property1": null,    "property2": null  }}