{"info":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","description":"<html><head></head><body><h2 id=\"overview\">Overview</h2>\n<p>The <strong>Right-Hand Public API</strong> provides programmatic access to manage authentication, tenant access, and system metadata for Right-Hand Cybersecurity platforms. Designed for customers who want to integrate Right-Hand with their internal applications, these RESTful APIs allow partners to authenticate admin accounts, generate user tokens, and retrieve system settings such as available time zones.</p>\n<h4 id=\"base-url\">Base URL</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.right-hand.ai/public\n\n</code></pre><hr>\n<h2 id=\"getting-started--authentication\">Getting Started &amp; Authentication</h2>\n<p>To interact with the Right-Hand Public API, you must complete the authorization workflow using Bearer Token authentication.</p>\n<h3 id=\"step-1-obtain-partner-credentials\">Step 1: Obtain Partner Credentials</h3>\n<p>Contact the Right-Hand Support team to obtain your Account Token (<strong>ACCOUNT_TOKEN</strong>) and a service account email to pass in <strong>SERVICE_ACCOUNT_EMAIL</strong>.</p>\n<h3 id=\"step-2-generate-an-access-token\">Step 2: Generate an Access Token</h3>\n<p>Send a <code>POST</code> request to the authentication endpoint using your credentials to generate a session token for the user that can be used for other api endpoits.</p>\n<h4 id=\"post-publicauthentications\"><strong>POST</strong> <code>/public/authentications</code></h4>\n<ul>\n<li><p><strong>Headers:</strong></p>\n<ul>\n<li><code>Content-Type: application/json</code></li>\n</ul>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\"> { \n   \"tenant_token\": \"ACCOUNT_TOKEN\", \n   \"email\": \"SERVICE_ACCOUNT_EMAIL\"\n }\n\n</code></pre>\n<ul>\n<li><strong>cURL Example:</strong></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location 'https://api.right-hand.ai/public/authentications' \n--header 'Content-Type: application/json' \n--data '{\n    \"tenant_token\": \"ACCOUNT_TOKEN\",\n    \"email\": \"SERVICE_ACCOUNT_EMAIL\"\n}'\n\n</code></pre>\n<ul>\n<li><strong>Sample Response</strong></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"code\":200,\n   \"message\":\"OK\",\n   \"details\":{\n      \"user_token\":\"TENANT_TOKEN\"\n   }\n}\n\n</code></pre>\n<blockquote>\n<p>Do not forget to use logout request once you are done with your API usage </p>\n</blockquote>\n<h3 id=\"response-status--error-codes\">Response Status &amp; Error Codes</h3>\n<p>The API uses standard HTTP response codes to indicate the success or failure of an API request.</p>\n<p>| <strong>HTTP Code</strong> | <strong>Description</strong> | <strong>Meaning / Troubleshooting</strong> |<br>| <strong>200</strong> | Success | Request was processed successfully. |<br>| <strong>400</strong> | Invalid Request | Malformed body, missing parameters, or improper formatting. |<br>| <strong>401</strong> | User Not Authorized | Missing, invalid, or expired Bearer token. |<br>| <strong>404</strong> | Record Not Found | The requested endpoint or resource does not exist. |<br>| <strong>422</strong> | Validation Error | Payload failed parameter validation. |<br>| <strong>500</strong> | Internal Server Error | An internal server issue occurred; retry or contact support. |</p>\n<hr>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23084700","collectionId":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","publishedId":"2sBY4SNKKb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-07-30T05:32:31.000Z"},"item":[{"name":"Authentication","item":[{"name":"Generate Account Token for User","event":[{"listen":"test","script":{"id":"c0e8cf90-937c-41b4-97da-b90f76a0d3a4","exec":["var jsonData = JSON.parse(responseBody);","if (jsonData?.details?.user_token)","    postman.setEnvironmentVariable(\"USER_TOKEN\", jsonData.details.user_token);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"64901790-eeec-4f9a-ab14-5d33a10c0451","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{        \n    \"tenant_token\": \"{{ACCOUNT_TOKEN}\", // string - Required           \n    \"email\": \"{{SERVICE_ACCOUNT_EMAIL}}\" // string - required    \n}"},"url":"https://api.right-hand.ai/public/authentications","description":"<p>Generate Session Token for User</p>\n<ul>\n<li><p><strong>Purpose:</strong> Generates a user access token (<code>user_token</code>) required to authorize subsequent API requests.</p>\n</li>\n<li><p><strong>Request Body:</strong> Requires <code>tenant_token</code> (string) and <code>email</code> (service account email string).</p>\n</li>\n<li><p><strong>Response:</strong> Returns a <code>200 OK</code> status with the session <code>user_token</code> inside the response details.</p>\n</li>\n</ul>\n","urlObject":{"path":["public","authentications"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"7704e55c-ddcb-49f9-84d0-4e8589814687","name":"Generate Session Token for User","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"tenant_token","value":"","description":"Unique Token of MSSP partner","type":"text"},{"key":"email","value":"","description":"Admin Email of MSSP Partner","type":"text"}]},"url":"https://api.right-hand.ai/public/authentications"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{      \n      \"code\": 200,      \n      \"message\": \"OK\",      \n       \"details\": {         \n         \"user_token\": \"TENANT_TOKEN\"      \n       }   \n    }"}],"_postman_id":"64901790-eeec-4f9a-ab14-5d33a10c0451"},{"name":"Remove Session Token for User","event":[{"listen":"test","script":{"id":"35d60282-5c6e-43af-8619-8fc2c38984cd","exec":["postman.setEnvironmentVariable(\"USER_TOKEN\", '');"],"type":"text/javascript"}}],"id":"1dd63740-d5ad-48a4-9847-1edb6c42c88f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{        \n    \"tenant_token\": \"{{RESELLER_TOKEN}}\", // string - Required           \n    \"email\": \"{{RESELLER_ADMIN}}\" // string - required    \n}"},"url":"https://api.right-hand.ai/public/authentications/logout","description":"<p>Remove Session Token for User</p>\n<ul>\n<li><p><strong>Purpose:</strong> Revokes and invalidates the active user session token once API operations are complete.</p>\n</li>\n<li><p><strong>Request Body:</strong> Requires <code>tenant_token</code> and <code>email</code> payload.</p>\n</li>\n<li><p><strong>Response:</strong> Returns a <code>200 OK</code> status with <code>user_token</code> set to <code>nil</code>.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","authentications","logout"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"7d29b406-73e9-4fb5-aebe-1f4a57baa288","name":"Remove Session Token for User","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{        \n    \"tenant_token\": , // string - Required           \n    \"email\":  // string - required    \n}"},"url":"https://api.right-hand.ai/public/authentications/logout"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{      \n    \"code\": 200,      \n    \"message\": \"OK\",      \n    \"details\": {         \n        \"user_token\": nil\n    }   \n}"}],"_postman_id":"1dd63740-d5ad-48a4-9847-1edb6c42c88f"}],"id":"eaee8ea3-9d4f-4c45-80c2-3ae79cf92699","_postman_id":"eaee8ea3-9d4f-4c45-80c2-3ae79cf92699","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Timezone","item":[{"name":"Get a list of all available timezones","event":[{"listen":"test","script":{"id":"9366e93d-7526-4b77-bdc2-26aacbf4f52e","exec":["//set timezone variable","var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"timezone\", jsonData.details.list[0]);","","var responseBody = pm.response.json(); // Get the response body as a JSON object","","// Check if the response body contains an array with size 1","pm.test(\"Check if body contains an array with size 1\", function() {","    pm.response.to.have.status(200)","    pm.expect(responseBody.details.list).to.be.an('array'); // Check if it is an array","});"],"type":"text/javascript"}}],"id":"19457656-93fa-4a73-bc30-8cb3bfb2ab55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer COMPANY_TOKEN","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.right-hand.ai/public/timezones","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","timezones"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"70a47212-162a-4290-a29d-3e17a9a636df","name":"Get a list of all available timezones","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer COMPANY_TOKEN","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.right-hand.ai/public/timezones"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":" {\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"list\": [\n                \"Africa/Abidjan\",\n                \"Africa/Accra\",\n             ]\n        }\n    }"}],"_postman_id":"19457656-93fa-4a73-bc30-8cb3bfb2ab55"}],"id":"74b06770-f4bb-45d7-925f-aa24a4df8257","_postman_id":"74b06770-f4bb-45d7-925f-aa24a4df8257","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Industries","item":[{"name":"Get a list of Supported Industries","event":[{"listen":"test","script":{"id":"9dec37c7-0259-4926-848c-6259a70eefa9","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"industry_id\", jsonData.details.list[0].id);"],"type":"text/javascript","packages":{}}}],"id":"9f4084dc-3f34-4330-9b2d-1d7f3a795395","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {{USER_TOKEN}}","type":"text"}],"url":"https://api.right-hand.ai/public/industries","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","industries"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"32c7ad72-7d98-4556-a471-d692b0376efa","name":"Get a list of Supported Industries","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/industries"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":" {\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"list\": [\n                {\n                    \"id\": 1,\n                    \"name\": \"Defense Industrial Base\"\n                },\n            ]\n        }\n    }"}],"_postman_id":"9f4084dc-3f34-4330-9b2d-1d7f3a795395"}],"id":"fe09c586-b4f9-4f53-8fa3-29a45933f714","_postman_id":"fe09c586-b4f9-4f53-8fa3-29a45933f714","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Account Management","item":[{"name":"Create a New Account","event":[{"listen":"test","script":{"id":"c6f7ff19-e056-4d14-a088-0f99d179ff70","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"company_id\", jsonData.details.customer.id);","","","var responseBody = pm.response.json(); // Get the response body as a JSON object","","// Check if the response body contains an array with size 1","pm.test(\"Check if Company is created\", function() {","    pm.response.to.have.status(200)","    pm.expect(responseBody.details.customer).to.be.an('object'); // Check if it is an array","    pm.expect(responseBody.details.customer.name).to.eql(\"Test Customer\");","});"],"type":"text/javascript"}}],"id":"c8529b60-325e-45b3-9572-7e25bf6086b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"name\": \"Test Customer\", // Mandatory\n        \"industry_id\": \"{{industry_id}}\", // Mandatory (a valid ID from industry list api)\n        \"timezone\": \"{{timezone}}\", // Mandatory (a valid timezone from timezone list api)\n        \"subscription_type\": \"trial\", // Optional, default: trial, valid values(paid or trial),\n        \"allowed_users\": 10, // Number of licence a company has bought,\n        \"subscription_start_date\": \"2023-01-01 00:00\", // Start date of company subscription\n        \"subscription_end_date\": \"2023-12-31 00:00\" // end of subscription date\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.right-hand.ai/public/customers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","customers"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"fedd3797-7c1c-4d2e-bbbe-10a9cdb0404b","name":"Create a New Account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"name\": \"STRING\", // Mandatory\n        \"industry_id\": \"INTEGER\", // Mandatory (a valid ID from industry list api)\n        \"timezone\": \"STRING\", // Mandatory (a valid timezone from timezone list api)\n        \"subscription_type\": \"STRING\", // Optional, default: trial, valid values(paid or trial),\n        \"allowed_users\": \"INTEGER\", // Number of licence a company has bought,\n        \"subscription_start_date\": \"DATETIME\", // Start date of company subscription\n        \"subscription_end_date\": \"DATETIME\" // end of subscription date\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.right-hand.ai/public/customers"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"DEMO Company\",\n                \"industry_id\": 1,\n                \"timezone\": \"Asia/Singapore\",\n                \"subscription_type\": \"normal\",\n                \"created_at\": \"18-06-2020 06:33 PM\",\n                \"training_score\": 10, \n                \"compliance_score\": 100,\n                \"phishing_score\": 100 \n                \"user_count\": 20, \n                \"subscription_start_date\": \"18-06-2020 06:33 PM\",\n                \"subscription_end_date\": \"18-06-2020 06:33 PM\",\n            }\n        }\n    }"}],"_postman_id":"c8529b60-325e-45b3-9572-7e25bf6086b4"},{"name":"List of all accounts","event":[{"listen":"test","script":{"id":"eafc811c-6cf9-4225-b139-fb6e577c744f","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object","","// Check if the response body contains an array with size 1","pm.test(\"Check if body contains an array with size 1\", function() {","    pm.response.to.have.status(200)","    pm.expect(responseBody.details.list).to.be.an('array'); // Check if it is an array","});"],"type":"text/javascript"}}],"id":"7f4cd4ee-2658-4783-b5e8-cdaa1ca2eab5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/customers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","customers"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"e5e9d6d1-eea8-42ca-a98a-f528f24a4e14","name":"List of all accounts","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/customers"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"list\": [\n                {\n                    \"id\": INTEGER,\n                    \"name\": STRING,\n                    \"subscription_type\": STRING, // avaiable values (trial, paid)\n                    \"timezone\": STRING, // a valid value from timezone list api\n                    \"industry_name\": STRING, // a valid value from industries list api\n                    \"created_at\": DATATIME, // DD-MM-YYYY HH:MM AM/PM\n                    \"updated_at\": DATATIME, // DD-MM-YYYY HH:MM AM/PM\n                    \"allowed_users\": INTEGER, //number of users they have bougt\n                    \"subscription_start_date\": DATETIME,\n                    \"subscription_end_date\": DATETIME,\n                    \"user_count\": INTEGER, // Total numbers of users\n                    \"training_score\": FLOAT,\n                    \"compliance_score\": FLOAT,\n                    \"phishing_score\": FLOAT\n                },\n            ]\n        }\n    }"}],"_postman_id":"7f4cd4ee-2658-4783-b5e8-cdaa1ca2eab5"},{"name":"Get data points for risk timeline","event":[{"listen":"test","script":{"id":"a9bb346c-c336-4efd-bce0-5fecc5a1b8e0","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object","","pm.test(\"Check if Response is 200\", function() {","    pm.response.to.have.status(200)","});","","pm.test(\"Check if Response is valid\", function() {","    pm.expect(responseBody.details.timeline).to.be.an('object'); ","});"],"type":"text/javascript"}}],"id":"0e91460b-1fed-45b2-bae0-7e5f6cb4a834","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/companies//risk_timelines","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies","","risk_timelines"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"95753ac9-8782-4b39-88bf-e3cbbd5059cf","name":"Get data points for risk timeline","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/risk_timelines","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","risk_timelines"],"variable":[{"key":"company_id","value":"","description":"ID of company "}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"timeline\": {\n                \"company_risk_titles\": [\"Jan 10\", \"Jan 11\"], \n                \"company_risk_scores\": [1,2 ] \n            }\n        }\n    }"}],"_postman_id":"0e91460b-1fed-45b2-bae0-7e5f6cb4a834"},{"name":"Get date of an  existing account","event":[{"listen":"test","script":{"id":"454f84c3-8bd4-4909-87a2-979baff3261a","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object","","pm.test(\"Check if Response is 200\", function() {","    pm.response.to.have.status(200)","});","","pm.test(\"Check if Response is valid\", function() {","    pm.expect(responseBody.details.customer).to.be.an('object'); ","    pm.expect(responseBody.details.customer.name).to.eql(\"Test Customer\");","});"],"type":"text/javascript"}}],"id":"17d53a64-2a0a-49a0-9571-e0e9363173d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/customers/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","customers",""],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"b0534549-caf3-4988-a506-cf0a9b67c606","name":"Get date of an  existing account","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.right-hand.ai/public/customers/:company_id","host":["https://api.right-hand.ai"],"path":["public","customers",":company_id"],"variable":[{"key":"company_id","value":"","description":"ID of company you want to fetch"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"customer\": {\n                \"id\": INTEGER,\n                \"name\": STRING,\n                \"industry_id\": INTEGER,\n                \"timezone\": STRING,\n                \"subscription_type\": STRING,\n                \"created_at\": DATETIME, // Sample \"18-06-2020 06:33 PM\",\n                \"training_score\": FLOAT, //  Training Risk Score of a company\n                \"compliance_score\": FLOAT, // Compliance Risk Score of a company\n                \"phishing_score\": FLOAT, // Phishing Risk Score of a company\n                \"subscription_start_date\": DATETIME,\n                \"subscription_end_date\": DATETIME,\n                \"user_count\": INTEGER, // Total numbers of users\n            }\n        }\n    }"}],"_postman_id":"17d53a64-2a0a-49a0-9571-e0e9363173d9"},{"name":"Get a list of enabled features","event":[{"listen":"test","script":{"id":"6ee2b323-27bd-4854-b181-60ff86ee80e4","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object","","pm.test(\"Check if Response is 200\", function() {","    pm.response.to.have.status(200)","});","","pm.test(\"Check if Response is valid\", function() {","    pm.expect(responseBody.details.preference).to.be.an('object'); ","});"],"type":"text/javascript"}}],"id":"431d5664-a0bf-46db-b799-ad7ef200a365","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/customers//company_preferences","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","customers","","company_preferences"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"af9ca305-e40b-4d22-9121-b44b58a0be39","name":"Get a list of enabled features","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/customers/:company_id/company_preferences","host":["https://api.right-hand.ai"],"path":["public","customers",":company_id","company_preferences"],"variable":[{"key":"company_id","value":"","description":"ID of company that you want to get"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    “code”: 200,\n    “message”: “OK”,\n    “details”: {\n        “preference”: {\n            “gamification”: true,\n            “training”: true,\n            “phishing”: true,\n            “compliance”: false,\n            “phisharm”: true,\n            “active_directory”: true,\n            “employee_portal_access”: true,\n            “hrm”: true,\n            “audit_log”: true\n        }\n    }\n}"}],"_postman_id":"431d5664-a0bf-46db-b799-ad7ef200a365"},{"name":"Enable/Disable Product in a Customer Account","event":[{"listen":"test","script":{"id":"99b040a0-c33c-4a31-b021-05389bcf0922","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object","","pm.test(\"Check if Response is 200\", function() {","    pm.response.to.have.status(200)","});","","pm.test(\"Check if Response is valid\", function() {","    pm.expect(responseBody.details.preference).to.be.an('object'); ","    pm.expect(responseBody.details.preference.training).to.eql(false);","});"],"type":"text/javascript"}}],"id":"9848cfcd-9d71-40b7-b101-fd43231470a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"training\": false // Available options (gamificaiton, training, phishing, compliance, phisharm, active_directory,  employee_portal_access)\n}"},"url":"https://api.right-hand.ai/public/customers//company_preferences","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","customers","","company_preferences"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"45926252-8998-4d9d-9fa3-633812e33a33","name":"Enable/Disable Product in a Customer Account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"PRODUCT_NAME\": \"BOOLEAN\" // Available options (gamificaiton, training, phishing, compliance, phisharm, active_directory,  employee_portal_access)\n}"},"url":{"raw":"https://api.right-hand.ai/public/customers/:company_id/company_preferences","host":["https://api.right-hand.ai"],"path":["public","customers",":company_id","company_preferences"],"variable":[{"key":"company_id","value":"","description":"ID of company that you want to update"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    “code”: 200,\n    “message”: “OK”,\n    “details”: {\n        “preference”: {\n            “gamification”: true,\n            “training”: false,\n            “phishing”: true,\n            “compliance”: false,\n            “phisharm”: true,\n            “active_directory”: true,\n            “employee_portal_access”: true,\n            “hrm”: true,\n            “audit_log”: true\n        }\n    }\n}"}],"_postman_id":"9848cfcd-9d71-40b7-b101-fd43231470a1"},{"name":"Delete an existing account","event":[{"listen":"test","script":{"id":"45366939-029b-432e-83cd-3731e65c9238","exec":["var jsonData = JSON.parse(responseBody);","postman.setEnvironmentVariable(\"company_id\", '');","","","pm.test(\"Check if Response is 200\", function() {","    pm.response.to.have.status(200)","});",""],"type":"text/javascript"}}],"id":"86c47e36-da00-47f4-b892-d8e63ae61215","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/customers/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","customers",""],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"09cb41af-9172-4bf1-bbf1-8167435b5320","name":"Delete an existing account","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/customers/:id","host":["https://api.right-hand.ai"],"path":["public","customers",":id"],"variable":[{"key":"id","value":null,"description":"ID of account you want to delete"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"    {\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"customer\": {\n                \"id\": INTEGER,\n                \"name\": STRING,\n                \"industry_id\": INTEGER,\n                \"timezone\": STRING,\n                \"subscription_type\": STRING,\n                \"created_at\": DATETIME, // Sample \"18-06-2020 06:33 PM\",\n                \"training_score\": FLOAT, //  Training Risk Score of a company\n                \"compliance_score\": FLOAT, // Compliance Risk Score of a company\n                \"phishing_score\": FLOAT, // Phishing Risk Score of a company\n                \"subscription_start_date\": DATETIME,\n                \"subscription_end_date\": DATETIME,\n                \"user_count\": INTEGER, // Total numbers of users\n            }\n        }\n    }"}],"_postman_id":"86c47e36-da00-47f4-b892-d8e63ae61215"}],"id":"1905c123-0463-4d8b-9285-83b15f4b4f8b","_postman_id":"1905c123-0463-4d8b-9285-83b15f4b4f8b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Campaigns","item":[{"name":"Get list of campaigns","event":[{"listen":"test","script":{"id":"a7014b42-f72a-4518-b1c3-ccd527c26f3d","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object","","// Check if the response body contains an array with size 1","pm.test(\"Check if body contains an array with size 1\", function() {","    pm.response.to.have.status(200)","    pm.expect(responseBody.details.list).to.be.an('array'); // Check if it is an array","});"],"type":"text/javascript"}}],"id":"da1fed02-6c4a-4e49-82c4-2ccb8a692586","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/companies//competitions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies","","competitions"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"1cd7c344-90f9-414d-b474-954788d40b8d","name":"Get list of campaigns","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/competitions","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","competitions"],"variable":[{"key":"company_id","value":"","description":"ID of company you want to query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"list\": [\n        {\n            \"id\": 1,\n            \"competition_type\": \"training\",\n            \"title\": \"August 2022 - Campaign 1\",\n            \"created_at\": \"2022-08-08 10:10 PM\",\n            \"execute_at\": \"2022-08-08 10:10 PM\",\n            \"starts_at\": \"2022-08-08 10:10 PM\",\n            \"end_at\": \"2022-08-08 10:10 PM\",\n            \"campaign_group_title\": \"August 2020\",\n            \"risk_score\": 100.0,\n            \"error_message\": null,\n            \"is_published\": true,\n            \"user_name\": \"Demo\",\n            \"schedule_timezone\": null,\n            \"user_count\": 2,\n            \"delivered_count\": 2,\n            \"status\": \"Completed\"\n         }\n    ],\n    \"total_count\": 1,\n    \"active\": 1,\n    \"expired\": 0,\n    \"upcoming\": 0,\n    \"published\": 1,\n    \"draft\": 0\n}"}],"_postman_id":"da1fed02-6c4a-4e49-82c4-2ccb8a692586"},{"name":"Get Campaign Detail","id":"4075b83e-a8fb-4d23-8092-19029708578e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"id":"974b4435-9987-44c1-9367-75bcf814fe51","description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"id":"ae81160d-8abd-4875-b470-6cde6d7610ae","description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"4163b493-299f-4cf5-86d2-5b67a943917f","name":"Get Campaign Detail","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","competitions",":campaign_id"],"variable":[{"key":"company_id","value":"","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"competition\": {\n        \"id\": 1,\n        \"title\": \"August 2020 - Campaign 1\",\n        \"created_at\": \"2020-10-10 10:10 PM\",\n        \"updated_at\":  \"2020-10-10 10:10 PM\",\n        \"starts_at\":  \"2020-10-10 10:10 PM\",\n        \"end_at\":  \"2020-10-10 10:10 PM\",\n        \"is_published\": true,\n        \"is_attach_leaderboard\": false,\n        \"avatar_url\": null,\n        \"competition_type\": \"training\",\n        \"campaign_group_id\": 1,\n        \"user_count\": 2,\n        \"included_compliance_section_names\": \"\",\n        \"error_message\": null,\n        \"risk_score\": 100.0,\n        \"campaign_group_title\": \"August 2020\",\n        \"send_report_enable\": false,\n        \"is_expire_competitions\": false,\n        \"schedule_timezone\": null,\n        \"has_training_enabled\": true,\n        \"execute_at\": \"2020-10-10 10:10 PM\",\n        \"status\": \"completed\",\n        \"campaign_sending_interval\": \"instant\",\n        \"training_id\": 1,\n        \"compliance_title\": null,\n        \"compliance_id\": null,\n        \"training_name\": \"Training 1\"\n    }\n}"}],"_postman_id":"4075b83e-a8fb-4d23-8092-19029708578e"},{"name":"Generate campaign report in PDF","id":"9bd221a9-10d7-4bd4-9e14-adbc5a73cc70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/export?type=pdf","description":"<p>It will generate PDF report of a campaign.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id","export"],"host":["https://api.right-hand.ai"],"query":[{"key":"type","value":"pdf"}],"variable":[{"id":"592d0d30-27a7-4499-b562-0e30d4697384","description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"id":"5166335d-783f-4c20-8668-1e67bccdcd66","description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"92b24184-78ca-45c4-be2e-673ae2e76493","name":"Generate campaign report in PDF","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/export?type=pdf","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","competitions",":campaign_id","export"],"query":[{"key":"type","value":"pdf"}],"variable":[{"key":"company_id","value":"","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"response\": {\n        \"success\": true,\n        \"url\": \"URL_OR_PDF_FILE\"\n    }\n}"}],"_postman_id":"9bd221a9-10d7-4bd4-9e14-adbc5a73cc70"},{"name":"Get user engagement trends in the campaign","id":"5e68288e-5e9c-4961-bd97-22a3d37e0e2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/javascript","type":"text"}],"url":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_trends?duration=one_week","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id","competition_trends"],"host":["https://api.right-hand.ai"],"query":[{"description":{"content":"<p>available options one_week, one_month, six_months, one_year</p>\n","type":"text/plain"},"key":"duration","value":"one_week"}],"variable":[{"id":"d5b3598b-495f-4d6f-a8ec-3e06cad3a9b6","description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"id":"b8ae4615-d748-4a4e-8b81-aeebff90af49","description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"a341edcb-780c-43e9-9ead-6664d2f4a1ef","name":"Get user engagement trends in the campaign","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_trends?duration=one_week","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","competitions",":campaign_id","competition_trends"],"query":[{"key":"duration","value":"one_week","description":"available options one_week, one_month, six_months, one_year"}],"variable":[{"key":"company_id","value":"","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"trends\": {\n            \"delivered\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                2,\n                0\n            ],\n            \"completed\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                1,\n                0\n            ],\n            \"passed\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0\n            ],\n            \"failed\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                1,\n                0\n            ],\n            \"titles\": [\n                \"24 Feb 2021\",\n                \"25 Feb 2021\",\n                \"26 Feb 2021\",\n                \"27 Feb 2021\",\n                \"28 Feb 2021\",\n                \"01 Mar 2021\",\n                \"02 Mar 2021\"\n            ]\n        }\n    }\n}"}],"_postman_id":"5e68288e-5e9c-4961-bd97-22a3d37e0e2e"},{"name":"Get Campaign Training Statistics","id":"a4921b0d-570d-4709-aa25-e562a1215da3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_training_stats","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id","competition_training_stats"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"id":"2a66daf9-4546-45ce-9b1e-8c67677f8921","description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"id":"ce3116fd-5dfd-46d1-92ae-9b37af4b2385","description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"2220eddd-16fa-47ff-b2a7-9ce47951f810","name":"Get Campaign Training Statistics","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_training_stats","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","competitions",":campaign_id","competition_training_stats"],"variable":[{"key":"company_id","value":"","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"metrix\": {\n            \"total\": 2,\n            \"completed\": 1,\n            \"passed\": 0,\n            \"failed\": 1\n        }\n    }\n}"}],"_postman_id":"a4921b0d-570d-4709-aa25-e562a1215da3"}],"id":"b67321ec-0aac-4ce3-84a4-a75b75d2c1e1","_postman_id":"b67321ec-0aac-4ce3-84a4-a75b75d2c1e1","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Users","item":[{"name":"Add a new user","id":"55956a35-fe95-48b6-ad26-37f370a12ec4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"employee\": {\n            \"first_name\": \"STRING\", // Required\n            \"last_name\": \"STRING\", // Optional\n            \"email\": \"EMAIL\", // Required - Valid Email Address\n            \"role\": \"STRING\", // Optional (default: 'employee') Available options: (admin, employee)\n            \"send_invite\": \"BOOLEAN\" // Optional, default: false , it will send an invite to user with an onboarding link\n        }\n    }","options":{"raw":{"language":"json"}}},"url":"POST https://api.right-hand.ai/public/companies/:company_id/employees","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employees"],"host":["POST https://api.right-hand.ai"],"query":[],"variable":[{"id":"521a039b-5698-4b2e-8fa6-88922275630a","description":{"content":"<p>ID of company where you want to add a new user</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"}]}},"response":[{"id":"4114069c-8844-4f2a-afae-2f0c6f4695f5","name":"Add a new user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"employee\": {\n            \"first_name\": \"STRING\", // Required\n            \"last_name\": \"STRING\", // Optional\n            \"email\": \"EMAIL\", // Required - Valid Email Address\n            \"role\": \"STRING\", // Optional (default: 'employee') Available options: (admin, employee)\n            \"send_invite\": \"BOOLEAN\" // Optional, default: false , it will send an invite to user with an onboarding link\n        }\n    }","options":{"raw":{"language":"json"}}},"url":{"raw":"POST https://api.right-hand.ai/public/companies/:company_id/employees","host":["POST https://api.right-hand.ai"],"path":["public","companies",":company_id","employees"],"variable":[{"key":"company_id","value":"","description":"ID of company where you want to add a new user"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"employee\": {\n                \"id\": 1,\n                \"first_name\": \"Demo\",\n                \"last_name\": \"User\",\n                \"email\": \"demo@domain.com\",\n                \"role\": \"employee\"\n            }\n        }\n    }"}],"_postman_id":"55956a35-fe95-48b6-ad26-37f370a12ec4"},{"name":"Send onboarding instructions to an existing employee","id":"e73537ee-54fa-42ac-93e0-f83ad44a13fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/employees/:user_id/invitations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","employees",":user_id","invitations"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"id":"04114b0d-e02a-4921-bb59-5e4f4703effc","description":{"content":"<p>ID of user you want to onboard</p>\n","type":"text/plain"},"type":"any","value":"","key":"user_id"}]}},"response":[{"id":"6f0852f3-f3b1-4920-b025-eab9cd5c6190","name":"Send onboarding instructions to an existing employee","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/employees/:user_id/invitations","host":["https://api.right-hand.ai"],"path":["public","employees",":user_id","invitations"],"variable":[{"key":"user_id","value":"","description":"ID of user you want to onboard"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"success\": true\n        }\n    }"}],"_postman_id":"e73537ee-54fa-42ac-93e0-f83ad44a13fc"},{"name":"Import a CSV file","id":"7ed61ab2-8aae-4bd0-bb15-33f8ef8b3cc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":"https://api.right-hand.ai/public/companies/:id/imported_files","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":id","imported_files"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"id":"b2556d75-a594-44b4-9881-54471dc93fbf","description":{"content":"<p>ID of account where you want to import users</p>\n","type":"text/plain"},"type":"any","value":null,"key":"id"}]}},"response":[{"id":"c15e134a-81d1-4313-b653-61878027dc0c","name":"Import a CSV file","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":{"raw":"https://api.right-hand.ai/public/companies/:id/imported_files","host":["https://api.right-hand.ai"],"path":["public","companies",":id","imported_files"],"variable":[{"key":"id","value":null,"description":"ID of account where you want to import users"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"7ed61ab2-8aae-4bd0-bb15-33f8ef8b3cc4"},{"name":"Update an Existing User","id":"ca193723-0e11-4cca-a358-4bd217796136","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"employee\": {\n        \"attribute_name\": \"attribute_value\"\n    }\n}   \n"},"url":"https://api.right-hand.ai/public/companies/:company_id/employees/:user_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employees",":user_id"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"id":"37f52ce8-a255-4e77-806b-3d3e2b4fc626","description":{"content":"<p>Id of company where.you want to update user </p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"id":"4cdfcbb1-7df9-43ad-b2cb-8d81c60a0ae8","description":{"content":"<p>Id of user you want to update</p>\n","type":"text/plain"},"type":"any","value":"","key":"user_id"}]}},"response":[{"id":"e19dc3d5-3a19-4ed8-9ab4-c6b5b334a1cf","name":"Update an Existing User","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"employee\": {\n        \"attribute_name\": \"attribute_value\"\n    }\n}   \n"},"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/employees/:user_id","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","employees",":user_id"],"variable":[{"key":"company_id","value":""},{"key":"user_id","value":""}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"employee\": {\n            \"id\": integer,\n            \"first_name\": string,\n            \"last_name\": string,\n            \"email\": string,\n            \"role\": string,\n            \"risk_score\": x\n        }\n    }\n}"}],"_postman_id":"ca193723-0e11-4cca-a358-4bd217796136"},{"name":"Archive User(s)","id":"5ea87daa-6772-4757-939c-0f4c9283d7a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": []\n} "},"url":"https://api.right-hand.ai/public/companies/:company_id/send_multiple_archives","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","send_multiple_archives"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"id":"6526f3bb-5245-4f1c-88ca-d628c742a7c5","description":{"content":"<p>ID of account where you want to archive users.</p>\n","type":"text/plain"},"type":"any","value":null,"key":"company_id"}]}},"response":[{"id":"3112095e-17ee-4775-89d8-a97727c94ff1","name":"Archive User(s)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": []\n} "},"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/send_multiple_archives","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","send_multiple_archives"],"variable":[{"key":"company_id","value":"","description":"ID of company where you want to archive users."}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}\n"}],"_postman_id":"5ea87daa-6772-4757-939c-0f4c9283d7a0"},{"name":"Delete Existing User(s)","id":"64cee57f-9087-4f58-a134-7a74b11c183e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": [] // array of user ids\n} "},"url":"https://api.right-hand.ai/public/companies/:company_id/send_multiple_deletes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","send_multiple_deletes"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"id":"468b8951-32e4-4b6f-821f-bcfaba3b706f","description":{"content":"<p>ID of company where you want to delete users.</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"}]}},"response":[{"id":"dbc73fbd-a9d0-4133-b2d8-43187545556d","name":"Delete Existing User(s)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": [] // array of user ids\n} "},"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/send_multiple_deletes","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","send_multiple_deletes"],"variable":[{"key":"company_id","value":"","description":"ID of company where you want to delete users."}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"64cee57f-9087-4f58-a134-7a74b11c183e"},{"name":"List of employees in a company","id":"c38a36a5-c04e-40bd-ae8a-b75cb7ba10c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/companies/:company_id/employees?page=1&size_per_page=10&sort_field=first_name&sort_order=asc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employees"],"host":["https://api.right-hand.ai"],"query":[{"description":{"content":"<p>Page No</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of records per page</p>\n","type":"text/plain"},"key":"size_per_page","value":"10"},{"description":{"content":"<p>Default is first_name, available options (first_name, last_name, risk_score)</p>\n","type":"text/plain"},"key":"sort_field","value":"first_name"},{"description":{"content":"<p>Default is asc, available options (asc, desc)</p>\n","type":"text/plain"},"key":"sort_order","value":"asc"}],"variable":[{"id":"49581929-40a1-4023-bb98-82c74f2693f7","description":{"content":"<p>ID of company </p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"}]}},"response":[{"id":"6704e266-1e8f-4977-a3d7-4251aeaf0a58","name":"List of employees in a company","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/employees?page=1&size_per_page=10&sort_field=first_name&sort_order=asc","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","employees"],"query":[{"key":"page","value":"1","description":"Page No"},{"key":"size_per_page","value":"10","description":"Number of records per page"},{"key":"sort_field","value":"first_name","description":"Default is first_name, available options (first_name, last_name, risk_score)"},{"key":"sort_order","value":"asc","description":"Default is asc, available options (asc, desc)"}],"variable":[{"key":"company_id","value":"","description":"ID of company "}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"employees\": [\n            {\n                \"id\": 1,\n                \"first_name\": \"Demo\",\n                \"last_name\": \"User\",\n                \"name\": \"Demo User\"\",\n                \"email\": \"demo@domain.com\",\n                \"last_sign_in_at\": \"2022-07-27 09:06 PM\",\n                \"department_title\": \"IT\",\n                \"role_names\": \"employee\",\n                \"risk_score\": 100,\n                \"title_text\": \"Demo\",\n                \"location_name\": \"Demo\",\n                \"report_to\": \"Demo Manager\",\n                \"is_admin\": false,\n                \"is_archive\": false,\n                \"invitation_accepted\": true,\n                \"action_id\": 1\n            }\n        ],\n        \"total_count\": 10,\n        \"active_count\": 9,\n        \"archived_count\": 1\n    }\n}\n"}],"_postman_id":"c38a36a5-c04e-40bd-ae8a-b75cb7ba10c2"},{"name":"Training Statistics","id":"aaca73e1-d90b-4cee-bc7a-707d58573ab5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/companies/:company_id/employee_training_stats?size_per_page=10&page=1&user_id=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employee_training_stats"],"host":["https://api.right-hand.ai"],"query":[{"key":"size_per_page","value":"10"},{"key":"page","value":"1"},{"description":{"content":"<p>ID of user </p>\n","type":"text/plain"},"key":"user_id","value":""}],"variable":[{"id":"819ecaa4-7891-415e-942a-9c5db1e70ac8","description":{"content":"<p>ID of company where you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"}]}},"response":[{"id":"a1ecac48-9d4f-453a-bc78-88228b78b0f3","name":"Training Statistics","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.right-hand.ai/public/companies/:company_id/employee_training_stats?size_per_page=10&page=1&user_id=","host":["https://api.right-hand.ai"],"path":["public","companies",":company_id","employee_training_stats"],"query":[{"key":"size_per_page","value":"10"},{"key":"page","value":"1"},{"key":"user_id","value":"","description":"ID of user "}],"variable":[{"key":"company_id","value":"","description":"ID of company where you want to query"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"user_trainings\": [\n            {\n                \"id\": 1,\n                \"name\": \"Training 1\",\n                \"category_name\": \"Category 1\",\n                \"competition_title\": \"September 2022\",\n                \"completed\": true,\n                \"passed\": true\n            }\n        ],\n        \"number_stats\": {\n            \"0\": 100.0,\n            \"1\": 0.0,\n            \"2\": 0.0,\n            \"3\": 0.0,\n            \"incomplete_stats\": 0.0\n        },\n        \"completion_stats\": {\n            \"daily_count\": 1,\n            \"daily_percentage\": 100.0,\n            \"weekly_count\": 1,\n            \"weekly_percentage\": 100.0,\n            \"monthly_count\": 1,\n            \"monthly_percentage\": 100.0\n        },\n        \"total\": 2,\n        \"completed\": 2,\n        \"incomplete\": 0,\n        \"passed\": 2,\n        \"failed\": 0\n    }\n}"}],"_postman_id":"aaca73e1-d90b-4cee-bc7a-707d58573ab5"}],"id":"24ace362-8d1e-434d-b351-02ed17d925da","_postman_id":"24ace362-8d1e-434d-b351-02ed17d925da","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Reports","item":[{"name":"Phishing","item":[{"name":"Repeat Offender","id":"75682b77-db4b-4a40-91d7-350a449c5254","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"","type":"text"}],"url":"https://api.right-hand.ai/public/reports/export.json?report_type=repeat_offenders&page=1&size_per_page=10&sort_field=engagement_count&sort_order=desc&type=json&event_type=itself&search=&engagement_count=&interval=one_month","urlObject":{"path":["public","reports","export.json"],"host":["https://api.right-hand.ai"],"query":[{"key":"report_type","value":"repeat_offenders"},{"key":"page","value":"1"},{"key":"size_per_page","value":"10"},{"key":"sort_field","value":"engagement_count"},{"key":"sort_order","value":"desc"},{"key":"type","value":"json"},{"description":{"content":"<p>available options itself, link_clicked, form_filled, email_replied, attachment_opened</p>\n","type":"text/plain"},"key":"event_type","value":"itself"},{"disabled":true,"description":{"content":"<p>YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00</p>\n","type":"text/plain"},"key":"start_date","value":"2023-09-01T00%3A00%3A00%2B08%3A00"},{"disabled":true,"description":{"content":"<p>YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00</p>\n","type":"text/plain"},"key":"end_date","value":"2023-10-01T00%3A00%3A00%2B08%3A00"},{"key":"search","value":""},{"key":"engagement_count","value":""},{"description":{"content":"<p>available options one_week, one_month, six_months, one_year , custom</p>\n","type":"text/plain"},"key":"interval","value":"one_month"}],"variable":[]}},"response":[{"id":"ddeb0393-68d6-4c2a-bb90-d52cf933b72d","name":"Repeat Offender","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"","type":"text"}],"url":{"raw":"{{URL_STG}}/public/reports/export.json?report_type=repeat_offenders&page=1&size_per_page=10&sort_field=engagement_count&sort_order=desc&type=json&event_type=itself&search=&engagement_count=&interval=one_month","host":["{{URL_STG}}"],"path":["public","reports","export.json"],"query":[{"key":"report_type","value":"repeat_offenders"},{"key":"page","value":"1"},{"key":"size_per_page","value":"10"},{"key":"sort_field","value":"engagement_count"},{"key":"sort_order","value":"desc"},{"key":"type","value":"json"},{"key":"event_type","value":"itself","description":"available options itself, link_clicked, form_filled, email_replied, attachment_opened"},{"key":"start_date","value":"2023-09-01T00%3A00%3A00%2B08%3A00","description":"YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00","disabled":true},{"key":"end_date","value":"2023-10-01T00%3A00%3A00%2B08%3A00","description":"YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00","disabled":true},{"key":"search","value":""},{"key":"engagement_count","value":""},{"key":"interval","value":"one_month","description":"available options one_week, one_month, six_months, one_year , custom"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Oct 2023 11:21:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"afc6a513f92115c92e09f3ab5908543f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Set-Cookie","value":"_righthand_session=qQi3e15BgRw2xa2JXV3s9%2BrRM%2F%2BG7bpJNxCVf%2BAuPm4MGXX6XmZ%2F82hDrN%2BuC8ZvlzWNs3AXduDQ05bqQbrFGRIdg57T97oRi6rUDnNIbEo%2FtgjwJjKqSXmmWhmdGEwaacLvofKoCEJPvaJpso8kTeSOXgTeZSZRK3r2Ly5MwnXBJIasBIaF%2BqibtKYrh18ow%2BEgtu%2FOqo3iGPemEFfXghZe1u8eibUkCoxU9WxeYJL64oV%2FSprO9C1%2Bh%2F9dSSAQTuwLuw4Egtt3IGk9oWDM--GF1KK3NRWCL63Z26--0hdh6NDvZ%2FZyxTszWylQLg%3D%3D; path=/; HttpOnly"},{"key":"X-Request-Id","value":"c5ac9723-06d8-44f3-8dca-1e4b0a140885"},{"key":"X-Runtime","value":"0.053798"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": INTEGER,\n            \"name\": \"STRING\",\n            \"manager\": \"STRING\",\n            \"email\": \"demo@yourcompany.com\",\n            \"engagement_count\": INTEGER\n        }\n    ],\n    \"total_count\": 1,\n    \"engagement_graph\": [\n        {\n            \"month\": \"Oct, 2023\",\n            \"count\": 1\n        }\n    ]\n}"}],"_postman_id":"75682b77-db4b-4a40-91d7-350a449c5254"},{"name":"Behavior Analysis","id":"f12b4eca-0756-44c2-a820-f032ecd9594e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/reports/export.json?size_per_page=10&type=json&sort_field=risk_score&sort_order=desc&format=json&report_type=email_templates","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","reports","export.json"],"host":["https://api.right-hand.ai"],"query":[{"key":"size_per_page","value":"10"},{"key":"type","value":"json"},{"key":"sort_field","value":"risk_score"},{"key":"sort_order","value":"desc"},{"key":"format","value":"json"},{"description":{"content":"<p>available option email_templates, attacker_profiles</p>\n","type":"text/plain"},"key":"report_type","value":"email_templates"}],"variable":[]}},"response":[{"id":"9bccfd71-f351-484f-8e53-87567f96fdc9","name":"Behavior Analysis","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text","disabled":true}],"url":{"raw":"https://api.right-hand.ai/public/reports/export.json?size_per_page=10&type=json&sort_field=risk_score&sort_order=desc&format=json&report_type=email_templates","host":["https://api.right-hand.ai"],"path":["public","reports","export.json"],"query":[{"key":"size_per_page","value":"10"},{"key":"type","value":"json"},{"key":"sort_field","value":"risk_score"},{"key":"sort_order","value":"desc"},{"key":"format","value":"json"},{"key":"report_type","value":"email_templates","description":"available option email_templates, attacker_profiles"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Oct 2023 08:57:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"b3c599b8c7486f2d7e77ee27df986a47\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Set-Cookie","value":"_righthand_session=WpNJJ%2FJTMxtJEBuf3svoZ7BHm3ponn%2F3R%2FaTPwsxLTwNB7p%2BYyVu82bTd1yoKbckBE8xLCUSeYY6XUVxCRhYtCTEUvcxq1l29wBCPyuXkkHD%2FngMz3PqcRg8fcjjaSe7ELMAflbB1B2pfBdKtHfCjNhHkI6fzHtnhTmPIeiuug7pV8zraGs46ljDi0Yuumg2uidbcQ%2Fb2JJDFPRoS23cu1a2ZlhCM1LUhWBnXH4PiXIkVVWjnbfx6n7Z2q1BWhZo32%2BLOSvnX1FbruWVhlMk--sL3Janpa1IziUe9k--r9arnqmgiQkBg3lyYDbEmQ%3D%3D; path=/; HttpOnly"},{"key":"X-Request-Id","value":"1d9e07b1-0405-4d23-898e-1e27b5b6b055"},{"key":"X-Runtime","value":"0.056469"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": INTEGER,\n            \"risk_score\": 0,\n            \"name\": \"STRING\",\n            \"subject\": \"STRING\",\n            \"content\": \"STRING\",\n            \"link_clicked\": 0,\n            \"form_filled\": 0,\n            \"email_replied\": 0,\n            \"attachment_opened\": 0,\n            \"email_reported\": 0\n        }\n    ],\n    \"total_count\": INTEGER\n}"}],"_postman_id":"f12b4eca-0756-44c2-a820-f032ecd9594e"}],"id":"dc6c4105-0dfe-439e-a7f3-e50cda4eb228","_postman_id":"dc6c4105-0dfe-439e-a7f3-e50cda4eb228","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Training","item":[{"name":"Training Stats","id":"781b78da-b67e-436a-b7a1-1ea0f6c8d7d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.right-hand.ai/public/reports/export.json?report_type=targeted_trainings&page=1&size_per_page=10&sort_field=completed_count&sort_order=desc&type=json&interval=custom&event_type=failed&training_count=&start_date=2023-10-01T00%3A00%3A00%2B08%3A00&end_date=2023-11-01T00%3A00%3A00%2B08%3A00&search ","urlObject":{"path":["public","reports","export.json"],"host":["https://api.right-hand.ai"],"query":[{"key":"report_type","value":"targeted_trainings"},{"key":"page","value":"1"},{"key":"size_per_page","value":"10"},{"key":"sort_field","value":"completed_count"},{"key":"sort_order","value":"desc"},{"key":"type","value":"json"},{"key":"interval","value":"custom"},{"description":{"content":"<p>available options itself, completed, incompleted, passed, failed</p>\n","type":"text/plain"},"key":"event_type","value":"failed"},{"key":"training_count","value":""},{"description":{"content":"<p>YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00</p>\n","type":"text/plain"},"key":"start_date","value":"2023-10-01T00%3A00%3A00%2B08%3A00"},{"description":{"content":"<p>YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00</p>\n","type":"text/plain"},"key":"end_date","value":"2023-11-01T00%3A00%3A00%2B08%3A00"},{"key":"search ","value":""}],"variable":[]}},"response":[{"id":"b9b9f7d3-d7ee-47db-92c2-b0f5f8fa4f3e","name":"Training Stats","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.right-hand.ai/public/reports/export.json?report_type=targeted_trainings&page=1&size_per_page=10&sort_field=completed_count&sort_order=desc&type=json&interval=custom&event_type=failed&training_count=&start_date=2023-10-01T00%3A00%3A00%2B08%3A00&end_date=2023-11-01T00%3A00%3A00%2B08%3A00&search ","host":["https://api.right-hand.ai"],"path":["public","reports","export.json"],"query":[{"key":"report_type","value":"targeted_trainings"},{"key":"page","value":"1"},{"key":"size_per_page","value":"10"},{"key":"sort_field","value":"completed_count"},{"key":"sort_order","value":"desc"},{"key":"type","value":"json"},{"key":"interval","value":"custom"},{"key":"event_type","value":"failed","description":"available options itself, completed, incompleted, passed, failed"},{"key":"training_count","value":""},{"key":"start_date","value":"2023-10-01T00%3A00%3A00%2B08%3A00","description":"YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00"},{"key":"end_date","value":"2023-11-01T00%3A00%3A00%2B08%3A00","description":"YYYY-MM-DD T00:00:00+08:00 / YYYY-MM-DD T00%3A00%3A00%2B08%3A00"},{"key":"search ","value":null}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 19 Oct 2023 11:26:22 GMT"},{"key":"Server","value":"nginx"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"e1357a82-5b63-4e3d-85fa-bd1c830b4a06"},{"key":"X-Runtime","value":"0.007902"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Origin"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 bdcb0966d6e5d28eb31a406298268896.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"YPMTq5zjJ2sjNIFM8qphRD96IUngcBCcJnKI8MoElhmethTk0PB7nA=="},{"key":"Strict-Transport-Security","value":"max-age=31536000"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": INTEGER,\n            \"name\": \"STRING\",\n            \"email\": \"demo@yourcompany.com\",\n            \"manager\": \"STRING\",\n            \"completed_count\": INTEGER,\n            \"time_spent\": 30\n        }\n    ],\n    \"total_count\": 1,\n    \"total_assigned\": 4,\n    \"engagement_graph\": [\n        {\n            \"month\": \"Aug, 2023\",\n            \"count\": 7\n        }\n    ]\n}"}],"_postman_id":"781b78da-b67e-436a-b7a1-1ea0f6c8d7d6"}],"id":"b91c7fbe-92e4-4c83-8a60-027707bc1eb5","_postman_id":"b91c7fbe-92e4-4c83-8a60-027707bc1eb5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}},{"name":"Users","item":[{"name":"Phishing Email Templates / Sender Profiles","id":"fac77fea-c20d-4c74-8b84-7a62c3bf4b61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/reports/export.json?employee_id=:user_id&report_type=employee_email_templates&type=json","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}},"urlObject":{"path":["public","reports","export.json"],"host":["https://api.right-hand.ai"],"query":[{"description":{"content":"<p>user id of the employee</p>\n","type":"text/plain"},"key":"employee_id","value":":user_id"},{"description":{"content":"<p>available options are employee_email_templates, employee_sender_profile</p>\n","type":"text/plain"},"key":"report_type","value":"employee_email_templates"},{"key":"type","value":"json"}],"variable":[]}},"response":[{"id":"52e24d86-898c-4bb7-91c2-5a71ad7eb480","name":"Phishing Email Templates / Sender Profiles","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text","disabled":true}],"url":{"raw":"https://api.right-hand.ai/public/reports/export.json?employee_id=:user_id&report_type=employee_email_templates&type=json","host":["https://api.right-hand.ai"],"path":["public","reports","export.json"],"query":[{"key":"employee_id","value":":user_id","description":"user id of the employee"},{"key":"report_type","value":"employee_email_templates","description":"available options are employee_email_templates, employee_sender_profile"},{"key":"type","value":"json"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 19 Oct 2023 11:36:18 GMT"},{"key":"Server","value":"nginx"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"caab2960-3d98-44ef-9158-1fa5343ca516"},{"key":"X-Runtime","value":"0.009840"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Origin"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 475d669d6a669094dfa09def007f90d6.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"anjvjtuFNAhgESdAkMEf9lwP_Mx5Tn0ydj6xGlWCyzOyPFRvSS_9uA=="},{"key":"Strict-Transport-Security","value":"max-age=31536000"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": INTEGER,\n            \"name\": \"demo@yourcompany.com\",\n            \"link_clicked\": INTEGER,\n            \"form_filled\": INTEGER,\n            \"email_replied\": INTEGER,\n            \"email_reported\": INTEGER,\n            \"attachment_opened\": INTEGER\n        }\n    ],\n    \"total_count\": INTEGER\n}"}],"_postman_id":"fac77fea-c20d-4c74-8b84-7a62c3bf4b61"}],"id":"f6ce19cc-46d5-43c1-9b5a-da6ea4f6150e","_postman_id":"f6ce19cc-46d5-43c1-9b5a-da6ea4f6150e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}}],"id":"d920be3a-d819-41c6-bd00-bb91499de63f","event":[{"listen":"prerequest","script":{"id":"26330366-f313-416e-a538-ca514e09423c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cff5a849-4ccb-487b-8454-3f1209a24615","type":"text/javascript","exec":[""]}}],"_postman_id":"d920be3a-d819-41c6-bd00-bb91499de63f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","id":"288804ee-a4aa-440a-bfc8-4ad9291a6f63","name":"Right-Hand Public API Documentation","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"d3c59c01-7685-492c-8ba0-0c34ec60396e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5afc3fdb-abbd-430f-8afd-1a51210e64ab","type":"text/javascript","exec":[""]}}],"variable":[{"id":"ea547446-5cce-45a1-b772-707a2c05e349","key":"TOKEN","value":"","type":"string"},{"id":"f3280a5c-be42-4823-b653-6d13e790f73c","key":"URL","value":"https://api.right-hand.ai","type":"string"},{"id":"20218e54-e351-4a6d-b0ec-2043961e5e56","key":"company_id","value":"","type":"string"},{"id":"d7e887d7-45d3-4926-be40-8496c89744e2","key":"user_id","value":"","type":"string"},{"id":"e736ea15-b8f5-45ee-a70c-e1f5563fda49","key":"mssp_token","value":"","type":"string"},{"id":"b801afc1-ebdc-40ff-b6c3-35ef3b5adf8a","key":"mssp_admin_email","value":"","type":"string"},{"id":"8f5f8608-0ded-48f5-816e-a004a1705842","key":"campaign_id","value":"","type":"string"}]}