IAM APIs
Health
GET
/iam/health
(get health status of the server)
Example:
response:
Ready
GET
/iam/ready
(get ready status of the server)
Example:
response:
List Realms
GET
/account/auth/realms
(lists all the realms of this product)
response:
List Auth Providers
GET
/account/auth/providers
(lists all the auth providers)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
Login With Email
POST
/account/auth/login/password
(log in with password as a challenge)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Federation login With Email
POST
/account/auth/login/adminfederation
(federation log in)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Login with mobile
POST
/account/auth/login/password
(mobile log in)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Login with email otp
POST
/account/auth/login/otpemail
(otp log in)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Approve OTP token login
POST
/account/auth/login/otp02
(otp log in)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Login password with otp mfa
POST
/account/auth/login/passwordotp
(password login with otp mfa)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Approve OTP token login
POST
/account/auth/login/passwordotp
(approve login with otp mfa)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Login password with totp mfa
Currently Unsupported mfa type
POST
/account/auth/login/passwordtotp
(password login with totp mfa)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Appprove mfa totp request
Currently Unsupported mfa type
POST
/account/auth/login/passwordtotp
(approve totp mfa login)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
Login password with hotp mfa
Currently Unsupported mfa type
POST
/account/auth/login/passwordhotp
(password login with hotp mfa)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Approve mfa htop request
Currently Unsupported mfa type
POST
/account/auth/login/passwordhotp
(approve hotp mfa request)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
Login password with webauthnmfa mfa
Currently Unsupported mfa type
POST
/account/auth/login/passwordwebauthn
(password login with passwordwebauthn mfa)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Webauthn Login Begin
POST
/account/auth/webauthn/login/begin/:provider
(webauthn login begin)
Query Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
Parameters
name type data type description provider required string specifies the provider
request:
response:
contains a cookie and a body
Webauthn Login Finish
POST
/account/auth/webauthn/login/finish/:provider
(webauthn login finish)
Query Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
Parameters
name type data type description provider required string specifies the provider
request:
response:
Webauthn Register Begin
GET
/account/auth/webauthn/register/begin/:provider
(webauthn register begin)
Parameters
name type data type description provider required string specifies the provider
response:
contains a cookie and a body
Webauthn Register Finish
POST
/account/auth/webauthn/register/finish/:provider
(webauthn register finish)
Parameters
name type data type description provider required string specifies the provider
Query Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
contains a cookie and a body
Create Magic Link Login
POST
/account/auth/login/magic02
(create magic link login)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Approve Magic Link Login
GET
/account/auth/login/magic02
(magic link login method)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken token required string token contains the key to be supplied to get the auth token
response:
Check approved magic token login
POST
/account/auth/check/approval/magic02
(login with the given token)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Create Magic link numbers login
POST
/account/auth/login/magicnumbers
(create login with magicnumbers)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
tokenID is not present in the response if remotelogin is set to false
Approve Magic link numbers login
POST
/account/auth/login/magicnumbers
(login with the given magicnumbers)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken token required string token used to login number required string magic number required to give in the request to login
response:
Check approved magic token with numbers login
POST
/account/auth/check/approval/magicnumbers
(login with provided token)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Refresh jwt token
POST
/account/auth/jwt/refresh
(refresh the token)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Approve Kisai auth login
GET
/account/auth/kisai/approve
(kisai auth login)
response:
Oauth Callback Provider
GET
/account/auth/callback/:provider
(Oauth Callback)
Parameters
name type data type description provider required string specifies the provider
response:
Check mfa topt request
POST
/account/auth/check/mfa/passwordtotp
(check totp login is valid or not)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Check mfa hotp request
POST
/account/auth/check/mfa/passwordhotp
(check htop login is valid or not)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
User password reset request
POST
/account/user/resetrequest
(user password reset request)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
User validate token password request
GET
/account/user/validatetoken/:resettoken
/:email
(validate token password request)
Url Parameters
name type data type description resettoken required string token recieved for the reset request required string email for which password reset was requested
Query Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
User password reset using token request
POST
/account/user/resetpasswordwithtoken
(user password reset link)
Query Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
User update password
POST
/account/auth/updatepassword
(update password)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
User add totp mfa provider
POST
/account/auth/add/mfa/passwordtotp
(add totp to logged in user)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
User add hotp mfa provider
POST
/account/auth/add/mfa/passwordhotp
(add htop to logged in user)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
User remove totp/hotp/webauthnmfa mfa provider
POST
/account/auth/remove/mfa/passwordtotp
(remove mfa for account)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
API key with expiry and capabilities
POST
/account/auth/apikey
(add api key to a service)
request:
response:
API keys by service name
GET
/account/auth/apikey
(list api keys to a service)
Parameters
name type data type description service required string selects the service to list the api keys for
response:
API keys by id
GET
/account/auth/apikey
(list api keys by id)
Parameters
name type data type description id required string selects the api key to return by its id
response:
Admin create user
POST
/account/admin/user
(create a user to the realm)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Admin update user
PUT
/account/admin/user
(update the details of the user with id)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
request:
response:
Admin get user by email
GET
/account/admin/user/email/:useremail
(get user details by the email)
Url Parameters
name type data type description useremail required string email of the user to get
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
Admin get user by id
GET
/account/admin/user/id/:id
(get user details by the id)
Url Parameters
name type data type description id required string id of the user to get
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
Admin delete user by id
DELETE
/account/admin/user/id/:id
(delete user by the id)
Url Parameters
name type data type description id required string id of the user to delete
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
Admin list users
GET
/account/admin/users
(list the users in the realm)
Parameters
name type data type description version optional integer specifies the version of the user object to get realm optional string specifies the realm to be operated on, else default realm is taken
response:
Admin lock user by email
GET
/account/admin/user/lock
(lock the user)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken optional string specifies the email to be locked
response:
Admin unlock user by email
GET
/account/admin/user/unlock
(unlock the user)
Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken optional string specifies the email to be unlock
response:
Admin Create Tenant
POST
/account/admin/tenant
(create a tenant)
request:
response:
Admin Update Tenant
PUT
/account/admin/tenant
(update a tenant)
request:
response:
Admin Get Tenant by slug
GET
/account/admin/tenant/slug/:slug
(get a tenant by slug)
Parameters
name type data type description slug required string select the tenant to return based on slug
response:
Admin Get Tenants
GET
/account/admin/tenant
(get tenants)
response:
Admin Delete Tenant by slug
DELETE
/account/admin/tenant/slug/:slug
(delete a tenant by slug)
Parameters
name type data type description slug required string select the tenant to delete based on slug
response:
Admin Create Role
Post
/account/admin/role
(create a role)
request:
response:
Admin Update Role
PUT
/account/admin/role
(update a role)
request:
response:
Admin Get Role by slug
GET
/account/admin/role/:slug
(get a role by slug)
URL Parameters
name type data type description slug required string select the role to get based on slug
response:
Admin Get Roles
GET
/account/admin/role
(get all roles)
response:
Admin Delete Role by slug
DELETE
/account/admin/role/:slug
(delete a role by slug)
URL Parameters
name type data type description slug required string select the role to delete based on slug
response:
Admin get users for tenant
GET
/account/admin/tenant/slug/:slug
/users
(get user details by the tenant slug)
Url Parameters
name type data type description slug required string select the tenant to get users based on slug
response:
Admin add role to user
POST
/account/admin/role/add/user
(add role to user)
request:
response:
Admin remove role to user
POST
/account/admin/role/remove/user
(remove role to user)
request:
response:
Admin Get Users for role
GET
/account/admin/role/slug/:slug
/users
(get users for role)
Url Parameters
name type data type description slug required string role’s slug
response:
Admin Create realm
POST
/account/admin/realm
(create a realm)
request:
response:
Admin Get realm by ID
GET
/account/admin/realm/:id
(get realm by id)
Url Parameters
name type data type description id required string realm id
response:
Admin Update Realm
PUT
/account/admin/realm
(update realm)
request:
response:
Admin Delete Realm By ID
DELETE
/account/admin/realm/:id
(delete realm by ID)
Url Parameters
name type data type description id required string realm id
response:
Admin Get realms
GET
/account/admin/realm
(get all realms)
response:
Index IAM users
POST
/account/index/users
(reindex IAM users)
response:
User Valid jwt token
GET
/account/auth/validate
(user validate jwt token)
response:
User auth refresh session
GET
/account/auth/session/refresh
(user auth refresh session)
Query Parameters
name type data type description refreshtoken required boolean refresh the token
response:
Get user preferences
POST
/account/user/preferences/notification
(get user preferences)
Query Parameters
name type data type description realm optional string specifies the realm to be operated on, else default realm is taken
response:
Execute Authorize Rule
POST
/account/authorize
(execute authorize rule)
request:
response:
User logout
GET
/account/auth/logout
(User logout)
response:
Admin get all user tags
GET
/account/admin/user/tag/:name
(get users with tag)
URL Parameters
name type data type description name required string name of the tag
response:
User Signup
POST
/account/user/signup
(New user signup)
Example
request:
response:
List Other Users
GET
/account/user/list
(List all users)
Example
response:
Get User Details
GET
/account/user
(Get logged in user’s details)
Example
response:
Update User Details
PUT
/account/user
(Update logged in user’s details)
Example
request:
response: