{"info":{"_postman_id":"d0739334-353c-43b2-99eb-7dbd40f22e34","name":"Glynk API Doc","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"1347967","collectionId":"d0739334-353c-43b2-99eb-7dbd40f22e34","publishedId":"Tz5p7ypL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-24T13:10:57.000Z"},"item":[{"name":"Integration APIs","item":[{"name":"User","item":[{"name":"Create User","id":"7edf2715-b017-4d71-84d7-b22fff334655","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"<USER_FIRST_NAME>\", //* Required field   \n    \"last_name\": \"<USER_LAST_NAME>\", //* Required field   \n    \"country_code\": \"<PHONE_NUMBER_COUNTRY_CODE>\", // Example: +91\n    \"phone_number\": \"<PHONE_NUMBER_WITHOUT_COUNTRY_CODE>\",  //* Required field   \n    \"dob\": \"<USER_DOB>\", // In Format dd-mm-yyy\n    \"gender\": \"male\", // Options : \"male\",\"female\",\"other\"\n    \"city\": \"<CITY>\", // Example: Tirchy\n    \"profile_picture\": \"<PROFILE_PIC_URL>\", //URL should be public \n    \"groups\": [ //List of cutom groups to be created for the user\n        {\n            \"group_name\": \"<GROUP_NAME>\",\n            \"group_id\": \"<GROUP_INDENTIFIER>\", // Group Identifier in your system\n            \"group_description\": \"<GROUP_DESCRIPTION>\", \n            \"group_image_url\": \"<GROUP_IMAGE_URL>\"\n        }\n    ],\n    \"devices\": [ //List of devices to send push notifications\n        {\n            \"device_id\": \"<DEVICE_REGISTRATION_ID>\", // FCM registered device id\n            \"device_type\": \"<DEVICE_TYPE>\" //Options: \"android\" or \"ios\"\n        },\n    ],\n }"},"url":"https://api.glynk.com/ext/create_user/","description":"<p>Use the Create User API to create the user in Glynk system and update the meta details of the user. API will respond back with user secret mapped to the created user, which will be used for further update to the user data and in web-sdk to launch the user specific community web-sdk screens</p>\n","urlObject":{"protocol":"https","path":["ext","create_user",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[{"id":"13ce5e2b-4f71-48ff-ab6c-a7addf52b7d1","name":"Ex Create User","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"<API_KEY>","description":"<API_KEY>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"<USER_FIRST_NAME>\", //* Required field   \n    \"last_name\": \"<USER_LAST_NAME>\", //* Required field   \n    \"country_code\": \"<PHONE_NUMBER_COUNTRY_CODE>\", // Example: +91\n    \"phone_number\": \"<PHONE_NUMBER_WITHOUT_COUNTRY_CODE>\",  //* Required field   \n    \"dob\": \"<USER_DOB>\", // In Format dd-mm-yyy\n    \"gender\": \"male\", // Options : \"male\",\"female\",\"other\"\n    \"city\": \"<CITY>\", // Example: Tirchy\n    \"profile_picture\": \"<PROFILE_PIC_URL>\", //URL should be public \n    \"groups\": [ //List of cutom groups to be created for the user\n        {\n            \"group_name\": \"<GROUP_NAME>\",\n            \"group_id\": \"<GROUP_INDENTIFIER>\", // Group Identifier in your system\n            \"group_description\": \"<GROUP_DESCRIPTION>\", \n            \"group_image_url\": \"<GROUP_IMAGE_URL>\"\n        }\n    ],\n    \"devices\": [ //List of devices to send push notifications\n        {\n            \"device_id\": \"<DEVICE_REGISTRATION_ID>\", // FCM registered device id\n            \"device_type\": \"<DEVICE_TYPE>\" //Options: \"android\" or \"ios\"\n        },\n    ],\n }"},"url":"https://api.glynk.com/ext/create_user/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"PASS\",\n    \"user_secret\": \"<USER_SECRET>\"\n}"}],"_postman_id":"7edf2715-b017-4d71-84d7-b22fff334655"},{"name":"Delete User","id":"345c4ffd-6b35-4473-b69a-cd94d6b69b60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"<USER_EMAIL>","type":"text","description":"<p>//* Required field</p>\n"}]},"url":"https://api.glynk.com/ext/delete_user/","description":"<p>Use the Create User API to create the user in Glynk system and update the meta details of the user. API will respond back with user secret mapped to the created user, which will be used for further update to the user data and in web-sdk to launch the user specific community web-sdk screens</p>\n","urlObject":{"protocol":"https","path":["ext","delete_user",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[{"id":"43fbb02f-568f-412b-a86e-d14278be166b","name":"Ex Delete User","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"<API_KEY>","description":"<API_KEY>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@gmail.com","type":"text"}]},"url":"https://api.glynk.com/ext/delete_user/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"PASS\",\n}"}],"_postman_id":"345c4ffd-6b35-4473-b69a-cd94d6b69b60"},{"name":"Update User","id":"7baf0b86-2751-42a5-ad68-06b52bbfe7b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":" ","key":"api-key","type":"text","value":""},{"key":"user-secret","value":"","description":" ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"<USER_FIRST_NAME>\", //* Required field   \n    \"last_name\": \"<USER_LAST_NAME>\", //* Required field   \n    \"dob\": \"<USER_DOB>\", // In Format dd-mm-yyy\n    \"gender\": \"male\", // Options : \"male\",\"female\",\"other\"\n    \"city\": \"<CITY>\", // Example: Tirchy\n    \"profile_picture\": \"<PROFILE_PIC_URL>\", //URL should be public \n    \"groups\": [ //List of cutom groups to be created for the user\n        {\n            \"group_name\": \"<GROUP_NAME>\",\n            \"group_id\": \"<GROUP_INDENTIFIER>\", // Group Identifier in your system\n            \"group_description\": \"<GROUP_DESCRIPTION>\", \n            \"group_image_url\": \"<GROUP_IMAGE_URL>\"\n        }\n    ],\n    \"devices\": [ //List of devices to send push notifications\n        {\n            \"device_id\": \"<DEVICE_REGISTRATION_ID>\", // FCM registered device id\n            \"device_type\": \"<DEVICE_TYPE>\" //Options: \"android\" or \"ios\"\n        },\n    ],\n }"},"url":"https://api.glynk.com/ext/update_user/","description":"<p>Use the Update User API to update user data in Glynk system and keep the user data in-sync.</p>\n","urlObject":{"protocol":"https","path":["ext","update_user",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[{"id":"ccdd8b75-82d0-4182-9ddf-b72b1bc907fe","name":"Ex Update User","originalRequest":{"method":"POST","header":[{"key":"api-key","type":"text","value":" <API_KEY>"}],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"<USER_FIRST_NAME>\", //* Required field   \n    \"last_name\": \"<USER_LAST_NAME>\", //* Required field   \n    \"dob\": \"<USER_DOB>\", // In Format dd-mm-yyy\n    \"gender\": \"male\", // Options : \"male\",\"female\",\"other\"\n    \"city\": \"<CITY>\", // Example: Tirchy\n    \"profile_picture\": \"<PROFILE_PIC_URL>\", //URL should be public \n    \"groups\": [ //List of cutom groups to be created for the user\n        {\n            \"group_name\": \"<GROUP_NAME>\",\n            \"group_id\": \"<GROUP_INDENTIFIER>\", // Group Identifier in your system\n            \"group_description\": \"<GROUP_DESCRIPTION>\", \n            \"group_image_url\": \"<GROUP_IMAGE_URL>\"\n        }\n    ],\n    \"devices\": [ //List of devices to send push notifications\n        {\n            \"device_id\": \"<DEVICE_REGISTRATION_ID>\", // FCM registered device id\n            \"device_type\": \"<DEVICE_TYPE>\" //Options: \"android\" or \"ios\"\n        },\n    ],\n }"},"url":"https://api.glynk.com/ext/update_user/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"PASS\",\n}"}],"_postman_id":"7baf0b86-2751-42a5-ad68-06b52bbfe7b2"},{"name":"External Authentication","id":"dfaa0526-2689-4a2f-86a2-698b8881d9c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>Authentication token/ JWT if applicable</p>\n","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Phone number with country code(+91)</p>\n","key":"phone_number","type":"text","value":""},{"description":"<p>Email</p>\n","key":"email","type":"text","value":""}]},"url":"{{AUTH_API_URL}}","description":"<p>In the case of private communities, Glynk will authenticate with external systems to restrict the access of user to the community. Glynk will need an API that takes phone number or email as the input based on the community login type configured, and respond back with success/fail status. You can send additional user related meta data like name, gender, profile picture etc in the format shared so the system can prefill data for the user.</p>\n","urlObject":{"host":["{{AUTH_API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"2e8f4c01-6ac4-413b-980b-5221ab1c83df","name":"Authentication","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone_number","value":"","description":"Phone number with country code(+91)","type":"text"},{"key":"email","value":"","type":"text"}]},"url":"{{AUTH_API_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"// API should send the data in below format with HTTP 200 OK success status\n{    \n\"status\":  \"pass\",                    //*Required field   \n\"user_id\": <user_id in your system>,    //*Required field    \n\"first_name\": <user_first_name>,\n\"last_name\": <user_last_name>,\n\"phone_number\": <user_phone_number>,\n\"email\": <user_email>,\n\"gender\": <'male', 'female', 'other'> // optional\n\"profile_picture\": <profile_picture_url>, //Should be publicly accessible, so it can be fetched and stored in Glynk system\n\"property_id\": <property or building id of the tenant>, //Applicable only for coliving communities\n\"property_name\": <property or building name>,//Applicable only for coliving communities\n\"block\": <block name in the property if applicable>,//Applicable only for coliving communities\n\"house_id\": <house id of the tenant>,//Applicable only for coliving communities\n\"house_name\": <house name of the tenant>,//Applicable only for coliving communities\n\"is_active_tenant\": <'true' or 'false'>, //Applicable only for coliving communities\n\"move_in_date\": \"2021-02-22 13:20:48.880000\", //Move in date of the user stay in UTC\n\"move_out_date\": \"2021-04-22 13:20:48.880000\", //Move out date of the user stay in UTC\n}"}],"_postman_id":"dfaa0526-2689-4a2f-86a2-698b8881d9c1"},{"name":"Checkout User","id":"54438971-d533-4fde-b64e-395a0a1d4858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":" ","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"external_user_id","value":"","description":"","type":"text"}]},"url":"https://api.glynk.com/ext/checkout_user/","urlObject":{"protocol":"https","path":["ext","checkout_user",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[{"id":"65c1eecf-bc41-4d47-934f-d185cf005a74","name":"Checkout User","originalRequest":{"method":"POST","header":[{"key":"api-key","value":" <API_KEY>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"external_user_id","value":"<EXTERNAL_USER_ID>","type":"text"}]},"url":"https://api.glynk.com/ext/ext/checkout_user/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"PASS\",\n}"}],"_postman_id":"54438971-d533-4fde-b64e-395a0a1d4858"},{"name":"Send Invite Notification","id":"3191664d-823c-4795-a1f6-da1666e798c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"","description":"","type":"text"},{"key":"last_name","value":"","description":"","type":"text"},{"key":"email","value":"","description":"","type":"text"},{"key":"phone_number","value":"","description":"","type":"text"}]},"url":"https://api.glynk.com/ext/send_invite_notification/","urlObject":{"protocol":"https","path":["ext","send_invite_notification",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[{"id":"f79425b7-efac-45b2-a6fc-3f1dec010b36","name":"Send Invite Notification","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"<API_KEY>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"<USER_FIRST_NAME>","type":"text"},{"key":"last_name","value":"<USER_LAST_NAME>","type":"text"},{"key":"email","value":"<USER_EMAIL>","type":"text"},{"key":"phone_number","value":"<USER_PHONE_NUMBER>","type":"text"}]},"url":"https://api.glynk.com/ext/send_invite_notification/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"PASS\",\n}"}],"_postman_id":"3191664d-823c-4795-a1f6-da1666e798c9"}],"id":"2216763d-744f-453b-85fe-029357d71693","event":[{"listen":"prerequest","script":{"id":"b0bd745d-5a6b-415e-879d-4fde343efcba","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f1c66e73-f39d-4622-b4d1-7ec98df05c20","type":"text/javascript","exec":[""]}}],"_postman_id":"2216763d-744f-453b-85fe-029357d71693","description":""},{"name":"Send Notifications","item":[{"name":"Complaint List Page","id":"fc621442-f5e6-434c-a263-137ce4769705","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"<p>Your Glynk api_key</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"notification_type","value":"EXT_COMPLAINTS","type":"text","description":"<p>[Mandatory] Directs user to complaint list page.</p>\n"},{"key":"user_id","value":"","type":"text","description":"<p>[Mandatory] User id in your system</p>\n"},{"key":"title","value":"E.g. Your tickets summary","type":"text","description":"<p>[Mandatory] Title for push &amp; in-app notification</p>\n"},{"key":"text","value":"E.g.: Closed tickets: 2, Updated tickets: 1","type":"text","description":"<p>[Mandatory] Text for push &amp; in-app notification</p>\n"},{"key":"image","value":"<IMAGE_LINK>","description":"<p>[Optional] Image sent in push and in-app notification. Use a publicly shareable image link with image size under 200 KB.</p>\n","type":"text"}]},"url":"https://api.glynk.com/ext/send_notification/","description":"<p>This API can be used to send instant push and in-app notifications to any user on the app. \nOnce the API is invoked, the user with the specified user ID will receive push and in-app notifications, clicking the notification will direct user to his complaints list view.</p>\n","urlObject":{"protocol":"https","path":["ext","send_notification",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc621442-f5e6-434c-a263-137ce4769705"},{"name":"Complaint Page","id":"f43da6dd-71e1-48b9-a4cf-e44d7c400497","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"<p>Your Glynk api_key</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"notification_type","value":"EXT_COMPLAINT_DETAILS","type":"text","description":"<p>Directs user to specified complaint page.</p>\n"},{"key":"user_id","value":"","type":"text","description":"<p>User id in your system</p>\n"},{"key":"title","value":"E.g. #347 Wifi not working","type":"text","description":"<p>Title for push &amp; in-app notification</p>\n"},{"key":"text","value":"E.g. Reply from support \"Please reset your router and modem..\"\n","type":"text","description":"<p>Text for push &amp; in-app notification</p>\n"},{"key":"data","value":"{\"external_complaint_id\": \"<COMPLAINT_ID>\"}","type":"text","description":"<p>Complaint id in your system</p>\n"},{"key":"image","value":"<IMAGE_LINK>","type":"text","description":"<p>Image sent in push and in-app notification. Use a publicly shareable image link with image size under 200 KB.</p>\n"}]},"url":"https://api.glynk.com/ext/send_notification/","description":"<p>This API can be used to send instant push and in-app notifications to any user on the app. \nOnce the API is invoked, user will receive push and in-app notification, clicking the notification will direct user to the specified complaint page.</p>\n","urlObject":{"protocol":"https","path":["ext","send_notification",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f43da6dd-71e1-48b9-a4cf-e44d7c400497"},{"name":"Payment List Page","id":"462b8270-6c2a-41c4-bba2-749a7c6e8d33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"<p>Your Glynk api_key</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"notification_type","value":"EXT_PAYMENTS","type":"text","description":"<p>[Mandatory] Directs user to payment list page.</p>\n"},{"key":"user_id","value":"","type":"text","description":"<p>[Mandatory] User id in your system</p>\n"},{"key":"title","value":"E.g. A $540.0 payment is due now","type":"text","description":"<p>[Mandatory] Title sent in push and in app notification</p>\n"},{"key":"text","value":"E.g. You can pay your dues online by clicking here.","type":"text","description":"<p>[Mandatory] Text sent in push and in app notification</p>\n"},{"key":"image","value":"<IMAGE_LINK>","description":"<p>[Optional] Image sent in push and in-app notification. Use a publicly shareable image link with image size under 200 KB.</p>\n","type":"text"}]},"url":"https://api.glynk.com/ext/send_notification/","description":"<p>This API can be used to send instant push and in-app notifications to any user on the app. \nOnce the API is invoked, the user with the specified user ID will receive push and in-app notifications, clicking the notification will direct user to his payments list view.</p>\n","urlObject":{"protocol":"https","path":["ext","send_notification",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"462b8270-6c2a-41c4-bba2-749a7c6e8d33"},{"name":"Open App","id":"1c98d381-de3d-4f7e-a50d-0062aa68751d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"<p>Your Glynk api_key</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"notification_type","value":"EXT_OPEN_APP","type":"text","description":"<p>[Mandatory] Directs user to open app.</p>\n"},{"key":"user_id","value":"","type":"text","description":"<p>[Mandatory] User id in your system</p>\n"},{"key":"title","value":"E.g. Announcements","type":"text","description":"<p>[Mandatory] Title sent in push and in app notification</p>\n"},{"key":"text","value":"E.g. Lift will be under maintenance today.","type":"text","description":"<p>[Mandatory] Text sent in push and in app notification</p>\n"}]},"url":"https://api.glynk.com/ext/send_notification/","description":"<p>This API can be used to send instant push to any user on the app. \nOnce the API is invoked, the user with the specified user ID will receive push notification, clicking the notification will direct user to open the app.</p>\n","urlObject":{"protocol":"https","path":["ext","send_notification",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c98d381-de3d-4f7e-a50d-0062aa68751d"},{"name":"Open External Web Links (with custom app header)","id":"a060c194-6eff-4a87-8442-2050cb9776b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"","description":"<p>Your Glynk api_key</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"notification_type","value":"EXT_OPEN_LINK","type":"text","description":"<p>[Mandatory] Directs user to specified web link</p>\n"},{"key":"user_id","value":"","type":"text","description":"<p>[Mandatory] User id in your system</p>\n"},{"key":"title","value":"E.g. Update on invoice 143","type":"text","description":"<p>[Mandatory] Title for push &amp; in-app notification</p>\n"},{"key":"text","value":"E.g. Water charges debited in invoice 143 have been reversed. Click for more details!","type":"text","description":"<p>[Mandatory] Text for push &amp; in-app notification</p>\n"},{"key":"data","value":"{\"link\": \"<LINK>\", \"show_header\": true, \"screen_title\": \"<SCREEN_TITLE>\"}","type":"text","description":"<p>[Mandatory] \"LINK\" refers to the link that should open on clicking notification.\nThe link's page will open in an in-app screen with a custom header.\n\"SCREEN_TITLE\" refers to the custom header's title.</p>\n"},{"key":"image","value":"<IMAGE_LINK>","description":"<p>[Optional] Image sent in push and in-app notification. Use a publicly shareable image link with image size under 200 KB.</p>\n","type":"text"}]},"url":"https://api.glynk.com/ext/send_notification/","description":"<p>This API can be used to send instant push and in-app notifications directing the user to specific links like invoices, payment gateway URLs or any other web link.</p>\n<p>Once the API is invoked, the user will receive push and in-app notifications, clicking the notification will open the specified web link.</p>\n","urlObject":{"protocol":"https","path":["ext","send_notification",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a060c194-6eff-4a87-8442-2050cb9776b4"}],"id":"5e6f4dc6-10ed-4e48-a62b-eb013ccb347d","description":"<p>Note: There could be some lag in the user receiving push notifications due to dependency on FCM/APNS delivery service.</p>\n","event":[{"listen":"prerequest","script":{"id":"64751329-0cbc-44f0-8307-d104ab8a309a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"37ca410b-76cd-4f51-aecf-f67d993bb92c","type":"text/javascript","exec":[""]}}],"_postman_id":"5e6f4dc6-10ed-4e48-a62b-eb013ccb347d"},{"name":"External Complaints","item":[{"name":"Get Complaints Listing API","id":"5717c24c-c76e-4c87-9c3c-47521a259cb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Authentication token/ JWT if applicable</p>\n","key":"Authorization","type":"text","value":"<TOKEN>"}],"url":"{{API_URL}}?user_id=<user_id in your system>&page=<page_number>","description":"<p>The Complaints API is needed to list all of the user’s complaints (tickets) on the app. </p>\n<p>The API should accept the user’s ID (that was taken from the Authentication API response) and respond back with the tickets linked to this user in the client’s complaint management system. The response format should be as below and the API should support pagination.</p>\n","urlObject":{"host":["{{API_URL}}"],"query":[{"description":{"content":"","type":"text/plain"},"key":"user_id","value":"<user_id in your system>"},{"description":{"content":"","type":"text/plain"},"key":"page","value":"<page_number>"}],"variable":[]}},"response":[{"id":"9c5a1358-d041-476f-b844-04a44b485eb6","name":"Get Complaints Listing","originalRequest":{"method":"GET","header":[{"description":"Authentication token/ JWT if applicable","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{API_URL}}?user_id&page","host":["{{API_URL}}"],"query":[{"key":"user_id","value":null,"description":"<user_id in your system>"},{"key":"page","value":null,"description":"<page_number of pagingate response>"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n   \"status\": \"pass\",\n   \"items_per_page\": 10,\n   \"page\": 1,\n   \"complaints\": [\n       {\n           \"status\": \"open\", //\"open\" or \"closed\" status of the complaint\n           \"text\": \"Test complaint\", //complaint’s description\n           \"updated_at\": \"2021-02-22 08:00:15.809000\", // last update time of the complaint in UTC\n           \"complaint_no\": \"1278\", // user displayed complaint number in your system\n           \"created_by_firstname\": \"Sofia\", // firstname of the user who created the complaint\n           \"created_by_lastname\": \"Jokelson\", // lastname of the user who created the complaint\n           \"category_name\": \"Waste Disposal\", // category of the complaint\n           \"sub_category_name\": \"Wet Waste\", //sub-category of the complaint\n           \"created_at\": \"2021-02-22 13:20:48.880000\", // created time of the complaint in UTC\n           \"complaint_id\": \"6033afb00ac6eb5c3648890b\", // complaint id in your system\n           \"created_by_id\": \"\", // user id of the user who created the complaint\n       },\n       {\n           \"status\": \"open\",\n           \"text\": \"Test complaint\",\n           \"updated_at\": \"2021-02-22 08:00:15.809000\",\n           \"complaint_id\": \"60335d8e0ac6eb5c36486c8f\",\n           \"created_by_firstname\": \"Sofia\",\n           \"category_name\": \"Utilities & Gas\",\n           \"sub_category_name\": \"\",\n           \"created_by_lastname\": \"Jokelson\",\n           \"created_at\": \"2021-02-22 07:30:22.809000\",\n           \"complaint_uuid\": \"1277\",\n           \"created_by_id\": \"60252416bfbb530c005c9648\",\n       }\n   ]}"}],"_postman_id":"5717c24c-c76e-4c87-9c3c-47521a259cb5"},{"name":"Get Single Complaint API","id":"d0b4388a-978f-4f89-b7ca-f4ebe002ab97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Authentication token/ JWT if applicable</p>\n","key":"Authorization","type":"text","value":"<TOKEN>"}],"url":"{{API_URL}}?complaint_id=<complaint_id in your system>","description":"<p>The Single Complaint API is needed to show the complaint in details screen of the app. </p>\n<p>The API should accept the ticket id and respond back with the ticket details.</p>\n","urlObject":{"host":["{{API_URL}}"],"query":[{"description":{"content":"","type":"text/plain"},"key":"complaint_id","value":"<complaint_id in your system>"}],"variable":[]}},"response":[{"id":"348e362e-0347-4c55-95b6-0a3ea918cfcf","name":"Get Single Complaint API","originalRequest":{"method":"GET","header":[{"description":"Authentication token/ JWT if applicable","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{API_URL}}?complaint_id=","host":["{{API_URL}}"],"query":[{"key":"complaint_id","value":"","description":"<complaint_id in your system>"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n   \"status\": \"pass\",\n   \"complaint\": {\n           \"status\": \"open\", //status of the complaint\n           \"text\": \"Test complaint\", //complaint’s description\n           \"updated_at\": \"2021-02-22 08:00:15.809000\", // last update time of the complaint in UTC\n           \"complaint_no\": \"1278\", // user displayed complaint number in your system\n           \"created_by_firstname\": \"Sofia\", // firstname of the user who created the complaint\n           \"created_by_lastname\": \"Jokelson\", // lastname of the user who created the complaint\n           \"category_name\": \"Waste Disposal\", // category of the complaint\n           \"sub_category_name\": \"Wet Waste\", //sub-category of the complaint\n           \"created_at\": \"2021-02-22 13:20:48.880000\", // created time of the complaint in UTC\n           \"complaint_id\": \"6033afb00ac6eb5c3648890b\", // complaint id in your system\n           \"created_by_id\": \"\", // user id of the user who created the complaint\n       }\n}"}],"_postman_id":"d0b4388a-978f-4f89-b7ca-f4ebe002ab97"},{"name":"Get Complaint  Comments API","id":"35702061-9fda-4278-95fd-53d45c7b3498","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Authentication token/ JWT if applicable</p>\n","key":"Authorization","type":"text","value":"<TOKEN>"}],"url":"{{API_URL}}?complaint_id=<complaint_id in your system>","description":"<p>The Single Complaint API is needed to show the complaint in details screen of the app. </p>\n<p>The API should accept the ticket id and respond back with the ticket details.</p>\n","urlObject":{"host":["{{API_URL}}"],"query":[{"description":{"content":"","type":"text/plain"},"key":"complaint_id","value":"<complaint_id in your system>"}],"variable":[]}},"response":[{"id":"9f059cde-f36c-4430-8805-1203f0b3c823","name":"Get Complaint  Comments API","originalRequest":{"method":"GET","header":[{"description":"Authentication token/ JWT if applicable","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{API_URL}}?complaint_id","host":["{{API_URL}}"],"query":[{"key":"complaint_id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n   \"status\": \"pass\",\n   \"items_per_page\": 10,\n   \"page\": 1,\n   \"comments\": [{\n           \"comment_id\": \"<comment_id>\", // comment id in your system\n           \"comment_text\": \"<comment_text>\", // comment text\n           \"created_by_firstname\": \"Sofia\", // firstname of the user who created the comment\n           \"created_by_lastname\": \"Jokelson\", // lastname of the user who created the comment\n           \"created_at\": \"2021-02-22 13:20:48.880000\", // created time of the comment in UTC\n           \"updated_at\": \"2021-02-22 13:20:48.880000\", // updated time of the comment in UTC\n           \"complaint_id\": \"6033afb00ac6eb5c3648890b\", // complaint id in your system\n       }]\n}"}],"_postman_id":"35702061-9fda-4278-95fd-53d45c7b3498"},{"name":"Get Complaint Categories API","id":"2146bd20-bd65-4ef4-9722-c72324e36c75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Authentication token/ JWT if applicable</p>\n","key":"Authorization","type":"text","value":"<TOKEN>"}],"url":"{{API_URL}}","description":"<p>This API is needed to list complaint categories and sub-categories on the app. The API should respond back with the categories and sub-categories (As the nested list of objects) that are configured in the client’s complaint management system. The response format should be as below.</p>\n","urlObject":{"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"bfede84d-ba34-4623-81ea-2092fc80f775","name":"Get Complaint Categories API","originalRequest":{"method":"GET","header":[{"description":"Authentication token/ JWT if applicable","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{API_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"pass\",\n    \"page\": 1,\n    \"categories\": [{\n            \"name\": \"<category_name>\",\n            \"id\": \"<category_id\",\n            \"icon\": \"<category_icon\",\n            \"sub_categories\": [{\n                    \"name\": \"<sub_category_name>\",\n                    \"id\": \"<sub_category_id\",\n                    \"icon\": \"<sub_category_icon\",\n                },\n\n            ]\n        },\n    ]\n}"}],"_postman_id":"2146bd20-bd65-4ef4-9722-c72324e36c75"},{"name":"Create Complaints API","id":"ecb8620b-e754-459e-9570-470ef4b62857","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>Authentication token/ JWT if applicable</p>\n","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"raw","raw":"{\n    \"created_by_id\": <user_id in your system> ,\n    \"text\": < complaint text > ,\n    \"category\": < category_id of the complaint > ,\n    \"sub_category\": < sub_category_id of the complaint  > ,\n    \"attachments\": [{\n        \"media_url\": \"<URL of Image or Video shared by the user in complaint>\",\n        \"media_type\": \"IMAGE\", // \"VIDEO\"\n    }, ],\n}"},"url":"{{API_URL}}","description":"<p>This API will be triggered whenever the user creates a complaint (ticket) from the app and should be used to store the created ticket in the client’s ticketing system.</p>\n<p>The response format should be as below in the example.</p>\n","urlObject":{"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"5a6c105e-40e5-4cf6-9b5c-a18a20e7f7ce","name":"Create Complaints API","originalRequest":{"method":"GET","header":[{"description":"Authentication token/ JWT if applicable","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"raw","raw":"{\n    \"created_by_id\": <user_id in your system> ,\n    \"text\": < complaint text > ,\n    \"category\": < category_id of the complaint > ,\n    \"sub_category\": < sub_category_id of the complaint  > ,\n    \"attachments\": [{\n        \"media_url\": \"<URL of Image or Video shared by the user in complaint>\",\n        \"media_type\": \"IMAGE\", // \"VIDEO\"\n    }, ],\n}"},"url":{"raw":"{{API_URL}}?user_id&page","host":["{{API_URL}}"],"query":[{"key":"user_id","value":null,"description":"<user_id in your system>"},{"key":"page","value":null,"description":"<page_number of pagingate response>"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n   \"status\": \"pass\",\n   \"complaint\": {\n           \"status\": \"open\", //status of the complaint\n           \"text\": \"Test complaint\", //complaint’s description\n           \"updated_at\": \"2021-02-22 08:00:15.809000\", // last update time of the complaint in UTC\n           \"complaint_no\": \"1278\", // user displayed complaint number in your system\n           \"created_by_firstname\": \"Sofia\", // firstname of the user who created the complaint\n           \"created_by_lastname\": \"Jokelson\", // lastname of the user who created the complaint\n           \"category_name\": \"Waste Disposal\", // category of the complaint\n           \"sub_category_name\": \"Wet Waste\", //sub-category of the complaint\n           \"created_at\": \"2021-02-22 13:20:48.880000\", // created time of the complaint in UTC\n           \"complaint_id\": \"6033afb00ac6eb5c3648890b\", // complaint id in your system\n           \"created_by_id\": \"\", // user id of the user who created the complaint\n       }\n}"}],"_postman_id":"ecb8620b-e754-459e-9570-470ef4b62857"},{"name":"Create Complaints Comment API","id":"ebfa538e-e851-420a-a938-2832998da5ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>Authentication token/ JWT if applicable</p>\n","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"raw","raw":"{\n    \"created_by_id\": <user_id in your system> ,\n    \"text\": <comment_text>,\n    \"complaint_id\": <complaint_id in your system>,\n}"},"url":"{{API_URL}}","description":"<p>This API will be triggered whenever the user adds a comment on a complaint (ticket) from the app and should be used to store the created comment in the client’s ticketing system.</p>\n<p>The response format should be as below in the example.</p>\n","urlObject":{"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"33de0d72-f179-4aa7-894a-9e3496a91ace","name":"Create Complaints Comment API","originalRequest":{"method":"GET","header":[{"description":"Authentication token/ JWT if applicable","key":"Authorization","type":"text","value":"<TOKEN>"}],"body":{"mode":"raw","raw":"{\n    \"created_by_id\": <user_id in your system> ,\n    \"text\": <comment_text>,\n    \"complaint_id\": <complaint_id in your system>,\n}"},"url":{"raw":"{{API_URL}}?user_id&page","host":["{{API_URL}}"],"query":[{"key":"user_id","value":null,"description":"<user_id in your system>"},{"key":"page","value":null,"description":"<page_number of pagingate response>"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"pass\",\n    \"comment\": {\n        \"comment_id\": \"<comment_id>\", // comment id in your system\n        \"comment_text\": \"<comment_text>\", // comment text\n        \"created_by_firstname\": \"Sofia\", // firstname of the user who created the comment\n        \"created_by_lastname\": \"Jokelson\", // lastname of the user who created the comment\n        \"created_at\": \"2021-02-22 13:20:48.880000\", // created time of the comment in UTC\n        \"updated_at\": \"2021-02-22 13:20:48.880000\", // updated time of the comment in UTC\n        \"complaint_id\": \"6033afb00ac6eb5c3648890b\", // complaint id in your system\n    }\n}"}],"_postman_id":"ebfa538e-e851-420a-a938-2832998da5ea"}],"id":"fdf5bdaf-b483-4b02-8f61-46d4168e1a66","_postman_id":"fdf5bdaf-b483-4b02-8f61-46d4168e1a66","description":""},{"name":"Units/Rooms","item":[{"name":"Set User Unit","id":"fc644821-6926-44b9-8397-cec7a85349bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>api_key</p>\n","key":"api_key","type":"text","value":""},{"description":"<p>UserId in your system</p>\n","key":"external_user_id","type":"text","value":""},{"description":"<p>UnitId in your system</p>\n","key":"unit_id","type":"text","value":""}]},"url":"https://api.glynk.com/ext/user/set_unit_id/","urlObject":{"protocol":"https","path":["ext","user","set_unit_id",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc644821-6926-44b9-8397-cec7a85349bf"},{"name":"Remove User Unit","id":"40d29065-2c07-43ad-b87f-4a37d620cdf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>api_key</p>\n","key":"api_key","type":"text","value":""},{"description":"<p>UserId in your system</p>\n","key":"external_user_id","type":"text","value":""}]},"url":"https://api.glynk.com/ext/user/set_unit_id/","urlObject":{"protocol":"https","path":["ext","user","set_unit_id",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"40d29065-2c07-43ad-b87f-4a37d620cdf5"}],"id":"c8641237-a405-4e8d-b80d-c41d43091b5b","_postman_id":"c8641237-a405-4e8d-b80d-c41d43091b5b","description":""},{"name":"Membership","item":[{"name":"Set User Membership","id":"7de34fa1-17eb-4216-acba-db283b8331ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Full name of the user</p>\n","key":"user_full_name","type":"text","value":""},{"description":"<p>Email of the user to be mapped to the membership</p>\n","key":"user_email","type":"text","value":""},{"key":"membership_name","value":"","description":"<p>Membership name in Glynk community</p>\n","type":"text"}]},"url":"https://api.glynk.com/web_hook/{{API_KEY}}/set_membership/","urlObject":{"protocol":"https","path":["web_hook","{{API_KEY}}","set_membership",""],"host":["api","glynk","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7de34fa1-17eb-4216-acba-db283b8331ee"}],"id":"37a38dbd-3cbe-48dc-905f-7e6a00a2c106","_postman_id":"37a38dbd-3cbe-48dc-905f-7e6a00a2c106","description":""},{"name":"Search","item":[{"name":"Content Search","id":"6b503221-d98d-4d7a-9327-b44c1550ce65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.glynk.com/ext/search/?api_key&query&page","urlObject":{"protocol":"https","path":["ext","search",""],"host":["api","glynk","com"],"query":[{"description":{"content":"<p>API_KEY</p>\n","type":"text/plain"},"key":"api_key","value":null},{"description":{"content":"<p>Search query text</p>\n","type":"text/plain"},"key":"query","value":null},{"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":null}],"variable":[]}},"response":[{"id":"a8980d37-328b-47e5-8fea-b06de5cb29b5","name":"Content Search","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.getmilo.app/ext/search_content/?api_key&query&page","protocol":"https","host":["api","getmilo","app"],"path":["ext","search_content",""],"query":[{"key":"api_key","value":null,"description":"API_KEY"},{"key":"query","value":null,"description":"Search query text"},{"key":"page","value":null,"description":"Page number"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"PASS\",\n    \"page\": 1,\n    \"content\": [\n        {\n            \"title\": \"Post Title\",\n            \"text\": \"Post text\",\n            \"media\": [\n                {\n                    'url': '',\n                    'type': 'image'\n                },\n                {\n                    'url': '',\n                    'type': 'video',\n                }\n            ]        \n            \"num_likes\": 0,\n            \"id\": 32895,\n            \"num_shares\": 0,            \n            \"num_comments\": 0,\n            \"num_views\": 5,\n            \"created_by\": {\n                \"first_name\": \"Rahul\",\n                \"last_name\": \"Kumar\",\n                \"area\": \"Bengaluru\",\n                \"location\": \"Bengaluru\",\n                \"username\": \"ae37320a26774da7b9197bcc9\",\n                \"is_admin\": false,\n                \"gender\": \"male\",\n                \"work_name\": \"\",\n                \"num_posts\": 159,\n                \"education_name\": \"\",\n                \"id\": 10823,\n                \"date_joined\": \"2020-09-08 16:40:19+00:00\",                \n                \"last_login_time\": \"2021-03-08 14:52:49+00:00\",\n                \"num_comments\": 5,\n                \"profile_picture\": \"https://d267x6x6dh1ejh.cloudfront.net/profile_pictures/ce43ed66-1830-453c-b15b-5fb630e280d0.jpg\",\n                \"profile_picture_large\": \"https://d267x6x6dh1ejh.cloudfront.net/profile_pictures/f286a36e-0a99-4a96-a3fc-a9e581cc8b14.jpg\",                \n            },            \n            \"type\": \"POST\",\n            \"categories\": [\n                {                    \n                    \"name\": \"Photography\",\n                    \"image\": \"https://d267x6x6dh1ejh.cloudfront.net/topics/848aa45c-7212-4796-a0ce-169e4332eb2c.jpg\",                                     \n                    \"unique_id\": \"Photography\",\n                    \"icon\": \"https://d301sr5gafysq2.cloudfront.net/dc4237fa9a20/img/unmapped_author_32.png\"\n                }\n            ],\n            \"url\": \"\"\n        }\n    ],    \n}"}],"_postman_id":"6b503221-d98d-4d7a-9327-b44c1550ce65"}],"id":"cc498090-d6b9-4a75-a608-efa832d17eb9","_postman_id":"cc498090-d6b9-4a75-a608-efa832d17eb9","description":""}],"id":"c75e5a78-306c-4bc5-a33a-60b124fe14b1","description":"<p>Glynk integration APIs are designed to provide unique workflow and system implementation on the client side, allowing users' data and interactions to be synced across both systems. </p>\n<p>Reach out to <a href=\"mailto:support@glynk.com\">support@glynk.com</a> to get your API_KEY to start using the APIs.</p>\n","event":[{"listen":"prerequest","script":{"id":"4c34daa4-b75b-49bb-a903-82696553c07c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c4538c8f-df05-4aee-a489-a919fd3f0a4f","type":"text/javascript","exec":[""]}}],"_postman_id":"c75e5a78-306c-4bc5-a33a-60b124fe14b1"},{"name":"Web SDK","item":[{"name":"Forum Page Link","id":"780abd65-2cd9-45b8-9aa2-f779b5cf5948","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://<CUSTOM_DOMAIN>/forum/?api_key=<api_key>&user_secret=<user_secret>","description":"<p>Load the generated forum page link along with request params on apps using webview components. Forum page will load feed components with options to sort feed based on recency or acitvitiy time.</p>\n","urlObject":{"protocol":"https","path":["forum",""],"host":["<CUSTOM_DOMAIN>"],"query":[{"description":{"content":"<p>api_key specific to a community</p>\n","type":"text/plain"},"key":"api_key","value":"<api_key>"},{"description":{"content":"<p>Use the user_secret from create_user API response</p>\n","type":"text/plain"},"key":"user_secret","value":"<user_secret>"}],"variable":[]}},"response":[],"_postman_id":"780abd65-2cd9-45b8-9aa2-f779b5cf5948"},{"name":"Groups page link","id":"efc088a8-d75e-45a1-a031-bceba341890d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://<CUSTOM_DOMAIN>/chat/?api_key=<api_key>&user_secret=<user_secret>","description":"<p>Load the generated groups page link along with request params on apps using webview components. Groups page will load community configured groups and users 1 to 1 connection chats.</p>\n","urlObject":{"protocol":"https","path":["chat",""],"host":["<CUSTOM_DOMAIN>"],"query":[{"description":{"content":"<p>api_key specific to a community</p>\n","type":"text/plain"},"key":"api_key","value":"<api_key>"},{"description":{"content":"<p>Use the user_secret from create_user API response</p>\n","type":"text/plain"},"key":"user_secret","value":"<user_secret>"}],"variable":[]}},"response":[],"_postman_id":"efc088a8-d75e-45a1-a031-bceba341890d"},{"name":"Events page link","id":"070311df-2ca0-4584-bfe2-dd7f1460a168","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://<CUSTOM_DOMAIN>/events/?api_key=<api_key>&user_secret=<user_secret>","description":"<p>Load the generated events page link along with request params on apps using webview components. Events page will showcase the events hosted by the community with filters to see future and past events.</p>\n","urlObject":{"protocol":"https","path":["events",""],"host":["<CUSTOM_DOMAIN>"],"query":[{"description":{"content":"<p>api_key specific to a community</p>\n","type":"text/plain"},"key":"api_key","value":"<api_key>"},{"description":{"content":"<p>Use the user_secret from create_user API response</p>\n","type":"text/plain"},"key":"user_secret","value":"<user_secret>"}],"variable":[]}},"response":[],"_postman_id":"070311df-2ca0-4584-bfe2-dd7f1460a168"},{"name":"Offers page link","id":"f09aecb1-4184-4776-bd40-30269ab98820","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://<CUSTOM_DOMAIN>/offers/?api_key=<api_key>&user_secret=<user_secret>","description":"<p>Load the generated offers page link along with request params on apps using webview components. Offers page will list the offers published by the community and offers availed by the user.</p>\n","urlObject":{"protocol":"https","path":["offers",""],"host":["<CUSTOM_DOMAIN>"],"query":[{"description":{"content":"<p>api_key specific to a community</p>\n","type":"text/plain"},"key":"api_key","value":"<api_key>"},{"description":{"content":"<p>Use the user_secret from create_user API response</p>\n","type":"text/plain"},"key":"user_secret","value":"<user_secret>"}],"variable":[]}},"response":[],"_postman_id":"f09aecb1-4184-4776-bd40-30269ab98820"}],"id":"a6d27dee-ad68-4a85-8875-428308e38c65","description":"<p>Glynk Web SDK can be used to integrate community into mobile apps. The SDK works effortlessly with any base mobile app technology to create a seamless community experience within the client mobile app.</p>\n<p>You will need to use webviews on Android and iOS to launch the community screen web-page shared below. Glynk community web page requests will be authenticated using the API_KEY and USER_SECRET.</p>\n<p>Reach out to <a href=\"mailto:support@glynk.com\">support@glynk.com</a> to get your API_KEY and use the create user API to generate USER_SECRET to start using the APIs.</p>\n","event":[{"listen":"prerequest","script":{"id":"cf2f07fc-9b04-451a-ae74-6f62141f3107","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ff94a174-1a58-42fe-a268-4fd8b6408a6a","type":"text/javascript","exec":[""]}}],"_postman_id":"a6d27dee-ad68-4a85-8875-428308e38c65"},{"name":"Webhooks","item":[{"name":"When a complaint is created","id":"43896524-aff1-426a-b75e-1fac9f15920d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"","description":"<p>Complaint id</p>\n","type":"text"},{"key":"text","value":"","description":"<p>Complaint text</p>\n","type":"text"},{"key":"status","value":"","description":"<p>Complaint status</p>\n","type":"text"},{"key":"priority","value":"","description":"<p>Complaint priority</p>\n","type":"text"},{"key":"category","value":"","description":"<p>Complaint category</p>\n","type":"text"},{"key":"media","value":"","description":"<p>List of attachements or images added to complaint</p>\n","type":"text"},{"key":"user_id","value":"","description":"<p>User id of complaint creator</p>\n","type":"text"},{"key":"external_user_id","value":"","description":"<p>User id  of complaint creator in your system</p>\n","type":"text"}]},"url":"{{HOOK_URL}}","urlObject":{"host":["{{HOOK_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"43896524-aff1-426a-b75e-1fac9f15920d"},{"name":"When a comment is added to complaint","id":"e8ccb5cb-81b7-47f8-8711-737071cf9fe7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Complaint id</p>\n","key":"id","type":"text","value":""},{"description":"<p>Complaint id in your system</p>\n","key":"external_complaint_id","type":"text","value":""},{"description":"<p>Complaint id in Glynk system</p>\n","key":"complaint_id","type":"text","value":""},{"description":"<p>Complaint text</p>\n","key":"text","type":"text","value":""},{"description":"<p>User id of complaint creator</p>\n","key":"user_id","type":"text","value":""},{"description":"<p>User id  of complaint creator in your system</p>\n","key":"external_user_id","type":"text","value":""}]},"url":"{{HOOK_URL}}","urlObject":{"host":["{{HOOK_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8ccb5cb-81b7-47f8-8711-737071cf9fe7"}],"id":"f0516206-f1fb-49c8-8bd6-e64d0ffd8610","_postman_id":"f0516206-f1fb-49c8-8bd6-e64d0ffd8610","description":""},{"name":"Analytics","item":[{"name":"Member Data API","id":"b2d36c6e-2daa-488d-97f9-0659c9dd7247","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"api-key","value":"<API_KEY>","description":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"PASS\",\n    \"data\": {\n        \"num_users\": <Count of Users in the Community till date>,\n        \"community_name\": <Community Name>,\n        \"num_admin_users\": <Count of Admin Users in the Community till date>,\n        \"num_member_users\": <Count of Member Users in the Community till date>,\n        \"users\": [\n            {\n                \"user_id\": <User ID>,\n                \"first_name\": <Users First Name>,\n                \"last_name\": <Users Last Name>,\n                \"date_joined\": <Date User joined>,\n                \"last_login\": <Last time user logged>,\n                \"num_sessions\": <Count of user session>,\n                \"website\": <Users Website info>,\n                \"pronoun\": <Users Pronoun>,\n                \"bio\": <Users Bio info>,\n                \"hometown\": <Users Hometown>,\n                \"timezone\": <Users timezone>,\n                \"city\": <Users City>,\n                \"email\": <Users Email>,\n                \"phone_number\": <Users Phonenumber>,\n                \"company\": <Users Company/Workplace>,\n                \"user_role\": <Users role, applicable for admin users>,\n                \"birthday\": <Users DOB>,\n                \"designation\": <Users Work Designation>,\n                \"country\": <Users Country>,\n                \"industry\": <Users Work Industry>,\n                \"is_onboarded\": <Users Community Onboarded Status>,\n                \"lifetime_points\": {\n                    \"num_total_points\": <Count of points earned till date>\n                },\n                \"report_period_points\": {\n                    \"num_total_points\": <Count of points earned in the filtered date range>\n                }\n            }\n        ]\n    },\n    \"page\": <Response Page Number>\n}"},"url":"https://api.glynk.com/ext/reports/users/?page=<page_number>&start_date=<yyyy-mm-dd>&end_date=<yyyy-mm-dd>","description":"<p>The member data API helps retrieve all of the data of members who've joined the community.</p>\n","urlObject":{"protocol":"https","path":["ext","reports","users",""],"host":["api","glynk","com"],"query":[{"description":{"content":"<p>Each page has 10 member records with 1st page having data for members who've joined recently. Specify page to retrieve member data list from that page.</p>\n","type":"text/plain"},"key":"page","value":"<page_number>"},{"description":{"content":"<p>Specify start date to retrieve  members' reputation points from a date range that spans start date to end date </p>\n","type":"text/plain"},"key":"start_date","value":"<yyyy-mm-dd>"},{"description":{"content":"<p>Specify end date to retrieve a members' reputation points from a date range that spans start date to end date </p>\n","type":"text/plain"},"key":"end_date","value":"<yyyy-mm-dd>"}],"variable":[]}},"response":[{"id":"dca0a6ef-eb25-4d36-b8cd-3dd283d708cd","name":"List Users","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://api.glynk.com/ext/reports/users/?page=<page_number>&start_date=<yyyy-mm-dd>&end_date=<yyyy-mm-dd>","protocol":"https","host":["api","glynk","com"],"path":["ext","reports","users",""],"query":[{"key":"page","value":"<page_number>"},{"key":"start_date","value":"<yyyy-mm-dd>"},{"key":"end_date","value":"<yyyy-mm-dd>"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"PASS\",\n    \"data\": {\n        \"num_users\": <Count of Users in the Community till date>,\n        \"community_name\": <Community Name>,\n        \"num_admin_users\": <Count of Admin Users in the Community till date>,\n        \"num_member_users\": <Count of Member Users in the Community till date>,\n        \"users\": [\n            {\n                \"user_id\": <User ID>,\n                \"first_name\": <Users First Name>,\n                \"last_name\": <Users Last Name>,\n                \"date_joined\": <Date User joined>,\n                \"last_login\": <Last time user logged>,\n                \"num_sessions\": <Count of user session>,\n                \"website\": <Users Website info>,\n                \"pronoun\": <Users Pronoun>,\n                \"bio\": <Users Bio info>,\n                \"hometown\": <Users Hometown>,\n                \"timezone\": <Users timezone>,\n                \"city\": <Users City>,\n                \"email\": <Users Email>,\n                \"phone_number\": <Users Phonenumber>,\n                \"company\": <Users Company/Workplace>,\n                \"user_role\": <Users role, applicable for admin users>,\n                \"birthday\": <Users DOB>,\n                \"designation\": <Users Work Designation>,\n                \"country\": <Users Country>,\n                \"industry\": <Users Work Industry>,\n                \"is_onboarded\": <Users Community Onboarded Status>,\n                \"lifetime_points\": {\n                    \"num_total_points\": <Count of points earned till date>\n                },\n                \"report_period_points\": {\n                    \"num_total_points\": <Count of points earned in the filtered date range>\n                }\n            }\n        ]\n    },\n    \"page\": <Response Page Number>\n}"}],"_postman_id":"b2d36c6e-2daa-488d-97f9-0659c9dd7247"}],"id":"a9695c92-b8ea-485a-a3b8-2c3f19233d9b","_postman_id":"a9695c92-b8ea-485a-a3b8-2c3f19233d9b","description":""}]}