{"info":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","description":"<html><head></head><body><h3 id=\"getting-started\">Getting Started</h3>\n<p>This API will help you to create an authentication token to access the data of your accounts. Please ask the Right-hand support team for your MSSP token.</p>\n<p>Step 1: Click on Run on Postman in the top right corner.</p>\n<p>Step 2: If you are an MSSP partner, get your partner token from Right-Hand support team.</p>\n<h2 id=\"error-codes\">Error Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Code</strong></th>\n<th><strong>Error Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid request</td>\n</tr>\n<tr>\n<td>401</td>\n<td>User not Authorized</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Record Not Found</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Validation Error</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23162104","collectionId":"4a7bbba6-4970-4fd2-b867-4728abded2d9","publishedId":"VUxXJ2o2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"000000","highlight":"000000"},"publishDate":"2022-09-05T15:24:14.000Z"},"item":[{"name":"Authentication","item":[{"name":"Generate Access Token","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"}}],"id":"002dd246-d9c0-4430-9c02-e833044a622d","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\": \"{{RESELLER_TOKEN}}\", // string - Required           \n    \"email\": \"{{RESELLER_ADMIN}}\" // string - required    \n}"},"url":"https://api.right-hand.ai/public/authentications","description":"<h1 id=\"generate-access-token\">Generate Access Token</h1>\n<h2 id=\"overview\">Overview</h2>\n<p>This endpoint generates an access token (bearer token) for authenticating <strong>subsequent API requests</strong>. It exchanges a tenant token and email credentials for a user-specific authentication token that can be used to access protected resources.</p>\n<p>This email is typically a service account created in your account by your success or support team. It would typically be an admin in your org or something generic: <a href=\"mailto:api_rh_service_account@mydomain.com\">api_rh_service_account@mydomain.com</a></p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This is typically the first endpoint you'll call in your API workflow to obtain the necessary credentials for other operations.</p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<h3 id=\"body-parameters-json\">Body Parameters (JSON)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>tenant_token</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The tenant token provided to you by the support team. This token identifies your organization/tenant and authorizes token generation.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The service account email for which access is enabled. This could be a normal admin email depending on your setup with the support team. Typically follows the format: <code>api_rh_service_account@mydomain.com</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-request-body\">Example Request Body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"tenant_token\": \"your_tenant_token_here\",\n    \"email\": \"api_rh_service_account@mydomain.com\"\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<h3 id=\"success-response\">Success Response</h3>\n<p>The endpoint returns a JSON response containing the user token in the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"details\": {\n        \"user_token\": \"generated_user_token_here\"\n    }\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>details.user_token</code></td>\n<td>string</td>\n<td>The generated user token that should be used for authenticating subsequent API requests</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"best-practices\">Best Practices</h2>\n<ul>\n<li><p><strong>Call this endpoint first</strong> in your API workflow to obtain authentication credentials</p>\n</li>\n<li><p><strong>Cache the token</strong> - Don't generate a new token for every request; reuse the token until it expires</p>\n</li>\n<li><p><strong>Secure storage</strong> - Store both tenant tokens and user tokens securely using environment variables</p>\n</li>\n<li><p><strong>Error handling</strong> - Implement proper error handling for authentication failures</p>\n</li>\n<li><p><strong>Token refresh</strong> - If you receive authentication errors in subsequent requests, regenerate the token using this endpoint</p>\n</li>\n</ul>\n<h2 id=\"common-use-cases\">Common Use Cases</h2>\n<ul>\n<li><p>Initial authentication setup for API integration</p>\n</li>\n<li><p>Service account authentication for automated workflows</p>\n</li>\n<li><p>Token refresh when existing tokens expire</p>\n</li>\n<li><p>Multi-tenant application authentication</p>\n</li>\n</ul>\n","urlObject":{"path":["public","authentications"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"e32852d9-34ab-4734-b5e0-ed9d98f98fac","name":"Generate Tenant Token","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":null,"header":null,"cookie":[],"responseTime":null,"body":"{      \n      \"code\": 200,      \n      \"message\": \"OK\",      \n       \"details\": {         \n         \"user_token\": \"TENANT_TOKEN\"      \n       }   \n    }"}],"_postman_id":"002dd246-d9c0-4430-9c02-e833044a622d"},{"name":"Delete MSSP Access Token","event":[{"listen":"test","script":{"id":"35d60282-5c6e-43af-8619-8fc2c38984cd","exec":["postman.setEnvironmentVariable(\"USER_TOKEN\", '');"],"type":"text/javascript"}}],"id":"ca8a28fc-e5a0-4e6a-b0b9-96f64e2801fb","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","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","authentications","logout"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"baba8959-0487-4113-8824-7829f6648d40","name":"Delete MSSP Access Token","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":null,"header":null,"cookie":[],"responseTime":null,"body":"{      \n    \"code\": 200,      \n    \"message\": \"OK\",      \n    \"details\": {         \n        \"user_token\": nil\n    }   \n}"}],"_postman_id":"ca8a28fc-e5a0-4e6a-b0b9-96f64e2801fb"}],"id":"d7fc72cf-a68b-4a66-b696-03193f630e3a","_postman_id":"d7fc72cf-a68b-4a66-b696-03193f630e3a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":"648d1e13-98cd-4298-8057-aeb62db1386b","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","timezones"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"3d9578a9-5e15-446c-b0ad-73f3fe1c7e0e","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":null,"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":"648d1e13-98cd-4298-8057-aeb62db1386b"}],"id":"606d435a-6ca0-4fa1-aea8-3ba4b9f3c177","_postman_id":"606d435a-6ca0-4fa1-aea8-3ba4b9f3c177","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":"11e53266-b29b-4346-aa2b-239619d2b233","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","industries"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"f53364b8-5b44-47da-b110-2281c26bf4bb","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"},"code":200,"_postman_previewlanguage":null,"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":"11e53266-b29b-4346-aa2b-239619d2b233"}],"id":"a6f86c5c-e81d-480e-bc73-77a2a51ac549","_postman_id":"a6f86c5c-e81d-480e-bc73-77a2a51ac549","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":"ab507d2f-8cb0-4a7c-bc83-0b6168662dc6","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","customers"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"39f87ec6-6e88-44e0-9973-7ceec116c964","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"},"code":200,"_postman_previewlanguage":null,"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":"ab507d2f-8cb0-4a7c-bc83-0b6168662dc6"},{"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":"649bb5d7-1338-484f-bcdd-38ff6f6e4f19","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","customers"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"dde7d2e3-6c4a-46c8-a340-770a76d9fb8c","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"},"code":200,"_postman_previewlanguage":null,"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":"649bb5d7-1338-484f-bcdd-38ff6f6e4f19"},{"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":"c2a8df3e-dc87-4cf4-ae16-5a4b7c2fe2ff","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies","","risk_timelines"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"99a24ccc-4fd6-4b1a-a213-aa027de7ccb9","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 "}]}},"code":200,"_postman_previewlanguage":null,"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":"c2a8df3e-dc87-4cf4-ae16-5a4b7c2fe2ff"},{"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":"341381bc-cebd-4bfc-88eb-55c9a21c6150","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","customers",""],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"cd997103-3af5-4dfb-969a-560231fd3461","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"}]}},"code":200,"_postman_previewlanguage":null,"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":"341381bc-cebd-4bfc-88eb-55c9a21c6150"},{"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":"fb751cd3-7139-4766-9f11-1bf4448f952c","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","customers","","company_preferences"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"2f180dc9-e727-4815-a15f-8a37fc780a65","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"}]}},"code":200,"_postman_previewlanguage":null,"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":"fb751cd3-7139-4766-9f11-1bf4448f952c"},{"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":"b15e9f94-9423-4247-9ebe-398f6ae0c908","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","customers","","company_preferences"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"14559a01-4371-48f2-8b14-7570af66ed25","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"}]}},"code":200,"_postman_previewlanguage":null,"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":"b15e9f94-9423-4247-9ebe-398f6ae0c908"},{"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":"8a75ccf4-884c-4dcb-b657-0432f2257d25","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","customers",""],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"0b986caf-9e01-4daf-b30e-521b88aba99a","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"}]}},"code":200,"_postman_previewlanguage":null,"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":"8a75ccf4-884c-4dcb-b657-0432f2257d25"}],"id":"591f9f19-1b64-4831-b42c-ce324adaa663","_postman_id":"591f9f19-1b64-4831-b42c-ce324adaa663","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"name":"Campaigns","item":[{"name":"v2","item":[{"name":"Get Campaign Statistics","id":"804435cf-4d86-444f-a0a5-b2231350b944","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/v2/companies/:company_id/competitions/:campaign_id/competition_training_stats","description":"<h1 id=\"get-campaign-statistics\">Get Campaign Statistics</h1>\n<p>Retrieves comprehensive training statistics for a specific competition campaign within a company. This endpoint provides insights into campaign performance, participant engagement, and training metrics.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This endpoint requires authentication using a Bearer token. The token should be provided via the <code>TOKEN</code> variable in your environment or collection variables.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Bearer \n\n</code></pre><h2 id=\"path-parameters\">Path Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The unique identifier of the company. Use the <code></code> variable to reference this value.</td>\n</tr>\n<tr>\n<td><code>campaign_id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The unique identifier of the competition campaign. Use the <code></code> variable to reference this value.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"request-details\">Request Details</h2>\n<ul>\n<li><p><strong>Method:</strong> GET</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/v2/companies/:company_id/competitions/:campaign_id/competition_training_stats</code></p>\n</li>\n<li><p><strong>Content-Type:</strong> application/json</p>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>The endpoint returns detailed training statistics for the specified campaign, including metrics such as:</p>\n<ul>\n<li><p>Participant engagement data</p>\n</li>\n<li><p>Training completion rates</p>\n</li>\n<li><p>Performance metrics</p>\n</li>\n<li><p>Campaign progress indicators</p>\n</li>\n</ul>\n<p>Refer to the saved example \"Get Campaign Statistics\" for a complete response structure.</p>\n<h2 id=\"example-usage\">Example Usage</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://api.right-hand.ai/public/v2/companies//competitions//competition_training_stats\nAuthorization: Bearer \nContent-Type: application/json\n\n</code></pre><h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Ensure that both <code>company_id</code> and <code>campaign_id</code> are valid and that the authenticated user has permission to access the specified campaign data.</p>\n</li>\n<li><p>The <code>URL</code> variable should point to the base API endpoint (e.g., production or staging environment).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","v2","companies",":company_id","competitions",":campaign_id","competition_training_stats"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"a58c3bb8-07d7-4339-91b1-84adb2585ae4","name":"Get Campaign Statistics","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/v2/companies/:company_id/competitions/:campaign_id/competition_training_stats","host":["https://api.right-hand.ai"],"path":["public","v2","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":""}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"## Response Variations\n\nThis API returns different response structures based on the campaign type:\n\n### Training Campaigns\n- Returns training-specific metrics\n- Includes completion rates and scores\n\n### Phishing Campaigns  \n- Returns phishing simulation results\n- Includes click rates and user interactions\n\n### Phishing Training Campaigns\n- Combines both training and phishing metrics\n- Includes comprehensive user behavior data\n\n{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"campaign\": {\n            \"id\": campaign_id,\n            \"name\": STRING,\n            \"type\": \"training\" | \"phishing\" | \"phishing_training\",\n            \"status\": \"completed | scheduled | in_progress\",\n            \"campaign_risk\": \"x%\"\n        },\n        \"statistics\": {\n            \"overview\": {\n                \"delivered_emails\": {\n                    \"count\": INTEGER,\n                    \"percentage\": \"x%\"\n                }\n            },\n            \"training_metrics\": {\n                \"training_delivered\": {\n                    \"count\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"training_attempted\": {\n                    \"count\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"training_pending\": {\n                    \"count\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"training_passed\": {\n                    \"count\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"training_failed\": {\n                    \"count\": INTEGER,\n                    \"percentage\": \"x%\"\n                }\n            },\n            \"phishing_metrics\": {\n                \"opened\": {\n                    \"count\": INTEGER,\n                    \"total\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"clicked\": {\n                    \"count\": INTEGER,\n                    \"total\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"qr_code_scanned\": {\n                    \"count\": INTEGER,\n                    \"total\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"data_submitted\": {\n                    \"count\": INTEGER,\n                    \"total\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"attachment_opened\": {\n                    \"count\": INTEGER,\n                    \"total\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"replied\": {\n                    \"count\": INTEGER,\n                    \"total\": INTEGER,\n                    \"percentage\": \"x%\"\n                },\n                \"reported\": {\n                    \"count\": INTEGER,\n                    \"total\": INTEGER,\n                    \"percentage\": \"x%\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"804435cf-4d86-444f-a0a5-b2231350b944"}],"id":"d7e847e8-631b-42f5-b8bd-4802a49ec153","_postman_id":"d7e847e8-631b-42f5-b8bd-4802a49ec153","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"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":"218e38e4-d207-4647-945b-7b61482cdf14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/companies//competitions","description":"<h1 id=\"get-list-of-campaigns\">Get List of Campaigns</h1>\n<h2 id=\"overview\">Overview</h2>\n<p>This endpoint retrieves a list of campaigns (competitions) associated with a specific company. It returns campaign data that can be used to view and manage active competitions within the company's account.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://api.right-hand.ai/public/companies//competitions\n\n</code></pre><h2 id=\"required-variables\">Required Variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>URL</code></td>\n<td>Base API URL for the service</td>\n<td><code>https://api.example.com</code></td>\n</tr>\n<tr>\n<td><code>company_id</code></td>\n<td>Unique identifier for the company</td>\n<td><code>12345</code></td>\n</tr>\n<tr>\n<td><code>TOKEN</code></td>\n<td>Authentication token for API access</td>\n<td>Set in Authorization header</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> Ensure these variables are configured in your active environment before sending the request.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This endpoint requires authentication via a Bearer token. The token should be included in the request headers.</p>\n<h2 id=\"request-headers\">Request Headers</h2>\n<ul>\n<li><code>Content-Type: application/json</code></li>\n</ul>\n<h2 id=\"response-format\">Response Format</h2>\n<p>The endpoint returns a JSON response with the following structure:</p>\n<p><strong>Success Response (200 OK):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"details\": {\n    \"list\": [\n      // Array of campaign objects\n    ]\n  }\n}\n\n</code></pre>\n<p>The response contains a <code>details</code> object with a <code>list</code> array containing the campaign/competition data.</p>\n<h2 id=\"usage-notes\">Usage Notes</h2>\n<ul>\n<li><p>The request includes automated tests that verify:</p>\n<ul>\n<li><p>Response status is 200 (OK)</p>\n</li>\n<li><p>Response body contains an array in <code>details.list</code></p>\n</li>\n</ul>\n</li>\n<li><p>Ensure the <code>company_id</code> corresponds to a valid company in the system</p>\n</li>\n<li><p>The endpoint is part of the public API and requires proper authentication</p>\n</li>\n</ul>\n<h2 id=\"example\">Example</h2>\n<p>See the saved example \"Get list of campaigns\" for a sample request and response.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies","","competitions"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"19c24bec-4209-40b6-bc7d-f91053293545","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":null,"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":"218e38e4-d207-4647-945b-7b61482cdf14"},{"name":"Get Campaign Detail","id":"ca321cf0-ef29-4bb8-bc58-ce47f29301e9","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"b7acad1d-60d8-477a-9df1-45d940e550b4","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":null,"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":"ca321cf0-ef29-4bb8-bc58-ce47f29301e9"},{"name":"Generate campaign report in PDF","id":"7b1fe6cb-7faf-42a2-b79e-4f1a29ac7340","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id","export"],"host":["https://api.right-hand.ai"],"query":[{"key":"type","value":"pdf"}],"variable":[{"description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"09be9dfb-ea00-4d1a-9480-90f851b63dc3","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":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"response\": {\n        \"success\": true,\n        \"url\": \"URL_OR_PDF_FILE\"\n    }\n}"}],"_postman_id":"7b1fe6cb-7faf-42a2-b79e-4f1a29ac7340"},{"name":"Get user engagement trends in the campaign","id":"ad745c70-2db2-4849-9b40-caa0a3c6a045","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":[{"description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"ec28e94e-ed73-4700-aac6-92891b314d3b","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":null,"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":"ad745c70-2db2-4849-9b40-caa0a3c6a045"},{"name":"Get Campaign Training Statistics","id":"fd3adf4f-c770-40ea-a471-3476b343af3a","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id","competition_training_stats"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"description":{"content":"<p>ID of campaign you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_id"}]}},"response":[{"id":"00458a38-ec9f-41af-a439-b2b647a59917","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":null,"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":"fd3adf4f-c770-40ea-a471-3476b343af3a"}],"id":"83061845-c762-4887-89e1-d87c8bb66fc7","_postman_id":"83061845-c762-4887-89e1-d87c8bb66fc7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"name":"Users","item":[{"name":"Add a new user","id":"26afe9f6-8656-4154-8065-f628eaa993d0","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employees"],"host":["POST https://api.right-hand.ai"],"query":[],"variable":[{"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":"64c71f55-9272-4470-b68b-eb05f5710bb4","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"}]}},"code":200,"_postman_previewlanguage":null,"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":"26afe9f6-8656-4154-8065-f628eaa993d0"},{"name":"Send onboarding instructions to an existing employee","id":"9717f7bd-1e50-4f59-a56f-bfaf9cf73bce","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","employees",":user_id","invitations"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"description":{"content":"<p>ID of user you want to onboard</p>\n","type":"text/plain"},"type":"any","value":"","key":"user_id"}]}},"response":[{"id":"decbf72d-9eeb-44e5-a3c8-a0645708772d","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"}]}},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"success\": true\n        }\n    }"}],"_postman_id":"9717f7bd-1e50-4f59-a56f-bfaf9cf73bce"},{"name":"Import a CSV file","id":"4354e841-aeed-4726-bf93-9ee0f0e442b6","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":id","imported_files"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"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":"4b92b769-dbcd-4394-a5e0-a1b1ce48adb3","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":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"4354e841-aeed-4726-bf93-9ee0f0e442b6"},{"name":"Update an Existing User","id":"28c43609-ef3b-4407-bc80-c78817757620","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employees",":user_id"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"description":{"content":"<p>Id of company where.you want to update user </p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"},{"description":{"content":"<p>Id of user you want to update</p>\n","type":"text/plain"},"type":"any","value":"","key":"user_id"}]}},"response":[{"id":"ff442b69-9fd6-4dc9-8eec-cf9a81cbf966","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":""}]}},"code":200,"_postman_previewlanguage":null,"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":"28c43609-ef3b-4407-bc80-c78817757620"},{"name":"Archive User(s)","id":"2e24a38f-acb6-407a-8ab9-1be9ab4e02a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","send_multiple_archives"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"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":"5a55793a-b8b0-484b-839f-ee1566fba04d","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":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}\n"}],"_postman_id":"2e24a38f-acb6-407a-8ab9-1be9ab4e02a7"},{"name":"Delete Existing User(s)","id":"5fbb3821-87a5-49fa-98dc-d32f9f0ed956","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","send_multiple_deletes"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"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":"7f45550f-b6d0-4605-8a3c-33477b2dda0c","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":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"5fbb3821-87a5-49fa-98dc-d32f9f0ed956"},{"name":"List of employees in a company","id":"90fd91c6-fe21-467d-8813-732fb31ee17b","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":[{"description":{"content":"<p>ID of company </p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"}]}},"response":[{"id":"1d02b4e3-b131-4e2d-baa7-4f09a7449e45","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":null,"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":"90fd91c6-fe21-467d-8813-732fb31ee17b"},{"name":"Training Statistics","id":"3de3689f-93fb-40ac-837e-9392a6c2ae3f","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=&sort_field=id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":""},{"key":"sort_field","value":"id"}],"variable":[{"description":{"content":"<p>ID of company where you want to query</p>\n","type":"text/plain"},"type":"any","value":"","key":"company_id"}]}},"response":[{"id":"3fd26446-c58d-4055-af27-6faa11e32538","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=&sort_field=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 "},{"key":"sort_field","value":"id","type":"text"}],"variable":[{"key":"company_id","value":"","description":"ID of company where you want to query"}]}},"code":200,"_postman_previewlanguage":null,"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":"3de3689f-93fb-40ac-837e-9392a6c2ae3f"}],"id":"70fa1249-c995-4ef2-87cc-3477cbebebfc","_postman_id":"70fa1249-c995-4ef2-87cc-3477cbebebfc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"name":"Reports","item":[{"name":"Phishing","item":[{"name":"v1","item":[{"name":"Export Phishing Data","id":"5deb85ca-df11-46c1-bdfa-7f66cdd8c7a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"report_type\": \"users\",\n    \"response_type\": \"json\",\n    \"page\": 1,\n    \"size_per_page\": 100,\n    \"start_at\": 946684800,\n    \"end_at\": 1729468800,\n    \"sort_field\": \"user_name\",\n    \"sort_order\": \"asc\",\n    \"columns\": [\n        \"user_id\",\n        \"user_name\",\n        \"email\",\n        \"department\",\n        \"department_name\",\n        \"employee_type\",\n        \"manager_name\",\n        \"office_location\",\n        \"office_location_id\",\n        \"office_location_city\",\n        \"office_location_city_id\",\n        \"office_location_country\",\n        \"office_location_country_id\",\n        \"user_group\",\n        \"user_groups\",\n        \"risk_score\",\n        \"training_title\",\n        \"training_id\",\n        \"training_status\",\n        \"training_assignment_date\",\n        \"training_completion_date\",\n        \"competition_id\",\n        \"campaign_name\",\n        \"campaign_creator_id\",\n        \"campaign_creator_name\",\n        \"campaign_start_date\",\n        \"campaign_end_date\",\n        \"campaign_risk_score\",\n        \"campaign_type\",\n        \"competition_type\",\n        \"email_delivered_at\",\n        \"email_opened\",\n        \"email_opened_at\",\n        \"link_clicked\",\n        \"link_clicked_at\",\n        \"link_clicked_ip\",\n        \"link_clicked_agent\",\n        \"attachment_opened\",\n        \"attachment_opened_at\",\n        \"data_submitted\",\n        \"data_submitted_at\",\n        \"email_replied\",\n        \"email_replied_at\",\n        \"email_reported\",\n        \"email_reported_at\",\n        \"qr_code_scanned\",\n        \"qr_code_scanned_at\",\n        \"has_multiple_templates\",\n        \"has_dynamic_template\"\n    ],\n    \"conditions\": [\n        {\n            \"column\": \"user_id\",\n            \"operator\": \"equals\",\n            \"value\": [1, 2, 3]\n        },\n        {\n            \"column\": \"competition_id\",\n            \"operator\": \"equals\",\n            \"value\": [2]\n        },\n       \n        {\n            \"column\": \"campaign_types\",\n            \"operator\": \"equals\",\n            \"value\": [\"phishing\", \"phishing_training\"]\n        },\n     \n        {\n            \"column\": \"campaign_start_date\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": 1704067200\n        },\n       \n        {\n            \"column\": \"email_delivered_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"02/01/2025\"\n        },\n\n        {\n            \"column\": \"office_location\",\n            \"operator\": \"equals\",\n            \"value\": [\"head office\", \"new york\"]\n        },\n        {\n            \"column\": \"email_opened\",\n            \"operator\": \"equals\",\n            \"value\": [true]\n        },\n        {\n            \"column\": \"email_opened_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"02/15/2025 12:00:00\"\n        },\n        {\n            \"column\": \"link_clicked\",\n            \"operator\": \"equals\",\n            \"value\": [true]\n        },\n        {\n            \"column\": \"link_clicked_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/01/2025\"\n        },\n        {\n            \"column\": \"attachment_opened\",\n            \"operator\": \"equals\",\n            \"value\": [false]\n        },\n        {\n            \"column\": \"attachment_opened_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/04/2025 11:25:00\"\n        },\n        {\n            \"column\": \"data_submitted\",\n            \"operator\": \"equals\",\n            \"value\": [true]\n        },\n        {\n            \"column\": \"data_submitted_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/05/2025\"\n        },\n        {\n            \"column\": \"email_replied\",\n            \"operator\": \"equals\",\n            \"value\": [false]\n        },\n        {\n            \"column\": \"email_replied_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/06/2025\"\n        },\n        {\n            \"column\": \"email_reported\",\n            \"operator\": \"equals\",\n            \"value\": [true]\n        },\n        {\n            \"column\": \"email_reported_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/01/2025 08:30:00\"\n        },\n        {\n            \"column\": \"qr_code_scanned\",\n            \"operator\": \"equals\",\n            \"value\": [true]\n        },\n        {\n            \"column\": \"qr_code_scanned_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/07/2025\"\n        },\n        {\n            \"column\": \"has_dynamic_template\",\n            \"operator\": \"equals\",\n            \"value\": [true]\n        }\n    ]\n}\n\n\n\n","options":{"raw":{"language":"json"}}},"url":"https://rh-prd-shared.right-hand.ai/public/reports/v1/phishing-export","description":"<h1 id=\"export-phishing-data\">Export Phishing Data</h1>\n<p>This endpoint exports detailed phishing campaign data based on specified filters and parameters. It allows you to retrieve comprehensive user engagement metrics from phishing campaigns and training exercises.</p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<h3 id=\"core-parameters\">Core Parameters</h3>\n<ul>\n<li><p><strong><code>report_type</code></strong> (string, required)</p>\n<ul>\n<li><p>Type of report to generate</p>\n</li>\n<li><p>Available values: <code>\"users\"</code></p>\n</li>\n<li><p>Specifies that the export will focus on user-level data</p>\n</li>\n</ul>\n</li>\n<li><p><strong><code>response_type</code></strong> (string, required)</p>\n<ul>\n<li><p>Format of the response data</p>\n</li>\n<li><p>Available values: <code>\"json\"</code></p>\n</li>\n<li><p>Determines the output format of the exported data</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"pagination-parameters\">Pagination Parameters</h3>\n<ul>\n<li><p><strong><code>page</code></strong> (integer, required)</p>\n<ul>\n<li><p>Page number for paginated results</p>\n</li>\n<li><p>Example: <code>1</code> (first page)</p>\n</li>\n<li><p>Use this to navigate through large datasets</p>\n</li>\n</ul>\n</li>\n<li><p><strong><code>size_per_page</code></strong> (integer, required)</p>\n<ul>\n<li><p>Number of records to return per page</p>\n</li>\n<li><p>Example: <code>100</code></p>\n</li>\n<li><p>Maximum recommended: 100 records per page for optimal performance</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"time-range-filters\">Time Range Filters</h3>\n<ul>\n<li><p><strong><code>start_at</code></strong> (integer, required)</p>\n<ul>\n<li><p>Start date/time for the data range (Unix timestamp)</p>\n</li>\n<li><p>Example: <code>946684800</code> (January 1, 2000)</p>\n</li>\n<li><p>Filters campaigns that started on or after this timestamp</p>\n</li>\n</ul>\n</li>\n<li><p><strong><code>end_at</code></strong> (integer, required)</p>\n<ul>\n<li><p>End date/time for the data range (Unix timestamp)</p>\n</li>\n<li><p>Example: <code>1729468800</code> (October 20, 2024)</p>\n</li>\n<li><p>Filters campaigns that ended on or before this timestamp</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"sorting-configuration\">Sorting Configuration</h3>\n<ul>\n<li><p><strong><code>sort_field</code></strong> (string, required)</p>\n<ul>\n<li><p>Field to sort results by</p>\n</li>\n<li><p>Example: <code>\"user_name\"</code></p>\n</li>\n<li><p>Must be one of the columns included in the <code>columns</code> array</p>\n</li>\n</ul>\n</li>\n<li><p><strong><code>sort_order</code></strong> (string, required)</p>\n<ul>\n<li><p>Sort direction</p>\n</li>\n<li><p>Available values: <code>\"asc\"</code> (ascending), <code>\"desc\"</code> (descending)</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"data-selection\">Data Selection</h3>\n<ul>\n<li><strong><code>columns</code></strong> (array of strings, required)<ul>\n<li><p>Specifies which data fields to include in the export</p>\n</li>\n<li><p>Select only the columns you need to optimize response size</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"available-columns\">Available Columns</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Column</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>user_id</code></td>\n<td>Unique identifier for the user</td>\n</tr>\n<tr>\n<td><code>user_name</code></td>\n<td>Full name of the user</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>User's email address</td>\n</tr>\n<tr>\n<td><code>department</code></td>\n<td>Department identifier</td>\n</tr>\n<tr>\n<td><code>department_name</code></td>\n<td>Human-readable department name</td>\n</tr>\n<tr>\n<td><code>employee_type</code></td>\n<td>Type/category of employee</td>\n</tr>\n<tr>\n<td><code>manager_name</code></td>\n<td>Name of the user's manager</td>\n</tr>\n<tr>\n<td><code>office_location</code></td>\n<td>Office location identifier</td>\n</tr>\n<tr>\n<td><code>office_location_id</code></td>\n<td>Numeric office location ID</td>\n</tr>\n<tr>\n<td><code>office_location_city</code></td>\n<td>City of the office location</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"filter-conditions\">Filter Conditions</h3>\n<ul>\n<li><strong><code>conditions</code></strong> (array of objects, optional)<ul>\n<li><p>Array of filter conditions to narrow down results</p>\n</li>\n<li><p>Each condition object contains: <code>column</code>, <code>operator</code>, and <code>value</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"condition-structure\">Condition Structure</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"column\": \"field_name\",\n  \"operator\": \"comparison_operator\",\n  \"value\": \"filter_value\"\n}\n\n</code></pre>\n<h4 id=\"available-operators\">Available Operators</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Operator</th>\n<th>Description</th>\n<th>Value Type</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>equals</code></td>\n<td>Exact match</td>\n<td>Single value or array</td>\n</tr>\n<tr>\n<td><code>greater_than_equal</code></td>\n<td>Greater than or equal to</td>\n<td>Number or date string</td>\n</tr>\n<tr>\n<td><code>less_than_equal</code></td>\n<td>Less than or equal to</td>\n<td>Number or date string</td>\n</tr>\n<tr>\n<td><code>contains</code></td>\n<td>Contains substring</td>\n<td>String</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"filterable-columns\">Filterable Columns</h4>\n<ul>\n<li><p><strong><code>user_id</code></strong>: Filter by specific user IDs (array of integers)</p>\n</li>\n<li><p><strong><code>competition_id</code></strong>: Filter by competition/campaign ID (array of integers)</p>\n</li>\n<li><p><strong><code>campaign_types</code></strong>: Filter by campaign type (array: <code>\"phishing\"</code>, <code>\"phishing_training\"</code>)</p>\n</li>\n<li><p><strong><code>campaign_start_date</code></strong>: Filter by campaign start date (Unix timestamp)</p>\n</li>\n<li><p><strong><code>email_delivered_at</code></strong>: Filter by email delivery date (date string: \"MM/DD/YYYY\")</p>\n</li>\n<li><p><strong><code>office_location</code></strong>: Filter by office location names (array of strings)</p>\n</li>\n<li><p><strong><code>email_opened</code></strong>: Filter by whether email was opened (boolean array)</p>\n</li>\n<li><p><strong><code>email_opened_at</code></strong>: Filter by email open date (datetime string: \"MM/DD/YYYY HH:MM:SS\")</p>\n</li>\n<li><p><strong><code>link_clicked</code></strong>: Filter by whether link was clicked (boolean array)</p>\n</li>\n<li><p><strong><code>link_clicked_at</code></strong>: Filter by link click date (datetime string: \"MM/DD/YYYY\")</p>\n</li>\n</ul>\n<h2 id=\"example-use-cases\">Example Use Cases</h2>\n<h3 id=\"use-case-1-export-all-users-who-clicked-phishing-links\">Use Case 1: Export All Users Who Clicked Phishing Links</h3>\n<p>Export data for users who clicked on phishing links in campaigns that started in 2024, sorted by user name.</p>\n<h3 id=\"use-case-2-department-specific-analysis\">Use Case 2: Department-Specific Analysis</h3>\n<p>Filter by specific office locations and departments to analyze phishing susceptibility by location.</p>\n<h3 id=\"use-case-3-campaign-performance-report\">Use Case 3: Campaign Performance Report</h3>\n<p>Track email delivery, open rates, and click-through rates for specific campaigns using the competition_id filter.</p>\n<h3 id=\"use-case-4-time-based-trend-analysis\">Use Case 4: Time-Based Trend Analysis</h3>\n<p>Use date range filters (<code>start_at</code>, <code>end_at</code>) combined with engagement timestamps to identify patterns in user behavior over time.</p>\n<h2 id=\"response\">Response</h2>\n<p>The endpoint returns a JSON response containing the requested user data with the specified columns, filtered and sorted according to the provided parameters.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}},"urlObject":{"path":["public","reports","v1","phishing-export"],"host":["https://rh-prd-shared.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"77a90a07-b439-4536-bbc8-06a3757a17e0","name":"Export Phishing Data","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"report_type\": \"users\",\n    \"response_type\": \"json\",\n    \"page\": 1,\n    \"size_per_page\": 100,\n    \"start_at\": 946684800,\n    \"end_at\": 1729468800,\n    \"sort_field\": \"user_name\",\n    \"sort_order\": \"asc\",\n    \"columns\": [\n        \"user_id\",\n        \"user_name\",\n        \"email\",\n        \"department\",\n        \"department_name\",\n        \"employee_type\",\n        \"manager_name\",\n        \"office_location\",\n        \"office_location_id\",\n        \"office_location_city\",\n        \"office_location_city_id\",\n        \"office_location_country\",\n        \"office_location_country_id\",\n        \"user_group\",\n        \"user_groups\",\n        \"risk_score\",\n        \"training_title\",\n        \"training_id\",\n        \"training_status\",\n        \"training_assignment_date\",\n        \"training_completion_date\",\n        \"competition_id\",\n        \"campaign_name\",\n        \"campaign_creator_id\",\n        \"campaign_creator_name\",\n        \"campaign_start_date\",\n        \"campaign_end_date\",\n        \"campaign_risk_score\",\n        \"campaign_type\",\n        \"competition_type\",\n        \"email_delivered_at\",\n        \"email_opened\",\n        \"email_opened_at\",\n        \"link_clicked\",\n        \"link_clicked_at\",\n        \"link_clicked_ip\",\n        \"link_clicked_agent\",\n        \"attachment_opened\",\n        \"attachment_opened_at\",\n        \"data_submitted\",\n        \"data_submitted_at\",\n        \"email_replied\",\n        \"email_replied_at\",\n        \"email_reported\",\n        \"email_reported_at\",\n        \"qr_code_scanned\",\n        \"qr_code_scanned_at\",\n        \"has_multiple_templates\",\n        \"has_dynamic_template\"\n    ],\n    \"conditions\": [\n        {\n            \"column\": \"user_id\",\n            \"operator\": \"equals\",\n            \"value\": [\n                1,\n                2,\n                3\n            ]\n        },\n        {\n            \"column\": \"competition_id\",\n            \"operator\": \"equals\",\n            \"value\": [\n                2\n            ]\n        },\n        {\n            \"column\": \"campaign_types\",\n            \"operator\": \"equals\",\n            \"value\": [\n                \"phishing\",\n                \"phishing_training\"\n            ]\n        },\n        {\n            \"column\": \"campaign_start_date\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": 1704067200\n        },\n        {\n            \"column\": \"email_delivered_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"02/01/2025\"\n        },\n        {\n            \"column\": \"office_location\",\n            \"operator\": \"equals\",\n            \"value\": [\n                \"head office\",\n                \"new york\"\n            ]\n        },\n        {\n            \"column\": \"email_opened\",\n            \"operator\": \"equals\",\n            \"value\": [\n                true\n            ]\n        },\n        {\n            \"column\": \"email_opened_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"02/15/2025 12:00:00\"\n        },\n        {\n            \"column\": \"link_clicked\",\n            \"operator\": \"equals\",\n            \"value\": [\n                true\n            ]\n        },\n        {\n            \"column\": \"link_clicked_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/01/2025\"\n        },\n        {\n            \"column\": \"attachment_opened\",\n            \"operator\": \"equals\",\n            \"value\": [\n                false\n            ]\n        },\n        {\n            \"column\": \"attachment_opened_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/04/2025 11:25:00\"\n        },\n        {\n            \"column\": \"data_submitted\",\n            \"operator\": \"equals\",\n            \"value\": [\n                true\n            ]\n        },\n        {\n            \"column\": \"data_submitted_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/05/2025\"\n        },\n        {\n            \"column\": \"email_replied\",\n            \"operator\": \"equals\",\n            \"value\": [\n                false\n            ]\n        },\n        {\n            \"column\": \"email_replied_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/06/2025\"\n        },\n        {\n            \"column\": \"email_reported\",\n            \"operator\": \"equals\",\n            \"value\": [\n                true\n            ]\n        },\n        {\n            \"column\": \"email_reported_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/01/2025 08:30:00\"\n        },\n        {\n            \"column\": \"qr_code_scanned\",\n            \"operator\": \"equals\",\n            \"value\": [\n                true\n            ]\n        },\n        {\n            \"column\": \"qr_code_scanned_at\",\n            \"operator\": \"greater_than_equal\",\n            \"value\": \"03/07/2025\"\n        },\n        {\n            \"column\": \"has_dynamic_template\",\n            \"operator\": \"equals\",\n            \"value\": [\n                true\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://rh-prd-shared.right-hand.ai/public/reports/v1/phishing-export"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"filters_applied\": [],\n        \"phishing_data\": [\n            {\n                \"attachment_opened\": false,\n                \"attachment_opened_at\": null,\n                \"campaign_creator_id\": 998112,\n                \"campaign_end_date\": \"Fri, 04 Apr 2025 01:40:02 GMT\",\n                \"campaign_name\": \"Mar 2025 -- Tes\",\n                \"campaign_risk_score\": \"14\",\n                \"campaign_start_date\": \"Fri, 28 Mar 2025 01:40:02 GMT\",\n                \"campaign_type\": \"phishing\",\n                \"competition_id\": INTEGER,\n                \"competition_type\": \"phishing\",\n                \"data_submitted\": false,\n                \"data_submitted_at\": null,\n                \"department\": \"Product\",\n                \"email\": \"test@example.com\",\n                \"email_delivered_at\": \"Fri, 28 Mar 2025 01:36:58 GMT\",\n                \"email_opened\": false,\n                \"email_opened_at\": null,\n                \"email_replied\": false,\n                \"email_replied_at\": null,\n                \"email_reported\": false,\n                \"email_reported_at\": null,\n                \"employee_type\": \"Full Time\",\n                \"has_dynamic_template\": false,\n                \"has_multiple_templates\": false,\n                \"link_clicked\": false,\n                \"link_clicked_agent\": null,\n                \"link_clicked_at\": null,\n                \"link_clicked_ip\": null,\n                \"manager_name\": \" \",\n                \"office_location\": \"India office\",\n                \"office_location_city\": \"Singapore\",\n                \"office_location_city_id\": 18112,\n                \"office_location_country\": \"Singapore\",\n                \"office_location_country_id\": INTEGER,\n                \"office_location_id\": INTEGER,\n                \"qr_code_scanned\": false,\n                \"qr_code_scanned_at\": null,\n                \"risk_score\": INTEGER,\n                \"training_assignment_date\": null,\n                \"training_completion_date\": null,\n                \"training_id\": null,\n                \"training_status\": null,\n                \"training_title\": null,\n                \"user_group\": STRING,\n                \"user_groups\": INTEGER,\n                \"user_id\": INTEGER,\n                \"user_name\": STRING\n            }\n        ],\n        \"report_metadata\": {\n            \"campaigns_included\": null,\n            \"current_page\": 1,\n            \"per_page\": 1,\n            \"total_pages\": 88,\n            \"total_records\": 88\n        }\n    },\n    \"message\": \"OK\"\n}"}],"_postman_id":"5deb85ca-df11-46c1-bdfa-7f66cdd8c7a2"}],"id":"dfd2bd1a-3fe9-43ac-9ae6-249cc22e3823","_postman_id":"dfd2bd1a-3fe9-43ac-9ae6-249cc22e3823","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"name":"Repeat Offender","id":"fc69a8a8-f834-484d-b1d1-e7ace8eccd80","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":"aa2d8719-ca27-4fbd-9f9c-298c3dd79bc5","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":"fc69a8a8-f834-484d-b1d1-e7ace8eccd80"},{"name":"Behavior Analysis","id":"177bd2be-568a-482b-af57-69fad720e5f4","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":"c4382ef7-4df3-4832-b418-ef66db0be237","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":"177bd2be-568a-482b-af57-69fad720e5f4"}],"id":"45f7e286-73a8-45f5-8c79-53fd378b860e","_postman_id":"45f7e286-73a8-45f5-8c79-53fd378b860e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"name":"Training","item":[{"name":"v1","item":[{"name":"Export Training Data","id":"d1731b37-6306-4a48-8708-d612cdfe02d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"response_type\": \"json\",\n  \"page\": 1,\n  \"size_per_page\": 20,\n  \"columns\": [\"user_name\" , \"email\", \"training_title\", \"campaign_name\", \"completion_status_column\", \"training_completion_date\" ], // user_name , email , manager_name , user_group , department , campaign_creator , training_source , training_title , risk_score , campaign_start_date , campaign_name , campaign_end_date , training_assignment_date , training_completion_date , reminder_sent ,obtained_training_score , employee_type , completion_status_column , completion_result , days_past_campaign_end_date , office_location , office_location_city , office_location_country\n  \"conditions\": [ \n        \n  ],\n  \"sort_field\": \"user_name\",\n  \"sort_order\": \"desc\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rh-prd-shared.right-hand.ai/public/reports/v1/export","description":"<h1 id=\"export-training-data\">Export Training Data</h1>\n<p>This endpoint exports training data with customizable columns, filtering, sorting, and pagination options. It allows you to retrieve comprehensive training completion information for users across campaigns.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This endpoint uses the <code>https://rh-prd-shared.right-hand.ai</code> variable for the base URL. Ensure you have proper authentication configured (typically via Bearer token or API key in headers).</p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<h3 id=\"body-parameters-json\">Body Parameters (JSON)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>response_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Format of the response. Use <code>\"json\"</code> for JSON format.</td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>Page number for pagination (starts at 1).</td>\n</tr>\n<tr>\n<td><code>size_per_page</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>Number of records to return per page (e.g., 20).</td>\n</tr>\n<tr>\n<td><code>columns</code></td>\n<td>array</td>\n<td>Yes</td>\n<td>Array of column names to include in the export. See available columns below.</td>\n</tr>\n<tr>\n<td><code>conditions</code></td>\n<td>array</td>\n<td>No</td>\n<td>Array of filter conditions to narrow down results. Leave empty <code>[]</code> for no filtering.</td>\n</tr>\n<tr>\n<td><code>sort_field</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Field name to sort results by (must be one of the available columns).</td>\n</tr>\n<tr>\n<td><code>sort_order</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Sort direction: <code>\"asc\"</code> for ascending or <code>\"desc\"</code> for descending.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"available-columns\">Available Columns</h2>\n<p>You can include any combination of the following columns in the <code>columns</code> array:</p>\n<p><strong>User Information:</strong></p>\n<ul>\n<li><p><code>user_name</code> - Name of the user</p>\n</li>\n<li><p><code>email</code> - User's email address</p>\n</li>\n<li><p><code>manager_name</code> - Name of the user's manager</p>\n</li>\n<li><p><code>user_group</code> - User's group assignment</p>\n</li>\n<li><p><code>department</code> - User's department</p>\n</li>\n<li><p><code>employee_type</code> - Type of employee</p>\n</li>\n</ul>\n<p><strong>Location Information:</strong></p>\n<ul>\n<li><p><code>office_location</code> - Office location</p>\n</li>\n<li><p><code>office_location_city</code> - City of office location</p>\n</li>\n<li><p><code>office_location_country</code> - Country of office location</p>\n</li>\n</ul>\n<p><strong>Campaign Information:</strong></p>\n<ul>\n<li><p><code>campaign_name</code> - Name of the training campaign</p>\n</li>\n<li><p><code>campaign_creator</code> - Creator of the campaign</p>\n</li>\n<li><p><code>campaign_start_date</code> - Campaign start date</p>\n</li>\n<li><p><code>campaign_end_date</code> - Campaign end date</p>\n</li>\n<li><p><code>days_past_campaign_end_date</code> - Days elapsed since campaign ended</p>\n</li>\n</ul>\n<p><strong>Training Information:</strong></p>\n<ul>\n<li><p><code>training_title</code> - Title of the training</p>\n</li>\n<li><p><code>training_source</code> - Source of the training</p>\n</li>\n<li><p><code>training_assignment_date</code> - Date training was assigned</p>\n</li>\n<li><p><code>training_completion_date</code> - Date training was completed</p>\n</li>\n<li><p><code>obtained_training_score</code> - Score obtained in training</p>\n</li>\n<li><p><code>risk_score</code> - User's risk score</p>\n</li>\n</ul>\n<p><strong>Status Information:</strong></p>\n<ul>\n<li><p><code>completion_status_column</code> - Training completion status</p>\n</li>\n<li><p><code>completion_result</code> - Result of the completion</p>\n</li>\n<li><p><code>reminder_sent</code> - Whether reminder was sent</p>\n</li>\n</ul>\n<h2 id=\"response-format\">Response Format</h2>\n<p>The endpoint returns a JSON response containing:</p>\n<ul>\n<li><p>Paginated training data with the requested columns</p>\n</li>\n<li><p>Metadata about pagination (current page, total records, etc.)</p>\n</li>\n<li><p>Filtered and sorted according to the request parameters</p>\n</li>\n</ul>\n<h2 id=\"example-use-cases\">Example Use Cases</h2>\n<ol>\n<li><p><strong>Export basic user training completion:</strong></p>\n<ul>\n<li>Columns: <code>[\"user_name\", \"email\", \"training_title\", \"completion_status_column\", \"training_completion_date\"]</code></li>\n</ul>\n</li>\n<li><p><strong>Export detailed campaign performance:</strong></p>\n<ul>\n<li>Columns: <code>[\"campaign_name\", \"user_name\", \"training_title\", \"obtained_training_score\", \"completion_result\"]</code></li>\n</ul>\n</li>\n<li><p><strong>Export location-based training data:</strong></p>\n<ul>\n<li>Columns: <code>[\"office_location_country\", \"office_location_city\", \"user_name\", \"completion_status_column\"]</code></li>\n</ul>\n</li>\n</ol>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Use pagination to handle large datasets efficiently</p>\n</li>\n<li><p>The <code>conditions</code> parameter allows for advanced filtering (structure depends on API implementation)</p>\n</li>\n<li><p>Ensure the <code>sort_field</code> value matches one of the columns in your <code>columns</code> array for best results</p>\n</li>\n</ul>\n","urlObject":{"path":["public","reports","v1","export"],"host":["https://rh-prd-shared.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"1d04e139-aa1c-4a02-9cd7-904b2d69b373","name":"Export Training Data","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"response_type\": \"json\",\n    \"page\": 1,\n    \"size_per_page\": 100,\n    \"columns\": [], // user_name , email , manager_name , user_group , department , campaign_creator , training_source, training_title , risk_score , campaign_start_date , campaign_name , campaign_end_date , training_assignment_date, training_completion_date , reminder_sent , obtained_training_score , employee_type , completion_status_column , completion_result , days_past_campaign_end_date , office_location , office_location_city , office_location_country\n    \"conditions\": [\n        // array of condition objects\n        // available column and values\n        // columns with equal operator, department, completion_result, user_id, competition_id, training_source (Campaign , Automation , Self Learning)\n        // columns with equal operator range operator training_assignment_date , training_completion_date , campaign_start_date , campaign_end_date\n        // Format\n        {\n            \"column\": \"\", // competition_id, user_id, training_assignment_date , training_completion_date, campaign_start_date, \n            \"operator\": \"\", // equals, between\n            \"value\": []\n        },\n        // examples\n        {\n            \"column\": \"competition_id\",\n            \"operator\": \"equals\",\n            \"value\": \"12345\"\n        },\n        {\n            \"column\": \"user_id\",\n            \"operator\": \"equals\",\n            \"value\": \"20500\"\n        },\n        {\n            \"column\": \"training_assignment_date\",\n            \"operator\": \"between\",\n            \"value\": [\n                \"1659852799\",\n                \"1859852799\"\n            ]\n        },\n        {\n            \"column\": \"training_completion_date\",\n            \"operator\": \"between\",\n            \"value\": [\n                \"1712448000\",\n                \"1728345599\"\n            ]\n        },\n        {\n            \"column\": \"campaign_start_date\",\n            \"operator\": \"between\",\n            \"value\": [\n                \"\",\n                \"1759852799\"\n            ]\n        },\n        {\n            \"column\": \"campaign_end_date\",\n            \"operator\": \"between\",\n            \"value\": [\n                \"\",\n                \"1759852799\"\n            ]\n        }\n    ],\n    \"sort_field\": \"risk_score\",\n    \"sort_order\": \"desc\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rh-prd-shared.right-hand.ai/public/reports/v1/export"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"user_name\": \"John Smith\",\n      \"email\": \"john.smith@example.com\",\n      \"department\": \"Engineering\",\n      \"risk_score\": \"75\"\n    }\n  ],\n  \"page\": 1,\n  \"status_code\": 200,\n  \"total_count\": 150\n}"}],"_postman_id":"d1731b37-6306-4a48-8708-d612cdfe02d7"}],"id":"712b05b6-0541-4572-944f-6545e1520161","_postman_id":"712b05b6-0541-4572-944f-6545e1520161","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"name":"Training Stats","id":"a7ae5262-6628-4099-a69a-e4a4c0d8f432","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"response_type\": \"json\",\n  \"page\": 1,\n  \"size_per_page\": 20,\n  \"columns\": [\"user_name\" , \"email\" ], \n  \"conditions\": [ \n        \n  ],\n  \"sort_field\": \"user_name\",\n  \"sort_order\": \"desc\"\n}","options":{"raw":{"language":"json"}}},"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":null}],"variable":[]}},"response":[{"id":"9682ddaf-cd99-489a-905a-f72015d28798","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}"},{"id":"a3b63eed-42e8-4aec-84f6-b92e8f6106fa","name":"Training Stats","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"response_type\": \"json\",\n  \"page\": 1,\n  \"size_per_page\": 20,\n  \"columns\": [\"user_name\" , \"email\" ], \n  \"conditions\": [ \n        \n  ],\n  \"sort_field\": \"user_name\",\n  \"sort_order\": \"desc\"\n}","options":{"raw":{"language":"json"}}},"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":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"66"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 04 Feb 2026 02:06:42 GMT"},{"key":"Access-Control-Allow-Origin","value":"https://cyberready.right-hand.ai"},{"key":"Set-Cookie","value":"AWSALB=OTaG/n6V7Aiejfz7PSta6tb2OABaKbKX98SjCurNV5knrpUqD1Of5u9hqS+/AnsHNyUyfBPC1mdId0a+JzW2XuuOu52xAQRhCiX5gvWfeKuMg5RhdK6E8yH5vKfO; Expires=Wed, 11 Feb 2026 02:06:42 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=OTaG/n6V7Aiejfz7PSta6tb2OABaKbKX98SjCurNV5knrpUqD1Of5u9hqS+/AnsHNyUyfBPC1mdId0a+JzW2XuuOu52xAQRhCiX5gvWfeKuMg5RhdK6E8yH5vKfO; Expires=Wed, 11 Feb 2026 02:06:42 GMT; Path=/; SameSite=None; Secure"},{"key":"Server","value":"Werkzeug/2.2.2 Python/3.12.6"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 f91f0310a52084f5e83e3c1142ad882c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD61-P9"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=86400"},{"key":"X-Amz-Cf-Id","value":"bByK_ItAPYzw97oaNw39O3bg8sPpH0aqtslkt82FnuXfIRwRmzHCBA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Token validation failed\",\n    \"status_code\": 401\n}"}],"_postman_id":"a7ae5262-6628-4099-a69a-e4a4c0d8f432"}],"id":"5481dc06-7399-46b4-80ce-70e43d326c6e","_postman_id":"5481dc06-7399-46b4-80ce-70e43d326c6e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}},{"name":"Users","item":[{"name":"Phishing Email Templates / Sender Profiles","id":"71501d13-2349-436e-b83e-e138755d7a38","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":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","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":"93356d0b-0992-49d7-bdfb-dae2f7c51e75","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":"71501d13-2349-436e-b83e-e138755d7a38"}],"id":"30f20c50-3189-40fb-aba6-c3eb06da551e","_postman_id":"30f20c50-3189-40fb-aba6-c3eb06da551e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}}],"id":"386228a5-5e29-48da-800a-e222ce1a6730","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":"386228a5-5e29-48da-800a-e222ce1a6730","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","id":"4a7bbba6-4970-4fd2-b867-4728abded2d9","name":"Public","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"262369f2-bd01-440c-8be8-949b6d99f31b","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"880cb4d3-3944-4949-b6fd-efd8a3af7d94","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"TOKEN","value":""},{"key":"URL","value":"https://api.right-hand.ai"},{"key":"company_id","value":""},{"key":"user_id","value":""},{"key":"mssp_token","value":""},{"key":"mssp_admin_email","value":""},{"key":"campaign_id","value":""},{"key":"URL_PUBLIC","value":"https://rh-prd-shared.right-hand.ai"},{"key":"URL1","value":"https://rh-prd-shared.right-hand.ai"}]}