Unleash API Documentation
Unleash API Documentation
Public
People feedbacks
● Endpoint: /api/public/feedbacks
● Method: GET
● Response Body:
Article hub
● Endpoint: /api/public/all_articles
● Method: GET
● Response Body:
Find plans
● Endpoint: /api/public/plan_details
● Method: GET
● Response Body:
All counselors
● Endpoint: /api/public/all_counselors
● Method: GET
● Response Body:
● Endpoint: /api/user/signup
● Method: POST
● Request Body:
● Response Body:
{ "accessToken": “string”}
Login User
● Endpoint: /api/user/login
● Method: Post
Logout User
● Endpoint: /api/user/logout
● Method: Post
Dashboard
Get user dashboard
● Endpoint: /api/user/dashboard
● Method: Get
User Profile
Get User Profile
● Endpoint: /api/user/profile
● Method: GET
● Endpoint: /api/user/profile/update
● Method: PUT
● Request Body:
● Response Body:
{ "message": “string” }
● Endpoint: /api/user/profile/updatepassword
● Method: PUT
● Request Body:
● Response Body:
{ "message": “string” }
Personal Preference
Add personal preference
● Endpoint: /api/user/preference
● Method: POST
Plan purchasing
purchase the plan
● Endpoint: /api/user/plan/buy
● Method: POST
● Endpoint: /api/user/sessions/available
● Method: GET
● Endpoint: /api/user/session/book
● Method: POST
● Endpoint: /api/user/session/cancel
● Method: DELETE
Chat
Get Meetings
● Endpoint: /api/user/chat/messages
● Method: GET
● Description: Get a list of chat messages.
Send Message
● Endpoint: /api/user/chat/send
● Method: POST
● Description: Send a new chat message.
● Request Body: { "senderID": 1, "receiverID": 2,"message": "Hello there!"}
● Response Body: {"messageID": 1,"senderID": 1,"receiverID": 2,
"message":"Hello there!"}
● Endpoint: / api/user/session/calls/start
● Method: POST
● Description:Start a new video call.
feedback of session
● Endpoint: / api/user/session/calls/feedback
● Method: POST
Admin Side
Admin Login
● Endpoint: /api/admin/login
● Method: POST
Logout Admin
● Endpoint: /api/admin/logout
● Method: Post
● Description: Logged out admin
● Endpoint: /api/admin/dashboard
● Method: GET
"active_subscribers": 100,
"number_of_clients": 500,
“number_of_counselors” : 299,
“todays_income” : “string”
"graph_data": {
"subscribers_per_day": [
{"date": "2024-03-01", "count": 10},
{"date": "2024-03-02", "count": 15},
{"date": "2024-03-03", "count": 20},
{"date": "2024-03-04", "count": 12}
],
"revenue_per_day": [
{"date": "2024-03-01", "count": 30},
{"date": "2024-03-02", "count": 25},
{"date": "2024-03-03", "count": 35},
{"date": "2024-03-04", "count": 20}
]
}
}
User Management
● Method: GET
● Endpoint: /api/admin/counselorslist
● Method: GET
Block User
● Endpoint: /api/admin/users/{userID}/block
● Method: PUT
UnBlock User
● Endpoint: /api/admin/users/{userID}/unblock
● Method: PUT
● Endpoint: /api/admin/allrequests
● Method: GET
Approve a request
● Endpoint: /api/admin/requests/{userID}/approve
● Method: PUT
Reject a request
● Endpoint: /api/admin/request/{userID}/reject
● Method: PUT
● Endpoint: /api/admin/allbookings
● Method: GET
● Endpoint: /api/admin/session/feedbacks
● Method: GET
Transaction Details
● Endpoint: /api/admin/allbookings
● Method: GET
● Endpoint: /api/admin/session/feedbacks
● Method: GET
Article Management
Article hub
● Endpoint: /api/public/all_articles
● Method: GET
● Response Body:
Remove an article
● Endpoint: /api/admin/article/{article_id}/remove
● Method: DELETE
Promocode Management
Get All Promocode
● Endpoint: /api/admin/promocodes
● Method: GET
● Method: POST
kill a promocode
● Endpoint: /api/admin/promocode/{promocode_id}/kill
● Method: PUT
● Endpoint: /api/admin/allPlans
● Method: GET
● Endpoint: /api/admin/plan/edit
● Method: PUT
Remove a plan
● Endpoint: /api/admin/plan/{plan_id}/remove
● Method: PUT
● Method: POST
Counselors
Create User
● Endpoint: /api/user/signup
● Method: POST
● Request Body:
{ "accessToken": “string”}
Login User
● Endpoint: /api/user/login
● Method: Post
Logout User
● Endpoint: /api/user/logout
● Method: Post
Dashboard
● Endpoint: /api/counselor/dashboard
● Method: Get
● Endpoint: /api/counselor/profile
● Method: GET
● Endpoint: /api/counselor/profile/update
● Method: PUT
● Request Body:
● Response Body:
{ "message": “string” }
● Endpoint: /api/counselor/profile/updatepassword
● Method: PUT
● Request Body:
{ "old_password": “string”, “new_password”:”string”}
● Response Body:
{ "message": “string” }
● Endpoint: /api/counselor/sessions/list
● Method: GET
Chat
Get Meetings
● Endpoint: /api/counselor/chat/messages
● Method: GET
● Description: Get a list of chat messages.
Send Message
● Endpoint: /api/counselor/chat/send
● Method: POST
● Description: Send a new chat message.
● Request Body: { "senderID": 1, "receiverID": 2,"message": "Hello there!"}
● Response Body: {"messageID": 1,"senderID": 1,"receiverID": 2,
"message":"Hello there!"}
● Endpoint: / api/counselor/session/calls/start
● Method: POST
notes of session
● Endpoint: / api/counselor/session/calls/notes
● Method: POST
● Endpoint: /api/counselor/slots/available
● Method: POST
● Endpoint: /api/counselor/session/cancel
● Method: DELETE
Article Management
My articles
● Endpoint: /api/counselor/my_articles
● Method: GET
● Response Body:
Remove an article
● Endpoint: /api/counselor/article/{article_id}/remove
● Method: DELETE
● Description: Remove an article from article hub
edit an article
● Endpoint: /api/counselor/article/{article_id}/edit
● Method: PUT
feedback Management
● Endpoint: /api/counselor/session/feedbacks
● Method: GET
Payment Tab
● Method: GET
● Endpoint: /api/counselor/income/curr_week
● Method: GET
verification documents
● Endpoint: /api/counselor/document/verification
● Method: POST