You are responsible for keeping the key secure and private..
Never use thePrivateTokenkeyinFront-end code or pushed in a public repository.
Get a user token to auto-connect them.
Call the Rezi API below with the information required. The private key will be sent to the API; call the API only from your back-end or micro-service. Calling this API directly from Front-end will publicly reveal your private key.
The user token is valid for less than 1 hour. After you get the User Token, auto-connect your user.
Get a User Token
POSThttps://open-api.rezi.ai/v1/user/token
This endpoint allows you to get a token to auto-connect your user by sharing user credential.
Headers
Name
Type
Description
Content-type*
string
"application/json"
Authentication*
string
"Bearer PRIVATE_TOKEN_API_KEY"
Authentication token to secure and track down your usage. Use this specific format with your Private API key
Request Body
Name
Type
Description
uid*
string
Password of the user your want to connect.
You can hash from your side before sending to API.
email*
string
Email of the user your want to connect.
If first time for this user to connect, creation of user can take around 2 seconds.
UID associated to email should be all time the same. Password hashed as UID is a secure way to connect your user to our system.
In this example, the user will be login, the onboarding will open right away and if the user decides to close the onboarding, it will be redirected to the best practices page.