User login
Authenticates using email and password. If the user belongs to a single tenant, returns a JWT immediately. If the user has multiple tenants, returns the tenant list (no token). Provide tenant_id to select a specific tenant.
Request Body required
Section titled “Request Body required ”Request to authenticate (login).
object
User email address.
User password.
Optional tenant_id to select when user has multiple memberships.
Example
{ "password": "s3cur3-p4ssw0rd"}Responses
Section titled “ Responses ”Login response
Login response - either a token (single/selected tenant) or a tenant list.
object
The JWT access token (null if tenant selection required).
Token lifetime in seconds (when access_token is present).
List of tenants the user belongs to.
Summary of a tenant the user belongs to.
object
Example
{ "role": "admin", "short_name": "acme-corp", "tenant_id": "7c3e9f01-d47a-4e2b-b60a-8f9a3c5d7e12"}Token type (always “Bearer” when access_token is present).
Example
{ "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...", "expires_in": 3600, "tenants": [ { "role": "admin", "short_name": "acme-corp", "tenant_id": "7c3e9f01-d47a-4e2b-b60a-8f9a3c5d7e12" } ], "token_type": "Bearer"}Invalid credentials
Unified error response body for all endpoints.
object
Optional machine-readable error code.
Human-readable error message.
Server error
Unified error response body for all endpoints.
object
Optional machine-readable error code.
Human-readable error message.