{"info":{"_postman_id":"9bb53aa2-0f76-487a-ac09-46ada970a827","name":"SAFELY Badge Service","description":"# About SAFELY\n\nSAFELY is a Digital Healthcare Platform designed to disrupt the spread of sexually transmitted diseases (“STDs”) and enable modern sexual health practices. Our mission is to create tools and technology that empower people to play a more proactive role in their personal healthcare. \n\n\nOur debut offering, SAFELY, enables people to privately show their verified STD status on their phone, confirm the status of their partners, and provides the easy, least inexpensive way to get tested and treated for STDs. \n\n\nSAFELY connects directly to the medical records systems of the major testing labs to import test results via secure, HIPAA compliant methods.\n\n\n# About SAFELY Badge\n\nThe SAFELY Verified Service incorporate distributed ledger technology and high availability restful API to enable Implementers to display the “SAFELY Badge” on their user profile screens, which verifies the user has been tested for the most prevalent STDs within the past 6 months and can prove it in person (should they choose to). \n\n\nThe SAFELY Badge does not indicate the persons sexual health status or any other private personal health information. \n\n\nThe SAFELY Badge is a simple, practical tool for users to make more informed choices and creates peer pressure that encourages more regular STD testing, which public health experts agree is the most effective means to reduce the rate of new infections.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"SAFELY Badge API","item":[{"name":"Authorize","id":"36ee5d7e-47dd-48a4-b09d-76e134a15cc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"client_id","value":"provided_by_SAFELY","type":"text"},{"key":"client_secret","value":"provided_by_SAFELY","type":"text"},{"key":"resource","value":"provided_by_SAFELY","type":"text"}]},"url":{"raw":"https://login.microsoftonline.com/d05bf9e4-9a78-4ce4-9f18-d4b36bc8e82f/oauth2/token?resource=provided_by_SAFELY","protocol":"https","host":["login","microsoftonline","com"],"path":["d05bf9e4-9a78-4ce4-9f18-d4b36bc8e82f","oauth2","token"],"query":[{"key":"resource","value":"provided_by_SAFELY"}]},"description":"Safely supports OAuth2.0 for authorizing API requests. Authorized requests to the API should use an Authorization header with the value Bearer TOKEN, where TOKEN is an access token obtained through the OAuth flow."},"response":[{"id":"457973e0-47cd-44ce-8f10-2945b0ac6bc5","name":"Authorize","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"client_id","value":"provided_by_SAFELY","type":"text"},{"key":"client_secret","value":"provided_by_SAFELY","type":"text"},{"key":"resource","value":"resource","type":"text"}]},"url":{"raw":"https://login.microsoftonline.com/d05bf9e4-9a78-4ce4-9f18-d4b36bc8e82f/oauth2/token?resource=1dd554fe-4bef-4235-b6ad-1f87dc4a59d7","protocol":"https","host":["login","microsoftonline","com"],"path":["d05bf9e4-9a78-4ce4-9f18-d4b36bc8e82f","oauth2","token"],"query":[{"key":"resource","value":"1dd554fe-4bef-4235-b6ad-1f87dc4a59d7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"x-ms-request-id","value":"29c8eb9f-63c0-462a-a53d-cbcb30027500"},{"key":"x-ms-ests-server","value":"2.1.10067.11 - SCUS ProdSlices"},{"key":"P3P","value":"CP=\"DSP CUR OTPi IND OTRi ONL FIN\""},{"key":"Set-Cookie","value":"fpc=AmvQfPYOkF9HpLivtMXmtczEHu47AQAAAEfD5NUOAAAA; expires=Tue, 24-Mar-2020 19:02:32 GMT; path=/; secure; HttpOnly; SameSite=None"},{"key":"Set-Cookie","value":"x-ms-gateway-slice=estsfd; path=/; SameSite=None; secure; HttpOnly"},{"key":"Set-Cookie","value":"stsservicecookie=estsfd; path=/; secure; HttpOnly; SameSite=None"},{"key":"Date","value":"Sun, 23 Feb 2020 19:02:31 GMT"},{"key":"Content-Length","value":"1390"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_type\": \"Bearer\",\n    \"expires_in\": \"3599\",\n    \"ext_expires_in\": \"3599\",\n    \"expires_on\": \"1582488152\",\n    \"not_before\": \"1582484252\",\n    \"resource\": \"00000002-0000-0000-c000-000000000000\",\n    \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSIsImtpZCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSJ9.eyJhdWQiOiIwMDAwMDAwMi0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9kMDViZjllNC05YTc4LTRjZTQtOWYxOC1kNGIzNmJjOGU4MmYvIiwiaWF0IjoxNTgyNDg0MjUyLCJuYmYiOjE1ODI0ODQyNTIsImV4cCI6MTU4MjQ4ODE1MiwiYWlvIjoiNDJOZ1lEalhZcm4zNk1iQTF2czNkMDM3SlJweEZnQT0iLCJhcHBpZCI6IjFlMjIyZTJhLTg4OWYtNDc5Zi04NTllLWJkYmJiNTRmYmQzMiIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0L2QwNWJmOWU0LTlhNzgtNGNlNC05ZjE4LWQ0YjM2YmM4ZTgyZi8iLCJvaWQiOiI1OGMzNTFlYS1iYWYwLTQ4ZmItYmNlZi03ZWZlNDg3OTg4YjQiLCJzdWIiOiI1OGMzNTFlYS1iYWYwLTQ4ZmItYmNlZi03ZWZlNDg3OTg4YjQiLCJ0ZW5hbnRfcmVnaW9uX3Njb3BlIjoiTkEiLCJ0aWQiOiJkMDViZjllNC05YTc4LTRjZTQtOWYxOC1kNGIzNmJjOGU4MmYiLCJ1dGkiOiJuLXZJS2NCaktrYWxQY3ZMTUFKMUFBIiwidmVyIjoiMS4wIn0.GnGdFN5lhrWh-l9KOhaGPTzItjySqXNVRbT-EB2xa1QZ-icEpQSbXbGE8-YjR5IIxrNPtDIDU39qWtac2VC108BJylXDBBbSRShUaNm4LEBd9e73qS87X_7pKZENrZPQnHmAyL0MfYVII2lpUXbaIxkU8hZE2oi4H_JD2PPX1fDRGvR-J2vfo5r3z1u9TcrshHgX6RL2ltHQdJORCDvWwSxo8VEAvOFfc2UB3w3p4eXRAk7uyjEoZ_P27cHzpSRN_hhDviVmPRJ2pPbH1HHramKh_mXHXc82-SYM715F1qT01XS2OVaB98YLUWo-CXNoTNUAxUiqIwhLj8rcH1Nt5g\"\n}"},{"id":"e937a79c-f324-4d8c-90b1-b09d231538cd","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://login.microsoftonline.com/d05bf9e4-9a78-4ce4-9f18-d4b36bc8e82f"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"token_type\": \"Bearer\",\n    \"expires_in\": \"3599\",\n    \"ext_expires_in\": \"3599\",\n    \"expires_on\": \"1582488152\",\n    \"not_before\": \"1582484252\",\n    \"resource\": \"00000002-0000-0000-c000-000000000000\",\n    \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSIsImtpZCI6IkhsQzBSMTJza3hOWjFXUXdtak9GXzZ0X3RERSJ9.eyJhdWQiOiIwMDAwMDAwMi0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9kMDViZjllNC05YTc4LTRjZTQtOWYxOC1kNGIzNmJjOGU4MmYvIiwiaWF0IjoxNTgyNDg0MjUyLCJuYmYiOjE1ODI0ODQyNTIsImV4cCI6MTU4MjQ4ODE1MiwiYWlvIjoiNDJOZ1lEalhZcm4zNk1iQTF2czNkMDM3SlJweEZnQT0iLCJhcHBpZCI6IjFlMjIyZTJhLTg4OWYtNDc5Zi04NTllLWJkYmJiNTRmYmQzMiIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0L2QwNWJmOWU0LTlhNzgtNGNlNC05ZjE4LWQ0YjM2YmM4ZTgyZi8iLCJvaWQiOiI1OGMzNTFlYS1iYWYwLTQ4ZmItYmNlZi03ZWZlNDg3OTg4YjQiLCJzdWIiOiI1OGMzNTFlYS1iYWYwLTQ4ZmItYmNlZi03ZWZlNDg3OTg4YjQiLCJ0ZW5hbnRfcmVnaW9uX3Njb3BlIjoiTkEiLCJ0aWQiOiJkMDViZjllNC05YTc4LTRjZTQtOWYxOC1kNGIzNmJjOGU4MmYiLCJ1dGkiOiJuLXZJS2NCaktrYWxQY3ZMTUFKMUFBIiwidmVyIjoiMS4wIn0.GnGdFN5lhrWh-l9KOhaGPTzItjySqXNVRbT-EB2xa1QZ-icEpQSbXbGE8-YjR5IIxrNPtDIDU39qWtac2VC108BJylXDBBbSRShUaNm4LEBd9e73qS87X_7pKZENrZPQnHmAyL0MfYVII2lpUXbaIxkU8hZE2oi4H_JD2PPX1fDRGvR-J2vfo5r3z1u9TcrshHgX6RL2ltHQdJORCDvWwSxo8VEAvOFfc2UB3w3p4eXRAk7uyjEoZ_P27cHzpSRN_hhDviVmPRJ2pPbH1HHramKh_mXHXc82-SYM715F1qT01XS2OVaB98YLUWo-CXNoTNUAxUiqIwhLj8rcH1Nt5g\"\n}"}],"_postman_id":"36ee5d7e-47dd-48a4-b09d-76e134a15cc7"},{"name":"SafeBadgeCheck","id":"9c2a268a-1b4f-4876-b87d-b73f54bb9200","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <TOKEN>","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://badge.ursafe.io/api/safeBadgeCheck?phoneNumber=3048738432","protocol":"https","host":["badge","ursafe","io"],"path":["api","safeBadgeCheck"],"query":[{"key":"phoneNumber","value":"3048738432"}]},"description":"This endpoint can be called to identify if the user has an active SAFELY account set to be SAFELY Verified and to check the date of the latest imported test results.\n\nDisplay an active SAFELY Badge on the user’s profile screen and profile settings, up until the lastTestedDate."},"response":[{"id":"a3d76c6b-e99d-4124-9822-0d59df6fd229","name":"https://badge.ursafe.io/api/safeBadgeCheck?phoneNumber=1212121212\n","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <TOKEN>","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://badge.ursafe.io/api/safeBadgeCheck?phoneNumber=9582233670\n","protocol":"https","host":["badge","ursafe","io"],"path":["api","safeBadgeCheck"],"query":[{"key":"phoneNumber","value":"9582233670\n"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"lastTestedDate\": \"2020-01-24T16:59:00\",\n    \"hasSafely\": true,\n    \"isSafelyBadgeEnabled\": true,\n    \"isSafelyActive\": true,\n    \"phoneNumber\": {\n        \"phone\": \"8185232550\"\n    }\n}"},{"id":"e4ac0a2b-079f-4a8d-8e18-c1bb00b5bc23","name":"Default","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://badge.ursafe.io/api/safeBadgeCheck?phoneNumber=3048738432\n","protocol":"https","host":["badge","ursafe","io"],"path":["api","safeBadgeCheck"],"query":[{"key":"phoneNumber","value":"3048738432\n"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"lastTestedDate\": \"2020-01-24T16:59:00\",\n    \"hasSafely\": true,\n    \"isSafelyBadgeEnabled\": true,\n\t\"isSafelyActive\": true\n    \"phoneNumber\": {\n        \"phone\": \"3048738432\"\n    }\n}"}],"_postman_id":"9c2a268a-1b4f-4876-b87d-b73f54bb9200"}],"id":"f89207cb-110b-41ba-8d48-9625e137864f","description":"The Safely Badge API provides a fast, high availability mechanism for matching user accounts on your platform with users of Safely using mobile phone number as the unique identifier. In order to protect user privacy and your proprietary user data, the Safely Badge Service does not require Implementers to share any of their user information in order to implement the Safely Badge.\n\n\nThe SAFELY Badge API documentation provides a list of all the endpoints that are currently supported. The API is exposed as a collection of RESTful HTTP endpoints that return JSON data. If a string is required or optional, an empty string value is not accepted. Do not include those fields if optional and empty.\n\n\nThe SAFELY Badge API returns the following information:\n\n• hasSafely, returns is there is a match using the user’s mobile phone number as the unique identifier. Supports single user and batch calls. \n\n• isSafelyActive, returns binary true/false if the user has been tested in the past 6 months \n\n• lastTestedDate, returns validated date the user was last tested, which can be used to determine whether the SAFELY Badge should be displayed as active or inactive, or used for reminders \n\n• isSafelyBadgeEnabled, returns binary true/false if the SAFELY user has enable badge toggle.\n\nImplementers are provided a private key API Token to authenticate on Implementer level, and allow for tracking new signup and testing purchase referrals. \n\n\nImplementers are also given a download link and deep link to the testing function in the Safely App with a unique identifier to track and credit new signups and testing purchases originating from the Implementer.","event":[{"listen":"prerequest","script":{"id":"3ac7a430-dace-4074-ab50-28845f95247b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f01ba7cd-9cf9-471c-b9a5-641890d05d43","type":"text/javascript","exec":[""]}}],"_postman_id":"f89207cb-110b-41ba-8d48-9625e137864f"}],"event":[{"listen":"prerequest","script":{"id":"5dad7dc6-e78d-491a-92e7-42a37b05777a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3387145c-7449-45ca-94fe-cf4ee571cfcb","type":"text/javascript","exec":[""]}}]}