Account
user account api calls for login,signup etc
API | Description |
---|---|
POST api/account/auth |
Latest api to login/register using using external providers like facebook, google, phone number auth |
POST api/account/auth/email |
login/register using email otp based authentication |
POST api/account/auth/mobile |
login/register using mobile otp based authentication |
POST api/account/email/otp/{id} |
Get OTP on email for verification. |
POST api/account/email/verify/{id} |
Verify email OTP using it's id and OTP. |
POST api/account/mobile/otp/{id} |
Get OTP on mobile number for verification. |
POST api/account/mobile/verify/{id} |
Verify and update mobile number. Verify OTP. |
PUT api/account/logOff/{id}?dId={dId}&allD={allD} |
logoff user from Lifetrons. Unregister device for push notifications etc. |
Social
api related social activity
API | Description |
---|---|
POST api/social/lead/form/created/{id} |
Triggered when Lifetrons user fill the lead form |
POST api/social/lead/status/{id} |
Update lead interaction status like Pass, Hire |
POST api/social/lead/status/other/{id} |
Update lead interaction status when user connect to dietitian using tele-link |
GET api/social/lead/responses/{id}?lId={lId}&o={o}&l={l} |
List of lead responses provided by Lifetrons |
GET api/social/blogs/{id}?o={o}&l={l}&title={title} |
Fetch blogs with filters |
Generic
Represent generic controller without filters
API | Description |
---|---|
GET api/generic/check |
Check internet |
Activity
api related activity like workout plans, exercises
API | Description |
---|---|
GET api/activity/workout/template/{id}?oId={oId}&omId={omId}&wtId={wtId}&epochtime={epochtime} |
Workout templates created for Lifetrons user |
GET api/activity/workout/template/plan/{id}?wtId={wtId}&epochtime={epochtime} |
workout template plans along with exercises |
GET api/activity/workout/search/{id}?o={o}&l={l}&q={q}&m={m}&e={e}&d={d} |
search exercise, workout plans along with exercises etc |
DeviceReg
Represent Device Register controller
API | Description |
---|---|
POST api/devicereg/register |
Register user logged in devices for receiving notifications |
GET api/devicereg/user/info/{id} |
Lifetrons user basic info by device id |
User
Lifetrons user profile,medical,trustee details api info
API | Description |
---|---|
POST api/user/activity/{id} |
Sync user activity data like weight, step sync etc |
GET api/user/activity/logs/{id}?fromDate={fromDate}&toDate={toDate} |
user activity logs like appOpen, weightSync etc between two dates |
DELETE api/user/activity/log/{id}?lId={lId} |
delete user activity log by log id |
GET api/user/address?id={id}&aId={aId}&epochtime={epochtime} |
user added address for buy and shipping product |
POST api/user/address/{id} |
create or update org member address |
POST api/user/dailyintake/update/{id} |
set user daily intake like water,food etc |
GET api/user/dailyintake/{id}?fromDate={fromDate}&toDate={toDate} |
user daily intake like food,water |
POST api/user/editprofile |
edit user profile details like name,gender and other details |
GET api/user/health/shortsummary/{id}?fromDate={fromDate}&toDate={toDate} |
user health short summary like steps,distance,calories,weight etc |
POST api/user/healthgoals/{id} |
set user daily goals. Like steps,calories,distance etc |
GET api/user/profile/{id} |
new api to get user profile information without medical details. |
PUT api/user/profile/scale?id={id} |
update user height,gender and date of birth. |
PUT api/user/profile/{id} |
Update user profile details. use this when new user signup |
PUT api/user/profile/updatephoto |
update user profile pic |
GET api/user/scale/profiles/{id}?pId={pId}&epochtime={epochtime} |
list of scale profiles created by users |
DELETE api/user/scale/profiles/{id}?pId={pId} |
delete scale profile created by users |
POST api/user/scale/profiles/create/{id} |
create user profile for scale data |
PUT api/user/update_mobilenumber/{id} |
update user mobile number using firebase phone auth |
Diet
add food,recipe. view diet created by dietitian etc
Documents
upload user reports, pdf file and other important documents
API | Description |
---|---|
GET api/document/{id}?dId={dId}&epochtime={epochtime} |
list of documents, reports, images etc uploaded by user |
GET api/document/download/{id}?dId={dId} |
download documents, reports, images etc uploaded by user |
POST api/document/share/{id} |
share or unshare documents, reports, images etc uploaded by user |
DELETE api/document/remove/{id}?dId={dId} |
remove/delete specific documents, reports, images etc uploaded by user |
POST api/document/user/upload/{id}?omId={omId}&oId={oId} |
upload documents, reports, images etc |
Notifications
Use for all notifications like group/individual alerts or others
API | Description |
---|---|
POST api/notifications/appointment/{id} |
Send appointment notifications to org member |
POST api/notifications/chat/v1/{id} |
Send chat notifications to org member |
PUT api/notifications/hraform/{id}?oId={oId}&omId={omId}&mId={mId} |
Send hra form filled notification to org memeber |
PUT api/notifications/bodytrans/{id}?oId={oId}&omId={omId}&mId={mId} |
send body transformation notification to org memeber |
PUT api/notifications/bodytrans/update/{id}?oId={oId}&omId={omId}&mId={mId} |
send body transformation notification after update to org memeber |
POST api/notifications/mealphoto |
send meal photo notification |
PUT api/notifications/dataSync/{id} |
send data sync notification like weight, body measurements etc to org memeber |
TrustedOrg
it's all about your trusted organization like school,corporates,hospitals etc.
API | Description |
---|---|
GET api/trustedorg/orgs/{id}?oId={oId}&oMId={oMId} |
public listed org and it's member |
GET api/trustedorg/orgs/link/{id}?uId={uId} |
public link org and it's member details |
PUT api/trustedorg/orgs/link/connect/{id}?uId={uId}&oId={oId}&obId={obId}&oMId={oMId} |
connect with org member using public link |
GET api/trustedorg/orgs/link/callback/{id}?oId={oId}&obId={obId}&oMId={oMId} |
request a callback if org member disabled connection to join using public link |
POST api/trustedorg/orgs/link/lead/{id}?oId={oId}&obId={obId}&oMId={oMId} |
Lead generation of org member using public link |
POST api/trustedorg/orgs/link/stats/{id} |
public link org and it's member stats updates |
GET api/trustedorg/event/{id}?epochtime={epochtime} |
user joined org event details |
GET api/trustedorg/event/{id}?c={c} |
org event details by code |
GET api/trustedorg/event/{id}?eId={eId} |
org event details by id |
PUT api/trustedorg/event/join/{id}?eId={eId} |
join org event by id |
POST api/trustedorg/permissions/{id} |
share/unshare user permissions health with trusted organizations. It may be user location/medical details/emergency contacts/doctor details etc. |
GET api/trustedorg/members/{id}?epochtime={epochtime} |
trusted organization member from schools,hospitals,clinics,doctors etc |
GET api/trustedorg/members/{id}?c={c} |
OLD - get fitness coach,health expert,doctor invitation from invite code |
GET api/trustedorg/members/v1/{id}?c={c} |
NEW - get fitness coach,health expert,doctor invitation from invite code |
DELETE api/trustedorg/members/{id}?oId={oId}&obId={obId}&omId={omId} |
remove org member by org id and org branch id |
POST api/trustedorg/members/review/{id} |
Post review for org member |
DELETE api/trustedorg/members/review/{id}?rId={rId}&oId={oId}&omId={omId}&oBId={oBId} |
delete org member review posted by user |
PUT api/trustedorg/members/invitation/{id}?c={c} |
accept fitness coach,health expert,doctor invitation from invite code |
GET api/trustedorg/members/goal/{id}?gid={gid} |
goals set by trusted organization member like dietitian/coach/fitness expert |
PUT api/trustedorg/members/goal/accept/{id}?gid={gid} |
accept goal set by trusted organization member like dietitian/coach/fitness expert |
POST api/trustedorg/members/package/payment/v1/{id} |
stripe accept org member package payment |
POST api/trustedorg/members/package/payment/{id} |
accept org member package payment |
POST api/trustedorg/members/package/payment/verification/{id} |
payment verification on server side successfull transction on client side |
PUT api/trustedorg/members/package/payment/failed/{id}?oId={oId}&oMId={oMId}&orId={orId} |
update payment failed status on server side successfull transction on client side |
Devices
it's all about your devices associated with your Lifetrons account.
Food
search basic food,recipe, restaurant food etc
API | Description |
---|---|
GET api/food/search/{id}?l={l}&o={o}&f={f}&q={q} |
search food by name, filters etc |
GET api/food/search/recipe/{id}?l={l}&o={o}&f={f}&q={q} |
search food by name, filters etc |
Guardians
see details of my guardiandships. Add,update,get guardian
API | Description |
---|---|
POST api/guardians/addupdate |
Users can add or update their guardains along with their medical infomations. |
DELETE api/guardians/delete?id={id}&dId={dId} |
Delete guardian from Guardians list if it is not shared with anyone else. |
GET api/guardians/myguardians?id={id}&epochtime={epochtime} |
My guardiances list with details like name,gender,medical info etc. |
GET api/guardians/growth?id={id}&did={did}&fromDate={fromDate}&toDate={toDate} |
Kids/Child growth chart data |
POST api/guardians/growth/sync/{id} |
Sync kids/child growth data |
DELETE api/guardians/growth/data/sync/{id}?dId={dId}&log_id={log_id} |
delete guardian growth data based on logid |
Group
it's all about user groups, associated groups, corp groups etc
API | Description |
---|---|
GET api/group/{id}?gId={gId}&epochtime={epochtime} |
list of groups associated with user |
POST api/group/create/{id} |
create individual, corp group by users |
PUT api/group/challenge/start/{id}?gId={gId} |
start group challenge when every on in group have updated there goals for challenge |
POST api/group/healthgoals/{id}?gId={gId} |
set user health goals for challenge. Like steps,calories,distance etc |
PUT api/group/goal_update/{id}?gId={gId} |
update group member goalUpdated status after setting goal |
GET api/group/info/{id}?gId={gId} |
group info before joing group. |
PUT api/group/join/{id}?gId={gId} |
join group by invite url key |
PUT api/group/left/{id}?gId={gId} |
left group by member it self |
GET api/group/progress/{id}?gId={gId}&epochtime={epochtime} |
group challenge progress information for daily intakes, activities, weights |
PUT api/group/remove_member/{id}?mId={mId}&gId={gId} |
remove member from group |
POST api/group/sync/progress/{id} |
sync all challenge/groups progress data to servere |