Overview
Tenant identity and summary state.
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
Response Body
application/json
application/json
curl -X GET "https://example.com/api/tenants/domain/string"{ "is_whitelabel": true, "name": "string", "slug": "string"}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
"anthropic"Response Body
application/json
application/json
curl -X GET "https://example.com/api/tenants/me/api-key-state"{ "provider": "string", "source": "string"}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}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"}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" }]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
Response Body
application/json
application/json
curl -X GET "https://example.com/api/tenants/slug/string"{ "available": true, "exists": false, "suggestion": "string"}- 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
Response Body
application/json
application/json
curl -X GET "https://example.com/api/tenants/string/gateway-balance"{}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
Response Body
application/json
application/json
curl -X GET "https://example.com/api/tenants/string/favicon"nullServe 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
Response Body
application/json
application/json
curl -X GET "https://example.com/api/tenants/string/logo"nullReturn 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
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 }}