{"info":{"_postman_id":"b87ba5c5-7a32-4558-aac0-f70059f0dc14","name":"GENESIV LOGIN API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"1567276","collectionId":"b87ba5c5-7a32-4558-aac0-f70059f0dc14","publishedId":"2s8YRgptuu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-10-31T08:35:13.000Z"},"item":[{"name":"Secure Authentication","id":"890ad7ad-ce74-4531-84d5-fb822e135a5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"apiKey","value":"API_KEY_HERE","type":"text"},{"key":"hostname","value":"cname.yourdomain.com","type":"text"}],"url":"https://cname.yourdomain.com/api/secureAuth?userId=bamboostick&accessLevel=3&action=login","description":"<h1 id=\"request-type---get\">Request Type - <code>GET</code></h1>\n<p>This is a sample API that authenticates a user, wherein <code>/api/secureAuth</code> endpoint is called by passing the 4 query params</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Query Params\nuserId (Unique username of the user eg. bamboostick)\naccessLevel (Number/access level of the user eg. 0, 1, 2, 3, 4, 5 etc.)\naction (String/targeted action eg. login, register, etc.)\nOptional Params\nfirstname (String/firstname of the user eg.  John)\nlastname (String/lastname of the user eg. Doe)\ndisplayname (String/displayname of the user eg. maverick)\nemail (String/email address of the user eg. john@doe.com)\nHeaders\napiKey (String/Long alphanumeric api key)\nhostname (String/Custom Domain name for eg. cname.yourdomain.com)\n\n</code></pre><h1 id=\"api-request-in-case-user-is-not-authorized\">API Request in case user is not authorized</h1>\n<p><code>/api/secureAuth?userId=112321&amp;accessLevel=0&amp;action=login&amp;apiKey=[YOUR_KEY_HERE]</code></p>\n<p><code>accessLevel: 0</code> Pass 0 if a user does not have sufficient privileges to access the portal.</p>\n<h1 id=\"api-request-for-access-level-1\">API Request for Access Level 1</h1>\n<p><code>/api/secureAuth?userId=112321&amp;accessLevel=1&amp;action=login&amp;apiKey=[YOUR_KEY_HERE]</code></p>\n<p><code>accessLevel: 1</code> Pass 1 for access level 1</p>\n<h1 id=\"api-request-for-access-level-2\">API Request for Access Level 2</h1>\n<p><code>/api/secureAuth?userId=112321&amp;accessLeve=2&amp;action=login&amp;apiKey=[YOUR_KEY_HERE]</code></p>\n<p><code>accessLevel: 2</code> Pass 2 for access level 2</p>\n","urlObject":{"protocol":"https","path":["api","secureAuth"],"host":["cname","yourdomain","com"],"query":[{"key":"userId","value":"bamboostick"},{"key":"accessLevel","value":"3"},{"key":"action","value":"login"}],"variable":[]}},"response":[],"_postman_id":"890ad7ad-ce74-4531-84d5-fb822e135a5b"}]}