Identity Service API
Auto-generated from NestJS controller decorators. Last synced: 2026-03-15
Base path: /api
Endpoints: 56
Api Keys
List API keys
/api-keysBearer tokenuserIdstringquery parameter
Create a new API key
/api-keysBearer tokenRequest Body: CreateApiKeyDto
namestringRequired—
userIdstringRequired—
Delete an API key
/api-keys/:idBearer tokenidstringRequiredpath parameter
Audit Logs
List audit logs with filters
/audit-logsBearer tokenqueryQueryAuditLogsDtoRequiredquery parameter
Create audit log entry (service-to-service only)
/audit-logsBearer tokenRequest Body: CreateAuditLogDto
actorIdstringRequired—
actorType'user' | 'service' | 'system' | 'api_key'Required—
actionstringRequired—
resourcestringRequired—
resourceIdstring—
tenantIdstring—
correlationIdstring—
previousStateRecordstring, unknown—
newStateRecordstring, unknown—
metadataRecordstring, unknown—
descriptionstring—
Auth
Register a new user
/auth/registerRequest Body: RegisterDto
emailstringRequired—
passwordstringRequired—
firstNamestringRequired—
lastNamestringRequired—
companyNamestring—
countrystring—
inviteTokenstring—
Login with email and password
/auth/loginRequest Body: LoginDto
emailstringRequired—
passwordstringRequired—
mfaCodestring—
Refresh access token
/auth/refreshRequest Body: RefreshTokenDto
refreshTokenstringRequired—
Logout current user
/auth/logoutBearer tokenInitiate Google OAuth login
/auth/oauth/googleGET /auth/oauth/google/callback
/auth/oauth/google/callbackInitiate GitHub OAuth login
/auth/oauth/githubGET /auth/oauth/github/callback
/auth/oauth/github/callbackInitiate Microsoft OAuth login
/auth/oauth/microsoftGET /auth/oauth/microsoft/callback
/auth/oauth/microsoft/callbackService Auth
Issue a service-to-service JWT token
/v1/auth/service-tokenRequest Body: ServiceTokenDto
serviceNamestringRequired—
serviceSecretstringRequired—
Gdpr
Export all personal data (GDPR Art. 20 — Data Portability)
/users/me/exportBearer tokenRequest data erasure (GDPR Art. 17 — Right to be Forgotten)
/users/me/eraseBearer tokenGet current consent status for all consent types
/users/me/consentBearer tokenGet full consent change history
/users/me/consent/historyBearer tokenRecord or update consent preference
/users/me/consentBearer tokenRequest Body: RecordConsentDto
consentType'marketing' | 'analytics' | 'essential' | 'third_party'Required—
grantedbooleanRequired—
Health
Liveness probe
/healthReadiness probe
/readyPartner API
Create an OAuth2 client for partner API access
/api/partner/clientsRequest Body: CreateOAuthClientDto
namestringRequired—
scopesstring[]Required—
rateLimitPerMinutenumber—
allowedIpsstring[]—
List all OAuth2 clients for this tenant
/api/partner/clientsRevoke an OAuth2 client (deactivate without deleting)
/api/partner/clients/:id/revokeidstringRequiredpath parameter
Permanently delete an OAuth2 client
/api/partner/clients/:ididstringRequiredpath parameter
OAuth2 Client Credentials Grant — issue access token
/api/partner/oauth/tokenRequest Body: OAuthTokenRequestDto
grant_typestringRequired—
client_idstringRequired—
client_secretstringRequired—
scopestring—
Roles
List all role definitions
/rolesBearer tokenGet a role by ID
/roles/:idBearer tokenidstringRequiredpath parameter
Create a new role definition
/rolesBearer tokenRequest Body: CreateRoleDto
namestringRequired—
displayNamestringRequired—
descriptionstring—
categoryRoleCategory—
permissionsstring[]—
Update a role definition
/roles/:idBearer tokenidstringRequiredpath parameter
Request Body: UpdateRoleDto
displayNamestring—
descriptionstring—
permissionsstring[]—
isActiveboolean—
Delete a role definition (non-system only)
/roles/:idBearer tokenidstringRequiredpath parameter
Get roles for a user (with full details)
/roles/users/:userIdBearer tokenuserIdstringRequiredpath parameter
Assign roles to a user
/roles/users/:userId/assignBearer tokenuserIdstringRequiredpath parameter
Request Body: AssignRolesDto
rolesstring[]Required—
Remove roles from a user
/roles/users/:userId/removeBearer tokenuserIdstringRequiredpath parameter
Request Body: RemoveRolesDto
rolesstring[]Required—
Tenants
Create a new tenant
/tenantsBearer tokenRequest Body: CreateTenantDto
namestringRequired—
type'customer' | 'partner' | 'internal'Required—
countrystringRequired—
configRecordstring, any—
List all tenants
/tenantsBearer tokentypestringquery parameter
Get a tenant by ID
/tenants/:idBearer tokenidstringRequiredpath parameter
Update a tenant
/tenants/:idBearer tokenidstringRequiredpath parameter
Request Body: UpdateTenantDto
namestring—
type'customer' | 'partner' | 'internal'—
countrystring—
configRecordstring, any—
Delete a tenant
/tenants/:idBearer tokenidstringRequiredpath parameter
Get the number of users in a tenant
/tenants/:id/user-countBearer tokenidstringRequiredpath parameter
Get tenant settings
/tenants/:id/settingsBearer tokenidstringRequiredpath parameter
Update tenant settings (partial)
/tenants/:id/settingsBearer tokenidstringRequiredpath parameter
Request Body: UpdateSettingsDto
localestring—
timezonestring—
currencystring—
dateFormatstring—
maxUsersnumber—
maxInstancesnumber—
featuresTenantFeaturesDto—
brandingTenantBrandingDto—
Invite a user to this tenant
/tenants/:id/invitesBearer tokenidstringRequiredpath parameter
Request Body: CreateInviteDto
emailstringRequired—
rolestring—
List invites for a tenant
/tenants/:id/invitesBearer tokenidstringRequiredpath parameter
Revoke an invite
/tenants/:id/invites/:inviteIdBearer tokenidstringRequiredpath parameter
inviteIdstringRequiredpath parameter
Validate an invite token (public)
/tenants/invites/validate/:tokenBearer tokentokenstringRequiredpath parameter
Users
Get current user profile
/users/meBearer tokenUpdate own profile (firstName, lastName)
/users/meBearer tokenRequest Body: UpdateProfileDto
firstNamestring—
lastNamestring—
Change own password
/users/me/change-passwordBearer tokenRequest Body: ChangePasswordDto
currentPasswordstringRequired—
newPasswordstringRequired—
List all users (admin, paginated)
/usersBearer tokenqueryQueryUsersDtoRequiredquery parameter
Get a user by ID (admin)
/users/:idBearer tokenidstringRequiredpath parameter
Update a user (admin)
/users/:idBearer tokenidstringRequiredpath parameter
Request Body: AdminUpdateUserDto
firstNamestring—
lastNamestring—
emailstring—
statusUserStatus—
rolesstring[]—
Deactivate (suspend) a user
/users/:id/deactivateBearer tokenidstringRequiredpath parameter
Reactivate a user
/users/:id/reactivateBearer tokenidstringRequiredpath parameter