Account

user account api calls for login,signup etc

APIDescription
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

APIDescription
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

APIDescription
GET api/generic/check

Check internet

Activity

api related activity like workout plans, exercises

APIDescription
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

APIDescription
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

APIDescription
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

APIDescription
POST api/diet/nutrition_profile/{id}

Create new nutrition profile

GET api/diet/v2/template/{id}?oId={oId}&oMId={oMId}&dtId={dtId}&epochtime={epochtime}

User diet template with Nutrition Profile

POST api/diet/v2/template/{id}

Create diet template for dietitian or for Lifetrons user

POST api/diet/template/plan/day/{id}

add new day in diet plan

DELETE api/diet/template/{id}?dtId={dtId}&omid={omid}

Delete diet template

GET api/diet/template/plan/{id}?dtId={dtId}&dId={dId}&epochtime={epochtime}

diet template plans along with meals and foods and workouts

DELETE api/diet/removefood/{id}

remove food from diet meal for single day or from all plan

GET api/diet/meals/{id}?dId={dId}&omid={omid}&mId={mId}&epochtime={epochtime}

user meals in diet plan with it's foods

POST api/diet/meals/addfood/{id}

user diet plan with it's meals details

POST api/diet/meals/updatefood/{id}

update meal food unit/qty

POST api/diet/meals/addcustomfood/{id}

add custom food to meals for single day or for entire plan

POST api/diet/meals/addfatfood/{id}

user diet plan with it's meals details

POST api/diet/meals/mealtype/{id}?dpId={dpId}&mealtime={mealtime}&mealTimeMin={mealTimeMin}&mId={mId}

add or edit meal type for diet plan

PUT api/diet/meals/eaten/{id}

user meals in diet plan with it's foods

PUT api/diet/meals/reorder/{id}

re-order or delete meal from plan

GET api/diet/mealtypes/{id}?omid={omid}&mId={mId}&epochtime={epochtime}

list of meal types created for user or dietitian

Documents

upload user reports, pdf file and other important documents

APIDescription
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

APIDescription
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.

APIDescription
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.

APIDescription
POST api/devices/add/{id}

Add smart Devices like gps,smartwatch,fitness band,scale etc

DELETE api/devices/delete?id={id}&did={did}

Delete specific device from devices list.

GET api/devices/list?id={id}&epochtime={epochtime}

Use this api to get list of devices added by users.

GET api/devices/fitness/{id}/bloodoxigen?fromDate={fromDate}&toDate={toDate}

Fetch data of precentage of oxigen in blood

GET api/devices/fitness/{id}/bloodpressure?fromDate={fromDate}&toDate={toDate}

Fetch blood pressure data

DELETE api/devices/fitness/delete/bloodpressure/{id}?log_id={log_id}

delete blood pressure data based on logid

GET api/devices/fitness/{id}/bloodsugar?fromDate={fromDate}&toDate={toDate}

Fetch blood sugar data

DELETE api/devices/fitness/delete/bloodsugar/{id}?log_id={log_id}

delete blood sugar data based on logid

GET api/devices/fitness/{id}/whr?fromDate={fromDate}&toDate={toDate}

Fetch waist, hip ratio data

DELETE api/devices/fitness/delete/whr/{id}?log_id={log_id}

delete whr data based on logid

GET api/devices/fitness/{id}/heart?fromDate={fromDate}&toDate={toDate}&did={did}

Heart rate data from user fitness devices

GET api/devices/fitness/{id}/activities?fromDate={fromDate}&toDate={toDate}&did={did}

List of activities data performed by users. Like running, walking, gym etc

GET api/devices/fitness/{id}/activities_latest

get latest activities data performed by users. Like running, walking, gym etc

GET api/devices/fitness/{id}/sleep?fromDate={fromDate}&toDate={toDate}&did={did}

Sleep data from user fitness devices

GET api/devices/fitness/{id}/scale?fromDate={fromDate}&toDate={toDate}&did={did}

total body analysis data from user fitness devices

DELETE api/devices/fitness/delete/scaledata/{id}?log_id={log_id}

delete scale data based on logid

DELETE api/devices/fitness/delete/scaleprofiledata/{id}?pId={pId}&log_id={log_id}

delete scale user profile data based on logid

GET api/devices/fitness/scale/user/profile/{id}?pId={pId}&fromDate={fromDate}&toDate={toDate}

total body analysis data for scale user profile

GET api/devices/fitness/{id}/scale_latest

latest total body analysis data from user fitness devices

GET api/devices/fitness/{id}/scale_profile_latest?pId={pId}

latest total body analysis data from user fitness devices

POST api/devices/fitness/sync/bloodoxigen/{id}

Sync percentage of oxigen in blood data from fitness devices to Lifetrons server

POST api/devices/fitness/sync/bloodpressure/{id}

Sync blood pressure data from fitness devices to Lifetrons server

POST api/devices/fitness/sync/bloodsugar/{id}

Sync blood sugar data from user to Lifetrons server

POST api/devices/fitness/sync/whr/{id}

Sync waist, hip ratio data to Lifetrons server

POST api/devices/fitness/sync/heart/{id}

Sync heart rate data from fitness devices to Lifetrons server

POST api/devices/fitness/sync/activities/{id}

Sync activities data from fitness devices to Lifetrons server

POST api/devices/fitness/sync/sleep/{id}

Sync sleep data from fitness devices to Lifetrons server

POST api/devices/fitness/sync/scale/{id}

Sync user body analysis data from fitness devices to Lifetrons server

POST api/devices/fitness/sync/scale/user/profile/{id}

Sync scale user profile body analysis data from fitness devices to Lifetrons server

Food

search basic food,recipe, restaurant food etc

APIDescription
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

APIDescription
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

APIDescription
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