API reference
Auth API
Sign up and sign in to Keystone, the tokens every service checks, and the signed-in person's own account.
Heimdal holds Keystone's users and signs them in: by password, Google, or a code by email or text. It issues the access tokens the console sends to every other surface, and a copy of one bound to a single service. The console's side of an MCP sign-in (show who is asking, then allow or deny it) is here too; the OAuth server MCP clients talk to is at the issuer's root.
25 endpoints in 3 groups.
OAuth
Sign in
- POST
/api/v1/auth/codeSend Sign In Code - POST
/api/v1/auth/code/verifySign In With Code - POST
/api/v1/auth/forgot-passwordForgot Password - POST
/api/v1/auth/loginLogin - POST
/api/v1/auth/logoutLogout - POST
/api/v1/auth/refreshRefresh Token - POST
/api/v1/auth/resend-verificationResend Verification - POST
/api/v1/auth/reset-passwordReset Password - POST
/api/v1/auth/signupCreate User - POST
/api/v1/auth/socialSocial Login - POST
/api/v1/auth/token/exchangeExchange Token - GET
/api/v1/auth/verify-emailVerify Email Token - POST
/api/v1/auth/verify-emailVerify Email Otp
Users
- PATCH
/api/v1/users/{user_id}/roleUpdate User Role - GET
/api/v1/users/current_userRead Current User - PUT
/api/v1/users/current_userUpdate Current User - POST
/api/v1/users/current_user/avatarUpload Current User Avatar - DELETE
/api/v1/users/current_user/avatarDelete Current User Avatar - POST
/api/v1/users/current_user/email/codeSend Current User Email Code - POST
/api/v1/users/current_user/email/confirmConfirm Current User Email - POST
/api/v1/users/current_user/phone/codeSend Current User Phone Code - POST
/api/v1/users/current_user/phone/confirmConfirm Current User Phone