Xentree uses bearer token authentication for protected endpoints.Supported auth flow#
Access token#
Use the access token in the Authorization header:Refresh token#
Xentree also supports session refresh via the refresh endpoint.Main endpoints#
Register#
Create a new user account.Login#
Exchange username and password for an access token.Content type: application/x-www-form-urlencoded
Refresh session#
Issue a fresh access token.Logout#
Invalidate the current session.Current user#
Return the authenticated user profile.Update current user profile#
Patch profile-level attributes for the current user.Example login request#
Common authentication errors#
401 Unauthorized#
Returned when the token is missing, expired, malformed, or invalid.403 Forbidden#
Returned when a valid user lacks permission for the requested resource.Best practices#
always send requests over HTTPS
refresh access tokens before long-running sessions expire
revoke sessions on logout or device disconnect
Modified at 2026-04-17 06:31:40