The API segments resources per tenant
. A tenant represents a user/team/organization in your product. The provided value determines the tenant's ID, which can be any string representation.
If your system is not multi-tenant, create a single tenant with a hard-code tenant ID upon initialization. If your system has a single tenant but multiple environments, create a tenant per environment, like live
and test
.
Get Tenant
Retrieves details for a specific tenant.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
Responses
id
stringUser-defined system ID for the tenant.
destinations_count
integerNumber of destinations associated with the tenant.
topics
string[]List of subscribed topics across all destinations for this tenant.
created_at
string · date-timeISO Date when the tenant was created.
Create or Update Tenant
Idempotently creates or updates a tenant. Required before associating destinations.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
Responses
id
stringUser-defined system ID for the tenant.
destinations_count
integerNumber of destinations associated with the tenant.
topics
string[]List of subscribed topics across all destinations for this tenant.
created_at
string · date-timeISO Date when the tenant was created.
Get Portal Redirect URL
Returns a redirect URL containing a JWT to authenticate the user with the portal.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
query Parameters
theme
string · enumOptional theme preference for the portal.
Enum values:lightdark
Responses
redirect_url
string · urlRedirect URL containing a JWT to authenticate the user with the portal.
Get Tenant JWT Token
Get Portal Redirect URL (JWT Auth Context)
Returns a redirect URL containing a JWT to authenticate the user with the portal (infers tenant from JWT). Requires Admin API Key.
query Parameters
theme
string · enumOptional theme preference for the portal.
Enum values:lightdark
Responses
redirect_url
string · urlRedirect URL containing a JWT to authenticate the user with the portal.