{"info":{"_postman_id":"c8e088cd-9bcc-4bc3-9df1-81f0e0f0baef","name":"HCGateway","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"25182165","collectionId":"c8e088cd-9bcc-4bc3-9df1-81f0e0f0baef","publishedId":"2sBXcLecJN","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-03-06T01:12:49.000Z"},"item":[{"name":"get token","id":"c4e66a19-326c-47db-bcb1-444e0e7d034e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"string\",\n  \"password\": \"string\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api.hcgateway.shuchir.dev/api/v2/login","description":"<p>Login a user and get a token to use for authentiction.</p>\n","urlObject":{"path":["api","v2","login"],"host":["https://api.hcgateway.shuchir.dev"],"query":[],"variable":[]}},"response":[{"id":"cbf21cdb-f3e0-4487-9eae-0ca794821031","name":"200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"string\",\n  \"password\": \"string\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api.hcgateway.shuchir.dev/api/v2/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"token\": \"string\",\n  \"refresh\": \"string\",\n  \"expiry\": \"1994-01-05T14:19:50.145Z\"\n}"}],"_postman_id":"c4e66a19-326c-47db-bcb1-444e0e7d034e"},{"name":"refresh token","id":"d9300770-0f44-4604-8e24-2fa0ae8c92ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"refresh\": \"string\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api.hcgateway.shuchir.dev/api/v2/refresh","description":"<p>Refresh a user token.</p>\n","urlObject":{"path":["api","v2","refresh"],"host":["https://api.hcgateway.shuchir.dev"],"query":[],"variable":[]}},"response":[{"id":"d79a5f20-5059-44c5-a8a7-51fd25c3e975","name":"200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"refresh\": \"string\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api.hcgateway.shuchir.dev/api/v2/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"token\": \"string\",\n  \"refresh\": \"string\",\n  \"expiry\": \"1994-01-05T14:19:50.145Z\"\n}"}],"_postman_id":"d9300770-0f44-4604-8e24-2fa0ae8c92ea"},{"name":"revoke token","id":"f5460618-da33-462a-8dbb-2f1d28c649c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"}],"url":"https://api.hcgateway.shuchir.dev/api/v2/revoke","description":"<p>Revoke all user tokens and refresh tokens immediately. Pass a currently valid token through the Authentication header to revoke your user.</p>\n","urlObject":{"path":["api","v2","revoke"],"host":["https://api.hcgateway.shuchir.dev"],"query":[],"variable":[]}},"response":[{"id":"c1066621-59e2-4af7-ab6f-3361177aadbe","name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"url":"https://api.hcgateway.shuchir.dev/api/v2/revoke"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"string\"\n}"}],"_postman_id":"f5460618-da33-462a-8dbb-2f1d28c649c1"},{"name":"fetch","id":"90d0019e-943e-45d4-a231-f98cacf76e0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"queries\": {}\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api.hcgateway.shuchir.dev/api/v2/fetch/:method","description":"<p>Get data from the database.</p>\n","urlObject":{"path":["api","v2","fetch",":method"],"host":["https://api.hcgateway.shuchir.dev"],"query":[],"variable":[{"id":"54cd71d6-a7d7-4d0a-8ffb-ee8badbffb1f","description":{"content":"<p>Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes</p>\n","type":"text/plain"},"type":"any","value":"string","key":"method"}]}},"response":[{"id":"6c94cc3e-5206-4db7-a4d6-1ceccdfc67ca","name":"200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"queries\": {}\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api.hcgateway.shuchir.dev/api/v2/fetch/:method","host":["https://api.hcgateway.shuchir.dev"],"path":["api","v2","fetch",":method"],"variable":[{"key":"method","value":"string","description":"Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"_id\": \"string\",\n    \"data\": {},\n    \"id\": \"string\",\n    \"start\": \"1998-09-13T23:31:08.612Z\",\n    \"end\": \"2004-09-08T06:46:48.931Z\",\n    \"app\": \"string\"\n  },\n  {\n    \"_id\": \"string\",\n    \"data\": {},\n    \"id\": \"string\",\n    \"start\": \"1979-07-19T06:52:32.792Z\",\n    \"end\": \"1969-02-26T08:04:26.761Z\",\n    \"app\": \"string\"\n  }\n]"}],"_postman_id":"90d0019e-943e-45d4-a231-f98cacf76e0e"},{"name":"push Data","id":"05c693a9-a9dd-4116-a55e-3a1a11f3d227","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api.hcgateway.shuchir.dev/api/v2/push/:method","description":"<p>Insert data into your local Health Connect store. This method does not add the data to the HCGateway database. This method is only used to push data to your local Health Connect store. This is so you can sync + fetch to verify the record has been added.</p>\n","urlObject":{"path":["api","v2","push",":method"],"host":["https://api.hcgateway.shuchir.dev"],"query":[],"variable":[{"id":"f5b1bc85-69c0-4e6e-adf7-35db5c75ef39","description":{"content":"<p>Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes</p>\n","type":"text/plain"},"type":"any","value":"string","key":"method"}]}},"response":[{"id":"9b6fa695-08ac-492c-9197-2331cb3bed09","name":"200","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api.hcgateway.shuchir.dev/api/v2/push/:method","host":["https://api.hcgateway.shuchir.dev"],"path":["api","v2","push",":method"],"variable":[{"key":"method","value":"string","description":"Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"string\"\n}"}],"_postman_id":"05c693a9-a9dd-4116-a55e-3a1a11f3d227"},{"name":"delete Data","id":"07659d5b-4289-43ab-9a7e-86eb3f07b9c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearerToken}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"uuid\": [\n    \"string\",\n    \"string\"\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api.hcgateway.shuchir.dev/api/v2/delete/:method","description":"<p>Request deletion for a record. This method does not delete the record from the HCGateway database. This method is only used to request deletion of a record from your local Health Connect store. The app will delete it from the database using the sync method once it has deleted the record(s) locally.</p>\n","urlObject":{"path":["api","v2","delete",":method"],"host":["https://api.hcgateway.shuchir.dev"],"query":[],"variable":[{"id":"25cf9139-5e86-4d06-aae9-1e04eb27f031","description":{"content":"<p>Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes</p>\n","type":"text/plain"},"type":"any","value":"string","key":"method"}]}},"response":[{"id":"ac6a9300-31ec-47f4-b3fb-58ead7cbb39f","name":"200","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: bearer","key":"Authorization","value":"Bearer <token>"}],"body":{"mode":"raw","raw":"{\n  \"uuid\": [\n    \"string\",\n    \"string\"\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api.hcgateway.shuchir.dev/api/v2/delete/:method","host":["https://api.hcgateway.shuchir.dev"],"path":["api","v2","delete",":method"],"variable":[{"key":"method","value":"string","description":"Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"string\"\n}"}],"_postman_id":"07659d5b-4289-43ab-9a7e-86eb3f07b9c6"}],"variable":[{"key":"baseUrl","value":"https://api.hcgateway.shuchir.dev"}]}