{"info":{"_postman_id":"f69e59aa-d62f-4a75-b1ae-7017095b639e","name":"API Documentation","description":"<html><head></head><body><p>Welcome to <strong>SharePass</strong> and thank you for choosing our platform for secure data sharing.</p>\n<p>This documentation is intended for developers, technical teams, and integrators who want to work directly with the <strong>SharePass API backend</strong> to build secure secret-sharing workflows in their own applications, services, or internal tools.</p>\n<p>The base URL for the SharePass API is:</p>\n<p><code>https://api.sharepass.com/v1</code></p>\n<p>Throughout this documentation, you will find details about the available endpoints, authentication requirements, supported headers, request structures, and endpoint behavior.</p>\n<p>The primary authentication method for SharePass is the user access token (<strong>JWT</strong>), which is accepted across the platform. In addition, some endpoints also support <strong>API key</strong> authentication. API keys can be generated and enabled through the <a href=\"#b8df6e2c-62e5-4d9f-9908-495f390912ca\">general settings endpoint</a>.</p>\n<p>Using the SharePass API, you can create and manage secrets, apply access restrictions, use templates and labels, configure webhooks, manage account settings, and integrate advanced security features such as multi-factor authentication. Some endpoints are also designed for recipients who access secrets through a SharePass link, without requiring a SharePass account.</p>\n<p>This documentation focuses on the API itself and on how to integrate with it programmatically. If you would like to learn more about <strong>SharePass</strong>, how it works, and the concepts behind secure secret sharing, please visit the <a href=\"https://sharepass.com/knowledgebase\">knowledge base</a>.</p>\n<p>We hope this documentation helps you build secure, flexible, and efficient integrations. Remember, <strong>Don't Risk it, SharePass it!</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24259919","collectionId":"f69e59aa-d62f-4a75-b1ae-7017095b639e","publishedId":"2s8YYEPQch","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"007BFF"},"publishDate":"2022-11-05T07:08:03.000Z"},"item":[{"name":"Secret","item":[{"name":"View","item":[{"name":"Get Secret","id":"a815faad-6a1c-4af2-b513-2731372e27d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"pin","value":"{{pin}}","type":"text"}],"url":"{{baseURL}}/{{version}}/secret/view?secretId={{secretId}}","description":"<p>Retrieves a secret for display to the recipient.</p>\n<p>This endpoint is intended for the external recipient who receives the SharePass link. The response contains the encrypted secret data, which must be decrypted by the frontend application using the appropriate decryption key.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<ul>\n<li><p><em><strong>Required URL Params:</strong></em><br />  <code>secretId=[string]</code></p>\n</li>\n<li><p><em><strong>Optional Header Params:</strong></em><br />  <code>pin=[integer]</code></p>\n</li>\n</ul>\n","urlObject":{"path":["{{version}}","secret","view"],"host":["{{baseURL}}"],"query":[{"key":"secretId","value":"{{secretId}}"}],"variable":[]}},"response":[{"id":"38ce272a-08f5-4fea-adc6-2ece12f18435","name":"Secret Retrieved Successfully","originalRequest":{"method":"GET","header":[{"key":"pin","value":"0000","type":"text","disabled":true}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:19:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"156"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeRcoEeuSwMFuJA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef2f83-1c3062dd396de11b30466815;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secret\": \"Some Encrypted Secret Here\",\n        \"opened\": false,\n        \"expiry\": 1610115574,\n        \"otl\": true,\n        \"type\": \"password\"\n    }\n}"},{"id":"764581b8-d2c7-40db-b0b8-2ce654093770","name":"Secret Not Found","originalRequest":{"method":"GET","header":[{"key":"pin","value":"0000","type":"text","disabled":true}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:22:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeR4pH_kywMFYJg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef3037-3dd020f56eac4efd132531f4;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Not found\",\n    \"message\": \"Secret ID not found.\"\n}"},{"id":"3c8f1b6c-0c2b-4076-a6f7-1a7c9f8f1b99","name":"Secret Locked By Owner","originalRequest":{"method":"GET","header":[{"key":"pin","value":"0000","type":"text","disabled":true}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:29:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"144"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeS74H1rSwMFYaA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef31e5-7cbfaa2817865ca67d3e0781;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Unauthorized\",\n    \"message\": \"The secret is locked by the owner. Please contact the sender to get the secret unlocked.\"\n}"},{"id":"038a7acd-4166-43bc-a024-5de57cdecff8","name":"Secret PIN Protected","originalRequest":{"method":"GET","header":[{"key":"pin","value":"0000","type":"text","disabled":true}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:31:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"85"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeTHiFYwSwMFvKQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef3230-1b58d00360e8213c0cea1256;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Unauthorized\",\n    \"message\": \"This secret is PIN protected.\"\n}"},{"id":"ad80b189-3b46-44e4-abde-d3c7092edb17","name":"PIN Number Not Valid","originalRequest":{"method":"GET","header":[{"key":"pin","value":"0000","type":"text"}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:32:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"99"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeTW2GO2ywMFjbg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef3292-5ce5f30c3b39748a0960f4e1;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Unauthorized\",\n    \"message\": \"PIN number not valid. Attempts remaining: 2\"\n}"},{"id":"ef2e8a1d-f41f-4443-ac7e-60204319231e","name":"No More Attempts","originalRequest":{"method":"GET","header":[{"key":"pin","value":"0000","type":"text"}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:36:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"104"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeT6NF4LywMFQ6Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef3374-14f7c19915a1729a088d6954;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Unauthorized\",\n    \"message\": \"Attempts to unlock the secret already exhausted.\"\n}"},{"id":"8c4b46a5-4637-439f-aaae-f2e255984759","name":"Secret Expired","originalRequest":{"method":"GET","header":[{"key":"pin","value":"1441","type":"text","disabled":true}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:39:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"101"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeUXIGOqSwMFcqg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef342d-4c527b993c734e8324fd450a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Unauthorized\",\n    \"message\": \"This secret has already expired 1 minute ago.\"\n}"},{"id":"83d4e948-9d86-49e3-8d59-c5db6b01350a","name":"Secret Not Available","originalRequest":{"method":"GET","header":[{"key":"pin","value":"1441","type":"text","disabled":true}],"url":{"raw":"https://api.sharepass.online/v1/secret/view?secretId=16EETLAxxtzhpwhrVkWTFBbx5cTPjC","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","view"],"query":[{"key":"secretId","value":"16EETLAxxtzhpwhrVkWTFBbx5cTPjC"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:41:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"121"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YeUj8EWISwMFUXA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fef347f-1405ed1c1a99f9c42f058edb;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Unauthorized\",\n    \"message\": \"This secret is not available until Sat, 13 Mar 2021 17:59:58 GMT.\"\n}"},{"id":"9cbd017f-5a06-4ce6-8ffd-404cecfb0f0e","name":"No Secret ID Provided","originalRequest":{"method":"GET","header":[{"key":"pin","value":"1441","type":"text","disabled":true}],"url":"https://api.sharepass.online/v1/secret/view"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 14:42:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"YeUvkGcrSwMFsSw="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing required request parameters: [secretId]\"\n}"},{"id":"cc01398a-a4f3-480c-b1a1-d7caeba18379","name":"Secret Erased","originalRequest":{"method":"GET","header":[{"key":"pin","value":"{{pin}}","type":"text"}],"url":{"raw":"{{baseURL}}/{{version}}/secret/view?secretId={{secretId}}","host":["{{baseURL}}"],"path":["{{version}}","secret","view"],"query":[{"key":"secretId","value":"{{secretId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 12 Dec 2021 00:00:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"61"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"KNZEhG8rywMFvYg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61b53bb6-33b355184ea903296a848ea7;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Unauthorized\",\n    \"message\": \"Secret already deleted.\"\n}"}],"_postman_id":"a815faad-6a1c-4af2-b513-2731372e27d4"}],"id":"81364e8d-0328-4d84-8042-b29efa178b65","description":"<p>This path provides the endpoint used by SharePass recipients to retrieve a secret from a shared view link.</p>\n<p>A typical SharePass link looks like this:</p>\n<p><code>https://view.sharepass.com/6jE81B8xv8oMrns/#/pxEZW2F5i7p21uA/lSycG0akwEu4S2cL0Ayf4nDrkDFMWvTFO5bzDhAVsaU</code></p>\n<p>The endpoint is designed for public secret access and does not require the recipient to be a SharePass user. Whether the secret can actually be revealed depends on the access conditions configured by the sender, such as TTL, availability window, IP restrictions, PIN protection, and other security settings applied when the secret was created.</p>\n","_postman_id":"81364e8d-0328-4d84-8042-b29efa178b65"}],"id":"b08bc8d8-1918-4223-a155-f84931406921","description":"<p>Secrets in <strong>SharePass</strong> are intended to store highly sensitive and confidential information that needs to be shared securely.</p>\n<p>Depending on the use case, a secret can represent a simple value such as a password, a longer free-text message, or a more structured object containing multiple pieces of information. In addition to the secret content itself, SharePass supports a range of optional properties that allow the sender to control how, when, and under which conditions the secret can be accessed by the recipient.</p>\n<h2 id=\"secret-types\">Secret types</h2>\n<p>SharePass supports different secret types depending on the kind of information being shared:</p>\n<ul>\n<li><p><strong>password</strong>: A single-line password or short confidential value.</p>\n</li>\n<li><p><strong>message</strong>: A multiline confidential message.</p>\n</li>\n<li><p><strong>credentials</strong>: A structured object that can contain values such as username, password, 2FA, and URL.</p>\n</li>\n<li><p><strong>QR</strong>: A QR-based secret format.</p>\n</li>\n<li><p><strong>custom</strong>: A custom object containing any valid JSON structure.</p>\n</li>\n</ul>\n<h2 id=\"secret-properties\">Secret properties</h2>\n<p>Secrets can also include additional properties that define their behavior and access conditions:</p>\n<ul>\n<li><p><strong>otl</strong>: One Time Link. When enabled, the secret is destroyed after it is successfully retrieved.</p>\n</li>\n<li><p><strong>ttl</strong>: Time To Live. Defines how long the secret remains available before it expires.</p>\n</li>\n<li><p><strong>description</strong>: Allows the sender to store additional information about the secret, including private and public descriptions.</p>\n</li>\n<li><p><strong>ipList</strong>: Restricts access to the secret so it can only be revealed from specific IP addresses.</p>\n</li>\n<li><p><strong>availableFrom</strong>: Defines the point in time from which the secret becomes accessible. This value uses epoch time.</p>\n</li>\n<li><p><strong>lockedByOwner</strong>: Allows the sender to lock the secret, preventing access until it is unlocked again.</p>\n</li>\n<li><p><strong>pin</strong>: Adds PIN protection to the secret. The recipient must provide the correct PIN before the secret can be revealed.</p>\n</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"e25a3d11-3ccd-4a07-9edf-3e548d869f64"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"ce3be381-f779-4a9e-8d1e-95597c02f72e"}}],"_postman_id":"b08bc8d8-1918-4223-a155-f84931406921"},{"name":"User","item":[{"name":"My secrets","item":[{"name":"Details","item":[{"name":"Get Secret Details","id":"fc0b7cae-214c-4516-8689-44262d3cd01a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/secret/mysecrets/details?secretId={{secretId}}","description":"<p>Returns the details of a specific secret belonging to the authenticated user.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<ul>\n<li><em><strong>Required URL Params:</strong></em><br />  <code>secretId=[string]</code></li>\n</ul>\n","urlObject":{"path":["{{version}}","secret","mysecrets","details"],"host":["{{baseURL}}"],"query":[{"key":"secretId","value":"{{secretId}}"}],"variable":[]}},"response":[{"id":"c3e46994-75c4-4ba9-8516-f20b44907707","name":"Secret Details Retrieved Successfully","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":{"raw":"https://api.sharepass.online/v1/secret/mysecrets/details?secretId={{secretId}}","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","mysecrets","details"],"query":[{"key":"secretId","value":"{{secretId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Oct 2021 12:58:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1205"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"GrwPwEXySwMFVSQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-615afa64-35bc2c930968555121d9d04a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"vUAxEkRxZTHb5jSCrdqHCOvWBEpSq3\",\n        \"secret\": \"\",\n        \"type\": \"password\",\n        \"availableFrom\": 1633351737,\n        \"lockedByOwner\": false,\n        \"opened\": true,\n        \"creation\": 1633351737,\n        \"expiry\": 1633956537,\n        \"otl\": true,\n        \"openedDetails\": {\n            \"sourceIp\": \"59.102.108.230\",\n            \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36\",\n            \"timestamp\": 1633351827\n        },\n        \"accessLog\": [\n            {\n                \"filter\": 4,\n                \"description\": \"Secret already retrieved.\",\n                \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36\",\n                \"sourceIp\": \"59.102.108.230\",\n                \"success\": false,\n                \"timestamp\": 1633351982090\n            },\n            {\n                \"filter\": 4,\n                \"description\": \"Secret already retrieved.\",\n                \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36\",\n                \"sourceIp\": \"59.102.108.230\",\n                \"success\": false,\n                \"timestamp\": 1633351858249\n            },\n            {\n                \"filter\": 7,\n                \"description\": \"Secret retrieved successfully.\",\n                \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36\",\n                \"sourceIp\": \"59.102.108.230\",\n                \"success\": true,\n                \"timestamp\": 1633351826348\n            }\n        ]\n    }\n}"},{"id":"55763d2a-9e90-49f3-9e70-b62a281614a6","name":"Secret Not Found","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":{"raw":"https://api.sharepass.online/v1/secret/mysecrets/details?secretId={{secretId}}","protocol":"https","host":["api","sharepass","online"],"path":["v1","secret","mysecrets","details"],"query":[{"key":"secretId","value":"{{secretId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Oct 2021 12:59:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"069534d7-1d48-49a1-a863-7341c85bdd53"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"GrwcdGCqSwMFSXw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-615afab5-172512b23e4d688e1d3209e9;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Not found\",\n    \"message\": \"Secret ID not found.\"\n}"},{"id":"720b7c3d-35ad-4815-8d9e-f1a6d547ac02","name":"Get Secret Details","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":{"raw":"{{baseURL}}/{{version}}/secret/mysecrets/details?secretId={{secretId}}&content=2","host":["{{baseURL}}"],"path":["{{version}}","secret","mysecrets","details"],"query":[{"key":"secretId","value":"{{secretId}}"},{"key":"content","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Thu, 25 Dec 2025 13:46:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"102"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"f8bdff8f-67e7-41c6-b340-905d6d012437"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"WJb1VFZsywMEt1g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-694d4021-5e25f8607d9203da5588dadf;Parent=1333dff3421af0eb;Sampled=0;Lineage=1:fe78f864:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"pT304P67rDrXf0W8bU5eFMHcklcyfM\",\n        \"pushDecryptSession\": null\n    }\n}"},{"id":"1741f0db-4403-4345-9093-503514cbd657","name":"Secret Details Retrieved Successfully (content 2)","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":{"raw":"{{baseURL}}/{{version}}/secret/mysecrets/details?secretId={{secretId}}&content=2","host":["{{baseURL}}"],"path":["{{version}}","secret","mysecrets","details"],"query":[{"key":"secretId","value":"{{secretId}}"},{"key":"content","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Thu, 25 Dec 2025 21:26:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"548"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"7c2ae765-a2b0-4e1b-9992-5a9f44906e5e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"WKfReFUASwMEYOw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-694dac09-029c5a2f6a5e8506428e75f9;Parent=6f6d8ca1ede32619;Sampled=0;Lineage=1:fe78f864:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"pT304P67rDrXf0W8bU5eFMHcklcyfM\",\n        \"pushDecryptSession\": {\n            \"approveTokenHash\": \"876207f566ec750e53d3b87013206c6dccbb05024c3169c363a9538f96686c81\",\n            \"createdAt\": 1766670428,\n            \"desktopEphemeralPublicKey\": \"BASE64_OR_PEM_OR_JWK_STRING_HERE\",\n            \"requestId\": \"wgcPufHB_ou1G2t3\",\n            \"respondedByDevice\": \"3eca4b83313814c1f537ffd22b5367a54bcdff293c55ddb2e92dcb7454ebfe1e\",\n            \"encryptedSymmetricKeyForDesktop\": \"CIPHERTEXT_FOR_DESKTOP_HERE\",\n            \"approvedAt\": 1766670704,\n            \"expiresAt\": 2766670458,\n            \"status\": \"approved\",\n            \"verificationCode\": \"a83202\"\n        }\n    }\n}"}],"_postman_id":"fc0b7cae-214c-4516-8689-44262d3cd01a"}],"id":"1992712c-2e6b-494b-8773-70c20bdac763","_postman_id":"1992712c-2e6b-494b-8773-70c20bdac763","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Search","item":[{"name":"Search Secrets","id":"15d9d7f2-70dd-4f7e-998b-6ccc22f1529a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"purpose\": \"send\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/search","description":"<p>Searches for secrets that match the specified criteria for the authenticated user.</p>\n<p>When multiple attributes are provided, the conditions are combined using a logical <strong>AND</strong> operator.</p>\n<p><em><strong>Note:</strong></em> If too many secrets match the criteria, the response may include an <code>ExclusiveStartKey</code> value. To retrieve the next page of results, perform another request using that value as <code>exclusiveStartId</code>.</p>\n<hr />\n<h6 id=\"attributes-breakdown\">Attributes breakdown:</h6>\n<ul>\n<li><p>purpose: A string that indicates the purpose of the secret</p>\n</li>\n<li><p><strong>otl</strong>: A <em>boolean</em> that <code>matches</code> the <strong>OTL</strong> value</p>\n</li>\n<li><p><strong>type</strong>: A <em>string</em> that <code>matches</code> the secrets <strong>type</strong> value</p>\n</li>\n<li><p><strong>privateDescription</strong>: Any string that is <code>contained</code> in the <strong>privateDescription</strong> value</p>\n</li>\n<li><p><strong>publicDescription</strong>: Any string that is <code>contained</code> in the <strong>publicDescription</strong> attribute</p>\n</li>\n<li><p><strong>lockedByOwner</strong>: A <em>boolean</em> that <code>matches</code> the <strong>lockedByOwner</strong> attribute</p>\n</li>\n<li><p><strong>label</strong>: An <em>object</em> that <code>matches</code> the <strong>codeName</strong> AND/OR the <strong>color</strong> attribute</p>\n</li>\n<li><p><strong>pin</strong>: A <em>boolean</em> if the secret <code>contains</code> a pin (static or dynamic) in the <strong>pin</strong> attribute</p>\n</li>\n<li><p><strong>asc</strong>: A <em>boolean</em> that <code>sorts</code> the list ascending or descending by <strong>creation</strong> attribute</p>\n</li>\n<li><p><strong>exclusiveStartId</strong>: A valid <em>secretID</em> that <code>indicates</code> where the search should begin</p>\n</li>\n<li><p><strong>expired</strong>: A <em>boolean</em> that <code>indicates</code> the secrets that have the <strong>expiry</strong> value already expired</p>\n</li>\n<li><p><strong>ipList</strong>: A <em>boolean</em> if the secret <code>contains</code> at least one IP address restriction in the <strong>ipList</strong> attribute</p>\n</li>\n<li><p><strong>opened</strong>: A <em>boolean</em> that <code>matches</code> the secrets <strong>opened</strong> attribute</p>\n</li>\n</ul>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"purpose\": [string], // Required\n    \"otl\": [boolean], // Optional\n    \"type\": [string], // Optional\n    \"privateDescription\": [string], // Optional\n    \"publicDescription\": [string], // Optional\n    \"lockedByOwner\": [boolean], // Optional\n    \"label\": [object] // Optional\n    {\n        \"codeName\": [string],  // Optional\n        \"color\": [string]  // Optional\n    } \n    \"pin\": [boolean], // Optional\n    \"asc\": [boolean], // Optional\n    \"exclusiveStartId\": [string], // Optional\n    \"expired\": [boolean], // Optional\n    \"ipList\": [boolean], // Optional\n    \"opened\": [boolean], // Optional\n}\n\n</code></pre>\n<h6 id=\"data-example-1\">Data example 1:</h6>\n<p><em><strong>Explanation:</strong></em> List all secrets with type <em>PIN</em> with a label color <em>#aaaaaa</em></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"purpose\": \"send\",\n    \"type\": \"pin\",\n    \"label\": {\"color\": \"#aaaaaa\"}\n}\n\n</code></pre>\n<h6 id=\"data-example-2\">Data example 2:</h6>\n<p><em><strong>Explanation:</strong></em> List all expired secrets with type <em>Password</em> that contains a <a href=\"https://mailto:john@contoso.com\"><i>john@contoso.com</i></a> in the private description</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"password\",\n    \"privateDescription\": \"john@contoso.com\",\n    \"expired\": true\n}\n\n</code></pre>\n<h6 id=\"data-example-3\">Data example 3:</h6>\n<p><em><strong>Explanation:</strong></em> List all secrets sorted from the oldest to the newest, starting from a specific <em>secretID</em>, pinned protected, and <em>Password</em> type</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"password\",\n    \"pin\": true,\n    \"asc\": true,\n    \"exclusiveStartId\": \"6s4TeGt1hUbi4PT6NiO5syCtDUicyh\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","secret","mysecrets","search"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"b606fa08-11dc-4a8f-b578-257ab842e189","name":"Secrets Retrieved Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"purpose\": \"send\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/search"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Wed, 11 Mar 2026 01:16:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3786"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"eb80d504-5e34-4515-9768-3efa6d9cf4c5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"aCNRAHr3SwMEpwg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-69b0c26c-4de38e6e15f227280f93ed5f;Parent=558502fa78e84968;Sampled=0;Lineage=2:3da77876:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secrets\": [\n            {\n                \"secretId\": \"6jE81B8xv8oMrnspxEZW2F5i7p21uA\",\n                \"type\": \"message\",\n                \"creation\": 1773181682,\n                \"lastModified\": 1773182239,\n                \"opened\": true,\n                \"lockedByOwner\": true,\n                \"expiry\": 99999999999,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"2 hours ago\",\n                \"availableFrom\": 1773181682,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"sIOj03saEKRec93lJdMjyR8FvWPNk0\",\n                \"type\": \"message\",\n                \"creation\": 1773121405,\n                \"lastModified\": 1773121405,\n                \"opened\": true,\n                \"privateDescription\": \"This is the password for customer ABC\",\n                \"publicDescription\": \"Please keep the password in a safe place\",\n                \"label\": {\n                    \"codeName\": \"Test\",\n                    \"color\": \"#f63b3b\"\n                },\n                \"expiry\": 1780897405,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"19 hours ago\",\n                \"availableFrom\": 1773121405,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"Vhna4SHsyEXAg9V9HiJ9jENIIJdDf2\",\n                \"type\": \"message\",\n                \"creation\": 1773083224,\n                \"lastModified\": 1773083224,\n                \"opened\": false,\n                \"privateDescription\": \"test\",\n                \"expiry\": 1773688024,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"1 day ago\",\n                \"availableFrom\": 1773083224,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"z3BbUkwNlTaxU4Hg9aYgMnipaCq3ZQ\",\n                \"type\": \"message\",\n                \"creation\": 1772662327,\n                \"lastModified\": 1772662327,\n                \"opened\": true,\n                \"lockedByOwner\": true,\n                \"privateDescription\": \"SharePass login and API Key to jkoschier@rstcloud.com\",\n                \"publicDescription\": \"Please keep the secret in a safe place\",\n                \"label\": {\n                    \"codeName\": \"SharePass\",\n                    \"color\": \"#f63b3b\"\n                },\n                \"expiry\": 99999999999,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"6 days ago\",\n                \"availableFrom\": 1772662327,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"gL8q6WLApq2DLfHTfMc6NgRPPXB2Un\",\n                \"type\": \"message\",\n                \"creation\": 1772590295,\n                \"lastModified\": 1772590295,\n                \"opened\": false,\n                \"privateDescription\": \"This is the password for customer ABC\",\n                \"publicDescription\": \"Please keep the password in a safe place\",\n                \"label\": {\n                    \"codeName\": \"Test\",\n                    \"color\": \"#f63b3b\"\n                },\n                \"expiry\": 1772598185,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"6 days ago\",\n                \"availableFrom\": 1772590295,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"S5gB2Yat4oQYTpAYvdWImZnvHPNTKg\",\n                \"type\": \"message\",\n                \"creation\": 1772579645,\n                \"lastModified\": 1772579645,\n                \"opened\": true,\n                \"privateDescription\": \"test\",\n                \"expiry\": 1773184445,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"7 days ago\",\n                \"availableFrom\": 1772579645,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"ipPqH7p6Nx7JdrJkr10z0Q6gukDa3j\",\n                \"type\": \"message\",\n                \"creation\": 1772341271,\n                \"lastModified\": 1772341271,\n                \"opened\": false,\n                \"privateDescription\": \"test\",\n                \"label\": {\n                    \"codeName\": \"Test\",\n                    \"color\": \"#0d6efd\"\n                },\n                \"expiry\": 99999999999,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"9 days ago\",\n                \"availableFrom\": 1772341271,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"6umNb0JsmHm8UJgqpVmVwFe4rA69hA\",\n                \"type\": \"custom\",\n                \"creation\": 1772337851,\n                \"lastModified\": 1772337851,\n                \"opened\": true,\n                \"privateDescription\": \"test\",\n                \"expiry\": 1772942651,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"9 days ago\",\n                \"availableFrom\": 1772337851,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"NO6QifJebdGgpQxgJmaqaNchTRnSma\",\n                \"type\": \"password\",\n                \"creation\": 1772292592,\n                \"lastModified\": 1772292592,\n                \"opened\": true,\n                \"privateDescription\": \"test\",\n                \"label\": {\n                    \"codeName\": \"Test\",\n                    \"color\": \"#0d6efd\"\n                },\n                \"expiry\": 1772897392,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"10 days ago\",\n                \"availableFrom\": 1772292592,\n                \"purpose\": \"send\",\n                \"filled\": true\n            },\n            {\n                \"secretId\": \"6zL7F1KFlA05M4FU5JdZaKof4HQF4n\",\n                \"type\": \"message\",\n                \"creation\": 1745465024,\n                \"lastModified\": 1745465024,\n                \"opened\": true,\n                \"lockedByOwner\": true,\n                \"privateDescription\": \"akash@sharepass.com\",\n                \"publicDescription\": \"Please keep the secret in a safe place.\",\n                \"expiry\": 99999999999,\n                \"otl\": false,\n                \"bin\": false,\n                \"secretErased\": false,\n                \"relativeCreation\": \"10 months ago\",\n                \"availableFrom\": 1745465024,\n                \"purpose\": \"send\",\n                \"filled\": true\n            }\n        ]\n    }\n}"}],"_postman_id":"15d9d7f2-70dd-4f7e-998b-6ccc22f1529a"}],"id":"1d4f9d7f-66d3-45c5-ac68-bf04c65e6eba","description":"<p>This resource contains the tools that the user need to search for a specific secret previously created or secrets that match certain criteria.</p>\n","_postman_id":"1d4f9d7f-66d3-45c5-ac68-bf04c65e6eba","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Update","item":[{"name":"Pin","item":[{"name":"Update Pin Attempts Remaining","id":"2045d836-bfca-4ebb-9e26-2ed28cc77995","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"attemptsRemaining\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update/pin","urlObject":{"path":["{{version}}","secret","mysecrets","update","pin"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"d7bf1295-50e5-40d1-b145-fcfbb7708a20","name":"Pin Attempts Updated Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"attemptsRemaining\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update/pin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 28 Dec 2021 01:18:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"77"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"LCTX4Et4SwMFRdw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ca65cb-4a22067507bf2a3077c614c1;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"PIN attempts remaining updated successfully.\"\n}"},{"id":"404374c7-ea5b-442a-a8cb-e2e429b39a2b","name":"Secret Does Not Have PIN Protection","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"attemptsRemaining\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update/pin"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 28 Dec 2021 01:35:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"97"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"LCV-VG9zywMFVfA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61ca69f5-470e02d06c8eafea2c0ab32f;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Secret ID provided does not have an associated PIN protection.\"\n}"}],"_postman_id":"2045d836-bfca-4ebb-9e26-2ed28cc77995"}],"id":"a62be462-0caf-4a9d-b238-657c9a47ba39","description":"<p>Whenever the attempts to unlock a secret protected by a PIN are exhausted, the owner of the secret can grant more attempts with this endpoint.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secretId\": [string], // Required\n    \"attemptsRemaining\": [integer] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secretId\": \"fFEiGF8a64CX6xvLt9KR7ZVzXbvzQJ\", // Required\n    \"attemptsRemaining\": 3\n}\n\n</code></pre>\n","_postman_id":"a62be462-0caf-4a9d-b238-657c9a47ba39","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Update Secret","id":"bd71291e-c5e6-4d4c-8cc3-3d7c07d66af9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"updateAttributes\": {\r\n        \"eraseSecret\": null\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update","description":"<p>Updates an existing secret.</p>\n<p>Only the owner (creator) of the secret can modify it.</p>\n<p><em><strong>Note:</strong></em> To remove a supported attribute, assign it the value <code>null</code>.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secretId\": [string], // Required\n    \"updateAttributes\": [object], // Required\n    { \n        \"eraseSecret\": [boolean] // Optional\n        \"lockedByOwner\": [boolean] or [null], // Optional\n        \"publicDescription\": [string] or [null], // Optional\n        \"privateDescription\": [string] or [null], // Optional\n        \"label\": [object] or [null] // Optional\n        {\n            \"codeName\": [string], // Required\n            \"color\": [string] // Required\n        },\n        \"ipList\": [array] or [null], // Optional\n        \"pin\": [object] or [null] // Optional (1 property min/max)\n        { \n          \"static\": [string], // Optional\n          \"dynamic\": [string] // Optional\n        },\n        \"ttl\": [object] // Optional (1 property min/max)\n        {\n            \"relative\": [integer], // Optional\n            \"absolute\": [integer] // Optional\n        },\n        \"availableFrom\": [object] // Optional (1 property min/max)\n        {\n            \"relative\": [integer], // Optional\n            \"absolute\": [integer] // Optional\n        }\n    }\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secretId\": \"E5OeK1KBuZFxyKQNlLggLBsW1MnWUp\",\n    \"updateAttributes\":{\n        \"lockedByOwner\": true,\n        \"publicDescription\": \"Some public description here.\",\n        \"privateDescription\": \"Some public description here.\",\n        \"label\": {\n            \"codeName\": \"SharePass\",\n            \"color\": \"#ffabe2\"\n      }\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","secret","mysecrets","update"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"beff6084-212f-48bc-9774-0c4466e5b1c2","name":"Secret Updated Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"updateAttributes\":{\r\n        \"lockedByOwner\": true,\r\n        \"publicDescription\": \"Some public description here.\",\r\n        \"privateDescription\": null\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Dec 2021 00:35:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"154"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"KubcoG6VSwMFpKA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61c272b7-16493d233e6e81e53e2cf5bf;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"lockedByOwner\": true,\n        \"privateDescription\": null,\n        \"publicDescription\": \"Some public description here.\"\n    }\n}"},{"id":"9fd386d7-4442-4fbf-bde5-5ffe401bf916","name":"PIN and IP Updated Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"updateAttributes\":{\r\n        \"ipList\": [\"123.123.123.123\"],\r\n        \"pin\": {\"static\": \"123123\"}\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 25 Dec 2021 08:47:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"124"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"K5cdaEOaywMF-Ow="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61c6dabc-4e6575620a6731511af921d7;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"pin\": {\n            \"type\": \"static\",\n            \"value\": \"123123\",\n            \"attemptsRemaining\": 3\n        },\n        \"ipList\": [\n            \"123.123.123.123\"\n        ]\n    }\n}"},{"id":"def6d04f-c533-44c6-92ae-33edd85260c1","name":"PIN and IP Removed Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"updateAttributes\":{\r\n        \"ipList\": null,\r\n        \"pin\": null\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 25 Dec 2021 09:12:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"K5gD6HIsSwMFYMA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61c6e07f-1a7adb110b0524a607b56c9e;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"pin\": null,\n        \"ipList\": null\n    }\n}"},{"id":"9fc204ce-54b6-4784-84f1-3cb3adc6fe81","name":"Label Removed Successfully","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"updateAttributes\":{\r\n        \"label\": null\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Dec 2021 15:50:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Kz0eEEQtywMF9jg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61c49ac0-6f40a7845e2a20785223fc49;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"label\": null\n    }\n}"},{"id":"dd1340cd-0634-4bed-9d4e-f18f0325deb8","name":"Expired Secret","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"updateAttributes\":{\r\n        \"ipList\": null,\r\n        \"pin\": null,\r\n        \"availableFrom\": {\"absolute\": 1640521079},\r\n        \"ttl\": {\"absolute\": 1640521080}\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 26 Dec 2021 12:26:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"100"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"K9PVwEqaywMFztg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61c85f57-7c32a26f57cf2ccd1d451b58;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Sorry! It is not allowed to edit properties from expired secrets.\"\n}"},{"id":"67505102-37a9-4097-999c-79683a25b625","name":"Secret Erased Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\",\r\n    \"updateAttributes\": {\r\n        \"eraseSecret\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/update"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Wed, 11 Mar 2026 01:23:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"60"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"aCOQNEuFSwMEPqw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-69b0c400-5ea903ce65bc59614e7e07bc;Parent=2aa51454e4b96e3b;Sampled=0;Lineage=1:058b1c85:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Secret erased successfully.\"\n}"}],"_postman_id":"bd71291e-c5e6-4d4c-8cc3-3d7c07d66af9"}],"id":"1f7efe0d-4ae4-4a17-af26-cb62f19e496d","description":"<p>This resource contains the methods to update secret attributes.</p>\n","_postman_id":"1f7efe0d-4ae4-4a17-af26-cb62f19e496d","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Default","item":[{"name":"Creates Authenticated Secret (default template)","id":"c53ea78b-4b86-4545-ba79-13bd17e5bd43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"type\": \"message\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/default","description":"<p>Used to create a new secret using the default template. This endpoint behaves exactly like the <a href=\"https://developers.sharepass.com/#a29a1e44-f7ca-41e9-b3a5-5f901a48e26f\">main endpoint</a>, except that only accepts <strong>secret</strong> and <strong>type</strong> attributes.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secret\": [string], // Required\n    \"type\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secret\": \"Some Secret Encrypted Message.\",\n    \"type\": \"message\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","secret","mysecrets","default"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"6827ba1b-b20f-4870-83b3-ff31200daf0b","name":"Licensed Secret Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"type\": \"message\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/default"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 May 2022 02:05:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"318"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"R8D-sFEjywMFd0w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-627b19f7-33834c27454199e4196e4f2b;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"xz6UzDspcSDapfN9F5II64ZJQPa1J1\",\n        \"expiry\": 1652234863,\n        \"expiryRelativeText\": \"Your secret will expire in \",\n        \"expiryRelative\": \"1 minute\",\n        \"availableFrom\": 1652234743,\n        \"pin\": true,\n        \"attemptsRemaining\": 9981,\n        \"creation\": 1652234743,\n        \"revealMessage\": \"Click to reveal secret\",\n        \"purpose\": \"send\"\n    }\n}"},{"id":"fd5458e8-15d7-49ca-a173-bfee41d72542","name":"Attribute Not Allowed","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"type\": \"message\",\r\n    \"otl\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/default"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 May 2022 02:08:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"116"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"R8EbyHbuywMFfJQ="},{"key":"Access-Control-Allow-Methods","value":"GET,OPTIONS"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad request\",\n    \"message\": \"[object instance has properties which are not allowed by the schema: [\\\"otl\\\"]]\"\n}"}],"_postman_id":"c53ea78b-4b86-4545-ba79-13bd17e5bd43"}],"id":"c0631fb1-27db-42fb-9adb-62911c93f59e","description":"<p>The <em>default</em> resource refers to the secrets created using the default template.</p>\n","_postman_id":"c0631fb1-27db-42fb-9adb-62911c93f59e","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Template","item":[{"name":"Creates Authenticated Secret (by template)","id":"b36037c5-5d5e-44d4-8326-57388ff6e689","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"type\": \"message\",\r\n    \"templateCodeName\": \"123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/template","description":"<p>Creates a new secret using a specific template.</p>\n<p>This endpoint is a simplified version of the main secret creation endpoint. It is intended for cases where the secret settings are predefined in a template, so the request only needs to provide the secret content, its type, and the <code>templateCodeName</code>.</p>\n<p>Like the main secret creation endpoint, the <code>secret</code> value is expected to be encrypted before the request is sent.</p>\n<p><em><strong>Important:</strong></em> If the client wants SharePass to perform the encryption, the request must include the <code>X-SharePass-Input: plaintext</code> header. When this header is provided, the backend encrypts the plaintext secret before creating it.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secret\": [string], // Required\n    \"type\": [string], // Required\n    \"templateCodeName\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secret\": \"Some Secret Encrypted Message.\",\n    \"type\": \"message\",\n    \"templateCodeName\": \"Test template\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","secret","mysecrets","template"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"c4cab2c9-f21c-4249-9b7e-6c1fdf2c0cea","name":"Secret Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"type\": \"message\",\r\n    \"templateCodeName\": \"Test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/template"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 27 May 2022 14:35:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"313"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SygwrGQcSwMFqoA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6290e19d-50115c0e354c18696b05eeb3;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"sPRqonkO4Z5ugkeF1OS0yJXnuncwxC\",\n        \"expiry\": 99999999999,\n        \"expiryRelativeText\": \"Your secret will \",\n        \"expiryRelative\": \"never expire\",\n        \"availableFrom\": 1653662709,\n        \"pin\": true,\n        \"attemptsRemaining\": 1347,\n        \"creation\": 1653662109,\n        \"revealMessage\": \"Click to reveal secret\",\n        \"purpose\": \"send\"\n    }\n}"},{"id":"afcf0148-dbe1-4d90-878b-82c0dbf8bbb3","name":"Template Does Not Exist","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"type\": \"message\",\r\n    \"templateCodeName\": \"Test2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets/template"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 28 May 2022 03:00:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"S0N3qGcESwMFQ2g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62919030-2093acf0622b4ae23ea64d41;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Template 'Test2' does not exist.\"\n}"}],"_postman_id":"b36037c5-5d5e-44d4-8326-57388ff6e689"}],"id":"ec146faa-00f7-4fa4-b136-4f0eabfacdc0","description":"<p>This path provides the endpoint to create a secret using a predefined template.</p>\n<p>It is intended to simplify secret creation when the secret configuration has already been defined in a template.</p>\n","_postman_id":"ec146faa-00f7-4fa4-b136-4f0eabfacdc0","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Creates Authenticated Secret","id":"ae87ffa7-c513-4024-973d-ec4f0cbcd114","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"},{"key":"X-SharePass-Input","value":"plaintext","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"otl\": false,\r\n    \"ttl\": {\"relative\": 60000},\r\n    \"type\": \"message\",\r\n    \"privateDescription\": \"YEEEESSS!!!\",\r\n    \"publicDescription\": \"test test test\",\r\n    \"lockedByOwner\": false,\r\n    \"emailVerificationList\": [\"megchisp@hotmail.com\",\"megchisp@gmail.com\",\"mauro@sharepass.com\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets","description":"<p>Creates a new secret to share data securely.</p>\n<p>This is the main endpoint used to share data through SharePass. It allows the authenticated user to create a secret with optional restrictions and metadata, such as expiration rules, availability time, IP restrictions, PIN protection, labels, and descriptions.</p>\n<p>By default, the <code>secret</code> value must already be encrypted by the sender before calling this endpoint.</p>\n<p><em><strong>Important:</strong></em> If the client interacts directly with the backend and wants SharePass to perform the encryption, the request must include the <code>X-SharePass-Input: plaintext</code> header. When this header is provided, the backend encrypts the plaintext secret and returns both the decryption key and the view link.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<ul>\n<li><em><strong>Optional Header Params:</strong></em> <code>templateCodeName=[string]</code></li>\n<li><em><strong>Optional Header Params:</strong></em> <code>X-SharePass-Input=plaintext</code></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secret\": [string], // Required\n    \"otl\": [boolean], // Required\n    \"type\": [string], // Required\n    \"ttl\": [object] // Optional (1 property min/max)\n    {\n        \"relative\": [integer], // Optional\n        \"absolute\": [integer] // Optional\n    },\n    \"availableFrom\": [object] // Optional (1 property min/max)\n    {\n        \"relative\": [integer], // Optional\n        \"absolute\": [integer] // Optional\n    }\n    \"ipList\": [array], // Optional\n    \"lockAfterUse\": [boolean], // Optional\n    \"privateDescription\": [string], // Optional\n    \"publicDescription\": [string], // Optional\n    \"lockedByOwner\": [boolean], // Optional \n    \"pin\": [object] or [null] // Optional (1 property min/max)\n    { \n        \"static\": [string], // Optional\n        \"dynamic\": [string] // Optional\n    },\n    \"label\": [object] // Optional\n    {\n        \"codeName\": [string], // Required\n        \"color\": [string] // Required\n    } \n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secret\": \"Some Secret Encrypted Message.\",\n    \"otl\": false,\n    \"ttl\": {\"absolute\": 1618498005},\n    \"availableFrom\": {\"relative\": 6000},\n    \"type\": \"message\",\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\n    \"privateDescription\": \"private secret number 1\",\n    \"publicDescription\": \"public secret number 1\",\n    \"lockedByOwner\": false,\n    \"pin\": {\"static\": \"456789\"},\n    \"label\": {\"codeName\": \"my label 123\", \"color\": \"#aaaaaa\"}\n}\n\n</code></pre>\n<h6 id=\"data-example-2\">Data example 2:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secret\": \"Some Secret Encrypted Message.\",\n    \"otl\": false,\n    \"ttl\": {\"relative\": 6000},\n    \"availableFrom\": {\"absolute\": 1618498005},\n    \"type\": \"message\",\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\n    \"privateDescription\": \"private secret number 2\",\n    \"publicDescription\": \"public secret number 2\",\n    \"lockedByOwner\": false,\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"}\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","secret","mysecrets"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"0f766a62-90ff-4c14-a4da-3bcb1cf8ee8b","name":"Licensed Secret Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message.\",\r\n    \"otl\": false,\r\n    \"ttl\": {\"absolute\": 1618498005},\r\n    \"availableFrom\": {\"relative\": 600},\r\n    \"type\": \"message\",\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"private bulking secret number 3\",\r\n    \"publicDescription\": \"public bulking secret number 3\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"},\r\n    \"label\": {\"codeName\": \"my label\", \"color\": \"#aaaaaa\"}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/secret/mysecrets"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 02 Jan 2021 06:31:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"160"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YgfwkFQDSwMF9VA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5ff01336-73d9bec17081fcb5248d15c9;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"16EETLAxxtzhpwhrVkWTFBbx5cTPjC\",\n        \"expiry\": 1618498005,\n        \"availableFrom\": 1618497926,\n        \"expiryRelative\": \"24 hours\",\n        \"attemptsRemaining\": 3,\n        \"pin\": true,\n        \"creation\": 1618497326,\n        \"revealMessage\": \"Click to reveal secret\",\n        \"purpose\": \"send\"\n    }\n}"},{"id":"b0fbd84c-8858-4d4e-9e6d-14a1c4d1f54b","name":"Invalid IP Address","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message.\",\r\n    \"otl\": false,\r\n    \"ttl\": {\"relative\": 6000},\r\n    \"type\": \"message\",\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.333\"],\r\n    \"availableFrom\": {\"relative\": 6000},\r\n    \"privateDescription\": \"private bulking secret number 3\",\r\n    \"publicDescription\": \"public bulking secret number 3\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"static\": \"1841\"}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/secret/mysecrets"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 02 Jan 2021 06:37:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"183"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"YggtXEKvywMFXWg="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"[ECMA 262 regex \\\"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$\\\" does not match input string \\\"3.3.3.333\\\"]\"\n}"},{"id":"638ce1b3-4da0-4d6d-9a17-13b0ec0e8acc","name":"Invalid Expiration Date","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message.\",\r\n    \"otl\": false,\r\n    \"ttl\": {\"absolute\": 1618498005},\r\n    \"availableFrom\": {\"relative\": 60},\r\n    \"type\": \"message\",\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"private bulking secret number 3\",\r\n    \"publicDescription\": \"public bulking secret number 3\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/secret/mysecrets"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 02 Jan 2021 06:39:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"148"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"Ygg5rEj0ywMFSfA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5ff0150a-41c61e510234257d3206cf69;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad request\",\n    \"message\": \"The secret expiry date must be later than the 'availableFrom' date.\"\n}"},{"id":"0739449c-a2b8-4777-a82b-33b8d605f933","name":"Invalid Secret Template","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"},{"key":"templateCodeName","value":"Some template","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message.\",\r\n    \"otl\": false,\r\n    \"ttl\": {\"relative\": 555},\r\n    \"type\": \"message\",\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"private bulking secret number 3\",\r\n    \"publicDescription\": \"public bulking secret number 3\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/secret/mysecrets"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 20 Apr 2021 14:07:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"91"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"eFfysHqHSwMFpBA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607ee011-301d8e824312c56c73bc1e6e;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Template 'Some template' does not exist.\"\n}"},{"id":"7f97d38e-6a5a-499a-b241-f745e051405c","name":"Email Verification List Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{apiKey}}","type":"text","disabled":true},{"key":"Auth","value":"{{access_token}}","type":"text"},{"key":"X-SharePass-Input","value":"plaintext","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"otl\": false,\r\n    \"ttl\": {\"relative\": 60000},\r\n    \"type\": \"message\",\r\n    \"privateDescription\": \"YEEEESSS!!!\",\r\n    \"publicDescription\": \"test test test\",\r\n    \"lockedByOwner\": false,\r\n    \"emailVerificationList\": [\"megchisp@hotmail.com\",\"megchisp@gmail.com\",\"mauro@sharepass.com\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 24 Feb 2026 15:16:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"452"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"e76b33ed-5f4d-4c09-97dd-705601493e91"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"ZSsOfHnAywMES0g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-699dc0c2-364416b30e6d30cc1caff386;Parent=6cc61d1a862e3767;Sampled=0;Lineage=2:a946fa38:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"lRgUZRL5N13tbJXyGG9DLOenalcMA1\",\n        \"expiry\": 1772006181,\n        \"expiryRelativeText\": \"Your secret will expire in \",\n        \"expiryRelative\": \"16 hours\",\n        \"availableFrom\": 1771946181,\n        \"creation\": 1771946181,\n        \"revealMessage\": \"Click to reveal secret\",\n        \"purpose\": \"send\",\n        \"key\": \"2HBXbl62haeF7NdHcBtWialf8d08V5C3uDOn67E6cv0\",\n        \"link\": \"https://view.tst.sharepass.com/lRgUZRL5N13tbJX/#/yGG9DLOenalcMA1/2HBXbl62haeF7NdHcBtWialf8d08V5C3uDOn67E6cv0\"\n    }\n}"},{"id":"56501c4b-a97d-49b4-a243-01d042eab8ff","name":"Email Verification Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{apiKey}}","type":"text","disabled":true},{"key":"Auth","value":"{{access_token}}","type":"text"},{"key":"X-SharePass-Input","value":"plaintext","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secret\": \"Some Secret Encrypted Message\",\r\n    \"otl\": false,\r\n    \"ttl\": {\"relative\": 60000},\r\n    \"type\": \"message\",\r\n    \"privateDescription\": \"YEEEESSS!!!\",\r\n    \"publicDescription\": \"test test test\",\r\n    \"lockedByOwner\": false,\r\n    \"emailVerification\": {\"id\": \"megchisp@gmail.com\", \"hint\": false}\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 24 Feb 2026 18:50:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"477"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"2dbbf9e3-4b3d-424e-8a10-260cb144074a"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"ZTLqFEw6ywMEBfw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-699df30c-03bef3e12bc643c630125d4a;Parent=7f542783ef690775;Sampled=0;Lineage=1:a946fa38:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"Odhzc36N5VZNN41x23bvOg1W9s9IEt\",\n        \"expiry\": 1772019054,\n        \"expiryRelativeText\": \"Your secret will expire in \",\n        \"expiryRelative\": \"16 hours\",\n        \"availableFrom\": 1771959054,\n        \"emailVerification\": true,\n        \"creation\": 1771959054,\n        \"revealMessage\": \"Click to reveal secret\",\n        \"purpose\": \"send\",\n        \"key\": \"pY08LWVE5SkQA7tuapK4dsqRHpdDhdATbLDfpQ8YQp0\",\n        \"link\": \"https://view.tst.sharepass.com/Odhzc36N5VZNN41/#/x23bvOg1W9s9IEt/pY08LWVE5SkQA7tuapK4dsqRHpdDhdATbLDfpQ8YQp0\"\n    }\n}"},{"id":"a53818ed-c5c0-4e72-81d1-2eb828790a44","name":"Creates Authenticated Secret In Plain-Text","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{apiKey}}","type":"text","disabled":true},{"key":"Auth","value":"{{access_token}}","type":"text"},{"key":"X-SharePass-Input","value":"plaintext","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"secret\": \"This is the 1st line of the message.\\nThis is the 2nd one.\",\r\n  \"type\": \"message\",\r\n  \"otl\": false,\r\n  \"label\": { \"codeName\": \"Test\", \"color\": \"#f63b3b\" },\r\n  \"ttl\": { \"relative\": 7776000 },\r\n  \"privateDescription\": \"This is the password for customer ABC\",\r\n  \"publicDescription\": \"Please keep the password in a safe place\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 10 Mar 2026 05:43:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"460"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Z_hbTHu7ywMEcBA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-69afaf7b-1514ee6b09eddf4a440539e2;Parent=39bad8019159b6e9;Sampled=0;Lineage=2:c7f262f4:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"sIOj03saEKRec93lJdMjyR8FvWPNk0\",\n        \"expiry\": 1780897405,\n        \"expiryRelativeText\": \"Your secret will expire in \",\n        \"expiryRelative\": \"2 months and 29 days\",\n        \"availableFrom\": 1773121405,\n        \"creation\": 1773121405,\n        \"revealMessage\": \"Click to reveal secret\",\n        \"purpose\": \"send\",\n        \"key\": \"FJzxIqbjS6ZRU1ZYTAjmcFtbv8rbsVIXKb7M3TZSGDk\",\n        \"link\": \"https://view.sharepass.com/sIOj03saEKRec93/#/lJdMjyR8FvWPNk0/FJzxIqbjS6ZRU1ZYTAjmcFtbv8rbsVIXKb7M3TZSGDk\"\n    }\n}"}],"_postman_id":"ae87ffa7-c513-4024-973d-ec4f0cbcd114"},{"name":"Delete Secret ID","id":"45713dd0-f9c3-42b1-be59-0f8c9ec3128d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"{{secretId}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/secret/mysecrets","description":"<p>Permanently deletes a secret from SharePass.</p>\n<p>This is a hard delete operation. It removes the entire secret record from the database, including its settings and access logs. Once deleted, the <code>secretId</code> is also removed and the secret cannot be recovered.</p>\n<p><em><strong>Note:</strong></em> If the authenticated user is not the owner of the secret, the endpoint returns a <code>404 - Not Found</code> error.</p>\n<p><em><strong>Caution:</strong></em> Deleted secrets cannot be recovered.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secretId\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"secretId\": \"bKJ8VseNK533YkejWaA8E2I23Z8s3j\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","secret","mysecrets"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"5ab82231-91e8-4dee-b08c-e4c371b68692","name":"Secret Deleted Successfully","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"bKJ8VseNK533YkejWaA8E2I23Z8s3j\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/secret/mysecrets"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 14:49:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"80"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"b-dhXEAGywMF3MA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6048dc6f-7adc94d8332a2aaf44b0a993;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"secretId\": \"bKJ8VseNK533YkejWaA8E2I23Z8s3j\"\n    }\n}"},{"id":"957fa4e7-82fd-4e5f-ba9c-007b17981d36","name":"Secret Not Found","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"bKJ8VseNK533YkejWaA8E2I23Z8s3j\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/secret/mysecrets"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 15:00:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"00e93609-1451-4a38-96f4-18ab8dcea3a4"},{"key":"x-amz-apigw-id","value":"b-fH_HTaSwMF5vQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6048deff-163e883c7e9dfeba7faf9f58;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Not found\",\n    \"message\": \"Secret ID not found.\"\n}"},{"id":"aecf6a62-2df9-4a70-9179-8768107b997a","name":"Secret Not Valid","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"secretId\": \"bKJ8VseNK533YkejWaA8E2I23Z8s1j\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/secret/mysecrets"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Mar 2021 15:00:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"73"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"d803aa62-d2b8-4302-b5a9-b1094f439ca0"},{"key":"x-amz-apigw-id","value":"b-fNlEWDywMFiXw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6048df23-6a51e20a25a69cf50851e4a5;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Secret ID is not valid\"\n}"}],"_postman_id":"45713dd0-f9c3-42b1-be59-0f8c9ec3128d"}],"id":"c7365e88-c3b9-4d61-af85-101b5bfbcc0f","description":"<p>Authenticated users can make use of 'My secrets' menu. From it, the user is able to track the history of all their secrets created and also perform some management (such as update and delete).</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"72ba5794-bb4d-415b-9b7f-b00c7b097f50"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"8535f1eb-11d1-4dfc-b1d0-0783b79200e9"}}],"_postman_id":"c7365e88-c3b9-4d61-af85-101b5bfbcc0f","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Settings","item":[{"name":"Webhooks","item":[{"name":"Set Webhook","id":"260b4fd1-2ba5-48fe-a27d-a86cd5994f80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\" : true,\r\n    \"url\": \"https://example.com/somepath\",\r\n    \"secretToken\": \"Some Secret Token Here\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/webhooks","description":"<p>Used to create or edit existing webhook settings. It is important to remark that if there is a webhook already configured, the call to this endpoint will <strong>overwrite</strong> the existing one.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"active\" : [boolean], // Required\n    \"url\": [string], // Required\n    \"secretToken\": [string] // Optional\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"active\" : true,\n    \"url\": \"https://example.com/somepath\",\n    \"secretToken\": \"Some Secret Token Here\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","webhooks"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"dc143688-e270-4489-8211-d67b84220a2b","name":"Successful Webhook Update","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\" : true,\r\n    \"url\": \"https://example.com/somepath\",\r\n    \"secretToken\": \"Some Secret Token Here\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 10:05:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YaZOIFnSywMFaOg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5feda25a-3e8dfde9362673691d71ab09;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Webhook configured successfully.\"\n}"},{"id":"d17f4ed1-0028-403c-ac22-dd4e0d389fbc","name":"Wrong URL Format","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\" : true,\r\n    \"url\": \"example.com/somepath\",\r\n    \"secretToken\": \"Some Secret Token Here\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/webhooks"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 11:13:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"311"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"YajQCGKLSwMFu6g="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"[ECMA 262 regex \\\"(https:\\\\/\\\\/(?:www\\\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\\\.[^\\\\s]{2,}|www\\\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\\\.[^\\\\s]{2,}|https:\\\\/\\\\/(?:www\\\\.|(?!www))[a-zA-Z0-9]+\\\\.[^\\\\s]{2,}|www\\\\.[a-zA-Z0-9]+\\\\.[^\\\\s]{2,})\\\" does not match input string \\\"example.com/somepath\\\"]\"\n}"}],"_postman_id":"260b4fd1-2ba5-48fe-a27d-a86cd5994f80"},{"name":"Delete Webhook","id":"97700b01-d667-48b4-802e-45873cf2c240","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/webhooks","description":"<p>Used to delete user's webhook settings.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n","urlObject":{"path":["{{version}}","user","settings","webhooks"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"a44531be-dc0f-4beb-9e61-3a9848c72b1c","name":"Successful Webhook Deletion","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"https://api.sharepass.online/v1/user/settings/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 11:18:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"Yaj5yGuoSwMFtiA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fedb371-410ba29427c18d8142941421;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Webhook deleted successfully.\"\n}"},{"id":"6b6b5f4d-ce51-429f-8816-8808c9a6394b","name":"No Webhook To Delete","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"https://api.sharepass.online/v1/user/settings/webhooks"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 11:19:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YakEzE4ZSwMF_Lg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fedb3b8-6fec9b395dbdd62f4d7afd01;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"There is no webhook to delete.\"\n}"}],"_postman_id":"97700b01-d667-48b4-802e-45873cf2c240"}],"id":"26c26238-b610-454e-a64e-56106394a784","description":"<p>This path provides endpoints to create, update, enable, disable, and delete webhooks.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"4bafaa6a-83ee-466c-a613-15960544071c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"f07d907a-7b4a-410d-ade0-e368e63fcc4c"}}],"_postman_id":"26c26238-b610-454e-a64e-56106394a784"},{"name":"Secret Template","item":[{"name":"My Templates","item":[{"name":"Get All Templates","id":"58d47e05-021f-45b1-9f38-146c06827642","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate/mytemplates","description":"<p>Retrieves all templates created by the authenticated user.</p>\n<p>The response includes the <code>codeName</code> and <code>starred</code> attributes for each template.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n","urlObject":{"path":["{{version}}","user","settings","secrettemplate","mytemplates"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"d7bca0ed-8500-40da-b2e2-71cb000392a8","name":"Templates Successfully Retrieved","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"https://api.sharepass.online/v1/user/settings/secrettemplates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 05:09:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"488"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eA-JwFySywMFZww="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607d10a4-4421d70167929b9d2a88e59b;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": [\n        {\n            \"codeName\": \"My 1st template\",\n            \"starred\": false\n        },\n        {\n            \"codeName\": \"My 2nd template\",\n            \"starred\": true\n        }\n    ]\n}"},{"id":"973765f8-162e-4a47-af3f-d5b0cb59994a","name":"Templates Successfully Retrieved (empty)","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"https://api.sharepass.online/v1/user/settings/secrettemplates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 05:41:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"41"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eBCvEH7NywMFmsQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607d17f9-2c05238004a6adb92aeabf92;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": []\n}"}],"_postman_id":"58d47e05-021f-45b1-9f38-146c06827642"}],"id":"d56018bc-1e5e-45e2-98fe-0ae9426a69db","description":"<p>This path provides the endpoint to list the existing secret templates.</p>\n<p>The response returns the available templates for the authenticated user, including basic information such as <code>codeName</code> and <code>starred</code>.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"cde82e60-015e-414d-8ca8-23d85f142be7"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"2e04ccb3-fac9-4bc9-b7c0-0692ab3b7578"}}],"_postman_id":"d56018bc-1e5e-45e2-98fe-0ae9426a69db"},{"name":"Default","item":[{"name":"Update Default Template","id":"03666bf5-d442-4900-89bd-89a9ddbb16dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"lockAfterUse\": true,\r\n  \"ttl\": {\r\n    \"relative\": 0\r\n  },\r\n  \"otl\": false,\r\n  \"timeout\": 600\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate/default","description":"<p>Updates the default template replacing all previous settings.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"otl\": [boolean], // Required\n   \"type\": [string], // Required\n   \"ipList\": [array], // Optional\n   \"privateDescription\": [string], // Optional\n   \"publicDescription\": [string], // Optional\n   \"lockedByOwner\": boolean, // Optional (false if not specified)\n   \"ttl\": [object] // Required (1 property min/max)\n   {\n       \"relative\": [integer], // Optional\n       \"absolute\": [integer] // Optional\n   },\n   \"availableFrom\": [object] // Optional (1 property min/max)\n   {\n       \"relative\": [integer], // Optional\n       \"absolute\": [integer] // Optional\n   }\n   \"pin\": [object] or [null] // Optional (1 property min/max)\n   { \n       \"static\": [string], // Optional\n       \"dynamic\": [string] // Optional\n   },\n   \"label\": [object] // Optional\n   {\n       \"codeName\": [string], // Required\n       \"color\": [string] // Required\n   } \n    \n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n      \"otl\": true,\n      \"ttl\": {\"absolute\": 1618498005},\n      \"availableFrom\": {\"relative\": 600},\n      \"type\": \"password\",\n      \"ipList\": [\"1.1.1.1\"],\n      \"privateDescription\": \"Private description\",\n      \"publicDescription\": \"Public description\",\n      \"lockedByOwner\": true,\n      \"pin\": {\"static\": \"123456\"},\n      \"label\": {\"codeName\": \"SharePass\", \"color\": \"#8a2be2\"}\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}},"urlObject":{"path":["{{version}}","user","settings","secrettemplate","default"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"01633d20-955b-4057-8925-1d810fd06ec0","name":"Default Template Updated Successfully","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"otl\": false,\r\n  \"ttl\":{\r\n    \"relative\": 120\r\n  },\r\n  \"availableFrom\": {\r\n    \"relative\": 0\r\n  },\r\n  \"ipList\": [\r\n    \"1.1.1.1\",\r\n    \"2.2.2.2\",\r\n    \"3.3.3.3\"\r\n  ],\r\n  \"privateDescription\": \"Private test\",\r\n  \"lockedByOwner\": false,\r\n  \"lockAfterUse\": true,\r\n  \"pin\": {\r\n    \"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"\r\n  },\r\n  \"label\": {\r\n    \"codeName\": \"SharePass\",\r\n    \"color\": \"#8a2be2\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate/default"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 May 2022 02:11:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"R8EygGj4ywMFoFg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-627b1b43-6ddb9ff202d9114e1d302d67;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Default template updated successfully.\"\n}"}],"_postman_id":"03666bf5-d442-4900-89bd-89a9ddbb16dd"},{"name":"Get Default Template","id":"83c268cf-20f8-4a09-8040-36b2b07e156c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate/default","description":"<p>Retrieve the default template with all its settings. Returns <em>null</em> value for a template that was never updated.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints--none\">Data constraints : <code>None</code></h6>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}},"urlObject":{"path":["{{version}}","user","settings","secrettemplate","default"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"a95b1eec-6684-454d-900d-3921baada8d1","name":"Default Template Retrieved Successfully","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate/default"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 May 2022 02:09:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"345"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"R8ElKEOFSwMFRXw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-627b1aed-6fc1ddce6eff5d435adad8f0;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"defaultTemplate\": {\n            \"pin\": {\n                \"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"\n            },\n            \"privateDescription\": \"Private test\",\n            \"otl\": false,\n            \"label\": {\n                \"codeName\": \"SharePass\",\n                \"color\": \"#8a2be2\"\n            },\n            \"lockAfterUse\": true,\n            \"availableFrom\": {\n                \"relative\": 0\n            },\n            \"ttl\": {\n                \"relative\": 120\n            },\n            \"ipList\": [\n                \"1.1.1.1\",\n                \"2.2.2.2\",\n                \"3.3.3.3\"\n            ]\n        },\n        \"lastModified\": 1652191422\n    }\n}"}],"_postman_id":"83c268cf-20f8-4a09-8040-36b2b07e156c"}],"id":"eb2d88ec-0eab-4ae0-ab29-ccc95e06cd98","description":"<p>The default template defines the initial security settings when creating a new secret.</p>\n","_postman_id":"eb2d88ec-0eab-4ae0-ab29-ccc95e06cd98","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}}},{"name":"Create Template","id":"1394c795-adcc-458d-8d31-a6c1a813f095","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"  {\r\n  \"codeName\": \"My 1st template\",\r\n  \"starred\" : false,\r\n  \"details\" :{\r\n    \"otl\": false,\r\n    \"ttl\": {\"absolute\": 1618498005},\r\n    \"availableFrom\": {\"relative\": 600},\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"Private description\",\r\n    \"publicDescription\": \"Public description\",\r\n    \"lockedByOwner\": false,\r\n    \"lockAfterUse\": true,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"},\r\n    \"label\": {\"codeName\": \"SharePass\", \"color\": \"#8a2be2\"}\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate","description":"<p>Used to create a new secret template. Templates use the <strong>codeName</strong> attribute as an ID, so it cannot be changed after its creation.  </p>\n<p>Note: There is a limit of 250 templates.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"codeName\": [string], // Required\n    \"starred\": [boolean], // Optional (false if not specified)\n    \"details\": {\n        \"otl\": [boolean], // Required\n        \"ipList\": [array], // Optional\n        \"privateDescription\": [string], // Optional\n        \"publicDescription\": [string], // Optional\n        \"lockedByOwner\": [boolean], // Optional (false if not specified)\n        \"ttl\": [object] // Required (1 property min/max)\n        {\n            \"relative\": [integer], // Optional\n            \"absolute\": [integer] // Optional\n        },\n        \"availableFrom\": [object] // Optional (1 property min/max)\n        {\n            \"relative\": [integer], // Optional\n            \"absolute\": [integer] // Optional\n        }\n        \"pin\": [object] or [null] // Optional (1 property min/max)\n        { \n            \"static\": [string], // Optional\n            \"dynamic\": [string] // Optional\n        },\n        \"label\": [object] // Optional\n        {\n            \"codeName\": [string], // Required\n            \"color\": [string] // Required\n        } \n    }\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n  \"codeName\": \"My 1st template\",\n  \"starred\": true,\n  \"details\" : {\n    \"otl\": false,\n    \"ttl\": {\"absolute\": 1618498005},\n    \"availableFrom\": {\"relative\": 600},\n    \"type\": \"message\",\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\n    \"privateDescription\": \"Private description\",\n    \"publicDescription\": \"Public description\",\n    \"lockedByOwner\": false,\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"},\n    \"label\": {\"codeName\": \"SharePass\", \"color\": \"#8a2be2\"}\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","secrettemplate"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"c1c8143b-9077-454c-ba4b-17295b89162c","name":"Template Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"  {\r\n  \"codeName\": \"My 1st template\",\r\n   \"starred\" : true,\r\n  \"details\" :{\r\n    \"otl\": false,\r\n    \"ttl\": {\"absolute\": 1618498005},\r\n    \"availableFrom\": {\"relative\": 600},\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"Private description\",\r\n    \"publicDescription\": \"Public description\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"},\r\n    \"label\": {\"codeName\": \"SharePass\", \"color\": \"#8a2be2\"}\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/secrettemplate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 04:15:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"61"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eA2HIHfpSwMFaPQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607d03c7-76232a31241afc7b413d6366;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"codeName\": \"My 1st template\",\n        \"creation\": 1618819480\n    }\n}"},{"id":"e71a2afb-a467-4899-857b-aa3648bb92ba","name":"Template Name Taken","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"  {\r\n  \"codeName\": \"My 1st template\",\r\n  \"details\" :{\r\n    \"otl\": false,\r\n    \"ttl\": {\"absolute\": 1618498005},\r\n    \"availableFrom\": {\"relative\": 600},\r\n    \"type\": \"message\",\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"Private description\",\r\n    \"publicDescription\": \"Public description\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"}\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/secrettemplate"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 05:02:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"104"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eA9DNHQ1ywMFqIQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607d0ee1-614cd4c304bbf3172be61c5f;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Template code name  'My 1st template'  already taken.\"\n}"},{"id":"9557dca6-c9dc-4952-9f64-257bec6a04f4","name":"Required Parameter Missing","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"  {\r\n  \"codeName\": \"My 1st template\",\r\n  \"starred\" : false,\r\n  \"details\" :{\r\n    \"otl\": false,\r\n    \"ttl\": {\"absolute\": 1618498005},\r\n    \"availableFrom\": {\"relative\": 600},\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"Private description\",\r\n    \"publicDescription\": \"Public description\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"}\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/secrettemplate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 05:07:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"eA90_HEvSwMFXlw="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"[object has missing required properties ([\\\"type\\\"])]\"\n}"},{"id":"d028c39c-ee50-422f-af93-d5eda7f2170a","name":"Limit Reached","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"  {\r\n  \"codeName\": \"My 250th template\",\r\n  \"details\" :{\r\n    \"otl\": false,\r\n    \"ttl\": {\"absolute\": 1618498005},\r\n    \"availableFrom\": {\"relative\": 600},\r\n    \"type\": \"message\",\r\n    \"ipList\": [\"1.1.1.1\",\"2.2.2.2\",\"3.3.3.3\"],\r\n    \"privateDescription\": \"Private description\",\r\n    \"publicDescription\": \"Public description\",\r\n    \"lockedByOwner\": false,\r\n    \"pin\": {\"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"}\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/secrettemplate"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 08:41:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"95"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eBdEQFdJSwMF90Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607d421b-1e5f31881b222e2f784a8f00;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Limit reached. Please delete some templates.\"\n}"}],"_postman_id":"1394c795-adcc-458d-8d31-a6c1a813f095"},{"name":"Update Template","id":"7c5ff84d-829a-48ba-bc30-f72529958b97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"codeName\": \"My 1st template\",\r\n  \"updateAttributes\": {\r\n    \"starred\": false,\r\n    \"details\": {\r\n      \"otl\": false,\r\n      \"ttl\": {\r\n        \"absolute\": 1618498005\r\n      },\r\n      \"availableFrom\": {\r\n        \"relative\": 600\r\n      },\r\n      \"ipList\": [\r\n        \"1.1.1.1\",\r\n        \"2.2.2.2\",\r\n        \"3.3.3.3\"\r\n      ],\r\n      \"privateDescription\": \"Private description\",\r\n      \"lockedByOwner\": false,\r\n      \"lockAfterUse\": true,\r\n      \"pin\": {\r\n        \"dynamic\": \"jmsqk5vwvz7klmb6pyx3p4h7ek2daqt6\"\r\n      },\r\n      \"label\": {\r\n        \"codeName\": \"SharePass\",\r\n        \"color\": \"#8a2be2\"\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate","description":"<p>Used to update existing templates. When attempting to edit a template with <strong>codeName</strong> that does not exist, an error <strong>403 - Forbidden</strong> will be returned.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"codeName\": [string], // Required\n    \"updateAttributes\": [Object] // Required\n    {\n       \"starred\": [boolean], // Optional (false if not specified)\n       \"details\": [Object] // Optional\n       {\n           \"otl\": [boolean], // Required\n           \"type\": [string], // Required\n           \"ipList\": [array], // Optional\n           \"privateDescription\": [string], // Optional\n           \"publicDescription\": [string], // Optional\n           \"lockedByOwner\": boolean, // Optional (false if not specified)\n           \"ttl\": [object] // Required (1 property min/max)\n           {\n               \"relative\": [integer], // Optional\n               \"absolute\": [integer] // Optional\n           },\n           \"availableFrom\": [object] // Optional (1 property min/max)\n           {\n               \"relative\": [integer], // Optional\n               \"absolute\": [integer] // Optional\n           }\n           \"pin\": [object] or [null] // Optional (1 property min/max)\n           { \n               \"static\": [string], // Optional\n               \"dynamic\": [string] // Optional\n           },\n           \"label\": [object] // Optional\n           {\n               \"codeName\": [string], // Required\n               \"color\": [string] // Required\n           } \n        }\n    }\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n  \"codeName\": \"My 2nd template\",\n  \"updateAttributes\": {\n    \"starred\": false,\n    \"details\" : {\n      \"otl\": true,\n      \"ttl\": {\"absolute\": 1618498005},\n      \"availableFrom\": {\"relative\": 600},\n      \"type\": \"password\",\n      \"ipList\": [\"1.1.1.1\"],\n      \"privateDescription\": \"Private description\",\n      \"publicDescription\": \"Public description\",\n      \"lockedByOwner\": true,\n      \"pin\": {\"static\": \"123456\"},\n      \"label\": {\"codeName\": \"SharePass\", \"color\": \"#8a2be2\"}\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","secrettemplate"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"e88d00a3-0875-4e49-9f4f-bf768b7c006b","name":"Template Updated Successfully","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"  {\r\n  \"codeName\": \"My 1st template\",\r\n    \"updateAttributes\": {\r\n    \"details\" :{\r\n        \"otl\": true,\r\n        \"ttl\": {\"absolute\": 1618498005}\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Dec 2021 02:03:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"Kx7TvEPSywMFtGQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61c3d8e4-249271f4139d7d9562166582;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"templateDetails\": {\n            \"otl\": true,\n            \"ttl\": {\n                \"absolute\": 1618498005\n            }\n        }\n    }\n}"},{"id":"61d899c2-b692-426a-8b50-84d6f07cce82","name":"Template Does Not Exist","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"  {\r\n  \"codeName\": \"My 2nd template\",\r\n    \"updateAttributes\": {\r\n    \"details\" :{\r\n        \"otl\": true,\r\n        \"ttl\": {\"absolute\": 1618498005}\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 Dec 2021 02:06:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"Kx7zUElvSwMFjhg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61c3d9ae-7ed65b4d1bf41cb66f94f852;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Template code name 'My 2nd template'does not exist.\"\n}"}],"_postman_id":"7c5ff84d-829a-48ba-bc30-f72529958b97"},{"name":"Delete Template","id":"fdbec5e5-f81e-4a1e-8a85-ecc3f8faf524","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My 1st template\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate","description":"<p>Make use of this method to delete an existing template. If the <strong>codeName</strong> provided is non-existent an <strong>403 - Forbidden</strong> error will be returned.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"codeName\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"codeName\": \"My 1st template\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","secrettemplate"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"d0e6c502-d50a-40fd-b8e9-25a10913d114","name":"Template Deleted Successfully","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My 1st template\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/secrettemplate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 05:50:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"61"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eBEJeE41ywMFiNg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607d1a3c-1fb53ce52783c7d2166c723a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"codeName\": \"My 1st template\"\n    }\n}"},{"id":"0b87deea-8f92-4a38-a34e-4ebcfbd566f7","name":"Template Does Not Exist","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My 2nd template\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/secrettemplate"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 05:51:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"103"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eBEPsE_SSwMFq3w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607d1a64-5fcc5da55881403d64a8ffb3;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Template code name 'My 2nd template' does not exist.\"\n}"}],"_postman_id":"fdbec5e5-f81e-4a1e-8a85-ecc3f8faf524"},{"name":"Get Template","id":"d45021e4-61a8-419e-bdab-1190e72f0a4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/secrettemplate?codeName=123&purpose=receive","description":"<p>Used to retrieve details from a specific template given an existent <strong>codeName</strong>.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<ul>\n<li><em><strong>Required URL Params:</strong></em>\n<code>codeName=[string]</code></li>\n</ul>\n","urlObject":{"path":["{{version}}","user","settings","secrettemplate"],"host":["{{baseURL}}"],"query":[{"key":"codeName","value":"123"},{"key":"purpose","value":"receive"}],"variable":[]}},"response":[{"id":"efb43d3f-ae34-4f03-8307-591f8db3c545","name":"Template Retrieved Successfully","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":{"raw":"https://api.sharepass.online/v1/user/settings/secrettemplate?codeName=My%201st%20template","protocol":"https","host":["api","sharepass","online"],"path":["v1","user","settings","secrettemplate"],"query":[{"key":"codeName","value":"My%201st%20template"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 15:56:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"205"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eCc7iEJ1ywMFjqA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607da849-35d180a65bcce46432abf18f;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"codeName\": \"My 1st template\",\n        \"template\": {\n            \"count\": 45,\n            \"creation\": 1618841380,\n            \"details\": {\n                \"type\": \"message\",\n                \"ttl\": {\n                    \"absolute\": 1618498005\n                },\n                \"otl\": false\n            },\n            \"modified\": 1618841410,\n            \"starred\": false\n        }\n    }\n}"},{"id":"db7723fa-4b00-4cae-9c58-492df8bc158f","name":"Template Not Found","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":{"raw":"https://api.sharepass.online/v1/user/settings/secrettemplate?codeName=My%203rd%20template","protocol":"https","host":["api","sharepass","online"],"path":["v1","user","settings","secrettemplate"],"query":[{"key":"codeName","value":"My%203rd%20template"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 19 Apr 2021 15:57:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"eCdE3E88SwMFv5A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-607da885-7b07a495150925e343daa0f5;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Not found\",\n    \"message\": \"Template not found.\"\n}"}],"_postman_id":"d45021e4-61a8-419e-bdab-1190e72f0a4f"}],"id":"1e143384-373e-4edb-ab4b-f919be497987","description":"<p>Templates are useful when the user requires to send recurrent secrets with the same privacy settings (visibility, availability, accessibility &amp; authorization).</p>\n<p>This endpoint contains operations for templates destined for <strong>sending</strong> secrets.</p>\n","_postman_id":"1e143384-373e-4edb-ab4b-f919be497987","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}}},{"name":"Label","item":[{"name":"Create Label","id":"d768962b-0322-4ba0-9988-eb881da6fe16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My label\",\r\n    \"color\": \"#ffffff\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/label","description":"<p>Creates a new label for the authenticated user.</p>\n<p>Labels can later be attached to secrets to help organize and classify them.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"codeName\": [string], // Required\n    \"color\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"codeName\": \"My label\",\n    \"color\": \"#aaaaaa\"\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}},"urlObject":{"path":["{{version}}","user","settings","label"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"c6aa1e19-7d81-4251-96f8-8db49f5fd1a8","name":"Label Created Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My label\",\r\n    \"color\": \"#ffffff\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/label"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 May 2021 15:07:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"72"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"fUvGYFNcywMF5kQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-609e9228-59949cf01ab1d45c29177966;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"codeName\": \"My label\",\n        \"color\": \"#ffffff\"\n    }\n}"},{"id":"bdc39106-f07e-417e-9008-b8fe87e81dc1","name":"Label Name Already Taken","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My label\",\r\n    \"color\": \"#ffffff\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/label"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 May 2021 15:08:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"94"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"fUvPRFAwywMFbBA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-609e9261-4a9903651092eff06a48cc2a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Label code name  'My label'  already taken.\"\n}"}],"_postman_id":"d768962b-0322-4ba0-9988-eb881da6fe16"},{"name":"Delete Label","id":"91f0ea4d-d699-4a4d-b498-7ed9defcfc87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/label","description":"<p>Deletes an existing label identified by its <code>codeName</code>.</p>\n<p>Deleting a label does not remove it from secrets where it was previously attached. Existing secret-label associations remain unchanged.</p>\n<hr />\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"codeName\": \"[ \"Name of the label\"  ] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"codeName\": \"My label\"\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}},"urlObject":{"path":["{{version}}","user","settings","label"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"cbc11bbd-829d-4357-993c-d412cc1f01c7","name":"Label Deleted Successfully","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/label"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 May 2021 15:37:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"54"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"fUzj4E3oSwMFQ9A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-609e994b-21e4d05f5d4004ef0fc0d4e4;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"codeName\": \"My label\"\n    }\n}"},{"id":"23778d51-57b6-46e0-b00e-e2d9eef674e3","name":"Label Does Not Exists","originalRequest":{"method":"DELETE","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codeName\": \"My label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/label"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 May 2021 15:38:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"fUztpH1mywMF1yw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-609e998a-08debc5c23d520f921beaadd;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Label code name 'My label' does not exist.\"\n}"}],"_postman_id":"91f0ea4d-d699-4a4d-b498-7ed9defcfc87"},{"name":"Get Labels","id":"992dace5-38a5-464c-a5f7-3247d20d2e3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/label","description":"<p>Retrieves all labels created by the authenticated user.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"api-key-supported-yes\">API key supported: <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n","urlObject":{"path":["{{version}}","user","settings","label"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"7cbf4ae7-28a4-4ee8-ab3c-6bdfc763d094","name":"Labels Retrieved Successfully","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"https://api.sharepass.online/v1/user/settings/label"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 May 2021 15:44:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"120"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"fU0iqFmcywMF0bA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-609e9add-1b730ba93bdb79bf5ebc2867;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": [\n        {\n            \"codeName\": \"My label 1\",\n            \"color\": \"#ffffff\"\n        },\n        {\n            \"codeName\": \"My label 2\",\n            \"color\": \"#aaaaaa\"\n        }\n    ]\n}"}],"_postman_id":"992dace5-38a5-464c-a5f7-3247d20d2e3e"}],"id":"52b11382-0e4f-47b1-8a95-efc882eba844","description":"<p>In <strong>SharePass</strong>, labels allow users to categorize secrets for better organization and filtering.</p>\n<p>This resource supports creating, retrieving, and deleting labels.</p>\n","_postman_id":"52b11382-0e4f-47b1-8a95-efc882eba844","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}}},{"name":"Welcome Screen","item":[{"name":"Set Welcome Screen","id":"779cbb56-b7c3-482c-bc7b-37283259ee63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"welcomeScreen\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/welcomescreen","description":"<p>Used to enable/disable the welcome screen. This welcome screen is enabled by default for all newly created users.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"welcomeScreen\" : [boolean] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"welcomeScreen\" : true\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","welcomescreen"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"eb263929-3ad2-41f9-afd7-21e478d51272","name":"Welcome Screen Successfully Disabled","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"welcomeScreen\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/settings/welcomescreen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 26 May 2021 14:28:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"54"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"f8MqrHJ9ywMFzpg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60ae5b11-5d4d47146be7dedf349a463a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"welcomeScreen\": false\n    }\n}"}],"_postman_id":"779cbb56-b7c3-482c-bc7b-37283259ee63"}],"id":"8dc2245d-4d13-47e5-92e5-982baeb5a21d","_postman_id":"8dc2245d-4d13-47e5-92e5-982baeb5a21d","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}}},{"name":"MFA","item":[{"name":"Generate Secret Code","id":"43359aeb-498f-4470-b7ce-7000701258ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/mfa/generate","description":"<p>Returns a unique generated shared secret key code for the user account.  </p>\n<p>Note: Calling this endpoint immediately disassociates the existing software token from the user account. If the user doesn't subsequently verify the token (6 digit code), their account is essentially set up to authenticate without MFA.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n","urlObject":{"path":["{{version}}","user","settings","mfa","generate"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"8c67be5e-8636-49fd-97b1-318b51bd470b","name":"Secret Code Generated Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/mfa/generate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Nov 2021 01:11:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"100"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"It-L7GVVywMFVRg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618f10b2-0dbb661b409228fe4af71caf;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"SecretCode\": \"XL3KOW5CXS543QL4BFND5OSTBYVHQG5YBHQVLTVTO4EBL23FMZ4A\"\n    }\n}"},{"id":"b03d0a04-23a9-4c5c-8700-32394b434cd8","name":"Expired Token","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/settings/mfa/generate"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Nov 2021 01:47:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"44"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token"},{"key":"x-amzn-ErrorType","value":"UnauthorizedException"},{"key":"x-amz-apigw-id","value":"IuDciElXSwMFqtw="},{"key":"Access-Control-Allow-Methods","value":"GET,OPTIONS"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The incoming token has expired\"\n}"}],"_postman_id":"43359aeb-498f-4470-b7ce-7000701258ea"},{"name":"Get Status","id":"433232be-9288-462b-a5de-4b8c97bf3bfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/status","description":"<p>This endpoint returns the status of the MFA. It basically can be <em>enabled</em> or <em>disabled</em> which is represented by a <em>boolean</em>. For privacy, this endpoint requires the users to confirm their passwords. Optionally, a friendly authenticator name can be returned if the MFA is enabled.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"password\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"password\": \"Abcd1234!@#$\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","mfa","status"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"e7c13636-8674-4707-9b16-f1a0c83871a1","name":"Status Retrieved Successfully (enabled)","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 13:36:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"99"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IsYdjHiySwMFWfw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e6df0-1edef8fb00459ed87adb76c7;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"enabled\": true,\n        \"friendlyDeviceName\": \"Favourite authenticator name\"\n    }\n}"},{"id":"a1e7cd41-8007-490f-9ed3-f4e9df4fa4e0","name":"Status Retrieved Successfully (disabled)","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Nov 2021 01:54:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"48"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"2157d69d-165e-4cf2-9c86-03b92aec3241"},{"key":"x-amz-apigw-id","value":"IuEk4GixywMF-fA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618f1aeb-12a43f8f4d4c18546eff74a1;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"enabled\": false\n    }\n}"},{"id":"d1504ea2-d9e2-459c-84c3-6b30fd845fba","name":"Incorrect Password","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/status"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Nov 2021 02:05:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IuGHBEWyywMFqTQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618f1d5f-20075c1c71f9ac7d66fe055b;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Incorrect username or password.\"\n}"},{"id":"c4f0eaec-d907-40bf-a96b-05127aa0ca31","name":"Password Attempts Exceeded","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/status"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Nov 2021 02:05:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"77"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IuGM4EK8SwMFbpg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618f1d85-3fa3197324025ce32ab9ff5a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Password attempts exceeded.\"\n}"}],"_postman_id":"433232be-9288-462b-a5de-4b8c97bf3bfc"},{"name":"Set Preference","id":"0b798509-837a-4bc3-9e84-662267700c7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n      \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/preference","description":"<p>At the moment this endpoint only enables or disables MFA. Needs to be remarked, this endpoint will work only if the current MFA token (also known as code) has been validated. In the future, multiple MFA methods will be allowed so users can select their preference.</p>\n<p>This endpoint returns the status of the MFA. It basically can be <em>enabled</em> or <em>disabled</em> which is represented by a <em>boolean</em>. For privacy, this endpoint requires the users to confirm their passwords. Optionally, a friendly authenticator name can be returned if the MFA is enabled.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\n{\n    \"enabled\": [boolean] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\n{\n    \"enabled\": true\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","mfa","preference"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"3a8ab6cc-cb0d-434b-ab23-fd5e1db57b42","name":"MFA Enabled Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n      \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/preference"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 14:03:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"58"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IscXrHatSwMFnvA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e7430-52dcbb6779c300bf2349380f;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"MFA enabled successfully.\"\n}"},{"id":"f8da2815-ac67-4760-9fca-c3e190930e44","name":"MFA Disabled Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n      \"enabled\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/preference"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 14:05:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IscotHguywMFqvw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e749d-58931aa028d73c3341d0972e;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"MFA disabled successfully.\"\n}"},{"id":"1e83df55-a28c-4587-b508-153e4ce2b1f4","name":"MFA Token Not Verified","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n      \"enabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/preference"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Nov 2021 02:47:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"91"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"7e440b23-e968-4600-9c52-d10763ad6f7f"},{"key":"x-amz-apigw-id","value":"IuMWBFrXSwMFrAQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618f2759-0d0dc0222e3cf3643e6e310d;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"User has not verified software token mfa\"\n}"}],"_postman_id":"0b798509-837a-4bc3-9e84-662267700c7f"},{"name":"Verify Code","id":"c9ed4d6d-5023-4ad6-8a1b-0d4b8f599b4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"userCode\": \"123456\",\r\n  \"friendlyDeviceName\": \"Favourite authenticator name\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/verify","description":"<p>Use this API to verify the user's MFA and mark the user's token MFA status as \"verified\" if successful.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"userCode\": [string], // Required\n    \"friendlyDeviceName\": [string] // Optional\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"userCode\": \"123456\",\n  \"friendlyDeviceName\": \"Google Authenticator\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings","mfa","verify"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"785bc098-78fe-4dda-a986-ab1e5acab366","name":"MFA Verified Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"userCode\": \"123456\",\r\n  \"friendlyDeviceName\": \"Favourite authenticator name\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 13:55:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IsbJrH81ywMF-pg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e723d-66c7386f78ae21780968fc61;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"MFA verified successfully.\"\n}"},{"id":"6093a6c0-8d8c-4f40-be15-5dbafb58dad5","name":"Invalid Code","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"userCode\": \"981322\",\r\n  \"friendlyDeviceName\": \"Favourite authenticator name\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings/mfa/verify"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 13 Nov 2021 02:11:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"99"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IuHATGTiywMFadQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618f1ece-66ca09b27c86eb974db71fb2;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Code mismatch and fail enable Software Token MFA\"\n}"}],"_postman_id":"c9ed4d6d-5023-4ad6-8a1b-0d4b8f599b4a"}],"id":"c308f81f-5883-4123-9608-66fa98355bba","description":"<p>Multi-factor authentication (MFA) is a security measure that requires two proofs of identity to grant access to the account. The first proof is the mandatory username/password combination and the second one is a secret code.</p>\n","_postman_id":"c308f81f-5883-4123-9608-66fa98355bba","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}}},{"name":"MFA Security keys","item":[{"name":"Public key request","event":[{"listen":"test","script":{"id":"f126f875-d162-4316-80ab-da28f3d6cd6e","exec":[""],"type":"text/javascript"}}],"id":"a0ade488-6362-4146-a094-d7b4ae624422","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/webauthn/create","description":"<p>Returns the data required to register a new WebAuthn authenticator.</p>\n<p>This endpoint generates the credential creation options needed to create a key pair on the user's authenticator device. The returned values, including <code>user.id</code>, <code>challenge</code>, and any <code>excludeCredentials[].id</code>, are Base64-encoded and must be decoded before being passed to the WebAuthn API.</p>\n<p>These values are typically used in a frontend application when calling <code>navigator.credentials.create()</code>.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n<h6 id=\"usage-example\">Usage example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">// This will do the API request\nconst {\n  status,\n  details,\n  message,\n  redirect\n} = await fetchWebauthnCreate();\nif (redirect) {\n  dispatch({\n    type: types.logout,\n  });\n  history.push(\"/auth/login\");\n} else if (status === \"Success\") {\n  let credOptions = details;\n  let challenge = credOptions.challenge;\n  credOptions.user.id = b64decode(credOptions.user.id);\n  credOptions.challenge = b64decode(credOptions.challenge);\n  if (credOptions.excludeCredentials) {\n    for (\n      let i = 0,\n        size = credOptions.excludeCredentials.length;\n      i &lt; size;\n      i++\n    ) {\n      credOptions.excludeCredentials[i].id = b64decode(\n        credOptions.excludeCredentials[i].id\n      );\n    }\n  }\n  // Create credentials using the available authenticator\n  const cred = await navigator.credentials\n    .create({\n      publicKey: credOptions,\n    })\n    .catch(function(error) {\n      throw error;\n    });\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}},"urlObject":{"path":["{{version}}","webauthn","create"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"87be19b6-3fd2-4eb5-8a5b-184b8763e5c2","name":"Public key request","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/webauthn/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 06 Nov 2022 02:04:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"819"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"xxxxxxxxxxxxx"},{"key":"X-Amzn-Trace-Id","value":"Root=x-xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxx;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"rp\": {\n            \"name\": \"SharePass\",\n            \"id\": \"app.sharepass.com\"\n        },\n        \"user\": {\n            \"displayName\": \"john@sharepass.com\",\n            \"id\": \"xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxxxx\",\n            \"name\": \"john@sharepass.com\"\n        },\n        \"challenge\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n        \"pubKeyCredParams\": [\n            {\n                \"type\": \"public-key\",\n                \"alg\": -7\n            },\n            {\n                \"type\": \"public-key\",\n                \"alg\": -257\n            }\n        ],\n        \"timeout\": 1800000,\n        \"attestation\": \"direct\",\n        \"authenticatorSelection\": {\n            \"authenticatorAttachment\": [\n                \"cross-platform\"\n            ],\n            \"userVerification\": \"discouraged\"\n        },\n        \"excludeCredentials\": [\n            {\n                \"id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n                \"type\": \"public-key\"\n            }\n        ],\n        \"extensions\": {\n            \"appidExclude\": \"https://app.sharepass.com\"\n        }\n    }\n}"}],"_postman_id":"a0ade488-6362-4146-a094-d7b4ae624422"},{"name":"Add new key","id":"a39a6e21-fc73-4360-92c1-b8af7ea87861","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"keyName\": \"test\",\n  \"id\": \"6djTNM5mw5Ic-b9MQJFlTxC2pL6RYkWs3lnVZlw62SgyWXzF2vmN_Aj9WJaLMnscgTuhh4v_fqUstZeNWXQaJw\",\n  \"rawId\": \"6djTNM5mw5Ic-b9MQJFlTxC2pL6RYkWs3lnVZlw62SgyWXzF2vmN_Aj9WJaLMnscgTuhh4v_fqUstZeNWXQaJw\",\n  \"type\": \"public-key\",\n  \"challenge\": \"jG9a0YWTH2DIe8pHvO13LmMC3R00a_WI0fJiCr9z3PTYT6jkinnt5dgMCarShuJNJ_0jxGQDSNt0-oc46wYBSHCGFVq_EV2OBJZuhKdYWfkNS95-sB_63tvDdpsZ7OjM00WpCXpB6wXW2LIwf1DKSPe9rWptchR5696lFaN7WeI\",\n  \"response\": {\n    \"clientDataJSON\": \"eyJ0eXBlIjoid2ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoiakc5YTBZV1RIMkRJZThwSHZPMTNMbU1DM1IwMGFfV0kwZkppQ3I5ejNQVFlUNmpraW5udDVkZ01DYXJTaHVKTkpfMGp4R1FEU050MC1vYzQ2d1lCU0hDR0ZWcV9FVjJPQkpadWhLZFlXZmtOUzk1LXNCXzYzdHZEZHBzWjdPak0wMFdwQ1hwQjZ3WFcyTEl3ZjFES1NQZTlyV3B0Y2hSNTY5NmxGYU43V2VJIiwib3JpZ2luIjoiaHR0cHM6Ly9hcHAuc2hhcmVwYXNzLmNvbSIsImNyb3NzT3JpZ2luIjpmYWxzZX0\",\n    \"attestationObject\": \"STRING\"\n  },\n  \"transports\": \"[\\\"nfc\\\",\\\"usb\\\"]\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/webauthn/parse","description":"<p>Registers a new security key for multi-factor authentication (MFA) on the authenticated user's account.</p>\n<p>This endpoint is used after the <em><strong>Public key request</strong></em> endpoint. Once the frontend obtains the credential from the authenticator using <code>navigator.credentials.create()</code>, the returned values must be processed and sent to this endpoint to complete the registration of the new security key.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"keyName\": \"string\", // Required\n  \"id\": \"string\", // Required\n  \"rawId\": \"string\", // Required (Base64-encoded)\n  \"type\": \"string\", // Required\n  \"challenge\": \"string\", // Required\n  \"response\": { // Required\n    \"clientDataJSON\": \"string\", // Required (Base64-encoded)\n    \"attestationObject\": \"string\" // Required (Base64-encoded)\n  },\n  \"transports\": \"string\" // Optional\n}\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const cred = await navigator.credentials.create({publicKey: credOptions});\n\n</code></pre>\n<p>the obtained values should be processed and sent to this endpoint.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">let endData: any = {\n    keyName: values.keyName,\n};\nconst credential: {\n    id ? : any;\n    rawId ? : any;\n    type ? : any;\n    challenge ? : any;\n    response ? : any;\n    transports ? : any;\n} = {};\ncredential.id =\n    cred &amp;&amp; cred.id ? cred.id : null;\ncredential.rawId = b64encode(\n    cred &amp;&amp; cred.rawId ? cred.rawId : null\n);\ncredential.type =\n    cred &amp;&amp; cred.type ? cred.type : null;\ncredential.challenge = challenge;\nif (cred &amp;&amp; cred.response) {\n    const clientDataJSON = b64encode(\n        cred.response.clientDataJSON\n    );\n    const attestationObject = b64encode(\n        cred.response.attestationObject\n    );\n    credential.response = {\n        clientDataJSON,\n        attestationObject,\n    };\n    credential.transports = JSON.stringify(\n        cred.response.getTransports()\n    );\n}\nendData = {\n    ...endData,\n    ...credential\n};\n//this function will do the API Call\nconst parseResult =\n    await fetchWebauthnParseAdd(endData);\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}},"urlObject":{"path":["{{version}}","webauthn","parse"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"0c457121-0858-4b12-a70d-a66e1e3633ae","name":"Add new key","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"keyName\": \"test\",\n  \"id\": \"6djTNM5mw5Ic-b9MQJFlTxC2pL6RYkWs3lnVZlw62SgyWXzF2vmN_Aj9WJaLMnscgTuhh4v_fqUstZeNWXQaJw\",\n  \"rawId\": \"6djTNM5mw5Ic-b9MQJFlTxC2pL6RYkWs3lnVZlw62SgyWXzF2vmN_Aj9WJaLMnscgTuhh4v_fqUstZeNWXQaJw\",\n  \"type\": \"public-key\",\n  \"challenge\": \"jG9a0YWTH2DIe8pHvO13LmMC3R00a_WI0fJiCr9z3PTYT6jkinnt5dgMCarShuJNJ_0jxGQDSNt0-oc46wYBSHCGFVq_EV2OBJZuhKdYWfkNS95-sB_63tvDdpsZ7OjM00WpCXpB6wXW2LIwf1DKSPe9rWptchR5696lFaN7WeI\",\n  \"response\": {\n    \"clientDataJSON\": \"eyJ0eXBlIjoid2ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoiakc5YTBZV1RIMkRJZThwSHZPMTNMbU1DM1IwMGFfV0kwZkppQ3I5ejNQVFlUNmpraW5udDVkZ01DYXJTaHVKTkpfMGp4R1FEU050MC1vYzQ2d1lCU0hDR0ZWcV9FVjJPQkpadWhLZFlXZmtOUzk1LXNCXzYzdHZEZHBzWjdPak0wMFdwQ1hwQjZ3WFcyTEl3ZjFES1NQZTlyV3B0Y2hSNTY5NmxGYU43V2VJIiwib3JpZ2luIjoiaHR0cHM6Ly9hcHAuc2hhcmVwYXNzLmNvbSIsImNyb3NzT3JpZ2luIjpmYWxzZX0\",\n    \"attestationObject\": \"STRING\"\n  },\n  \"transports\": \"[\\\"nfc\\\",\\\"usb\\\"]\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/webauthn/parse"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 06 Nov 2022 01:59:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"144"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"xxxxxxxxxxxxxxx"},{"key":"X-Amzn-Trace-Id","value":"Root=x-xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxx;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"credId\": \"6djTNM5mw5Ic-b9MQJFlTxC2pL6RYkWs3lnVZlw62SgyWXzF2vmN_Aj9WJaLMnscgTuhh4v_fqUstZeNWXQaJw\",\n        \"name\": \"test\"\n    }\n}"}],"_postman_id":"a39a6e21-fc73-4360-92c1-b8af7ea87861"},{"name":"Delete MFA key","id":"a1cec7d8-1ca3-4741-b911-ba9624ff3e6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n  \"credId\": \"lwo9qlYPcpYNoaLcsQB4PoaOOyx_0opvTdP-L8UjaV0m0uoDZvSY7hQW-cZhxjPePQRb3YK5gcNFpiVyut3PeA\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/webauthn/delete","description":"<p>Deletes an existing MFA security key from the authenticated user's account.</p>\n<p>The request must include the security key <code>id</code> in the request body.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": \"string\" // Required\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}},"urlObject":{"path":["{{version}}","webauthn","delete"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1cec7d8-1ca3-4741-b911-ba9624ff3e6c"}],"id":"5ffdaf41-2540-4635-b414-3bba69b8f87c","description":"<p>This group of endpoints will allow a user to have security keys configured for MFA.</p>\n<p><strong>IMPORTANT! ONLY AVAILABLE FOR USERS THAT DON'T USE SSO</strong></p>\n","_postman_id":"5ffdaf41-2540-4635-b414-3bba69b8f87c","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","name":"Settings","type":"folder"}}},{"name":"Update Settings","id":"b8df6e2c-62e5-4d9f-9908-495f390912ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"apiKeyEnabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings","description":"<p>Updates the authenticated user's general settings.</p>\n<p>This endpoint is used to manage account-level preferences such as theme and interface messages. It also includes the <code>apiKeyEnabled</code> setting, which controls whether the user's API key is generated and enabled for use on endpoints that support API key authentication.</p>\n<p>Because of this, this endpoint is especially important for developers who want to authenticate with SharePass using an API key instead of a JWT on supported endpoints.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"lightTheme\": [boolean], // Optional\n   \"revealMessage\": [string], // Optional\n   \"sendMessage\": [string], // Optional\n   \"sidebarToggle\": [string], // Optional\n   \"apiKeyEnabled\": [string] // Optional\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"lightTheme\": false,\n  \"revealMessage\": \"Click here to reveal\",\n  \"sendMessage\": \"Click here to send secret\",\n  \"sidebarToggle\": true\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","settings"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"5bd13159-f4d4-46e7-8830-86e4a5c67633","name":"API Key Created Successfully","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"apiKeyEnabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Mon, 23 Feb 2026 21:54:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"134"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"59bd0e7a-4a1d-482b-ad8b-871cdcc8426f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"ZQTrqFlDSwMEKBw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-699cccb0-3d86169e17150b026167dfc5;Parent=3d35204d482de2d3;Sampled=0;Lineage=1:44c6a73f:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"apiKeyDetails\": {\n            \"apiKeyStatus\": \"created\",\n            \"apiKey\": \"spk_wfALWO9-UreE0dpTvcXHgxqhKjc-p7nOIct_9bNTIZo\"\n        }\n    }\n}"},{"id":"ab791d20-bad0-4257-80b6-da355ea89be0","name":"API Key Rotated Successfully","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"apiKeyEnabled\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Mon, 23 Feb 2026 21:55:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"134"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"c2d02233-1822-4a6f-997d-e90fccd716c5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"ZQTvhEKTSwMEhCw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-699cccc9-02205d232f4fdc866fb8d26a;Parent=2a610f61ca140f99;Sampled=0;Lineage=1:44c6a73f:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"apiKeyDetails\": {\n            \"apiKeyStatus\": \"rotated\",\n            \"apiKey\": \"spk_a4_wndaO8NUWJ7GE9huf_ydmVR1auBeEjWQpuN58vzg\"\n        }\n    }\n}"},{"id":"e1791ade-e4dc-428e-9791-4eb1cc4965f7","name":"API Key Deleted Successfully","originalRequest":{"method":"PUT","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"apiKeyEnabled\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/settings"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Mon, 23 Feb 2026 21:55:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"75"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"e041a464-15c6-4ee7-9f54-86c0ffb31a9a"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"ZQTzGH7lywMED6w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-699ccce0-5327e07478f34d0762d0f8d9;Parent=74dc2ace093227f8;Sampled=0;Lineage=1:44c6a73f:0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"apiKeyDetails\": {\n            \"apiKeyStatus\": \"deleted\"\n        }\n    }\n}"}],"_postman_id":"b8df6e2c-62e5-4d9f-9908-495f390912ca"}],"id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe","description":"<p>The Settings resource provides operations to manage user configuration and account-level preferences in SharePass.</p>\n<p>Through this resource, users can configure features such as webhooks, secret templates, labels, theme preferences, API keys, and multi-factor authentication (MFA), among other account settings.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"a407c06a-1b7b-4caa-96c1-3823f15382a8"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"f9236db4-84e0-4172-a7b4-47c5444ccd69"}}],"_postman_id":"4da2bd4e-a9bf-46fc-b9e2-086d5c40adbe"},{"name":"Sign In","item":[{"name":"Sign In (Basic)","id":"a1b5634b-32d6-4612-9ffc-a1a8376633c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/","description":"<p>If the account <strong>DOES NOT</strong> have MFA activated, this endpoint is used to collect the tokens (<em>access_token</em>, <em>refresh_token,</em> and <em>id_token</em>) for a registered user. Oppositely, if the account <strong>DOES</strong> have MFA activated, the endpoint will return the <em>Session** that will be used to login and a *ChallengeName</em> indicating the type of MFA activated.</p>\n<p>If it is required a temporary sessionToken to redirect after successful sign-in, it is necessary to add the <strong>mobile</strong> header set to <strong>true</strong>.</p>\n<p>Note: At the moment only <em>SOFTWARE_TOKEN_MFA</em> (for authenticator MFA with TOTP) and CUSTOM_CHALLENGE (for security key MFA) are returned as the type of <em>ChallengeName</em>, but in the future, there is a possibility of adding more types of MFA methods.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": [string], // Required\n    \"password\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"username\": \"user@contoso.com\",\n    \"password\": \"Abcd1234!@#$\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","signin",""],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"6a2f025f-d1fe-495b-9cab-6cd4db54286e","name":"Successful Sign In","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Dec 2021 10:21:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4210"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Jt2jYEoxSwMFhxg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a89e15-4254b7462f151e0814116877;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeParameters\": {},\n        \"AuthenticationResult\": {\n            \"AccessToken\": \"XXXXXXXXXXXXXXX\",\n            \"ExpiresIn\": 900,\n            \"TokenType\": \"Bearer\",\n            \"RefreshToken\": \"XXXXXXXXXXXXXXX\",\n            \"IdToken\": \"XXXXXXXXXXXXXXX\"\n        }\n    }\n}"},{"id":"6baea947-621d-4fbd-b911-53f16fc20ddc","name":"Successful Sign In (MFA)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Nov 2021 02:57:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1491"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"1a72c399-8e21-4107-94ed-3a9091b53652"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"I4GgTH5iSwMF2uA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61931e01-34bbd195350e011b1f231918;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeName\": \"SOFTWARE_TOKEN_MFA\",\n        \"Session\": \"XXXXXXXXXXXXXXX\",\n        \"ChallengeParameters\": {\n            \"FRIENDLY_DEVICE_NAME\": \"Favourite authenticator name\",\n            \"USER_ID_FOR_SRP\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n        },\n        \"ResponseMetadata\": {\n            \"RequestId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n            \"HTTPStatusCode\": 200,\n            \"HTTPHeaders\": {\n                \"date\": \"Tue, 16 Nov 2021 02:57:06 GMT\",\n                \"content-type\": \"application/x-amz-json-1.1\",\n                \"content-length\": \"1072\",\n                \"connection\": \"keep-alive\",\n                \"x-amzn-requestid\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n            },\n            \"RetryAttempts\": 0\n        }\n    }\n}"},{"id":"843764c0-fc7c-46c4-bd9a-dc7d133556ed","name":"Wrong Credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 30 Dec 2020 13:40:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YXl3VHOdSwMFn2A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fec8362-18401b543ba6cc6025d6fc34;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"Bad Request\",\n  \"message\": \"Incorrect username or password.\"\n}"},{"id":"03881d5d-daf0-4694-9e41-7cfdc8353897","name":"User Not Confirmed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Dec 2021 04:01:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Js-7eEI4SwMFw6A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a84516-0cc76237059dbcb82e8e8bfd;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"User is not confirmed.\"\n}"},{"id":"b685691a-acad-4cd6-9f42-59724c0ecf25","name":"Password Attempts Exceeded","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 30 Dec 2020 13:40:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YXl3VHOdSwMFn2A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fec8362-18401b543ba6cc6025d6fc34;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"Bad Request\",\n  \"message\": \"Password attempts exceeded\"\n}"}],"_postman_id":"a1b5634b-32d6-4612-9ffc-a1a8376633c8"},{"name":"Sign In (Session)","id":"f7382fef-1f79-4a5b-ad0e-d79ac147e720","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"userId\": \"{{userId}}\",\r\n  \"sessionToken\": \"{{sessionToken}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/session","description":"<p>This endpoint will return the user session using a temporary <strong>sessionToken</strong> and the <strong>userId.</strong> The sessionToken will be valid for 10 seconds after its generation in any of the signin endpoints (MFA, SSO, WebAuthn, and basic). The sessionToken will be returned only if the header <strong>mobile</strong> is present and set to <strong>true</strong> in the signin request.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n","urlObject":{"path":["{{version}}","user","signin","session"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"6bd306fb-86bc-49c8-91e6-67769690a285","name":"Successful Sign In","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Dec 2021 10:21:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4210"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Jt2jYEoxSwMFhxg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a89e15-4254b7462f151e0814116877;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeParameters\": {},\n        \"AuthenticationResult\": {\n            \"AccessToken\": \"XXXXXXXXXXXXXXX\",\n            \"ExpiresIn\": 900,\n            \"TokenType\": \"Bearer\",\n            \"RefreshToken\": \"XXXXXXXXXXXXXXX\",\n            \"IdToken\": \"XXXXXXXXXXXXXXX\"\n        }\n    }\n}"},{"id":"8a649a70-f1fa-4164-86d8-d0cbf66e383c","name":"Successful Sign In (MFA)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Nov 2021 02:57:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1491"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"1a72c399-8e21-4107-94ed-3a9091b53652"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"I4GgTH5iSwMF2uA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61931e01-34bbd195350e011b1f231918;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeName\": \"SOFTWARE_TOKEN_MFA\",\n        \"Session\": \"XXXXXXXXXXXXXXX\",\n        \"ChallengeParameters\": {\n            \"FRIENDLY_DEVICE_NAME\": \"Favourite authenticator name\",\n            \"USER_ID_FOR_SRP\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n        },\n        \"ResponseMetadata\": {\n            \"RequestId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n            \"HTTPStatusCode\": 200,\n            \"HTTPHeaders\": {\n                \"date\": \"Tue, 16 Nov 2021 02:57:06 GMT\",\n                \"content-type\": \"application/x-amz-json-1.1\",\n                \"content-length\": \"1072\",\n                \"connection\": \"keep-alive\",\n                \"x-amzn-requestid\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n            },\n            \"RetryAttempts\": 0\n        }\n    }\n}"},{"id":"6585a638-d166-48b6-a9a5-82528df5c3ca","name":"Wrong Credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 30 Dec 2020 13:40:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YXl3VHOdSwMFn2A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fec8362-18401b543ba6cc6025d6fc34;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"Bad Request\",\n  \"message\": \"Incorrect username or password.\"\n}"},{"id":"35248ad5-f9b7-427b-9f2a-fb82462207ca","name":"User Not Confirmed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Dec 2021 04:01:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Js-7eEI4SwMFw6A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a84516-0cc76237059dbcb82e8e8bfd;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"User is not confirmed.\"\n}"},{"id":"4cc5ab6c-28bf-41a5-92ca-cc5622c164d6","name":"Password Attempts Exceeded","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 30 Dec 2020 13:40:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YXl3VHOdSwMFn2A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fec8362-18401b543ba6cc6025d6fc34;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"Bad Request\",\n  \"message\": \"Password attempts exceeded\"\n}"}],"_postman_id":"f7382fef-1f79-4a5b-ad0e-d79ac147e720"},{"name":"Sign In (SSO)","id":"8d42d39d-8f32-4b8e-af11-1a9fff459241","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"code\": \"6da0351e-a2ce-4c58-8ec0-4ef77465391d\",\r\n  \"verifier\": \"7ed471b5c48fb48b07290363a9dcd6425c8c699a7ee518221caae9d4\",\r\n  \"state\": \"eyJvcmdJZCI6IjJlNDUxM2QxLWMyMjItNDA5Yi05YzZmLWNiN2NhZGZiODAyNyIsInRva2VuSWQiOiJPbVJHLTVsR3Nxb2gyeUtXaWJ6eUZfVXVzbVJiQ0RzZ3BnZmpINUM1RVBVIiwibiI6IlN3blpwYWNUbzRNN29sSTdHRUhDUEtCWlgxUUZPanBjIiwiZXhwIjoxNzYwNzQ2ODAwLCJpZHAiOiJHb29nbGUifQ.YniBeyN1QtY4X37H3FmXeoJwRANi0f_6CefWTLmUG0w\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/sso","description":"<p>This endpoint will be used <em>only</em> if the account configured wit Single Sign On.</p>\n<p>If it is required a temporary sessionToken to redirect after successful sign-in, it is necessary to add the <strong>mobile</strong> header set to <strong>true</strong>.</p>\n<p>The <strong>code</strong> is returned by the authentication flow with the identity provider and needs to be exchange for the access tokens.</p>\n<p>The <strong>redirect_uri</strong> is the configured <strong>URL</strong> for redirect after successful sign-in.</p>\n<p>And the <strong>verifier</strong> is a random word used to generate a code_challenge that is been sent to the identity provider when starting the authentication flow. See example below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const challenge_from_verifier = async function(v) {\n    const hashed = await sha256(v);\n    const base64encoded = b64encode(hashed);\n    return base64encoded;\n}\n\nconst generateRandomString = () =&gt; {\n    var array = new Uint32Array(56 / 2);\n    window.crypto.getRandomValues(array);\n    return Array.from(array, dec2hex).join('');\n}\n\nconst verifier = generateRandomString();\nconst code_challenge = encodeURIComponent(\n    await challenge_from_verifier(verifier)\n);\n\n//Stored in localstorage to be available on redirect\nlocalStorage.setItem(\"verifier\", verifier);\n\nwindow.location.assign(\n    `${FrontendConfig.auth_url}/oauth2/authorize?identity_provider=${idp}&amp;redirect_uri=${redirect}&amp;response_type=${type}&amp;client_id=${cid}&amp;scope=${scope}&amp;state=${state}&amp;code_challenge=${code_challenge}&amp;code_challenge_method=S256`\n);\n\n</code></pre>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n","urlObject":{"path":["{{version}}","user","signin","sso"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"6098ec67-311f-47d6-b872-91d23717294f","name":"Successful Sign In","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Dec 2021 10:21:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4210"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Jt2jYEoxSwMFhxg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a89e15-4254b7462f151e0814116877;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeParameters\": {},\n        \"AuthenticationResult\": {\n            \"AccessToken\": \"XXXXXXXXXXXXXXX\",\n            \"ExpiresIn\": 900,\n            \"TokenType\": \"Bearer\",\n            \"RefreshToken\": \"XXXXXXXXXXXXXXX\",\n            \"IdToken\": \"XXXXXXXXXXXXXXX\"\n        }\n    }\n}"},{"id":"af3fdd67-0a27-46f1-b41a-7aee5fb0baec","name":"Successful Sign In (MFA)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Nov 2021 02:57:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1491"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"1a72c399-8e21-4107-94ed-3a9091b53652"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"I4GgTH5iSwMF2uA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61931e01-34bbd195350e011b1f231918;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeName\": \"SOFTWARE_TOKEN_MFA\",\n        \"Session\": \"XXXXXXXXXXXXXXX\",\n        \"ChallengeParameters\": {\n            \"FRIENDLY_DEVICE_NAME\": \"Favourite authenticator name\",\n            \"USER_ID_FOR_SRP\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n        },\n        \"ResponseMetadata\": {\n            \"RequestId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n            \"HTTPStatusCode\": 200,\n            \"HTTPHeaders\": {\n                \"date\": \"Tue, 16 Nov 2021 02:57:06 GMT\",\n                \"content-type\": \"application/x-amz-json-1.1\",\n                \"content-length\": \"1072\",\n                \"connection\": \"keep-alive\",\n                \"x-amzn-requestid\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n            },\n            \"RetryAttempts\": 0\n        }\n    }\n}"},{"id":"28be33ed-74b0-4417-b02c-67f729853562","name":"Wrong Credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 30 Dec 2020 13:40:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YXl3VHOdSwMFn2A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fec8362-18401b543ba6cc6025d6fc34;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"Bad Request\",\n  \"message\": \"Incorrect username or password.\"\n}"},{"id":"adf5f79f-3fee-4094-b504-1bcabaed57ac","name":"User Not Confirmed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Dec 2021 04:01:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Js-7eEI4SwMFw6A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a84516-0cc76237059dbcb82e8e8bfd;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"User is not confirmed.\"\n}"},{"id":"b2359da5-5ddf-4366-bc37-13eeee3c8a9e","name":"Password Attempts Exceeded","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{email}}\",\r\n  \"password\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/signin/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 30 Dec 2020 13:40:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YXl3VHOdSwMFn2A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fec8362-18401b543ba6cc6025d6fc34;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"Bad Request\",\n  \"message\": \"Password attempts exceeded\"\n}"}],"_postman_id":"8d42d39d-8f32-4b8e-af11-1a9fff459241"},{"name":"Sign In (MFA)","id":"75420594-a146-4618-9aca-299898c7121e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"session\": \"{{session}}\",\r\n    \"email\": \"{{email}}\",\r\n    \"mfaCode\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/mfa","description":"<p>This endpoint will be used <em>only</em> if the account is protected with an MFA.</p>\n<p>If it is required a temporary sessionToken to redirect after successful sign-in, it is necessary to add the <strong>mobile</strong> header set to <strong>true</strong>.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"session\": [string], // Required\n    \"email\": [string], // Required\n    \"mfaCode\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"session\": \"xxxxxxxxxxxxxxxx\",\n    \"email\": \"user@contoso.com\",\n    \"mfaCode\": \"123456\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","signin","mfa"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"c853e0ef-4575-47cf-9a8a-b4b6e1ba24a8","name":"Successful Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"session\": \"{{session}}\",\r\n    \"email\": \"{{email}}\",\r\n    \"mfaCode\": \"956293\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/mfa"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 15:12:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4006"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IsmelEChywMFzVQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e845d-34a3ebb416ab9929523c399e;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeParameters\": {},\n        \"AuthenticationResult\": {\n                \"AccessToken\": \"XXXXXXXXXXXXXXX\",\n                \"ExpiresIn\": 3600,\n                \"TokenType\": \"Bearer\",\n                \"RefreshToken\": \"XXXXXXXXXXXXXXXXXX\",\n                \"IdToken\": \"XXXXXXXXXXXXXXXXXXXXX\"\n        }\n    }\n}"},{"id":"e8084e1e-10c4-42fe-87ac-c6f42297bbb0","name":"Expired Session","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"session\": \"{{session}}\",\r\n    \"email\": \"{{email}}\",\r\n    \"mfaCode\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/mfa"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 15:14:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"100"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IsmyPH_ESwMFrqA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e84da-7d6638a562abdd9550f51330;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Invalid session for the user, session is expired.\"\n}"},{"id":"3c518d2e-ba75-4804-9a1d-3e9f22f6699d","name":"Invalid MFA code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"session\": \"{{session}}\",\r\n    \"email\": \"{{email}}\",\r\n    \"mfaCode\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/mfa"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 15:15:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"81"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"Ism9hElfywMFgoA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e8523-53eda72105feb14079b86b42;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Invalid code received for user\"\n}"},{"id":"b4ae1c86-4472-4b97-9d66-29b6ddbfb54f","name":"Invalid Session","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"session\": \"{{session}}\",\r\n    \"email\": \"{{email}}\",\r\n    \"mfaCode\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/mfa"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Nov 2021 15:18:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"80"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"IsnXIGdESwMFlWQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-618e85c7-0801a24677bd48d042e11c0f;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Invalid code/session provided\"\n}"}],"_postman_id":"75420594-a146-4618-9aca-299898c7121e"},{"name":"Sign In (Webauthn)","id":"82ef7f88-600e-4fe6-9ebb-0ea2ee89fd15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"session\": \"aaaaaaaaaaaaaaaaaa\",\r\n    \"authenticatorData\": \"{{email}}\",\r\n    \"clientDataJSON\": \"123456\",\r\n    \"signature\": \"signature\",\r\n    \"username\": \"{{userId}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signin/webauthn","description":"<p>This endpoint needs to be called after sign in returns a <em><strong>CUSTOM_CHALLENGE</strong></em>.</p>\n<p>If it is required a temporary <strong>sessionToken</strong> to redirect after successful sign-in, it is necessary to add the <strong>mobile</strong> header set to <strong>true</strong>.</p>\n<p>The challenge returned needs to be processed and use to authenticate the user with the security key and validated after with this endpoint. In javascript this could be done in the browser with this API call:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">navigator.credentials.get({publicKey: signinOptions});\n\n</code></pre>\n<p>The challenge parameters need to be processed before using them as <em><strong>signInOptions</strong></em>. In the following snippet, you can see a pseudo code on how to process this data.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">if (session &amp;&amp; ChallengeName === \"CUSTOM_CHALLENGE\") {\n    let challengeAllowedCreds = JSON.parse(\n        ChallengeParameters.allowedCredentials\n    );\n    let allowedCreds = [];\n    for (let i = 0, size = challengeAllowedCreds.length; i &lt; size; i++) {\n        allowedCreds.push({\n            id: b64decode(challengeAllowedCreds[i][\"id\"]),\n            type: \"public-key\",\n            transports: challengeAllowedCreds[i][\"transports\"],\n        });\n    }\n    //----------get creds from security key or platform authenticator\n    const signinOptions = {\n        challenge: b64decode(ChallengeParameters.challenge),\n        timeout: 1800000,\n        rpId: window.location.hostname,\n        userVerification: \"discouraged\",\n        allowCredentials: allowedCreds,\n    };\n    //get sign in credentials from authenticator\n    const cred = await navigator.credentials.get({\n        publicKey: signinOptions,\n    });\n    //prepare credentials challenge response\n    const credential = {};\n    if (cred.response) {\n        const clientDataJSON = b64encode(cred.response.clientDataJSON);\n        const authenticatorData = b64encode(\n            cred.response.authenticatorData\n        );\n        const signature = b64encode(cred.response.signature);\n        const userHandle = b64encode(cred.response.userHandle);\n        credential.response = {\n            clientDataJSON,\n            authenticatorData,\n            signature,\n            userHandle,\n        };\n        const bodyWebauthn = {\n            credId: cred.id,\n            session: session,\n            authenticatorData: authenticatorData,\n            clientDataJSON: clientDataJSON,\n            signature: signature,\n            username: ChallengeParameters.USERNAME,\n        };\n        setLoadingWebauthn(true);\n        const {\n            token,\n            expiresIn,\n            idToken,\n            refreshToken\n        } =\n        await fetchLoginWebauthn(bodyWebauthn);\n        // Fetch profile\n        const {\n            redirect,\n            details\n        } = await fetchUserProfile(token);\n        setLoadingWebauthn(false);\n        setStorageAndRedirect(\n            details,\n            expiresIn,\n            idToken,\n            lastPath,\n            redirect,\n            refreshToken,\n            token\n        );\n    } else {\n        throw new Error(\n            \"There was an error trying to authenticate you using this key.\"\n        );\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","signin","webauthn"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82ef7f88-600e-4fe6-9ebb-0ea2ee89fd15"}],"id":"07f2d397-3dea-4d74-b5a1-457f37171572","description":"<p>Once users has successfully sign up, they will be able to login (or sign in). There are basically 2 types of logins; a <em>Basic</em> authentication (which requires username and password) and another one protected with <em>Multi-factor authentication</em>.  </p>\n<p>MFA or Multi-factor authentication (also well known as 2FA) is an authentication method that requires the user to provide a dynamic code (in addition to the username/password combination) to gain access to a <a href=\"https://sharepass.com\">SharePass</a> console.</p>\n","_postman_id":"07f2d397-3dea-4d74-b5a1-457f37171572","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}}},{"name":"Refresh Token","id":"85fcdfe6-9828-4e73-8fb4-dd9cb9ea7b0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/refreshtoken","description":"<p>Used to refresh <em>access_token</em> and <em>id_token</em>. The <em>access_token</em> is essential for user authentication.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"refreshToken\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"refreshToken\": \"XXXXXXXXXXXXXXXXXXXXXX\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","refreshtoken"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"2ee2a759-1767-4c03-80f1-0ea61f48f632","name":"Successful Refresh","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/refreshtoken"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Dec 2021 14:54:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2390"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"f0ffdb4c-8363-43c8-80a9-df548aafa904"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"JuelAEDVywMFfuQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a8de1f-1eb93fbd7e531b8639058960;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"ChallengeParameters\": {},\n        \"AuthenticationResult\": {\n            \"AccessToken\": \"XXXXXXXXXXXXXXX\",\n            \"ExpiresIn\": 900,\n            \"TokenType\": \"Bearer\",\n            \"IdToken\": \"XXXXXXXXXXXXXXX\"\n        }\n    }\n}"},{"id":"23f7ef51-f47c-4213-a990-c5a4c474225a","name":"Refresh Token Expired","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/refreshtoken"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Dec 2021 13:19:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"62"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"Jxjq1FuVSwMFyDw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61aa1978-4c64bf536a837deb11b1f051;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Refresh Token has expired\"\n}"},{"id":"a6d1cd1d-d7dd-429c-9587-fad221436a50","name":"Refresh Token Revoked","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/refreshtoken"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 10 Dec 2021 13:47:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"KIsTMG4nywMFQsg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61b35a7a-047fa4f82bf9a790181c732f;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Refresh Token has been revoked\"\n}"}],"_postman_id":"85fcdfe6-9828-4e73-8fb4-dd9cb9ea7b0c"},{"name":"Revoke Token","id":"e7ec13c2-1f9e-4ba7-8cda-66b439908872","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/revoketoken","description":"<p>Used to revoke the <em>refresh_token</em> provided so <em>access_tokens</em> cannot be created anymore with it. This endpoint can be used to sign out from the current session.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"refreshToken\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"refreshToken\": \"xxxxxxxxxxxxxxxxxxxx\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","revoketoken"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"0452ea84-d2bd-419a-86e6-0c35054e977a","name":"Successful Revoke","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/revoketoken"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 10 Dec 2021 14:41:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"68"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"KI0I2FBbywMFfPA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61b36705-3f99dc4527a0139661fb7081;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Refresh Token revoked successfully.\"\n}"},{"id":"c4ef3ad9-bb33-4284-a487-2ad8c5ab7e4a","name":"Invalid Access Token","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/revoketoken"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 10 Dec 2021 14:40:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"48"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token"},{"key":"x-amzn-ErrorType","value":"AccessDeniedException"},{"key":"x-amz-apigw-id","value":"KI0CLG5IywMF5mA="},{"key":"Access-Control-Allow-Methods","value":"GET,OPTIONS"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Access Denied\"\n}"},{"id":"c91eb423-e771-4883-90f8-ccd29c559dfa","name":"Invalid Refresh Token","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/revoketoken"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 11 Dec 2021 02:13:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"58"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"KKZnCHFfywMFneg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61b40960-0ace78402c43a9f11f19dfa7;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Invalid Refresh Token\"\n}"},{"id":"fe9fef60-998b-4b9b-bee7-7d7eecdf7de0","name":"Refresh Token Already Revoked","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"refreshToken\": \"{{refresh_token}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/revoketoken"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 11 Dec 2021 02:15:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"273fc6d6-c3be-42b1-bc8e-1c2e152db6ac"},{"key":"x-amz-apigw-id","value":"KKZy3EfGywMFZxg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61b409ab-64e4a2ef626067ce06a253e6;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Refresh Token has been revoked\"\n}"}],"_postman_id":"e7ec13c2-1f9e-4ba7-8cda-66b439908872"},{"name":"Get Profile","id":"230b4a35-8e67-4623-a4a2-53ddcd3eacc2","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/profile","description":"<p>Used to retrieve profile information about the user.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n","urlObject":{"path":["{{version}}","user","profile"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"73a1e60c-1cf3-483d-b9a9-34ec2fd0951d","name":"Successful Profile Request","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"<Valid AccessToken Here>","type":"text"}],"url":{"raw":"https://api.sharepass.online/v1/user/profile","protocol":"https","host":["api","sharepass","online"],"path":["v1","user","profile"],"query":[{"key":"Auth","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 02:57:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"145"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YZanGFFeSwMF8Sw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fed3e2d-1276bac62d168a780a16477d;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"userId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n        \"name\": \"John\",\n        \"lastname\": \"Smith\",\n        \"email\": \"john_smith@domain.com\"\n    }\n}"},{"id":"8ac8336b-fbbc-4d58-bd04-3c16ed9c8753","name":"Invalid AccessToken","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"<Invalid AccessToken Here>","type":"text"}],"url":"https://api.sharepass.online/v1/user/profile"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 03:09:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"26"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"UnauthorizedException"},{"key":"x-amz-apigw-id","value":"YZcXfHZYSwMF-3w="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\"\n}"},{"id":"d6016805-38e4-4ddb-9edf-abdb062df7d4","name":"Expired Token","originalRequest":{"method":"GET","header":[],"url":"https://api.sharepass.online/v1/user/profile"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 05:07:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"44"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"UnauthorizedException"},{"key":"x-amz-apigw-id","value":"YZto2EGLSwMF62g="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The incoming token has expired\"\n}"}],"_postman_id":"230b4a35-8e67-4623-a4a2-53ddcd3eacc2"},{"name":"Get Details","id":"e906381d-5773-4232-9d20-c1947905cb2a","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/details","description":"<p>Used to retrieve further profile details about the user.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n","urlObject":{"path":["{{version}}","user","details"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"145bbcc4-9137-43d9-b05b-90946f6293e8","name":"Successful User Details Request","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/details"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 03 Jan 2022 06:29:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3313"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"LWylgEmnywMF8MQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61d297bc-145b239268bc22de4030cd5d;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"webhook\": {\n            \"active\": true,\n            \"url\": \"https://example.com/qwerty\",\n            \"secretToken\": \"Some Secret Token Here\"\n        },\n        \"userId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n        \"counters\": {\n            \"totalDataCreated\": \"7.713 KB\",\n            \"totalDataSharePassed\": \"4.977 KB\",\n            \"totalSecretsCreated\": 176,\n            \"totalSecretsSharePassed\": 712,\n            \"bytesInDatabase\": 6206,\n            \"secretsInDatabase\": 140,\n            \"templatesInDatabase\": 2\n        },\n        \"subscription\": {\n            \"bytesLeft\": 444520,\n            \"bytesUsed\": 5480,\n            \"creation\": 1641001144,\n            \"enabled\": true,\n            \"expiry\": 1642210744,\n            \"plan\": {\n                \"name\": \"Medium\",\n                \"id\": \"medium\",\n                \"stars\": 3,\n                \"idItem\": \"medium-usd-monthly\",\n                \"limits\": {\n                    \"maxUsers\": 1,\n                    \"secrets\": 900,\n                    \"webhooks\": true,\n                    \"bytes\": 900000,\n                    \"templates\": 90\n                }\n            },\n            \"resource_version\": 1641001145549,\n            \"secretsLeft\": 332,\n            \"secretsUsed\": 118,\n            \"subscriptionId\": \"xxxxxxxxxxxxxxxxx\",\n            \"trial\": true\n        },\n        \"welcomeScreen\": true,\n        \"consumption\": {\n            \"daily\": [\n                {\n                    \"date\": \"2022-01-03T00:00:00.000Z\",\n                    \"secrets\": 4,\n                    \"bytes\": 688\n                },\n                {\n                    \"date\": \"2022-01-02T00:00:00.000Z\",\n                    \"secrets\": 5,\n                    \"bytes\": 150\n                },\n                {\n                    \"date\": \"2022-01-01T00:00:00.000Z\",\n                    \"secrets\": 3,\n                    \"bytes\": 90\n                },\n                {\n                    \"date\": \"2021-12-31T00:00:00.000Z\",\n                    \"secrets\": 2,\n                    \"bytes\": 60\n                },\n                {\n                    \"date\": \"2021-12-30T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-29T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-28T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-27T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-26T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-25T00:00:00.000Z\",\n                    \"secrets\": 1,\n                    \"bytes\": 30\n                },\n                {\n                    \"date\": \"2021-12-24T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-23T00:00:00.000Z\",\n                    \"secrets\": 1,\n                    \"bytes\": 30\n                },\n                {\n                    \"date\": \"2021-12-22T00:00:00.000Z\",\n                    \"secrets\": 2,\n                    \"bytes\": 60\n                },\n                {\n                    \"date\": \"2021-12-21T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-20T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-19T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-18T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-17T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-16T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-15T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-14T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-13T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-12T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-11T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-10T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-09T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-08T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-07T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-06T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-12-05T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                }\n            ],\n            \"monthly\": [\n                {\n                    \"date\": \"2022-01-01T00:00:00.000Z\",\n                    \"secrets\": 4,\n                    \"bytes\": 688\n                },\n                {\n                    \"date\": \"2021-12-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-11-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-10-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-09-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-08-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-07-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-06-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-05-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-04-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-03-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                },\n                {\n                    \"date\": \"2021-02-01T00:00:00.000Z\",\n                    \"secrets\": 0,\n                    \"bytes\": 0\n                }\n            ]\n        }\n    }\n}"},{"id":"d4253fb9-87f9-4e7c-b863-15748274c09c","name":"Expired Token","originalRequest":{"method":"GET","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"https://api.sharepass.online/v1/user/details"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 15 Mar 2021 13:59:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"44"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"UnauthorizedException"},{"key":"x-amz-apigw-id","value":"cO03xFZLSwMFtkw="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The incoming token has expired\"\n}"}],"_postman_id":"e906381d-5773-4232-9d20-c1947905cb2a"},{"name":"Forgot Password","id":"de343056-d936-4259-bdb4-7a2bc1d07127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\",\r\n    \"token\": \"xxxxxxxxxxxxxxxxxxxx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/forgotpassword/","description":"<p>Used to request a password reset. A code verification will be sent (usually via email) after successfully calling this endpoint. Once the code is received the password reset needs to be confirmed by calling <code>/user/confirmforgotpassword/</code> endpoint.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": \"user@contoso.com\"\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","name":"User","type":"folder"}},"urlObject":{"path":["{{version}}","user","forgotpassword",""],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"79b67bc5-54f5-4639-8457-b43ba88d4d98","name":"Successful Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\",\r\n    \"token\": \"xxxxxxxxxxxxxxxxxxxx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/forgotpassword/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 05:26:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"127"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YZwWWEvHSwMF5kw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fed60f5-49a6e75c2fc8d3c6535e64c1;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"If your account exists on our database, you will receive an email with a verification code.\"\n}"},{"id":"3ec79ced-8c5e-4d5e-bc4d-561c10fa7ff1","name":"Missing Attribute","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\": \"{{email}}\",\r\n    \"token\": \"xxxxxxxxxxxxxxxxxxxx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/forgotpassword/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 05:27:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"151"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"YZwjdGkDSwMF8rA="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"[object instance has properties which are not allowed by the schema: [\\\"user\\\"], object has missing required properties ([\\\"email\\\"])]\"\n}"}],"_postman_id":"de343056-d936-4259-bdb4-7a2bc1d07127"},{"name":"Confirm Forgot Password","id":"f760fe56-d2a0-4f9a-8330-7efc4c58021d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\",\r\n    \"password\": \"{{password}}\",\r\n    \"code\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/confirmforgotpassword/","description":"<p>Allows a user to enter a confirmation code to reset a forgotten password.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": [string], // Required\n    \"password\": [string], // Required\n    \"code\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": \"user@contoso.com\",\n    \"password\": \"Abcd1234!@#$\",\n    \"code\": \"123456\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","confirmforgotpassword",""],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"760f44d9-247c-447d-bbc3-d7325f98879b","name":"Successful Password Reset","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\",\r\n    \"password\": \"{{password}}\",\r\n    \"code\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/confirmforgotpassword/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 06:14:46 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"75"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YZ3dNGMbywMF76Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fed6c54-02c1151b17fe5cb548e074ca;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Password has been changed successfully.\"\n}"},{"id":"c8e87b7b-0cf1-43d1-b857-0fd904f743fa","name":"Code Not As String","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\",\r\n    \"password\": \"{{password}}\",\r\n    \"code\": 123456\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/confirmforgotpassword/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 06:15:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"105"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"YZ3jNEddywMFxOw="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"[instance type (integer) does not match any allowed primitive type (allowed: [\\\"string\\\"])]\"\n}"},{"id":"c8437a70-9fcc-4741-9d0a-cc71927eead7","name":"Invalid Code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\",\r\n    \"password\": \"{{password}}\",\r\n    \"code\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/confirmforgotpassword/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Nov 2021 13:00:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"JnoCaHHsywMFikA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61a62075-4d069dc24546bafe5f86881b;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Invalid code provided, please request a code again.\"\n}"},{"id":"129127f8-90d6-4cfc-b4cc-6fb175e25a39","name":"Expired Code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\",\r\n    \"password\": \"{{password}}\",\r\n    \"code\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/confirmforgotpassword/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jan 2021 10:24:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"105"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"Ydu6uGlTSwMFxbQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5feef844-3af3bf4870192650191ade2d;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"Code provided has expired, please request a code again\"\n}"}],"_postman_id":"f760fe56-d2a0-4f9a-8330-7efc4c58021d"},{"name":"Reverify Account","id":"c2cf3566-0e99-4786-a7a4-c167f953aa08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/reverifyaccount","description":"<p>Used to request a new verification link. Verification links are sent as soon as a new account is created, but they have a lifetime of 24 hr. In case the user misses the verification link, he/she can request a new one.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"email\": \"user@contoso.com\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","reverifyaccount"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"f9f14da7-80d8-44e3-89d0-4154856f7d08","name":"Successful Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/reverifyaccount"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 06:49:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"124"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YZ8gLHF7SwMFeJA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fed7467-3adbd35349c92195084ceda8;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"If your account exists on our database, you will receive an email to verify the account.\"\n}"},{"id":"b6d25da1-a213-492e-9ba4-1ea97cfcbb4d","name":"Rate Limited","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/reverifyaccount"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 16 Jan 2022 06:52:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"61"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"MBsKzHazywMFgQw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-61e3c0ab-3d9d15b623965e8821e5c161;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Forbidden\",\n    \"message\": \"You may retry in 23 hours.\"\n}"},{"id":"aaf6bad8-3edf-4f06-b929-0c13041441d0","name":"Missing Required Attribute","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"{{email}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/reverifyaccount"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 06:52:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"152"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amzn-ErrorType","value":"BadRequestException"},{"key":"x-amz-apigw-id","value":"YZ8_dEBXywMFwGw="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"[object instance has properties which are not allowed by the schema: [\\\"username\\\"], object has missing required properties ([\\\"email\\\"])]\"\n}"}],"_postman_id":"c2cf3566-0e99-4786-a7a4-c167f953aa08"},{"name":"Change Password","id":"b6a250ae-5ae5-453b-9ad4-114db17987fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"previousPassword\": \"{{password}}\",\r\n    \"proposedPassword\": \"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/changepassword","description":"<p>Used to change the user existing password. The user must be authenticated to make use of this endpoint.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"previousPassword\": [string], // Required\n    \"proposedPassword\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"previousPassword\": \"hhT4MZ#VH%h7FNgia7ZI\",\n    \"proposedPassword\": \"DtQyK6#jyw$dh^w3UVLMF\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","changepassword"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"7ec33104-67e7-4faa-9ecd-00932e71476c","name":"Password Changed Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"previousPassword\": \"{{password}}\",\r\n    \"proposedPassword\": \"{{new_password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/changepassword"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 09:17:31 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YaSOjGEwSwMFzGg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fed9729-0c7f80253396e86f096bc129;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Password changed successfully.\"\n}"},{"id":"3ad0460b-2679-4506-8091-95a308cc6fea","name":"Invalid Password","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"previousPassword\": \"{{password}}\",\r\n    \"proposedPassword\": \"{{new_password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/changepassword"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 09:19:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"143"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YaSc8FBVywMFukw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fed9785-51ec8ea56842fb5616d91a6a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"InvalidPasswordException\",\n    \"message\": \"Password did not conform with policy: Password must have uppercase characters\"\n}"}],"_postman_id":"b6a250ae-5ae5-453b-9ad4-114db17987fb"},{"name":"Global Sign Out","id":"c7f878d2-1de1-4e5b-8485-db9d77b70293","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"{{baseURL}}/{{version}}/user/globalsignout","description":"<p>Signs out users from all devices. It also invalidates all refresh tokens issued to a user. The user's current access and Id tokens remain valid until their expiry. Access and Id tokens expire one hour after they are issued.</p>\n<hr />\n<h6 id=\"auth-required--yes\">Auth required : <code>YES</code></h6>\n<h6 id=\"data-constraints-none\">Data constraints: <code>None</code></h6>\n","urlObject":{"path":["{{version}}","user","globalsignout"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"3e080743-bd1a-4f43-92fe-32701485cd58","name":"Successful Global Sign Out","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"url":"https://api.sharepass.online/v1/user/globalsignout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 31 Dec 2020 09:49:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"80"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"YaW6DE_nSwMFoSg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fed9ea6-2921643a09f73f9c5f318a90;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"userId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n    }\n}"}],"_postman_id":"c7f878d2-1de1-4e5b-8485-db9d77b70293"},{"name":"Update Full Name","id":"4e9bdf02-b0ec-4536-b9d5-c5ba94590bc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"John\",\r\n    \"lastname\": \"Smith\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/updatefullname","description":"<p>Used to update the name and lastname of the authenticated user.</p>\n<hr />\n<h6 id=\"auth-required-yes\">Auth required: <code>YES</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": [string], // Required\n    \"lastname\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"John\", // Required\n    \"lastname\": \"Smith\" // Required\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","updatefullname"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"1e778cc5-6809-4d2d-9247-cbbd9b7f3e62","name":"Full Name Updated Successfully","originalRequest":{"method":"POST","header":[{"key":"Auth","value":"{{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"John\",\r\n    \"lastname\": \"Smith\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.sharepass.online/v1/user/updatefullname"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 04 May 2021 15:15:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"64"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"x-amz-apigw-id","value":"ezy7kEX1ywMFkXg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-60916516-086c44b9693293277cdf47c9;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Full name updated successfully.\"\n}"}],"_postman_id":"4e9bdf02-b0ec-4536-b9d5-c5ba94590bc8"},{"name":"Sign Up","id":"3005242a-5569-4b93-84ac-bd8908aa3c55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{given_name}}\",\r\n    \"lastname\": \"{{family_name}}\", \r\n    \"email\": \"{{email}}\", \r\n    \"password\": \"{{password}}\",\r\n    \"token\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signup/","description":"<p>All new <a href=\"https://sharepass.com\">SharePass</a> members must sign up in order to create an account. This endpoint is used to create a new account.  </p>\n<p>To complete the registration process, the users need to verify the email address by clicking on a link sent to their inbox. Note this endpoint is protected by Recaptcha V3.</p>\n<hr />\n<h6 id=\"auth-required--no\">Auth required : <code>NO</code></h6>\n<h6 id=\"data-constraints\">Data constraints:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": [string], // Required\n    \"lastname\": [string], // Required\n    \"email\": [string], // Required\n    \"password\": [string], // Required\n    \"token\": [string] // Required\n}\n\n</code></pre>\n<h6 id=\"data-example\">Data example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"John\",\n    \"lastname\": \"Smith\",\n    \"username\": \"user@example.com\",\n    \"password\": \"Abcd1234!@#$\",\n    \"token\": \"xxxxxxxxxxxxxxxxxxx\"\n}\n\n</code></pre>\n","urlObject":{"path":["{{version}}","user","signup",""],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"bc698995-6681-41f3-8af6-d0e7406462f0","name":"Successful Sign Up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{given_name}}\",\r\n    \"lastname\": \"{{family_name}}\", \r\n    \"email\": \"{{email}}\", \r\n    \"password\": \"{{password}}\",\r\n    \"token\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signup/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 20 Nov 2021 08:16:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"209"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"JGBEaHxdywMF9Cw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6198aee8-79a5f24813be13a219d07b1d;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"details\": {\n        \"UserConfirmed\": false,\n        \"CodeDeliveryDetails\": {\n            \"Destination\": \"j***@s***.online\",\n            \"DeliveryMedium\": \"EMAIL\",\n            \"AttributeName\": \"email\"\n        },\n        \"UserSub\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n    }\n}"},{"id":"148faa3e-894a-4cb5-bbc1-3f26d80f099c","name":"Account Already Exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{given_name}}\",\r\n    \"lastname\": \"{{family_name}}\", \r\n    \"email\": \"{{email}}\", \r\n    \"password\": \"{{password}}\",\r\n    \"token\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signup/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 20 Nov 2021 08:21:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"84"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"JGBzrG45ywMF0Sg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6198b017-39f1f5326ef90bb8105d809e;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"An account with the given email already exists.\"\n}"},{"id":"76eabe86-bfbc-4155-a6ee-17703607e0c6","name":"Password Too Short","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{given_name}}\",\r\n    \"lastname\": \"{{family_name}}\", \r\n    \"email\": \"{{email}}\", \r\n    \"password\": \"asd\",\r\n    \"token\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxx\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/{{version}}/user/signup/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 20 Nov 2021 08:24:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"99"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"JGCR1HuBSwMFgkg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6198b0d8-004dd64935a4172a3414061c;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Bad Request\",\n    \"message\": \"Password did not conform with policy: Password not long enough\"\n}"}],"_postman_id":"3005242a-5569-4b93-84ac-bd8908aa3c55"}],"id":"993a411f-7f24-44ba-929e-e1a817ec9d5b","description":"<p>A user is a person or a service who utilize <a href=\"https://sharepass.com\">SharePass</a> platform. All user accounts must be verified to operate the platform.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"b8eaf4d1-429c-48b0-b2e7-6c827825e2ed"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"e4487c57-8f0b-4bac-9e9e-92239cef3e57"}}],"_postman_id":"993a411f-7f24-44ba-929e-e1a817ec9d5b"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"7f2a37ef-3b22-4b4c-8ab2-5c13af43dc23"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"4bb48555-3582-4ff1-99cc-30bc1344c763"}}]}