{"info":{"_postman_id":"174e7e3f-54ad-407a-9d37-34a3e1435a46","name":"Happily.ai Developer","description":"<html><head></head><body><h1 id=\"take-your-employee-engagement-to-the-next-level\">Take your Employee Engagement to the Next Level</h1>\n<p>Build integrations with Happily's employee engagement and people analytics to create automated and unique company workflows.</p>\n<h2 id=\"get-started-building-on-happilyai\">Get Started Building on Happily.ai</h2>\n<hr>\n<p>Bring employee engagement to the forefront of your employee engagement by integrating your workflows with the Happily.ai. To get started, you will need to have an existing account with Happily (sign up for an account here) and request a developer access with our Customer Success team.</p>\n<h2 id=\"authentication-and-authorization\">Authentication and Authorization</h2>\n<p>Happily.ai uses a delegated authentication and authorization flow so that your application never has to deal with storing or handling usernames or passwords. Instead, your application passes control to Happily.ai identifying itself via the API key.</p>\n<p>Generate an API key by logging into your My Happily account and visiting <a href=\"https://my.happily.ai/integrations.\">https://my.happily.ai/integrations.</a></p>\n<p>Your API key should be a string comprised of random alphanumeric characters. Because API tokens grant access to the user's data, they should be kept secret.</p>\n<h2 id=\"your-first-api-call\">Your First API Call</h2>\n<p>Now that you have the API key for your account, you can use them to start making requests. One of the most popular resources in Happily.ai is the recognition object. So we will start by getting recognition that has been sent to a user.</p>\n<p>You can make a GET request to the <code>/1/recognition/recipient/{member_email}</code> resource and gather all of the recognition associated with a member:</p>\n<p><code>curl --location --request GET 'https://api.happily.ai/dev/1/recognition/recipient/{member_email}?start_date=2022-01-01&amp;end_date=2022-01-31&amp;type=coin' \\ --header 'x-api-key: {API Key}' \\ --header 'x-api-key: commodo'</code></p>\n<p>Be sure to replace the <code>{API Key}</code> parameters with the key values from above.</p>\n<p>Once you've made the request above, you'll receive a response that contains a JSON object with information about all of the recognition associated with that member.</p>\n<p>From here there are a lot of directions you can go. So now we'll tell you a little bit about the most popular resources and the ones that are core to working with Happily.ai.</p>\n<p>If you have any questions, please reach out to us:<br><strong>Name</strong>: Happily.ai Support<br><strong>Email</strong>: <a href=\"mailto:support@happily.ai\">support@happily.ai</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Take your Employee Engagement to the Next Level","slug":"take-your-employee-engagement-to-the-next-level"}],"owner":"18664013","collectionId":"174e7e3f-54ad-407a-9d37-34a3e1435a46","publishedId":"UVRBn66w","public":true,"customColor":{"top-bar":"6C30CC","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-12-22T09:57:57.000Z"},"item":[{"name":"1/recognition","item":[{"name":"/1/recognition/recipient/:member_email","id":"db7eaead-84bd-4782-9bab-de68ce0fe49f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.happily.ai/dev/1/recognition/recipient/:member_email?start_date=2022-01-01&end_date=2022-01-31&type=coin","description":"<p>Get Recognitions for a Member</p>\n","urlObject":{"protocol":"https","path":["dev","1","recognition","recipient",":member_email"],"host":["api","happily","ai"],"query":[{"description":{"content":"<p>first of current month (default)</p>\n","type":"text/plain"},"key":"start_date","value":"2022-01-01"},{"description":{"content":"<p>today's date (default)</p>\n","type":"text/plain"},"key":"end_date","value":"2022-01-31"},{"description":{"content":"<p>all (default), coin, gem, or medal_1, medal_2, medal_3, medal_4, medal_5, medal_6</p>\n","type":"text/plain"},"key":"type","value":"coin"}],"variable":[{"description":{"content":"<p>(Required) member email</p>\n","type":"text/plain"},"type":"any","value":"jane@example.com","key":"member_email"}]}},"response":[{"id":"c924391e-38ce-4df8-9f91-e7bcf2b4c529","name":"200 response","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: apikey","key":"x-api-key","value":"<API Key>"},{"description":"API Key","key":"x-api-key","value":"commodo"}],"url":{"raw":"https://api.happily.ai/dev/1/recognition/recipient/:member_email?start_date=2020-12-01&end_date=2020-12-30&type=coin","protocol":"https","host":["api","happily","ai"],"path":["dev","1","recognition","recipient",":member_email"],"query":[{"key":"start_date","value":"2020-12-01"},{"key":"end_date","value":"2020-12-30"},{"key":"type","value":"coin"}],"variable":[{"key":"member_email","value":"jane@example.com","description":"(Required) member email"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"statusCode\": 200,\r\n    \"message\": \"\",\r\n    \"items\": [\r\n        {\r\n            \"date\": \"2022-01-14 11:28:57\",\r\n            \"sender\": \"developer@example.com\",\r\n            \"recipient\": \"jane@example.com\",\r\n            \"for\": \"Welcome to Happily API\",\r\n            \"type\": \"coin\",\r\n            \"amount\": 5,\r\n            \"display_feed\": true\r\n        },\r\n        {\r\n            \"date\": \"2022-01-31 11:32:16\",\r\n            \"sender\": \"mac@example.com\",\r\n            \"recipient\": \"jane@example.com\",\r\n            \"for\": \"I'm glad to have you here\",\r\n            \"type\": \"coin\",\r\n            \"amount\": 5,\r\n            \"display_feed\": true\r\n        },\r\n        {\r\n            \"date\": \"2022-01-11 12:17:12\",\r\n            \"sender\": \"john@example.com\",\r\n            \"recipient\": \"jane@example.com\",\r\n            \"for\": \"Thank you for your support\",\r\n            \"type\": \"coin\",\r\n            \"amount\": 3,\r\n            \"display_feed\": true\r\n        }\r\n    ]\r\n}"}],"_postman_id":"db7eaead-84bd-4782-9bab-de68ce0fe49f"},{"name":"/1/recognition/medal/:medal_id","id":"e5b62c87-0f48-4382-b39a-477feea695d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.happily.ai//dev/dev/1/recognition/medal/:medal_id","urlObject":{"path":["1","recognition","medal",":medal_id"],"host":["https://api.happily.ai//dev/dev"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"Kindness","key":"medal_id"}]}},"response":[{"id":"14de047b-65ce-4ac7-8196-762a6e2ff6c7","name":"200 response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.happily.ai//dev/dev/1/recognition/medal/:medal_id","host":["https://api.happily.ai//dev/dev"],"path":["1","recognition","medal",":medal_id"],"variable":[{"key":"medal_id","value":"Kindness","description":"(Required) "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"statusCode\": 200,\r\n    \"value\": \"Kindness\"\r\n}"}],"_postman_id":"e5b62c87-0f48-4382-b39a-477feea695d5"},{"name":"/1/recognition/:member_email","id":"62d6945d-b43a-4349-8dbe-e63b77d03f31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[{"key":"content-type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"for\": \"Welcome to Happily API\", \r\n    \"values\": [{\"type\": \"user\", \"email\": \"jane@example.com\", \"name\":\"Jane E\"}], \r\n    \"type\": \"coin\", \r\n    \"amount\": 3, \r\n    \"display_feed\": false\r\n}"},"url":"https://api.happily.ai/dev/1/recognition/:member_email","urlObject":{"protocol":"https","path":["dev","1","recognition",":member_email"],"host":["api","happily","ai"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"jane@example.com","key":"member_email"}]}},"response":[{"id":"11748024-71ab-4423-b58a-7be97b6f9678","name":"200 response","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"x-api-key","value":"<API Key>"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.happily.ai//dev/1/recognition/:member_email","host":["https://api.happily.ai//dev"],"path":["1","recognition",":member_email"],"variable":[{"key":"member_email","value":"commodo","description":"(Required) "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"statusCode\": 200,\r\n    \"amount\": 3,\r\n    \"company\": \"---YOUR-COMPANY-KEY---\",\r\n    \"createdate\": \"2022-03-16 10:27:20\",\r\n    \"for\": \"Welcome to Happily API\",\r\n    \"share\": false,\r\n    \"status\": false,\r\n    \"to\": [\r\n        {\r\n            \"email\": \"jane@example.com\",\r\n            \"name\": \"Jane E\",\r\n            \"type\": \"user\"\r\n        }\r\n    ],\r\n    \"total\": 3,\r\n    \"type\": \"coin\",\r\n    \"when\": \"2022-03-16 10:27:20\"\r\n}"}],"_postman_id":"62d6945d-b43a-4349-8dbe-e63b77d03f31"},{"name":"api/responses","id":"afa4907d-f754-4c56-9f5a-e874fca40c07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[{"key":"content-type","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://api.happily.ai/prod/1/responses?email=rathasit_j@dhas.com","urlObject":{"protocol":"https","path":["prod","1","responses"],"host":["api","happily","ai"],"query":[{"key":"email","value":"rathasit_j@dhas.com"}],"variable":[]}},"response":[],"_postman_id":"afa4907d-f754-4c56-9f5a-e874fca40c07"}],"id":"8828d946-e031-40cb-87a9-f73aecdf1330","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e91a8878-d513-435b-aad0-9b8608f59161","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f3306be0-98f6-498a-ab94-ba97949b818d","type":"text/javascript","exec":[""]}}],"_postman_id":"8828d946-e031-40cb-87a9-f73aecdf1330","description":""}],"variable":[{"id":"2f79216c-1aff-4cca-aa30-b6e851cb1fb7","key":"basePath","value":"/dev","type":"any"},{"id":"c1091723-ad63-4a8d-9892-c45430b0f094","key":"baseUrl","value":"https://api.happily.ai//dev","type":"string"}]}