Authentication
User Authentication
Create a user login
success response
error response
POST /auth/login HTTP/1.1
Host:
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 37
"username='text'&password='text'"
{
"createdBy": 1,
"createdDate": "2025-08-30T04:07:46.095Z",
"modifiedBy": 1,
"modifiedDate": "2025-08-30T04:07:46.095Z",
"userId": 1,
"avatar": "text",
"avatarPath": "text",
"isActive": 1,
"code": 1,
"address": "text",
"deleteFlag": 1,
"linkExpires": 1,
"usergroup": {
"createdBy": 1,
"createdDate": "2025-08-30T04:07:46.095Z",
"modifiedBy": 1,
"modifiedDate": "2025-08-30T04:07:46.095Z",
"groupId": 1,
"name": "text"
}
}
List of users
success response
GET /auth/userlist?limit=1 HTTP/1.1
Host:
Authorization: text
Accept: */*
success response
{
"status": 1,
"message": "Successfully get All user List"
}
Add a new user.
success response
error response
POST /auth/create-user HTTP/1.1
Host:
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 105
"username='text'&password='text'&firstName='text'&lastName='text'&email='text'&userGroupId=1"
{
"username": "text",
"password": "text",
"firstName": "text",
"lastName": "text",
"email": "text",
"deleteFlag": 1,
"userGroupId": "text",
"isActive": 1,
"createdDate": "2025-08-30T04:07:46.095Z",
"userId": 1
}
Update a user.
success response
error response
error response
PUT /auth/update-user/{id} HTTP/1.1
Host:
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 105
"username='text'&password='text'&firstName='text'&lastName='text'&email='text'&userGroupId=1"
{
"status": 1,
"message": "User updated successfully."
}
Forgrt password
success response
error response
POST /auth/forgot-password HTTP/1.1
Host:
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 16
"email='text'"
{
"status": 1,
"message": "Your password has been sent to your email inbox."
}
Change Password
success response
error response
error response
PUT /auth/change-password HTTP/1.1
Host:
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 43
"oldPassword='text'&newPassword='text'"
{
"status": 1,
"message": "Your password changed successfully."
}
Edit a profile for a user.
success response
error response
POST /auth/edit-profile HTTP/1.1
Host:
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 88
"username='text'&email='text'&avatar='text'&phoneNumber='text'&address='text'"
{
"createdBy": 1,
"createdDate": "2025-08-30T04:07:46.095Z",
"modifiedBy": 1,
"modifiedDate": "2025-08-30T04:07:46.095Z",
"userId": 1,
"userGroupId": 1,
"username": "text",
"password": "text",
"firstName": "text",
"lastName": "text",
"email": "text",
"avatar": "text",
"avatarPath": "text",
"isActive": 1,
"code": 1,
"ip": "text",
"phoneNumber": "text",
"address": "text",
"deleteFlag": 1,
"linkExpires": 1,
"forgetPasswordKey": "text",
"permission": 1,
"usergroup": null
}
This is for user forget password link.
success response
POST /auth/forgot-password-link HTTP/1.1
Host:
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 18
"emailId='text'"
success response
{
"status": 1,
"message": "If the user is registered a link to reset the password will be sent to the user’s email address. \" or \" If the user is registered a link to reset the password will be sent to the user’s email address."
}
This is for user password key validation.
success response
GET /auth/forgot-password-key-check HTTP/1.1
Host:
Accept: */*
success response
{
"status": 1,
"message": "Invalid key. please try again \" or \" Your forgot password link got expired, try again. \" or \" This link has been used already. please try again"
}
Users reset their password
success response
error response
error response
PUT /auth/reset-password HTTP/1.1
Host:
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 35
"newPassword='text'&key='text'"
{
"status": 1,
"message": "Your password has been changed successfully"
}
Permission Authentication
Get list of permission module.
success response
GET /permission-module/list?limit=1 HTTP/1.1
Host:
Authorization: text
Accept: */*
success response
{
"status": 1,
"message": "Successfully got permission module group list count \" or \" Successfully got the complete list of pages."
}
Add permission module.
success response
error response
POST /permission-module/add-permission HTTP/1.1
Host:
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 43
"refType=1&refId=1&permission='text'"
{
"status": 1,
"message": "Successfully updated the permission."
}
Get permission.
success response
error response
GET /permission-module/get-permission?refType=1&refId=1 HTTP/1.1
Host:
Authorization: text
Accept: */*
{
"status": 1,
"message": "Successfully got permission list"
}
Create a new user
POST
/users
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
name
string
Name of the user
age
number
Age of the user
Response
{
"id": 1,
"name": "John",
"age": 30
}
Last updated