A Auth API docs

Reference

API reference

Generated from the OpenAPI/Swagger definition that ships with the API (swagger.json). Base URL: http://localhost:8080/.

Authentication

SchemeInHeaderNotes
AdminApiKeyheaderX-Admin-API-KeyAdmin API Key for protected admin routes
ApiKeyAuthheaderAuthorizationType "Bearer" + your JWT token
AppApiKeyheaderX-App-API-KeyPer-application API Key for app-scoped routes
AppIDheaderX-App-IDThe UUID of the application context

2FA

POST/2fa/backup-email

Add backup email

Register a secondary email address for 2FA recovery (sends verification email)

NameInRequiredTypeDescription
requestbodyyesdto.AddBackupEmailRequestBackup email

Body

FieldTypeDescription
backup_email requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/2fa/backup-email

Remove backup email

Remove the backup email address from the user account

StatusDescriptionSchema
200OKdto.MessageResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/backup-email/disable

Disable backup email 2FA

Disable backup-email-based 2FA for the authenticated user. No verification code required — authentication alone is sufficient.

StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/backup-email/enable

Enable backup email 2FA

Enable backup-email-based 2FA for the authenticated user. The backup email must already be verified.

StatusDescriptionSchema
200OKdto.TwoFAEnableResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/backup-email/resend

Resend backup email 2FA code

Resend a new 2FA verification code to the user's backup email during login

NameInRequiredTypeDescription
resendbodyyesobjectTemporary login token

Body

FieldTypeDescription
temp_tokenstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/2fa/backup-email/status

Get backup email status

Return the current backup email address and whether it is verified

StatusDescriptionSchema
200OKdto.BackupEmailStatusResponse
401Unauthorizeddto.ErrorResponse
404Not Founddto.ErrorResponse

GET/2fa/backup-email/verify

Verify backup email

Confirm a backup email using the token from the verification email

NameInRequiredTypeDescription
tokenqueryyesstringVerification token
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse

POST/2fa/disable

Disable 2FA

Disable 2FA for the user (requires TOTP code or email 2FA code)

NameInRequiredTypeDescription
disablebodyyesdto.TwoFADisableRequestDisable 2FA Data

Body

FieldTypeDescription
code requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/email/enable

Enable email-based 2FA

Enable email-based 2FA for the user (sends codes to registered email)

StatusDescriptionSchema
200OKdto.TwoFAEnableResponse
400Bad Requestdto.ErrorResponse
403Forbiddendto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/email/resend

Resend email 2FA code

Resend a new 2FA verification code to the user's email during login

NameInRequiredTypeDescription
resendbodyyesobjectTemporary login token

Body

FieldTypeDescription
temp_tokenstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/enable

Enable 2FA

Enable 2FA for the user after successful verification

StatusDescriptionSchema
200OKdto.TwoFAEnableResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/generate

Generate 2FA setup

Generate a 2FA secret and QR code for user setup

StatusDescriptionSchema
200OKtwofa.TwoFASetupResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/login-verify

Verify 2FA during login

Verify the 2FA code during the login process (supports TOTP, email code, or recovery code)

NameInRequiredTypeDescription
verifybodyyesdto.TwoFALoginRequest2FA Login Data

Body

FieldTypeDescription
codestring
device_namestringHuman-readable label for the trusted device
methodstringMethod optionally forces how the submitted code is verified. Leave empty to use the user's primary 2FA method. "sms_recovery" verifies a one-time code sent to the user's verified phone number via POST /2fa/sms/recovery/send.
recovery_codestring
remember_devicebooleanWhen true, create a trusted device record
temp_token requiredstring
StatusDescriptionSchema
200OKdto.LoginResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/2fa/methods

Get available 2FA methods

Get the 2FA methods available for the current application

StatusDescriptionSchema
200OKdto.TwoFAMethodsResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/passkey/begin

Begin passkey 2FA verification

Start the WebAuthn assertion ceremony for 2FA verification during login

NameInRequiredTypeDescription
requestbodyyesdto.Passkey2FABeginRequestTemp token

Body

FieldTypeDescription
temp_token requiredstring
StatusDescriptionSchema
200OKdto.Passkey2FABeginResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/passkey/finish

Finish passkey 2FA verification

Complete the WebAuthn assertion ceremony for 2FA verification during login

NameInRequiredTypeDescription
requestbodyyesdto.Passkey2FAFinishRequestAssertion response

Body

FieldTypeDescription
credential requiredobject
temp_token requiredstring
StatusDescriptionSchema
200OKdto.LoginResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/recovery-codes

Generate new recovery codes

Generate and display new recovery codes (requires password and/or TOTP code)

NameInRequiredTypeDescription
verifybodyyesdto.TwoFAVerifyRequestTOTP Code

Body

FieldTypeDescription
code requiredstring
StatusDescriptionSchema
200OKdto.TwoFARecoveryCodesResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/sms/enable

Enable SMS-based 2FA

Enable SMS-based 2FA for the user (phone number must be verified first)

StatusDescriptionSchema
200OKdto.TwoFAEnableResponse
400Bad Requestdto.ErrorResponse
403Forbiddendto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/sms/recovery/send

Send an SMS recovery code

Send a one-time recovery code via SMS during login. This is a fallback for users whose primary 2FA method (e.g. an authenticator app) is unavailable. Requires: SMS 2FA enabled for the application, a configured SMS provider, 2FA active on the user, and a verified phone number. The code is valid for 5 minutes and must be submitted to POST /2fa/login-verify with method="sms_recovery".

NameInRequiredTypeDescription
recoverybodyyesobjectTemporary login token

Body

FieldTypeDescription
temp_tokenstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
403Forbiddendto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/2fa/sms/resend

Resend SMS 2FA code

Resend a new SMS 2FA verification code to the user's phone during login

NameInRequiredTypeDescription
resendbodyyesobjectTemporary login token

Body

FieldTypeDescription
temp_tokenstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/2fa/trusted-devices

List trusted devices

List all trusted devices for the authenticated user in the current app

StatusDescriptionSchema
200OKdto.TrustedDevicesListResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/2fa/trusted-devices

Revoke all trusted devices

Revoke all trusted devices for the authenticated user in the current app

StatusDescriptionSchema
200OKdto.MessageResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/2fa/trusted-devices/{id}

Revoke a trusted device

Revoke a specific trusted device by ID

NameInRequiredTypeDescription
idpathyesstringTrusted device UUID
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
403Forbiddendto.ErrorResponse
404Not Founddto.ErrorResponse

POST/2fa/verify-setup

Verify 2FA setup

Verify the initial 2FA setup with a TOTP code

NameInRequiredTypeDescription
setupbodyyesdto.TwoFAVerifyRequestTOTP Code

Body

FieldTypeDescription
code requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/phone

Add phone number

Register a phone number for SMS 2FA (sends verification SMS)

NameInRequiredTypeDescription
requestbodyyesdto.AddPhoneRequestPhone number

Body

FieldTypeDescription
phone_number requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/phone

Remove phone number

Remove the phone number from the user account

StatusDescriptionSchema
200OKdto.MessageResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/phone/status

Get phone number status

Return the current phone number and whether it is verified

StatusDescriptionSchema
200OKdto.PhoneStatusResponse
401Unauthorizeddto.ErrorResponse
404Not Founddto.ErrorResponse

POST/phone/verify

Verify phone number

Confirm a phone number using the code from the verification SMS

NameInRequiredTypeDescription
requestbodyyesdto.VerifyPhoneRequestVerification code

Body

FieldTypeDescription
code requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse

Activity Logs

GET/activity-logs

Get user activity logs

Retrieve the authenticated user's activity logs with pagination and filtering

NameInRequiredTypeDescription
pagequerynointegerPage number (default: 1)
limitquerynointegerItems per page (default: 20, max: 100)
event_typequerynostringFilter by event type
start_datequerynostringStart date filter (YYYY-MM-DD)
end_datequerynostringEnd date filter (YYYY-MM-DD)
StatusDescriptionSchema
200OKdto.ActivityLogListResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/activity-logs/event-types

Get available event types

Retrieve list of available activity log event types for filtering

StatusDescriptionSchema
200OKobject
401Unauthorizeddto.ErrorResponse

GET/activity-logs/export

Export user activity logs

Export the authenticated user's activity logs as CSV or JSON (max 10,000 rows). Use the X-Export-Truncated response header to detect if the result was capped.

NameInRequiredTypeDescription
formatquerynostringExport format: csv or json (default: json)
event_typequerynostringFilter by event type
start_datequerynostringStart date filter (YYYY-MM-DD)
end_datequerynostringEnd date filter (YYYY-MM-DD)
StatusDescriptionSchema
200CSV exportstring
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/activity-logs/{id}

Get activity log by ID

Retrieve a specific activity log by ID (users can only access their own logs)

NameInRequiredTypeDescription
idpathyesstringActivity Log ID
StatusDescriptionSchema
200OKdto.ActivityLogResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
403Forbiddendto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/activity-logs

Get all activity logs (Admin)

Retrieve all users' activity logs with pagination and filtering (admin access required)

NameInRequiredTypeDescription
pagequerynointegerPage number (default: 1)
limitquerynointegerItems per page (default: 20, max: 100)
event_typequerynostringFilter by event type
start_datequerynostringStart date filter (YYYY-MM-DD)
end_datequerynostringEnd date filter (YYYY-MM-DD)
StatusDescriptionSchema
200OKdto.ActivityLogListResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
403Forbiddendto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/activity-logs/export

Export all activity logs (Admin)

Export all users' activity logs as CSV or JSON (max 10,000 rows). Use the X-Export-Truncated response header to detect if the result was capped.

NameInRequiredTypeDescription
formatquerynostringExport format: csv or json (default: json)
event_typequerynostringFilter by event type
start_datequerynostringStart date filter (YYYY-MM-DD)
end_datequerynostringEnd date filter (YYYY-MM-DD)
StatusDescriptionSchema
200CSV exportstring
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Admin

POST/admin/apps

Create a new application

Register a new application under a specific tenant

NameInRequiredTypeDescription
appbodyyesdto.CreateAppRequestApplication Creation Data

Body

FieldTypeDescription
descriptionstring
frontend_urlstring
magic_link_enabledboolean
magic_link_pathstring
name requiredstring
reset_password_pathstringEmail Action Link Paths (optional; empty = use system defaults)
tenant_id requiredstring
verify_email_pathstring
StatusDescriptionSchema
201Createddto.AppResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/apps/{id}

Get application details

Retrieve details of a specific application including OAuth configurations

NameInRequiredTypeDescription
idpathyesstringApplication ID
StatusDescriptionSchema
200OKdto.AppResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse

POST/admin/apps/{id}/oauth-config

Set OAuth configuration

Configure OAuth provider credentials (Google, GitHub, etc.) for an application

NameInRequiredTypeDescription
idpathyesstringApplication ID
configbodyyesdto.UpsertOAuthConfigRequestOAuth Config Data

Body

FieldTypeDescription
client_id requiredstring
client_secret requiredstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
provider requiredstringe.g., "google", "github"
redirect_url requiredstring
StatusDescriptionSchema
200OKdto.OAuthConfigResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/tenants

List all tenants

Retrieve a paginated list of all tenants

NameInRequiredTypeDescription
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKobject
500Internal Server Errordto.ErrorResponse

POST/admin/tenants

Create a new tenant

Register a new tenant organization in the system

NameInRequiredTypeDescription
tenantbodyyesdto.CreateTenantRequestTenant Creation Data

Body

FieldTypeDescription
name requiredstring
StatusDescriptionSchema
201Createddto.TenantResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/users/{id}/trusted-devices

List trusted devices for a user

Returns all trusted devices registered by a specific user across all apps

NameInRequiredTypeDescription
idpathyesstringUser UUID
StatusDescriptionSchema
200OKdto.TrustedDevicesListResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/users/{id}/trusted-devices

Revoke all trusted devices for a user

Removes all trusted devices for a user, forcing full 2FA on all devices

NameInRequiredTypeDescription
idpathyesstringUser UUID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/users/{id}/trusted-devices/{device_id}

Revoke a trusted device

Removes a specific trusted device, forcing the user to re-authenticate with 2FA on that device

NameInRequiredTypeDescription
idpathyesstringUser UUID
device_idpathyesstringTrusted Device UUID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Webhooks

GET/admin/apps/{app_id}/webhook-deliveries

List all delivery logs for an app (admin)

Get paginated delivery history for all webhook endpoints of an application

NameInRequiredTypeDescription
app_idpathyesstringApplication ID
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKdto.WebhookDeliveryListResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/apps/{app_id}/webhooks

List webhook endpoints for an app (admin)

Returns all webhook endpoints registered for the given application

NameInRequiredTypeDescription
app_idpathyesstringApplication ID
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKdto.WebhookEndpointListResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/apps/{app_id}/webhooks

Create webhook endpoint (admin)

Register a new webhook endpoint for an application. Returns the secret only once.

NameInRequiredTypeDescription
app_idpathyesstringApplication ID
requestbodyyesdto.CreateWebhookRequestWebhook endpoint details

Body

FieldTypeDescription
event_type requiredstring
url requiredstring
StatusDescriptionSchema
201Createddto.CreateWebhookResponse
400Bad Requestdto.ErrorResponse
409Conflictdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/webhooks

List all webhook endpoints (admin)

Returns all registered webhook endpoints across all applications

NameInRequiredTypeDescription
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKdto.WebhookEndpointListResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/webhooks/{id}

Delete webhook endpoint (admin)

Soft-delete a webhook endpoint

NameInRequiredTypeDescription
idpathyesstringWebhook Endpoint ID
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/webhooks/{id}/deliveries

List delivery logs for endpoint (admin)

Get paginated delivery history for a specific webhook endpoint

NameInRequiredTypeDescription
idpathyesstringWebhook Endpoint ID
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKdto.WebhookDeliveryListResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

PUT/admin/webhooks/{id}/toggle

Toggle webhook endpoint active state (admin)

Enable or disable a webhook endpoint

NameInRequiredTypeDescription
idpathyesstringWebhook Endpoint ID
requestbodyyesdto.ToggleWebhookRequestActive state

Body

FieldTypeDescription
is_activeboolean
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/app/{id}/webhooks

List webhook endpoints (app API)

Returns all webhook endpoints for this application

NameInRequiredTypeDescription
idpathyesstringApplication ID
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKdto.WebhookEndpointListResponse
400Bad Requestdto.ErrorResponse

POST/app/{id}/webhooks

Create webhook endpoint (app API)

Register a new webhook endpoint for this application. Returns the secret only once.

NameInRequiredTypeDescription
idpathyesstringApplication ID
requestbodyyesdto.CreateWebhookRequestWebhook endpoint details

Body

FieldTypeDescription
event_type requiredstring
url requiredstring
StatusDescriptionSchema
201Createddto.CreateWebhookResponse
400Bad Requestdto.ErrorResponse
409Conflictdto.ErrorResponse

DELETE/app/{id}/webhooks/{endpoint_id}

Delete webhook endpoint (app API)

NameInRequiredTypeDescription
idpathyesstringApplication ID
endpoint_idpathyesstringWebhook Endpoint ID
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse

GET/app/{id}/webhooks/{endpoint_id}/deliveries

List webhook delivery logs (app API)

NameInRequiredTypeDescription
idpathyesstringApplication ID
endpoint_idpathyesstringWebhook Endpoint ID
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKdto.WebhookDeliveryListResponse
400Bad Requestdto.ErrorResponse

PUT/app/{id}/webhooks/{endpoint_id}/toggle

Toggle webhook endpoint (app API)

NameInRequiredTypeDescription
idpathyesstringApplication ID
endpoint_idpathyesstringWebhook Endpoint ID
requestbodyyesdto.ToggleWebhookRequestActive state

Body

FieldTypeDescription
is_activeboolean
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse

Admin - Email

GET/admin/apps/{id}/email-config

Get default SMTP config for application

Retrieve the default SMTP server configuration for an application

NameInRequiredTypeDescription
idpathyesstringApplication ID
StatusDescriptionSchema
200OKdto.EmailServerConfigResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse

PUT/admin/apps/{id}/email-config

Save SMTP config for application

Create or update an SMTP server configuration for an application

NameInRequiredTypeDescription
idpathyesstringApplication ID
configbodyyesdto.EmailServerConfigRequestSMTP Config

Body

FieldTypeDescription
from_address requiredstring
from_namestring
is_activeboolean
is_defaultboolean
namestring
smtp_host requiredstring
smtp_passwordstring#nosec G101 -- This is a DTO field
smtp_port requiredinteger
smtp_usernamestring
use_tlsboolean
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/apps/{id}/email-config

Delete SMTP configs for application

Remove all SMTP server configurations for an application (falls back to global)

NameInRequiredTypeDescription
idpathyesstringApplication ID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/apps/{id}/email-test

Send test email (app-scoped)

Send a test email to verify the default SMTP configuration for an application

NameInRequiredTypeDescription
idpathyesstringApplication ID
requestbodyyesdto.EmailTestRequestTest Email Data

Body

FieldTypeDescription
to_email requiredstring
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/apps/{id}/send-email

Send an email

Send an email of the specified type using app's SMTP config and templates

NameInRequiredTypeDescription
idpathyesstringApplication ID
requestbodyyesdto.SendEmailRequestSend Email Data

Body

FieldTypeDescription
to_email requiredstring
type_code requiredstring
variablesobject
StatusDescriptionSchema
200OKdto.SendEmailResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/email-templates

List email templates

Retrieve email templates for a specific app or global defaults

NameInRequiredTypeDescription
app_idquerynostringApplication ID (omit for global defaults)
StatusDescriptionSchema
200OKarray<dto.EmailTemplateResponse>
500Internal Server Errordto.ErrorResponse

POST/admin/email-templates

Save email template

Create or update an email template for a specific app or as global default

NameInRequiredTypeDescription
app_idquerynostringApplication ID (omit for global default)
email_type_idqueryyesstringEmail Type ID
templatebodyyesdto.EmailTemplateRequestTemplate Data

Body

FieldTypeDescription
body_htmlstring
body_textstring
from_emailstring
from_namestring
is_activeboolean
name requiredstring
server_config_idstring
subject requiredstring
template_engine requiredstring
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/email-templates/preview

Preview email template

Render a template with sample variables for preview

NameInRequiredTypeDescription
previewbodyyesdto.EmailPreviewRequestPreview Data

Body

FieldTypeDescription
body_htmlstring
body_textstring
subject requiredstring
template_engine requiredstring
variablesobject
StatusDescriptionSchema
200OKdto.EmailPreviewResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/email-templates/{id}

Get email template

Retrieve a specific email template by ID

NameInRequiredTypeDescription
idpathyesstringTemplate ID
StatusDescriptionSchema
200OKdto.EmailTemplateResponse
404Not Founddto.ErrorResponse

DELETE/admin/email-templates/{id}

Delete email template

Remove an email template by ID

NameInRequiredTypeDescription
idpathyesstringTemplate ID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/email-types

List all email types

Retrieve all registered email types

StatusDescriptionSchema
200OKarray<dto.EmailTypeResponse>
500Internal Server Errordto.ErrorResponse

POST/admin/email-types

Create a custom email type

Register a new custom email type for use in templates

NameInRequiredTypeDescription
emailTypebodyyesdto.CreateEmailTypeRequestEmail Type Data

Body

FieldTypeDescription
code requiredstring
default_subjectstring
descriptionstring
name requiredstring
variablesarray<dto.EmailTypeVariableResponse>
StatusDescriptionSchema
201Createddto.EmailTypeResponse
400Bad Requestdto.ErrorResponse
409Conflictdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/email-types/{code}

Get email type by code

Retrieve a specific email type by its code

NameInRequiredTypeDescription
codepathyesstringEmail Type Code
StatusDescriptionSchema
200OKdto.EmailTypeResponse
404Not Founddto.ErrorResponse

PUT/admin/email-types/{id}

Update an email type

Update an existing email type's name, description, subject, or variables

NameInRequiredTypeDescription
idpathyesstringEmail Type ID
emailTypebodyyesdto.UpdateEmailTypeRequestEmail Type Update Data

Body

FieldTypeDescription
default_subjectstring
descriptionstring
is_activeboolean
namestring
variablesarray<dto.EmailTypeVariableResponse>
StatusDescriptionSchema
200OKdto.EmailTypeResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/email-types/{id}

Delete a custom email type

Delete a custom email type (system types cannot be deleted)

NameInRequiredTypeDescription
idpathyesstringEmail Type ID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/email-variables

List well-known email template variables

Returns all variables that the system can automatically resolve from user profiles, app settings, or that must be passed explicitly. Use this as a reference when adding variables to email types.

StatusDescriptionSchema
200OKarray<dto.EmailTypeVariableResponse>

Admin - Email Servers

GET/admin/apps/{id}/email-servers

List SMTP configs for application

Retrieve all SMTP server configurations for a specific application

NameInRequiredTypeDescription
idpathyesstringApplication ID
StatusDescriptionSchema
200OKarray<dto.EmailServerConfigResponse>
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/email-servers

List all SMTP configs

Retrieve all SMTP server configurations across all applications

StatusDescriptionSchema
200OKarray<dto.EmailServerConfigResponse>
500Internal Server Errordto.ErrorResponse

POST/admin/email-servers

Create SMTP config

Create a new SMTP server configuration for an application

NameInRequiredTypeDescription
app_idqueryyesstringApplication ID
configbodyyesdto.EmailServerConfigRequestSMTP Config

Body

FieldTypeDescription
from_address requiredstring
from_namestring
is_activeboolean
is_defaultboolean
namestring
smtp_host requiredstring
smtp_passwordstring#nosec G101 -- This is a DTO field
smtp_port requiredinteger
smtp_usernamestring
use_tlsboolean
StatusDescriptionSchema
201Createdobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/email-servers/{id}

Get SMTP config by ID

Retrieve a specific SMTP server configuration by its ID

NameInRequiredTypeDescription
idpathyesstringConfig ID
StatusDescriptionSchema
200OKdto.EmailServerConfigResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse

PUT/admin/email-servers/{id}

Update SMTP config

Update an existing SMTP server configuration by its ID

NameInRequiredTypeDescription
idpathyesstringConfig ID
configbodyyesdto.EmailServerConfigRequestSMTP Config

Body

FieldTypeDescription
from_address requiredstring
from_namestring
is_activeboolean
is_defaultboolean
namestring
smtp_host requiredstring
smtp_passwordstring#nosec G101 -- This is a DTO field
smtp_port requiredinteger
smtp_usernamestring
use_tlsboolean
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/email-servers/{id}

Delete SMTP config by ID

Remove a specific SMTP server configuration by its ID

NameInRequiredTypeDescription
idpathyesstringConfig ID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/email-servers/{id}/test

Send test email by config ID

Send a test email to verify a specific SMTP configuration

NameInRequiredTypeDescription
idpathyesstringConfig ID
requestbodyyesdto.EmailTestRequestTest Email Data

Body

FieldTypeDescription
to_email requiredstring
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Admin - IP Rules

GET/admin/apps/{id}/ip-rules

List IP rules for an application

Retrieve all IP access rules (allow/block) for a specific application

NameInRequiredTypeDescription
idpathyesstringApplication ID
include_inactivequerynobooleanInclude inactive rules
StatusDescriptionSchema
200OKdto.IPRuleListResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/apps/{id}/ip-rules

Create an IP rule

Add a new IP access rule (allow or block) for a specific application

NameInRequiredTypeDescription
idpathyesstringApplication ID
requestbodyyesdto.IPRuleCreateRequestIP rule data

Body

FieldTypeDescription
descriptionstring
is_activeboolean
match_type requiredstring
rule_type requiredstring
value requiredstring
StatusDescriptionSchema
201Createddto.IPRuleResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/apps/{id}/ip-rules/check

Check IP access

Evaluate whether a specific IP address is allowed to access an application based on its IP rules

NameInRequiredTypeDescription
idpathyesstringApplication ID
requestbodyyesdto.IPAccessCheckRequestIP address to check

Body

FieldTypeDescription
ip_address requiredstring
StatusDescriptionSchema
200OKdto.IPAccessCheckResponse
400Bad Requestdto.ErrorResponse
503Service Unavailabledto.ErrorResponse

GET/admin/apps/{id}/ip-rules/{rule_id}

Get an IP rule

Retrieve a specific IP access rule by its ID

NameInRequiredTypeDescription
idpathyesstringApplication ID
rule_idpathyesstringIP Rule ID
StatusDescriptionSchema
200OKdto.IPRuleResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse

PUT/admin/apps/{id}/ip-rules/{rule_id}

Update an IP rule

Update an existing IP access rule by its ID

NameInRequiredTypeDescription
idpathyesstringApplication ID
rule_idpathyesstringIP Rule ID
requestbodyyesdto.IPRuleUpdateRequestUpdated IP rule data

Body

FieldTypeDescription
descriptionstring
is_activeboolean
match_typestring
rule_typestring
valuestring
StatusDescriptionSchema
200OKdto.IPRuleResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/apps/{id}/ip-rules/{rule_id}

Delete an IP rule

Remove an IP access rule by its ID

NameInRequiredTypeDescription
idpathyesstringApplication ID
rule_idpathyesstringIP Rule ID
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Admin OIDC

GET/admin/oidc/apps/{id}/clients

List OIDC clients for an app

NameInRequiredTypeDescription
idpathyesstringApplication UUID
StatusDescriptionSchema
200OKarray<dto.OIDCClientResponse>

POST/admin/oidc/apps/{id}/clients

Create an OIDC client

NameInRequiredTypeDescription
idpathyesstringApplication UUID
requestbodyyesdto.CreateOIDCClientRequestClient data

Body

FieldTypeDescription
allowed_grant_types requiredstringcomma-separated
allowed_scopes requiredstringcomma-separated
descriptionstring
is_confidentialboolean
login_primary_colorstringLoginPrimaryColor overrides Bootstrap's default primary color (e.g. "#4f46e5"). Empty = Bootstrap default.
login_themestringLoginTheme controls the color scheme of OIDC pages: "app" (inherit from Application), "auto" (default, follow OS preference), "light", or "dark".
logo_urlstring
name requiredstring
pkce_requiredboolean
redirect_uris requiredstringJSON array string, e.g. '["https://app.example.com/cb"]'
require_consentboolean
StatusDescriptionSchema
201Createddto.OIDCClientResponse

GET/admin/oidc/apps/{id}/clients/{cid}

Get a single OIDC client

NameInRequiredTypeDescription
idpathyesstringApplication UUID
cidpathyesstringClient UUID
StatusDescriptionSchema
200OKdto.OIDCClientResponse

PUT/admin/oidc/apps/{id}/clients/{cid}

Update an OIDC client

NameInRequiredTypeDescription
idpathyesstringApplication UUID
cidpathyesstringClient UUID
requestbodyyesdto.UpdateOIDCClientRequestUpdate data

Body

FieldTypeDescription
allowed_grant_typesstring
allowed_scopesstring
descriptionstring
is_activeboolean
is_confidentialboolean
login_primary_colorstringLoginPrimaryColor overrides Bootstrap's default primary color. Empty = Bootstrap default.
login_themestringLoginTheme controls the color scheme of OIDC pages: "app" (inherit from Application), "auto", "light", or "dark".
logo_urlstring
namestring
pkce_requiredboolean
redirect_urisstring
require_consentboolean
StatusDescriptionSchema
200OKdto.OIDCClientResponse

DELETE/admin/oidc/apps/{id}/clients/{cid}

Delete an OIDC client

NameInRequiredTypeDescription
idpathyesstringApplication UUID
cidpathyesstringClient UUID
StatusDescriptionSchema
204No Content

POST/admin/oidc/apps/{id}/clients/{cid}/rotate-secret

Rotate client secret

NameInRequiredTypeDescription
idpathyesstringApplication UUID
cidpathyesstringClient UUID
StatusDescriptionSchema
200OKdto.OIDCClientResponse

Admin - RBAC

GET/admin/rbac/permissions

List all permissions

Retrieve all available permissions in the system

StatusDescriptionSchema
200OKobject
500Internal Server Errordto.ErrorResponse

POST/admin/rbac/permissions

Create a permission

Create a new custom permission (resource:action pair)

NameInRequiredTypeDescription
permissionbodyyesdto.CreatePermissionRequestPermission Data

Body

FieldTypeDescription
action requiredstring
descriptionstring
resource requiredstring
StatusDescriptionSchema
201Createddto.PermissionResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/rbac/roles

List roles for an application

Retrieve all roles (including permissions) for a specific application

NameInRequiredTypeDescription
app_idqueryyesstringApplication ID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/rbac/roles

Create a new role

Create a custom role for an application

NameInRequiredTypeDescription
rolebodyyesdto.CreateRoleRequestRole Data

Body

FieldTypeDescription
app_id requiredstring
descriptionstring
name requiredstring
StatusDescriptionSchema
201Createddto.RoleResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/rbac/roles/{id}

Get role by ID

Retrieve a specific role with its permissions

NameInRequiredTypeDescription
idpathyesstringRole ID
StatusDescriptionSchema
200OKdto.RoleResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse

PUT/admin/rbac/roles/{id}

Update a role

Update a role's name and description (system roles cannot be renamed)

NameInRequiredTypeDescription
idpathyesstringRole ID
rolebodyyesdto.UpdateRoleRequestRole Update Data

Body

FieldTypeDescription
descriptionstring
name requiredstring
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/rbac/roles/{id}

Delete a role

Delete a custom role (system roles cannot be deleted)

NameInRequiredTypeDescription
idpathyesstringRole ID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

PUT/admin/rbac/roles/{id}/permissions

Set role permissions

Replace all permissions for a role with the specified permission IDs

NameInRequiredTypeDescription
idpathyesstringRole ID
permissionsbodyyesdto.SetRolePermissionsRequestPermission IDs

Body

FieldTypeDescription
permission_ids requiredarray<string>
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/rbac/user-roles

List user-role assignments

Retrieve all user-role assignments for a specific application with pagination

NameInRequiredTypeDescription
app_idqueryyesstringApplication ID
pagequerynointegerPage number
page_sizequerynointegerPage size
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/rbac/user-roles

Assign a role to a user

Assign a role to a user within an application

NameInRequiredTypeDescription
app_idqueryyesstringApplication ID
assignmentbodyyesdto.AssignRoleRequestAssignment Data

Body

FieldTypeDescription
role_id requiredstring
user_id requiredstring
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/admin/rbac/user-roles

Revoke a role from a user

Remove a role assignment from a user within an application

NameInRequiredTypeDescription
app_idqueryyesstringApplication ID
user_idqueryyesstringUser ID
role_idqueryyesstringRole ID
StatusDescriptionSchema
200OKobject
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/admin/rbac/user-roles/user

Get user's roles

Retrieve all roles assigned to a specific user in an application

NameInRequiredTypeDescription
app_idqueryyesstringApplication ID
user_idqueryyesstringUser ID
StatusDescriptionSchema
200OKdto.UserRolesResponse
400Bad Requestdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Users

GET/admin/users/export

Export users as CSV or JSON (Admin)

Export all users as CSV or JSON (max 10,000 rows). Optionally filter by app_id or search term. Use the X-Export-Truncated response header to detect if the result was capped at 10,000 rows.

NameInRequiredTypeDescription
formatquerynostringExport format: csv or json (default: csv)
app_idquerynostringFilter by application UUID
searchquerynostringFilter by email or name (case-insensitive)
StatusDescriptionSchema
200CSV exportstring
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/admin/users/import

Bulk import users from CSV or JSON (Admin)

Upload a CSV or JSON file to bulk-create users under a specific application. The app_id query parameter is required. Duplicate emails are skipped and reported. Imported users have no password — they must use the password reset flow to set one. CSV expected columns: email (required), name, first_name, last_name, locale (all optional). JSON: top-level array or {"users":[...]} object, same fields.

NameInRequiredTypeDescription
app_idqueryyesstringTarget application UUID
fileformDatayesfileCSV or JSON file to import
StatusDescriptionSchema
200OKdto.UserImportResult
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Public

GET/app-config/{app_id}

Get public login configuration for an app

Returns enabled social providers and OIDC availability for the login/register UI

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
StatusDescriptionSchema
200OKdto.AppLoginConfigResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse

social

GET/auth/facebook/callback

Facebook OAuth2 Callback

Handles Facebook OAuth2 callback and returns JWT tokens

NameInRequiredTypeDescription
statequeryyesstringState token
codequeryyesstringAuthorization code
StatusDescriptionSchema
200OKobject
400Bad Requestobject
401Unauthorizedobject
500Internal Server Errorobject

GET/auth/facebook/login

Facebook OAuth2 Login

Redirects user to Facebook OAuth2 login page

NameInRequiredTypeDescription
redirect_uriquerynostringFrontend callback URL
StatusDescriptionSchema
307Redirectstring

GET/auth/github/callback

GitHub OAuth2 Callback

Handles GitHub OAuth2 callback and returns JWT tokens

NameInRequiredTypeDescription
statequeryyesstringState token
codequeryyesstringAuthorization code
StatusDescriptionSchema
200OKobject
400Bad Requestobject
401Unauthorizedobject
500Internal Server Errorobject

GET/auth/github/login

GitHub OAuth2 Login

Redirects user to GitHub OAuth2 login page

NameInRequiredTypeDescription
redirect_uriquerynostringFrontend callback URL
StatusDescriptionSchema
307Redirectstring

GET/auth/google/callback

Google OAuth2 Callback

Handles Google OAuth2 callback and returns JWT tokens

NameInRequiredTypeDescription
statequeryyesstringState token
codequeryyesstringAuthorization code
StatusDescriptionSchema
200OKobject
400Bad Requestobject
401Unauthorizedobject
500Internal Server Errorobject

GET/auth/google/login

Google OAuth2 Login

Redirects user to Google OAuth2 login page

NameInRequiredTypeDescription
redirect_uriquerynostringFrontend callback URL
StatusDescriptionSchema
307Redirectstring

POST/auth/merge/confirm

Confirm account merge

Confirms merging a social-login provider into an existing email/password account.

NameInRequiredTypeDescription
requestbodyyesdto.MergeAccountRequestMerge confirmation payload

Body

FieldTypeDescription
merge_token requiredstring#nosec G101 -- DTO field, not a hardcoded credential
password requiredstring#nosec G101,G117 -- DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.MergeAccountResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/profile/social-accounts

List linked social accounts

Returns all social accounts linked to the authenticated user

StatusDescriptionSchema
200OKdto.SocialAccountListResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/profile/social-accounts/{id}

Unlink a social account

Removes a linked social account from the authenticated user's profile

NameInRequiredTypeDescription
idpathyesstringSocial account ID
StatusDescriptionSchema
200OKdto.UnlinkSocialAccountResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
404Not Founddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

auth

GET/auth/validate

Validate JWT Token

Validates a JWT token and returns basic user info for external services

StatusDescriptionSchema
200OKobject
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Auth

POST/forgot-password

Request password reset

Initiate password reset process

NameInRequiredTypeDescription
emailbodyyesdto.ForgotPasswordRequestUser Email

Body

FieldTypeDescription
email requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/login

User login

Authenticate user and issue JWTs

NameInRequiredTypeDescription
loginbodyyesdto.LoginRequestUser Login Data

Body

FieldTypeDescription
captcha_tokenstringGoogle reCAPTCHA response token (required when CAPTCHA is triggered)
email requiredstring
password requiredstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.LoginResponse
2022FA verification or setup requireddto.TwoFARequiredResponse
400Bad Requestdto.ErrorResponse
401May include retry_after (seconds) advisory fielddto.ErrorResponse
403CAPTCHA verification requireddto.CaptchaRequiredResponse
423Account is lockeddto.AccountLockedResponse
500Internal Server Errordto.ErrorResponse

POST/logout

User logout

Logout user and revoke refresh token

NameInRequiredTypeDescription
logoutbodyyesdto.LogoutRequestLogout Data

Body

FieldTypeDescription
access_token requiredstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
refresh_token requiredstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/magic-link/request

Request a magic link login email

Send a magic link to the user's email for passwordless authentication. Always returns 200 regardless of whether the email exists (to prevent enumeration).

NameInRequiredTypeDescription
requestbodyyesdto.MagicLinkRequestMagic Link Request Data

Body

FieldTypeDescription
email requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/magic-link/verify

Verify a magic link token and log in

Verify the magic link token from the email and return access/refresh tokens. The token is single-use and expires after 10 minutes.

NameInRequiredTypeDescription
requestbodyyesdto.MagicLinkVerifyRequestMagic Link Verification Data

Body

FieldTypeDescription
app_idstringoptional: overrides the X-App-ID header for multi-app token disambiguation
token requiredstring#nosec G101 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.LoginResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
403Forbiddendto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/refresh-token

Refresh access token

Get new access token using refresh token

NameInRequiredTypeDescription
refreshbodyyesdto.RefreshTokenRequestRefresh Token

Body

FieldTypeDescription
refresh_token requiredstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.LoginResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/register

Register a new user

Register a new user with email and password

NameInRequiredTypeDescription
registrationbodyyesdto.RegisterRequestUser Registration Data

Body

FieldTypeDescription
email requiredstring
password requiredstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
201Createddto.UserResponse
400Bad Requestdto.ErrorResponse
409Conflictdto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/resend-verification

Resend email verification

Resend verification email to user. Returns a generic success message regardless of whether the email exists or is already verified (to prevent email enumeration).

NameInRequiredTypeDescription
requestbodyyesdto.ResendVerificationRequestEmail address

Body

FieldTypeDescription
email requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/reset-password

Reset password

Complete password reset process

NameInRequiredTypeDescription
resetbodyyesdto.ResetPasswordRequestReset Token and New Password

Body

FieldTypeDescription
new_password requiredstring
token requiredstring#nosec G101 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
429Too Many Requestsdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/verify-email

Verify email

Verify user's email address

NameInRequiredTypeDescription
tokenqueryyesstringVerification Token
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Health

GET/health

System health check

Checks the connectivity and latency of PostgreSQL, Redis, and SMTP. Returns 200 when all configured components are up, 503 when any are down.

StatusDescriptionSchema
200OKdto.HealthResponse
503Service Unavailabledto.HealthResponse

GET/metrics

Prometheus metrics

Exposes application and runtime metrics in Prometheus exposition format. Requires Admin API Key authentication.

StatusDescriptionSchema
200Prometheus text format metricsstring
401Unauthorizeddto.ErrorResponse

OIDC

GET/oidc/{app_id}/.well-known/jwks.json

JWKS endpoint

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
StatusDescriptionSchema
200OKoidc.JWKS

GET/oidc/{app_id}/.well-known/openid-configuration

OIDC discovery document

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
StatusDescriptionSchema
200OKdto.OIDCDiscoveryDocument
404Not Founddto.ErrorResponse

GET/oidc/{app_id}/authorize

OIDC authorization endpoint

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
response_typequeryyesstringMust be 'code'
client_idqueryyesstringOIDC client ID
redirect_uriqueryyesstringRegistered redirect URI
scopequeryyesstringRequested scopes (must include 'openid')
statequerynostringOpaque state value
noncequerynostringNonce
code_challengequerynostringPKCE code challenge
code_challenge_methodquerynostringPKCE method (S256)

POST/oidc/{app_id}/authorize

OIDC authorize form submit

GET/oidc/{app_id}/end_session

OIDC RP-Initiated Logout

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
id_token_hintquerynostringPreviously-issued ID token
post_logout_redirect_uriquerynostringURI to redirect to after logout
statequerynostringOpaque value returned with redirect
StatusDescriptionSchema
200OK
302Found

POST/oidc/{app_id}/introspect

OIDC token introspection (RFC 7662)

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
StatusDescriptionSchema
200OKdto.OIDCIntrospectResponse

POST/oidc/{app_id}/revoke

OIDC token revocation (RFC 7009)

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
tokenformDatayesstringToken to revoke
token_type_hintformDatanostringaccess_token or refresh_token
client_idformDatanostringClient ID (confidential clients)
client_secretformDatanostringClient secret (confidential clients)
StatusDescriptionSchema
200OK
401Unauthorizeddto.OIDCTokenErrorResponse

POST/oidc/{app_id}/token

OIDC token endpoint

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
StatusDescriptionSchema
200OKdto.OIDCTokenResponse
400Bad Requestdto.OIDCTokenErrorResponse

GET/oidc/{app_id}/userinfo

OIDC userinfo endpoint

NameInRequiredTypeDescription
app_idpathyesstringApplication UUID
StatusDescriptionSchema
200OKdto.OIDCUserInfoResponse
401Unauthorizeddto.ErrorResponse

Passkeys

POST/passkey/login/begin

Begin passwordless login

Start a passwordless login ceremony using discoverable credentials (passkeys)

StatusDescriptionSchema
200OKdto.PasskeyLoginBeginResponse
403Forbiddendto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/passkey/login/finish

Finish passwordless login

Complete the passwordless login ceremony with the client's assertion response

NameInRequiredTypeDescription
requestbodyyesdto.PasskeyLoginFinishRequestAssertion response

Body

FieldTypeDescription
credential requiredobject
session_id requiredstring
StatusDescriptionSchema
200OKdto.LoginResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/passkey/register/begin

Begin passkey registration

Start the WebAuthn registration ceremony to add a new passkey

StatusDescriptionSchema
200OKdto.PasskeyRegisterBeginResponse
401Unauthorizeddto.ErrorResponse
403Forbiddendto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/passkey/register/finish

Finish passkey registration

Complete the WebAuthn registration ceremony with the client's attestation response

NameInRequiredTypeDescription
requestbodyyesdto.PasskeyRegisterFinishRequestRegistration response

Body

FieldTypeDescription
credential requiredobject
name requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

GET/passkeys

List passkeys

List all registered passkeys for the authenticated user

StatusDescriptionSchema
200OKdto.PasskeyListResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

PUT/passkeys/{id}

Rename a passkey

Update the friendly name of a registered passkey

NameInRequiredTypeDescription
idpathyesstringPasskey ID
requestbodyyesdto.PasskeyRenameRequestNew name

Body

FieldTypeDescription
name requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
404Not Founddto.ErrorResponse

DELETE/passkeys/{id}

Delete a passkey

Remove a registered passkey

NameInRequiredTypeDescription
idpathyesstringPasskey ID
StatusDescriptionSchema
200OKdto.MessageResponse
404Not Founddto.ErrorResponse

User

GET/profile

Get user profile

Retrieve authenticated user's profile information

StatusDescriptionSchema
200OKdto.UserResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

PUT/profile

Update user profile

Update authenticated user's profile information (name, first_name, last_name, profile_picture, locale)

NameInRequiredTypeDescription
profilebodyyesdto.UpdateProfileRequestProfile Update Data

Body

FieldTypeDescription
first_namestring
last_namestring
localestring
namestring
profile_picturestring
StatusDescriptionSchema
200OKdto.UserResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/profile

Delete user account

Delete authenticated user's account permanently. Password is required for password-based accounts; omit for social-only (OAuth) accounts.

NameInRequiredTypeDescription
deletebodyyesdto.DeleteAccountRequestAccount Deletion Data

Body

FieldTypeDescription
confirm_deletion requiredboolean
passwordstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

PUT/profile/email

Update user email

Update authenticated user's email address (requires password verification and email re-verification)

NameInRequiredTypeDescription
emailbodyyesdto.UpdateEmailRequestEmail Update Data

Body

FieldTypeDescription
email requiredstring
password requiredstring#nosec G101,G117 -- This is a DTO field, not a hardcoded credential
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
409Conflictdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

PUT/profile/password

Update user password

Update authenticated user's password (requires current password verification)

NameInRequiredTypeDescription
passwordbodyyesdto.UpdatePasswordRequestPassword Update Data

Body

FieldTypeDescription
current_password requiredstring
new_password requiredstring
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

POST/profile/set-password

Set initial password for social-only users

Set a password for a user who registered via social login and has no password yet. Returns 409 if a password is already set.

NameInRequiredTypeDescription
requestbodyyesdto.SetPasswordRequestNew password

Body

FieldTypeDescription
new_password requiredstring#nosec G101,G117 -- DTO field
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
409Conflictdto.ErrorResponse
500Internal Server Errordto.ErrorResponse

Sessions

GET/sessions

List active sessions

List all active sessions (devices/IPs) for the authenticated user

StatusDescriptionSchema
200OKdto.SessionListResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/sessions

Revoke all other sessions

Revoke all sessions except the current one

StatusDescriptionSchema
200OKdto.MessageResponse
401Unauthorizeddto.ErrorResponse
500Internal Server Errordto.ErrorResponse

DELETE/sessions/{id}

Revoke a specific session

Revoke a specific session by its ID (logout a specific device)

NameInRequiredTypeDescription
idpathyesstringSession ID
StatusDescriptionSchema
200OKdto.MessageResponse
400Bad Requestdto.ErrorResponse
401Unauthorizeddto.ErrorResponse
403Forbiddendto.ErrorResponse
500Internal Server Errordto.ErrorResponse

sso

POST/sso/exchange

Exchange SSO token for app-scoped tokens

Consume a single-use SSO token and receive access/refresh tokens for the target app.

NameInRequiredTypeDescription
X-App-IDheaderyesstringTarget application ID
requestbodyyessso.exchangeRequestSSO token

Body

FieldTypeDescription
sso_token requiredstring
StatusDescriptionSchema
200OKobject
400Bad Requestobject
403Forbiddenobject
404Not Foundobject

GET/sso/peers

Get SSO peer apps

Return peer apps in the same session group (no auth required).

NameInRequiredTypeDescription
X-App-IDheaderyesstringRequesting application ID
StatusDescriptionSchema
200OKobject

POST/sso/token

Issue SSO exchange token

Issue a 60-second single-use SSO token for cross-app login.

NameInRequiredTypeDescription
requestbodyyessso.issueTokenRequestTarget application ID

Body

FieldTypeDescription
target_app_id requiredstring
StatusDescriptionSchema
200OKobject
400Bad Requestobject
403Forbiddenobject