Users management
Endpoints related with users management such as login or user update.
Log In
POST
https://api.expai.io/api/auth/login
This endpoint allows you to login and get your JWT token that will be used to authorise your operations. Every time you log in, previous tokens generated through the API will be revoked.
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | Value: "application/json" |
Request Body
Name | Type | Description |
---|---|---|
password_des | string | Password for your account |
email_des | string | Your email registered at EXPAI |
Log Out
POST
https://api.expai.io/api/auth/logout
Logout from your account and revoke your active JWT token.
Headers
Name | Type | Description |
---|---|---|
access-token | string | Active JWT token obtained during login |
Update User
PATCH
https://api.expai.io/api/users/<user-id>
This endpoint allows you to login and get your JWT token that will be used to authorise your operations. Every time you log in, previous tokens generated through the API will be revoked.
Path Parameters
Name | Type | Description |
---|---|---|
user-id | string | Unique ID that identifies your user |
Headers
Name | Type | Description |
---|---|---|
access-token | string | Active JWT token |
content-type | string | Value: "application/json" |
Request Body
Name | Type | Description |
---|---|---|
name_des | string | New name for the user |
surname_des | string | New surname for the user |
email_des | string | New email for the account |
Update Password
POST
https://api.expai.io/api/users/update_password
Update password for your user
Headers
Name | Type | Description |
---|---|---|
access-token | string | Active JWT token |
Content-Type | string | Value: "application/json" |
Request Body
Name | Type | Description |
---|---|---|
new_password_des | string | New password |
password_des | string | Old password |
Create user from license
POST
https://api.expai.io/api/users/create_user_from_license
Update password for your user
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | Value: "application/json" |
Request Body
Name | Type | Description |
---|---|---|
captcha_token_des | string | Valid captcha token to validate human users |
name_des | string | Name |
surname_des | string | Surname |
email_des | string | User email |
password_des | string | Password for the user |
license_key_des | string | Valid EXPAI license key |
Last updated