Users

Operations of the Identity API (public). Paths are relative to your deployment's API host.

GET /api/identity-api/users/me

GET me (users)

Executes get me for users within the authenticated request context. Validate request DTO constraints and return the documented response contract.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
X-Org-IdheaderstringnoOptional active organization context. When supplied, the response carries the team (subgroup) memberships the user has within this organization.
x-org-idheaderstringyes
StatusDescriptionBody
200Get current user profileapplication/json object
400Bad Requestapplication/json object
401Unauthorizedapplication/json object

PATCH /api/identity-api/users/me

PATCH me (users)

Executes update me for users within the authenticated request context. Validate request DTO constraints and return the documented response contract.

Authentication: bearer token (Authorization: Bearer <token>)

Request body: application/json UpdateMeDto

StatusDescriptionBody
200Update current user profileapplication/json object
400Bad Requestapplication/json object
401Unauthorizedapplication/json object

DELETE /api/identity-api/users/me

DELETE me (users)

Self-service: permanently delete the AUTHENTICATED user's own account. Runs the full org cascade (personal/sole orgs deleted, shared-org ownership transferred), writes a tombstone, deletes the Keycloak user, audits DELETE_USER with the user as actor, and emits user.deleted. Idempotent (404-gone ⇒ no-op). No platform-admin role required — the caller can only ever delete themselves.

Authentication: bearer token (Authorization: Bearer <token>)

StatusDescriptionBody
204
401Unauthorizedapplication/json object

GET /api/identity-api/users/me/activity

GET me/activity (users)

Executes get my activity for users within the authenticated request context. Validate request DTO constraints and return the documented response contract.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
limitquerynumberno
pagequerynumberno
StatusDescriptionBody
200
401Unauthorizedapplication/json object

GET /api/identity-api/users/me/organizations

GET me/organizations (users)

Executes get my organizations for users within the authenticated request context. Validate request DTO constraints and return the documented response contract.

Authentication: bearer token (Authorization: Bearer <token>)

StatusDescriptionBody
200Get organizations for current userapplication/json object
401Unauthorizedapplication/json object

PATCH /api/identity-api/users/me/preferences

PATCH me/preferences (users)

Executes update my preferences for users within the authenticated request context. Validate request DTO constraints and return the documented response contract.

Authentication: bearer token (Authorization: Bearer <token>)

Request body: application/json UpdatePreferencesDto

StatusDescriptionBody
200Update current user preferencesapplication/json object
400Bad Requestapplication/json object
401Unauthorizedapplication/json object