{"info":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","description":"<html><head></head><body><h2 id=\"overview\">Overview</h2>\n<p>The <strong>Right-Hand Public API</strong> enables customers and authorized integration partners to securely access and manage their Right-Hand accounts, retrieve security and human risk data, automate administrative operations, and integrate with third-party applications and enterprise workflows.</p>\n<p>The API uses RESTful conventions, JSON-based requests and responses, and Bearer token authentication.</p>\n<h2 id=\"getting-started\">Getting Started</h2>\n<h3 id=\"step-1-access-the-api-collection\">Step 1: Access the API Collection</h3>\n<p>Click <strong>Run in Postman</strong> at the top of this documentation to import the API collection into your Postman workspace.</p>\n<p>Alternatively, you can consume the API directly using your preferred programming language or HTTP client.</p>\n<h3 id=\"step-2-obtain-api-credentials\">Step 2: Obtain API Credentials</h3>\n<p>Contact the Right-Hand Support team to obtain the credentials required for programmatic access.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Credential</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ACCOUNT_TOKEN</code></td>\n<td>A unique account token issued by Right-Hand to authenticate your integration.</td>\n</tr>\n<tr>\n<td><code>SERVICE_ACCOUNT_EMAIL</code></td>\n<td>The email address of the authorized service account associated with your integration.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"step-3-generate-an-authentication-token\">Step 3: Generate an Authentication Token</h3>\n<p>Use the authentication endpoint to generate a user session token using the credentials provided by Right-Hand.</p>\n<p>Upon successful authentication, the API returns a user token (AUTHENTICATION_TOKEN), which must be included in the Authorization header of subsequent authenticated API requests.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">Authorization: Bearer \n\n</code></pre>\n<h3 id=\"step-4-make-api-requests\">Step 4: Make API Requests</h3>\n<p>Once authenticated, you can access the available API endpoints based on your account permissions and integration requirements.</p>\n<p>Refer to the individual endpoint documentation for supported HTTP methods, request parameters, payload requirements, and response examples.</p>\n<h3 id=\"step-5-revoke-the-authentication-token\">Step 5: Revoke the Authentication Token</h3>\n<p>Once your API operations are complete, use the logout endpoint to invalidate the active session token and prevent further use.</p>\n<h2 id=\"http-status-codes-and-error-handling\">HTTP Status Codes and Error Handling</h2>\n<p>The Right-Hand Public API uses standard HTTP status codes to communicate the outcome of API requests.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status Code</th>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>OK</td>\n<td>The request was processed successfully.</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Bad Request</td>\n<td>The request contains invalid parameters or malformed data.</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized</td>\n<td>Authentication credentials are missing, invalid, expired, or revoked.</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Not Found</td>\n<td>The requested resource or API endpoint could not be found.</td>\n</tr>\n<tr>\n<td><code>422</code></td>\n<td>Unprocessable Content</td>\n<td>The request fails application-level validation.</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Internal Server Error</td>\n<td>An unexpected server-side error occurred while processing the request.</td>\n</tr>\n</tbody>\n</table>\n</div><p>For transient server errors, implement bounded retries with exponential backoff where appropriate. Avoid automatically retrying state-changing operations without verifying the outcome of the original request.</p>\n<h2 id=\"security-best-practices\">Security Best Practices</h2>\n<p>To ensure secure and reliable API integrations:</p>\n<ul>\n<li><p>Always communicate with the API over HTTPS.</p>\n</li>\n<li><p>Use a dedicated service account for programmatic access.</p>\n</li>\n<li><p>Store API credentials in a secure secrets management solution.</p>\n</li>\n<li><p>Follow the principle of least privilege when configuring service account permissions.</p>\n</li>\n<li><p>Never expose authentication tokens in application logs, URLs, client-side applications, or source code.</p>\n</li>\n<li><p>Revoke session tokens upon completion of API operations.</p>\n</li>\n<li><p>Contact Right-Hand Support immediately if you suspect credential exposure or unauthorized access.</p>\n</li>\n</ul>\n<h2 id=\"api-support\">API Support</h2>\n<p>For API access, credential provisioning, integration assistance, or technical troubleshooting, contact the Right-Hand Support team.</p>\n<p>When reporting an API-related issue, include the following information:</p>\n<ul>\n<li><p>API endpoint and HTTP method</p>\n</li>\n<li><p>HTTP response status code</p>\n</li>\n<li><p>Timestamp of the request</p>\n</li>\n<li><p>Request identifier, where available</p>\n</li>\n<li><p>Sanitized request and response payloads</p>\n</li>\n</ul>\n<p>Do not include authentication tokens, credentials, or sensitive personal information in support requests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23084700","collectionId":"00a93029-c762-4fb9-93e1-de0e218f71aa","publishedId":"2sBYPv3sqq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-11-24T07:39:35.000Z"},"item":[{"name":"Authentication","item":[{"name":"Generate Access Token","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);\nif (jsonData?.details?.user_token)\n    postman.setEnvironmentVariable(\"USER_TOKEN\", jsonData.details.user_token);"]}}],"id":"ce0e116d-64fa-41ad-96cc-af90985f670e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"tenant_token\": \"\",\n    \"email\": \"\"\n}","options":{"raw":{"language":"text"}}},"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=\"https://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>ACCOUNT_TOKEN</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>SERVICE_ACCOUNT_EMAIL</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    \"ACCOUNT_TOKEN\": \"your_tenant_token_here\",\n    \"SERVICE_ACCOUNT_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","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","authentications"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"33d48ae4-9931-4cc7-8e54-e7739bc8124a","name":"Generate Tenant Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"ACCOUNT_TOKEN","value":"{{mssp_token}}","type":"text","description":"Unique Token of MSSP partner"},{"key":"SERVICE_ACCOUNT_EMAIL","value":"{{mssp_admin_email}}","type":"text","description":"Admin Email of MSSP Partner"}]},"url":"https://api.right-hand.ai/public/authentications"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"{      \n      \"code\": 200,      \n      \"message\": \"OK\",      \n       \"details\": {         \n         \"user_token\": \"TENANT_TOKEN\"      \n       }   \n    }"}],"_postman_id":"ce0e116d-64fa-41ad-96cc-af90985f670e"},{"name":"Delete Access Token","event":[{"listen":"test","script":{"type":"text/javascript","exec":["postman.setEnvironmentVariable(\"USER_TOKEN\", '');"]}}],"id":"d67788af-82ec-4200-a77d-66088e70b45f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{        \n    \"tenant_token\": \"{{RESELLER_TOKEN}}\", // string - Required           \n    \"email\": \"{{RESELLER_ADMIN}}\" // string - required    \n}","options":{"raw":{"language":"text"}}},"url":"https://api.right-hand.ai/public/authentications/logout","description":"<p>Invalidates the current user session by revoking the active access token. Call this endpoint when your API operations are complete to prevent further use of the session token.</p>\n<p><strong>Method:</strong> DELETE<br /><strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/authentications/logout</code></p>\n<p><strong>Request Body (JSON)</strong></p>\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>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ACCOUNT_TOKEN</td>\n<td>string</td>\n<td>Yes</td>\n<td>The tenant token associated with the session to terminate.</td>\n</tr>\n<tr>\n<td>SERVICE_ACCOUNT_EMAIL</td>\n<td>string</td>\n<td>Yes</td>\n<td>The service account email used to generate the token.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>No bearer token is required in the header for this request — the credentials in the body identify the session to revoke.</p>\n<p><strong>Response</strong></p>\n<p>Returns a <code>200 OK</code> on successful logout. The <code>USER_TOKEN</code> environment variable is automatically cleared by the post-response script after a successful call.</p>\n<p><strong>Notes</strong></p>\n<ul>\n<li><p>Always call this endpoint after completing your API workflow to follow security best practices.</p>\n</li>\n<li><p>If you suspect a token has been compromised, call this endpoint immediately to invalidate it.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","authentications","logout"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"51b0e304-56e2-46b8-885f-16110a443143","name":"Delete Access Token","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{        \n    \"tenant_token\": {{mssp_token}}, // string - Required           \n    \"email\": {{mssp_admin_email}} // string - required    \n}","options":{"raw":{"language":"text"}}},"url":"https://api.right-hand.ai/public/authentications/logout"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"{      \n    \"code\": 200,      \n    \"message\": \"OK\",      \n    \"details\": {         \n        \"user_token\": nil\n    }   \n}"}],"_postman_id":"d67788af-82ec-4200-a77d-66088e70b45f"}],"id":"0ee47b94-27a7-4cd6-9b4d-d8806cf42e57","description":"<p>This folder contains the endpoints required to establish and manage authenticated sessions with the Right-Hand API.</p>\n<p>Use <strong>Generate Access Token</strong> to authenticate using your <code>ACCOUNT_TOKEN</code> and <code>SERVICE_ACCOUNT_EMAIL</code> credentials. On success, the API returns a <code>USER_TOKEN</code> that must be passed as a Bearer token in the <code>Authorization</code> header of all subsequent requests.</p>\n<p>Use <strong>Delete Access Token</strong> to explicitly revoke an active session token once your API operations are complete, preventing further use of that token.</p>\n<p>All other API folders in this collection require a valid token obtained from this folder before they can be used.</p>\n","_postman_id":"0ee47b94-27a7-4cd6-9b4d-d8806cf42e57","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Timezone","item":[{"name":"Get a list of all available timezones","event":[{"listen":"test","script":{"type":"text/javascript","exec":["//set timezone variable\nvar jsonData = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"timezone\", jsonData.details.list[0]);\n\nvar responseBody = pm.response.json(); // Get the response body as a JSON object\n\n// Check if the response body contains an array with size 1\npm.test(\"Check if body contains an array with size 1\", function() {\n    pm.response.to.have.status(200)\n    pm.expect(responseBody.details.list).to.be.an('array'); // Check if it is an array\n});"]}}],"id":"01f90941-9936-4f7d-8582-72523f6f0f0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{bearer_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"text"}}},"url":"https://api.right-hand.ai/public/timezones","description":"<p>Returns the full list of supported timezone strings available in the Right-Hand platform. Use the values from this response when creating accounts or configuring time-sensitive settings.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/timezones</code></p>\n<p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token in the <code>Authorization</code> header (<code>{{bearer_token}}</code>).</p>\n<p><strong>Response</strong></p>\n<p>Returns a <code>200 OK</code> with a JSON body containing a <code>details.list</code> array of timezone strings.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"details\": {\n    \"list\": [\"America/New_York\", \"Europe/London\", ...]\n  }\n}\n</code></pre>\n<p><strong>Notes</strong></p>\n<ul>\n<li>The post-response script automatically saves the first timezone in the list to the <code>timezone</code> environment variable for use in subsequent requests (e.g., Create a New Account).</li>\n<li>Pass any value from <code>details.list</code> as the <code>timezone</code> field when creating or updating accounts.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","timezones"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"6aa724f8-41b0-47dd-99ee-9e80f7685241","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_token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.right-hand.ai/public/timezones"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":" {\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"list\": [\n                \"Africa/Abidjan\",\n                \"Africa/Accra\",\n             ]\n        }\n    }"}],"_postman_id":"01f90941-9936-4f7d-8582-72523f6f0f0d"}],"id":"a0f6e3de-b72b-4d1e-9dee-ac3db7f97d07","description":"<p>Contains endpoints for retrieving timezone reference data supported by the Right-Hand platform.</p>\n<p>Use the endpoint in this folder to fetch the full list of valid timezone identifiers. The returned values can be used when creating or configuring accounts, scheduling campaigns, or setting user preferences that require a timezone parameter.</p>\n","event":[{"listen":"prerequest","script":{"id":"099c24be-7e7b-4d81-9b19-1500e6a08b16","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"0b47b189-f22f-4125-a783-1c032e503e50","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"_postman_id":"a0f6e3de-b72b-4d1e-9dee-ac3db7f97d07","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Industries","item":[{"name":"Get a list of Supported Industries","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"industry_id\", jsonData.details.list[0].id);"]}}],"id":"dff16411-54fe-4559-bf88-8c7ee7dc3d2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer "}],"url":"https://api.right-hand.ai/public/industries","description":"<p>Returns the list of industry categories supported by the Right-Hand platform. Use the industry ID from this response when creating a new customer account.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/industries</code></p>\n<p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token. Set <code></code> in your environment or collection variables before sending.</p>\n<p><strong>Response</strong></p>\n<p>Returns a <code>200 OK</code> with a JSON body containing a <code>details.list</code> array of industry objects, each with an <code>id</code> and a name.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"details\": {\n    \"list\": [\n      { \"id\": 1, \"name\": \"Technology\" },\n      ...\n    ]\n  }\n}\n</code></pre>\n<p><strong>Notes</strong></p>\n<ul>\n<li>The post-response script automatically saves the first industry's <code>id</code> to the <code>industry_id</code> environment variable for use in subsequent requests.</li>\n<li>Pass the <code>id</code> value as <code>industry_id</code> in the Create a New Account request body.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","industries"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"145c1948-e2fd-48dc-b841-2db26b44ee4e","name":"Get a list of Supported Industries","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/industries"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":" {\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"list\": [\n                {\n                    \"id\": 1,\n                    \"name\": \"Defense Industrial Base\"\n                },\n            ]\n        }\n    }"}],"_postman_id":"dff16411-54fe-4559-bf88-8c7ee7dc3d2b"}],"id":"bdbb7b8d-8c9b-4956-bb45-b2868bc29933","_postman_id":"bdbb7b8d-8c9b-4956-bb45-b2868bc29933","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Account Management (Only Relevant to MSSP Partners)","item":[{"name":"Create a New Account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"company_id\", jsonData.details.customer.id);\n\n\nvar responseBody = pm.response.json(); // Get the response body as a JSON object\n\n// Check if the response body contains an array with size 1\npm.test(\"Check if Company is created\", function() {\n    pm.response.to.have.status(200)\n    pm.expect(responseBody.details.customer).to.be.an('object'); // Check if it is an array\n    pm.expect(responseBody.details.customer.name).to.eql(\"Test Customer\");\n});"]}}],"id":"d0456558-d9f3-4306-a599-2f7fce855143","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"name\": \"\",\n        \"industry_id\": 5,\n        \"timezone\": \"\",\n        \"subscription_type\": \"trial\",\n        \"allowed_users\": 10,\n        \"subscription_start_date\": \"2023-01-01 00:00\",\n        \"subscription_end_date\": \"2023-12-31 00:00\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.right-hand.ai/public/customers","description":"<p>Creates a new customer account (tenant) under the MSSP partner. This endpoint is only relevant to MSSP partners managing multiple customer organizations.</p>\n<p><strong>Method:</strong> POST\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/customers</code></p>\n<p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Request Body (JSON)</strong></p>\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>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customer.name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Display name of the new customer account. Use <code></code>.</td>\n</tr>\n<tr>\n<td><code>customer.industry_id</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>Industry ID for the account. Obtain from the Get a list of Supported Industries endpoint.</td>\n</tr>\n<tr>\n<td><code>customer.timezone</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Timezone for the account. Obtain from the Get a list of all available timezones endpoint. Use <code></code>.</td>\n</tr>\n<tr>\n<td><code>customer.subscription_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Subscription tier. Available options: <code>trial</code>, <code>standard</code>, <code>enterprise</code>.</td>\n</tr>\n<tr>\n<td><code>customer.allowed_users</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>Maximum number of users permitted under this account.</td>\n</tr>\n<tr>\n<td><code>customer.subscription_start_date</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Subscription start date in <code>YYYY-MM-DD HH:mm</code> format.</td>\n</tr>\n<tr>\n<td><code>customer.subscription_end_date</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Subscription end date in <code>YYYY-MM-DD HH:mm</code> format.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> with the created customer object. The post-response script automatically saves the new account's <code>id</code> to the <code>company_id</code> environment variable for use in subsequent requests.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","customers"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"a70a8fac-8e5b-498f-942d-2f1b6badc0ba","name":"Create a New Account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"name\": \"STRING\", // Mandatory\n        \"industry_id\": \"INTEGER\", // Mandatory (a valid ID from industry list api)\n        \"timezone\": \"STRING\", // Mandatory (a valid timezone from timezone list api)\n        \"subscription_type\": \"STRING\", // Optional, default: trial, valid values(paid or trial),\n        \"allowed_users\": \"INTEGER\", // Number of licence a company has bought,\n        \"subscription_start_date\": \"DATETIME\", // Start date of company subscription\n        \"subscription_end_date\": \"DATETIME\" // end of subscription date\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.right-hand.ai/public/customers"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"customer\": {\n                \"id\": 1,\n                \"name\": \"DEMO Company\",\n                \"industry_id\": 1,\n                \"timezone\": \"Asia/Singapore\",\n                \"subscription_type\": \"normal\",\n                \"created_at\": \"18-06-2020 06:33 PM\",\n                \"training_score\": 10, \n                \"compliance_score\": 100,\n                \"phishing_score\": 100 \n                \"user_count\": 20, \n                \"subscription_start_date\": \"18-06-2020 06:33 PM\",\n                \"subscription_end_date\": \"18-06-2020 06:33 PM\",\n            }\n        }\n    }"}],"_postman_id":"d0456558-d9f3-4306-a599-2f7fce855143"},{"name":"List of all accounts","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object\n\n// Check if the response body contains an array with size 1\npm.test(\"Check if body contains an array with size 1\", function() {\n    pm.response.to.have.status(200)\n    pm.expect(responseBody.details.list).to.be.an('array'); // Check if it is an array\n});"]}}],"id":"8a28da5f-41de-4864-be63-c0655e594d8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://api.right-hand.ai/public/customers","description":"<p>Returns all customer accounts managed by the authenticated MSSP partner. This endpoint is only relevant to MSSP partners.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/customers</code></p>\n<p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> with a JSON body containing a <code>details.list</code> array of customer account objects.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"details\": {\n    \"list\": [\n      { \"id\": 123, \"name\": \"Acme Corp\", ... },\n      ...\n    ]\n  }\n}\n</code></pre>\n<p><strong>Notes</strong></p>\n<ul>\n<li>Use the <code>id</code> from any account in the list as the <code>company_id</code> path variable in subsequent account-scoped requests.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","customers"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"fb1011a4-3794-4e1a-8196-c08157dee9c5","name":"List of all accounts","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.right-hand.ai/public/customers"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"list\": [\n                {\n                    \"id\": INTEGER,\n                    \"name\": STRING,\n                    \"subscription_type\": STRING, // avaiable values (trial, paid)\n                    \"timezone\": STRING, // a valid value from timezone list api\n                    \"industry_name\": STRING, // a valid value from industries list api\n                    \"created_at\": DATATIME, // DD-MM-YYYY HH:MM AM/PM\n                    \"updated_at\": DATATIME, // DD-MM-YYYY HH:MM AM/PM\n                    \"allowed_users\": INTEGER, //number of users they have bougt\n                    \"subscription_start_date\": DATETIME,\n                    \"subscription_end_date\": DATETIME,\n                    \"user_count\": INTEGER, // Total numbers of users\n                    \"training_score\": FLOAT,\n                    \"compliance_score\": FLOAT,\n                    \"phishing_score\": FLOAT\n                },\n            ]\n        }\n    }"}],"_postman_id":"8a28da5f-41de-4864-be63-c0655e594d8e"},{"name":"Get data points for risk timeline","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object\n\npm.test(\"Check if Response is 200\", function() {\n    pm.response.to.have.status(200)\n});\n\npm.test(\"Check if Response is valid\", function() {\n    pm.expect(responseBody.details.timeline).to.be.an('object'); \n});"]}}],"id":"2292fe64-ada1-486e-b41c-365f347d1599","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://api.right-hand.ai/public/companies/{{company_id}}/risk_timelines","description":"<p>Returns time-series data points representing the human risk score trend for a specific company over time. Use this to plot risk timelines or track security posture changes.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/companies/{{company_id}}/risk_timelines</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the company. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> with a <code>details.timeline</code> object containing the risk score data points.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"details\": {\n    \"timeline\": { ... }\n  }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","companies","{{company_id}}","risk_timelines"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"f8f971ea-a337-4643-bf3d-f33c6d1de021","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":"{{company_id}}","description":"ID of company "}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"timeline\": {\n                \"company_risk_titles\": [\"Jan 10\", \"Jan 11\"], \n                \"company_risk_scores\": [1,2 ] \n            }\n        }\n    }"}],"_postman_id":"2292fe64-ada1-486e-b41c-365f347d1599"},{"name":"Get date of an  existing account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object\n\npm.test(\"Check if Response is 200\", function() {\n    pm.response.to.have.status(200)\n});\n\npm.test(\"Check if Response is valid\", function() {\n    pm.expect(responseBody.details.customer).to.be.an('object'); \n    pm.expect(responseBody.details.customer.name).to.eql(\"Test Customer\");\n});"]}}],"id":"a4d05050-e843-43e3-88b8-b47f31f31899","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/customers/{{company_id}}","description":"<p>Retrieves the details of a specific customer account by its ID. Use this to verify account configuration, subscription details, or confirm a newly created account.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/customers/{{company_id}}</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the customer account to retrieve. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> with a <code>details.customer</code> object containing the account's properties (name, industry, timezone, subscription details, etc.).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","customers","{{company_id}}"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"93cd70f9-5483-424a-aa70-5802a7b5ee87","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":"{{company_id}}","description":"ID of company you want to fetch"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"customer\": {\n                \"id\": INTEGER,\n                \"name\": STRING,\n                \"industry_id\": INTEGER,\n                \"timezone\": STRING,\n                \"subscription_type\": STRING,\n                \"created_at\": DATETIME, // Sample \"18-06-2020 06:33 PM\",\n                \"training_score\": FLOAT, //  Training Risk Score of a company\n                \"compliance_score\": FLOAT, // Compliance Risk Score of a company\n                \"phishing_score\": FLOAT, // Phishing Risk Score of a company\n                \"subscription_start_date\": DATETIME,\n                \"subscription_end_date\": DATETIME,\n                \"user_count\": INTEGER, // Total numbers of users\n            }\n        }\n    }"}],"_postman_id":"a4d05050-e843-43e3-88b8-b47f31f31899"},{"name":"Get a list of enabled features","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object\n\npm.test(\"Check if Response is 200\", function() {\n    pm.response.to.have.status(200)\n});\n\npm.test(\"Check if Response is valid\", function() {\n    pm.expect(responseBody.details.preference).to.be.an('object'); \n});"]}}],"id":"f3732684-62a2-4d98-8683-920409b38b17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://api.right-hand.ai/public/customers/{{company_id}}/company_preferences","description":"<p>Returns the current product feature preferences (enabled/disabled flags) for a specific customer account. Use this to check which Right-Hand modules are active for a given company.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/customers/{{company_id}}/company_preferences</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the customer account. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> with a <code>details.preference</code> object listing the enabled/disabled state of each product feature.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"details\": {\n    \"preference\": {\n      \"training\": true,\n      \"phishing\": false,\n      ...\n    }\n  }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","customers","{{company_id}}","company_preferences"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"4c21790f-40a2-4fe8-b35e-d33aec2bd9b5","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":"{{company_id}}","description":"ID of company that you want to get"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    “code”: 200,\n    “message”: “OK”,\n    “details”: {\n        “preference”: {\n            “gamification”: true,\n            “training”: true,\n            “phishing”: true,\n            “compliance”: false,\n            “phisharm”: true,\n            “active_directory”: true,\n            “employee_portal_access”: true,\n            “hrm”: true,\n            “audit_log”: true\n        }\n    }\n}"}],"_postman_id":"f3732684-62a2-4d98-8683-920409b38b17"},{"name":"Enable/Disable Product in a Customer Account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object\n\npm.test(\"Check if Response is 200\", function() {\n    pm.response.to.have.status(200)\n});\n\npm.test(\"Check if Response is valid\", function() {\n    pm.expect(responseBody.details.preference).to.be.an('object'); \n    pm.expect(responseBody.details.preference.training).to.eql(false);\n});"]}},{"listen":"prerequest","script":{"type":"text/javascript","exec":["pm.request.body.update({\n    mode: \"raw\",\n    raw: JSON.stringify({\n        training: true,\n        audit_log: true\n    }),\n    options: { raw: { language: \"json\" } }\n});\n\npm.request.headers.upsert({ key: \"Content-Type\", value: \"application/json\" });"]}}],"id":"c852594c-9d32-40f4-a3f6-eda19cd523ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"training\": true // Available options (gamificaiton, training, phishing, compliance, phisharm, active_directory,  employee_portal_access)\n}","options":{"raw":{"language":"text"}}},"url":"https://api.right-hand.ai/public/customers/{{company_id}}/company_preferences","description":"<p>Enables or disables one or more Right-Hand product features for a specific customer account.</p>\n<p><strong>Method:</strong> POST\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/customers/{{company_id}}/company_preferences</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the customer account. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Request Body (JSON)</strong></p>\n<p>Pass one or more product feature keys with a boolean value to enable (<code>true</code>) or disable (<code>false</code>) them.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>training</code></td>\n<td>boolean</td>\n<td>Enable/disable the Training module.</td>\n</tr>\n<tr>\n<td><code>phishing</code></td>\n<td>boolean</td>\n<td>Enable/disable the Phishing module.</td>\n</tr>\n<tr>\n<td><code>gamification</code></td>\n<td>boolean</td>\n<td>Enable/disable Gamification.</td>\n</tr>\n<tr>\n<td><code>compliance</code></td>\n<td>boolean</td>\n<td>Enable/disable the Compliance module.</td>\n</tr>\n<tr>\n<td><code>phisharm</code></td>\n<td>boolean</td>\n<td>Enable/disable PhishArm.</td>\n</tr>\n<tr>\n<td><code>active_directory</code></td>\n<td>boolean</td>\n<td>Enable/disable Active Directory integration.</td>\n</tr>\n<tr>\n<td><code>employee_portal_access</code></td>\n<td>boolean</td>\n<td>Enable/disable employee portal access.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> with the updated <code>details.preference</code> object reflecting the new feature states.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","customers","{{company_id}}","company_preferences"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"7dbcbe13-043b-40b9-aaaa-1e79c3ae421b","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":"{{company_id}}","description":"ID of company that you want to update"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    “code”: 200,\n    “message”: “OK”,\n    “details”: {\n        “preference”: {\n            “gamification”: true,\n            “training”: false,\n            “phishing”: true,\n            “compliance”: false,\n            “phisharm”: true,\n            “active_directory”: true,\n            “employee_portal_access”: true,\n            “hrm”: true,\n            “audit_log”: true\n        }\n    }\n}"}],"_postman_id":"c852594c-9d32-40f4-a3f6-eda19cd523ad"},{"name":"Delete an existing account","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);\npostman.setEnvironmentVariable(\"company_id\", '');\n\n\npm.test(\"Check if Response is 200\", function() {\n    pm.response.to.have.status(200)\n});\n"]}}],"id":"941a2498-c2e3-4e5b-881f-3d6dbe1843ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://api.right-hand.ai/public/customers/{{company_id}}","description":"<p>Permanently deletes a customer account and all associated data. This action is irreversible. Only MSSP partners can delete customer accounts.</p>\n<p><strong>Method:</strong> DELETE\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/customers/{{company_id}}</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the customer account to delete. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> on successful deletion. The post-response script automatically clears the <code>company_id</code> environment variable.</p>\n<p><strong>Warning</strong></p>\n<p>This operation permanently removes the account and cannot be undone. Ensure you are targeting the correct <code>company_id</code> before sending.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","customers","{{company_id}}"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"35a7e0ae-3d41-428b-a072-f327819ef281","name":"Delete an existing account","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/customers/:id","host":["https://api.right-hand.ai"],"path":["public","customers",":id"],"variable":[{"key":"id","value":null,"description":"ID of account you want to delete"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"    {\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"customer\": {\n                \"id\": INTEGER,\n                \"name\": STRING,\n                \"industry_id\": INTEGER,\n                \"timezone\": STRING,\n                \"subscription_type\": STRING,\n                \"created_at\": DATETIME, // Sample \"18-06-2020 06:33 PM\",\n                \"training_score\": FLOAT, //  Training Risk Score of a company\n                \"compliance_score\": FLOAT, // Compliance Risk Score of a company\n                \"phishing_score\": FLOAT, // Phishing Risk Score of a company\n                \"subscription_start_date\": DATETIME,\n                \"subscription_end_date\": DATETIME,\n                \"user_count\": INTEGER, // Total numbers of users\n            }\n        }\n    }"}],"_postman_id":"941a2498-c2e3-4e5b-881f-3d6dbe1843ea"}],"id":"2a93912b-ddb3-488b-bbee-23cbc666a346","description":"<p>This folder contains endpoints exclusively available to <strong>MSSP (Managed Security Service Provider) partners</strong> who manage multiple customer accounts through a single Right-Hand integration.</p>\n<p>Use these endpoints to programmatically provision and manage tenant accounts on behalf of your customers. The following operations are supported:</p>\n<ul>\n<li><strong>Create a New Account</strong> — Provision a new customer tenant under your MSSP partnership.</li>\n<li><strong>List of all accounts</strong> — Retrieve a full list of customer accounts associated with your MSSP account.</li>\n<li><strong>Get data points for risk timeline</strong> — Fetch historical risk score data points for a specific customer account.</li>\n<li><strong>Get date of an existing account</strong> — Retrieve creation or relevant date metadata for a customer account.</li>\n<li><strong>Get a list of enabled features</strong> — Query which Right-Hand product features are currently active for a given account.</li>\n<li><strong>Enable/Disable Product in a Customer Account</strong> — Toggle specific Right-Hand products or features on or off for a customer account.</li>\n<li><strong>Delete an existing account</strong> — Permanently remove a customer account from your MSSP portfolio.</li>\n</ul>\n<blockquote>\n<p><strong>Note:</strong> These endpoints require MSSP-level authorization. Standard customer accounts do not have access to this folder's operations. Ensure your <code>ACCOUNT_TOKEN</code> is scoped to an MSSP service account before making requests.</p>\n</blockquote>\n","_postman_id":"2a93912b-ddb3-488b-bbee-23cbc666a346","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Campaigns","item":[{"name":"v1","item":[{"name":"Get list of campaigns","event":[{"listen":"test","script":{"id":"a7014b42-f72a-4518-b1c3-ccd527c26f3d","exec":["var responseBody = pm.response.json(); // Get the response body as a JSON object","","// Check if the response body contains an array with size 1","pm.test(\"Check if body contains an array with size 1\", function() {","    pm.response.to.have.status(200)","    pm.expect(responseBody.details.list).to.be.an('array'); // Check if it is an array","});"],"type":"text/javascript"}}],"id":"14dda36f-df88-401a-8f58-3ed225cfecbf","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","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/{{company_id}}/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":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","companies","{{company_id}}","competitions"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"9f6a97b9-eb12-4c81-8824-d9089cff0482","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":"{{company_id}}","description":"ID of company you want to query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"list\": [\n        {\n            \"id\": 1,\n            \"competition_type\": \"training\",\n            \"title\": \"August 2022 - Campaign 1\",\n            \"created_at\": \"2022-08-08 10:10 PM\",\n            \"execute_at\": \"2022-08-08 10:10 PM\",\n            \"starts_at\": \"2022-08-08 10:10 PM\",\n            \"end_at\": \"2022-08-08 10:10 PM\",\n            \"campaign_group_title\": \"August 2020\",\n            \"risk_score\": 100.0,\n            \"error_message\": null,\n            \"is_published\": true,\n            \"user_name\": \"Demo\",\n            \"schedule_timezone\": null,\n            \"user_count\": 2,\n            \"delivered_count\": 2,\n            \"status\": \"Completed\"\n         }\n    ],\n    \"total_count\": 1,\n    \"active\": 1,\n    \"expired\": 0,\n    \"upcoming\": 0,\n    \"published\": 1,\n    \"draft\": 0\n}"}],"_postman_id":"14dda36f-df88-401a-8f58-3ed225cfecbf"},{"name":"Generate campaign report in PDF","id":"6bd084d8-d650-421c-8344-bf4ab46c3336","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":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id","export"],"host":["https://api.right-hand.ai"],"query":[{"key":"type","value":"pdf"}],"variable":[{"description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"{{company_id}}","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":"5579f111-9aeb-4c3b-8902-bc76df4ab365","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":"{{company_id}}","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"response\": {\n        \"success\": true,\n        \"url\": \"URL_OR_PDF_FILE\"\n    }\n}"}],"_postman_id":"6bd084d8-d650-421c-8344-bf4ab46c3336"},{"name":"Get Campaign Detail","id":"a6874010-2799-428c-b116-4bdaf29b04f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id","description":"<p>Retrieves the full details of a specific campaign (competition) within a company, including configuration, dates, and status.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the company. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n<tr>\n<td><code>campaign_id</code></td>\n<td>The unique ID of the campaign. Use the <code></code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"{{company_id}}","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":"94ecf4e5-ba78-4487-a1db-664b6703e5c3","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":"{{company_id}}","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"competition\": {\n        \"id\": 1,\n        \"title\": \"August 2020 - Campaign 1\",\n        \"created_at\": \"2020-10-10 10:10 PM\",\n        \"updated_at\":  \"2020-10-10 10:10 PM\",\n        \"starts_at\":  \"2020-10-10 10:10 PM\",\n        \"end_at\":  \"2020-10-10 10:10 PM\",\n        \"is_published\": true,\n        \"is_attach_leaderboard\": false,\n        \"avatar_url\": null,\n        \"competition_type\": \"training\",\n        \"campaign_group_id\": 1,\n        \"user_count\": 2,\n        \"included_compliance_section_names\": \"\",\n        \"error_message\": null,\n        \"risk_score\": 100.0,\n        \"campaign_group_title\": \"August 2020\",\n        \"send_report_enable\": false,\n        \"is_expire_competitions\": false,\n        \"schedule_timezone\": null,\n        \"has_training_enabled\": true,\n        \"execute_at\": \"2020-10-10 10:10 PM\",\n        \"status\": \"completed\",\n        \"campaign_sending_interval\": \"instant\",\n        \"training_id\": 1,\n        \"compliance_title\": null,\n        \"compliance_id\": null,\n        \"training_name\": \"Training 1\"\n    }\n}"}],"_postman_id":"a6874010-2799-428c-b116-4bdaf29b04f9"},{"name":"Get Campaign Training Statistics","id":"13d6da3b-e3d5-4ca8-ad26-f34433cbdd8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_training_stats","description":"<p>Returns training statistics for a specific campaign (competition), including completion rates and participant performance metrics.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_training_stats</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the company. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n<tr>\n<td><code>campaign_id</code></td>\n<td>The unique ID of the campaign. Use the <code></code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Notes</strong></p>\n<ul>\n<li>This is the v1 version of the campaign statistics endpoint. For richer metrics, see Get Campaign Statistics (v2) under Campaigns &gt; v2.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"{{company_id}}","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":"ca7bd034-37e4-4c4b-8c5e-b7bde793c4b9","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":"{{company_id}}","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"metrix\": {\n            \"total\": 2,\n            \"completed\": 1,\n            \"passed\": 0,\n            \"failed\": 1\n        }\n    }\n}"}],"_postman_id":"13d6da3b-e3d5-4ca8-ad26-f34433cbdd8a"}],"id":"1af330fe-2c9f-4cda-82e7-07e2efe4cce3","_postman_id":"1af330fe-2c9f-4cda-82e7-07e2efe4cce3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"v2","item":[{"name":"Get Campaign Statistics","id":"b1d2ef29-696b-41c9-ab2d-c49827ebfabd","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 {{TOKEN}}\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>{{company_id}}</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/{{company_id}}/competitions//competition_training_stats\nAuthorization: Bearer {{TOKEN}}\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":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"{{company_id}}","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":"332ad119-c01c-4f49-853e-36bce26da718","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":"{{company_id}}","description":"ID of company you want to query"},{"key":"campaign_id","value":""}]}},"_postman_previewlanguage":"Text","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":"b1d2ef29-696b-41c9-ab2d-c49827ebfabd"},{"name":"Get user engagement trends in the campaign","id":"68819887-bf8d-4114-b3ed-2d64f2f35842","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/javascript"}],"url":"https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_trends?duration=one_week","description":"<p>Returns time-series engagement trend data for users within a specific campaign, broken down by a configurable time duration.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/companies/:company_id/competitions/:campaign_id/competition_trends</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the company. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n<tr>\n<td><code>campaign_id</code></td>\n<td>The unique ID of the campaign. Use the <code></code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Query Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>duration</code></td>\n<td>Time window for the trend data. Available options: <code>one_week</code>, <code>one_month</code>, <code>six_months</code>, <code>one_year</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","competitions",":campaign_id","competition_trends"],"host":["https://api.right-hand.ai"],"query":[{"description":{"content":"<p>available options one_week, one_month, six_months, one_year</p>\n","type":"text/plain"},"key":"duration","value":"one_week"}],"variable":[{"description":{"content":"<p>ID of company you want to query</p>\n","type":"text/plain"},"type":"any","value":"{{company_id}}","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":"e0065a5e-3064-4230-a88c-d8da116acc57","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":"{{company_id}}","description":"ID of company you want to query"},{"key":"campaign_id","value":"","description":"ID of campaign you want to query"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"trends\": {\n            \"delivered\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                2,\n                0\n            ],\n            \"completed\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                1,\n                0\n            ],\n            \"passed\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0\n            ],\n            \"failed\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                1,\n                0\n            ],\n            \"titles\": [\n                \"24 Feb 2021\",\n                \"25 Feb 2021\",\n                \"26 Feb 2021\",\n                \"27 Feb 2021\",\n                \"28 Feb 2021\",\n                \"01 Mar 2021\",\n                \"02 Mar 2021\"\n            ]\n        }\n    }\n}"}],"_postman_id":"68819887-bf8d-4114-b3ed-2d64f2f35842"}],"id":"175cc528-ff7b-415a-b32a-db5dd605a739","_postman_id":"175cc528-ff7b-415a-b32a-db5dd605a739","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}}],"id":"e43f0b9b-f7c7-4584-934c-b3ba1269d378","description":"<p>Contains endpoints for managing and retrieving data related to competition campaigns within a company. Use these endpoints to:</p>\n<ul>\n<li><p><strong>List campaigns</strong> – retrieve all competitions associated with a company (<code>v1</code>)</p>\n</li>\n<li><p><strong>Get campaign detail</strong> – fetch metadata and configuration for a specific campaign (<code>v1</code>)</p>\n</li>\n<li><p><strong>Get campaign training statistics</strong> – retrieve training performance metrics for a campaign, available in both <code>v1</code> (legacy) and <code>v2</code> (current, recommended)</p>\n</li>\n<li><p><strong>Get user engagement trends</strong> – query participant engagement over configurable time windows (<code>one_week</code>, <code>one_month</code>, <code>six_months</code>, <code>one_year</code>) (<code>v2</code>)</p>\n</li>\n<li><p><strong>Generate campaign PDF report</strong> – export a full campaign report as a PDF file</p>\n</li>\n</ul>\n<p>All requests require a Bearer token and use the <code>{{company_id}}</code> and <code></code> collection variables to identify the target company and campaign. The <code>v2</code> sub-folder contains the latest versions of statistics and trends endpoints; <code>v1</code> endpoints are retained for backward compatibility.</p>\n","_postman_id":"e43f0b9b-f7c7-4584-934c-b3ba1269d378","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Employees","item":[{"name":"Add a new user","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status is 200\", function () {\n    pm.response.to.have.status(200);\n});\n\npm.collectionVariables.set(\"user_id\", pm.response.json().details.employee.id);\n\n\nconst userId = pm.response.json().details.employee.id;\npm.environment.set(\"user_id\", userId);\nconsole.log(\"user_id saved:\", userId);"]}},{"listen":"prerequest","script":{"type":"text/javascript","exec":["pm.request.url.variables.upsert({ key: \"company_id\", value: pm.collectionVariables.get(\"company_id\") });\n\nconst random = Date.now();\n\npm.request.body.update({\n    mode: \"raw\",\n    raw: JSON.stringify({\n        employee: {\n            first_name: \"Sara\",\n            last_name: \"QA\",\n            email: \"sara.vadivel+\" + random + \"@right-hand.ai\",\n            role: \"employee\",\n            send_invite: false\n        }\n    }),\n    options: { raw: { language: \"json\" } }\n});\n\npm.request.headers.upsert({ key: \"Content-Type\", value: \"application/json\" });\n\nconsole.log(\"ENV:\", JSON.stringify(pm.environment.toObject()), \"| COLLECTION company_id:\", pm.collectionVariables.get(\"company_id\"));"]}}],"id":"139eb87d-9b31-413c-8660-3185d62618f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"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":"https://api.right-hand.ai/public/companies/:company_id/employees","description":"<p>Creates a new employee (user) under a specified company.</p>\n<p><strong>Endpoint:</strong> <code>POST https://api.right-hand.ai/public/companies/:company_id/employees</code></p>\n<p><strong>Path Variables:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique identifier of the company to add the employee to. Resolved from the <code>company_id</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body (JSON):</strong></p>\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>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>first_name</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Employee's first name.</td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td>String</td>\n<td>No</td>\n<td>Employee's last name.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>String (Email)</td>\n<td>Yes</td>\n<td>A valid email address for the employee. Must be unique.</td>\n</tr>\n<tr>\n<td><code>role</code></td>\n<td>String</td>\n<td>No</td>\n<td>Role assigned to the employee. Defaults to <code>employee</code>. Available options: <code>admin</code>, <code>employee</code>.</td>\n</tr>\n<tr>\n<td><code>send_invite</code></td>\n<td>Boolean</td>\n<td>No</td>\n<td>If <code>true</code>, sends an onboarding invite to the employee's email. Defaults to <code>false</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication:</strong> Requires a valid bearer token passed via the <code>Authorization</code> header (inherited from the collection).</p>\n<p><strong>Response:</strong><br />On success, returns <code>200 OK</code> with the created employee's details. The <code>employee.id</code> from the response is automatically saved to both the <code>user_id</code> collection variable and the active environment variable <code>user_id</code> for use in subsequent requests.</p>\n<p><strong>Notes:</strong></p>\n<ul>\n<li><p>The pre-request script dynamically generates a unique email address (using a timestamp suffix) and sets the request body at runtime, so the static body shown here is for reference only.</p>\n</li>\n<li><p>The <code>company_id</code> path variable is resolved from the collection variable at runtime.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employees"],"host":["https://api.right-hand.ai"],"query":[],"variable":[{"type":"any","value":"{{company_id}}","key":"company_id"}]}},"response":[{"id":"66f3d048-3167-43e3-9042-19f3df26c605","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":"{{company_id}}","description":"ID of company where you want to add a new user"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"employee\": {\n                \"id\": 1,\n                \"first_name\": \"Demo\",\n                \"last_name\": \"User\",\n                \"email\": \"demo@domain.com\",\n                \"role\": \"employee\"\n            }\n        }\n    }"}],"_postman_id":"139eb87d-9b31-413c-8660-3185d62618f6"},{"name":"Send onboarding instructions to an existing employee","id":"f80338be-0dbf-4b95-8833-2ced2d419300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":"https://api.right-hand.ai/public/employees/:user_id/invitations","description":"<p>Sends onboarding instructions (invitation email) to an employee who already exists in the system but has not yet been onboarded.</p>\n<p><strong>Method:</strong> <code>POST</code><br /><strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/employees/:user_id/invitations</code></p>\n<h3 id=\"path-variables\">Path Variables</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>user_id</code></td>\n<td>The unique ID of the employee to onboard. Mapped to the <code></code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"headers\">Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Content-Type</code></td>\n<td><code>application/json</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"authentication\">Authentication</h3>\n<p>This request inherits authentication from the parent collection. Set a valid token in the <code></code> collection/environment variable before sending.</p>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>The employee must already exist and be active in the system before calling this endpoint.</p>\n</li>\n<li><p>This endpoint triggers a re-send of the onboarding invitation; it does not create a new employee record.</p>\n</li>\n<li><p>A successful call returns a <code>2xx</code> response confirming the invitation was dispatched.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"93dd4891-8110-4f19-bf95-1a36daaf0ca3","name":"Send onboarding instructions to an existing employee","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.right-hand.ai/public/employees/:user_id/invitations","host":["https://api.right-hand.ai"],"path":["public","employees",":user_id","invitations"],"variable":[{"key":"user_id","value":"","description":"ID of user you want to onboard"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"code\": 200,\n        \"message\": \"OK\",\n        \"details\": {\n            \"success\": true\n        }\n    }"}],"_postman_id":"f80338be-0dbf-4b95-8833-2ced2d419300"},{"name":"Import a CSV file","id":"29971d6b-724f-4ef3-93cf-5f67efd22422","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":""}]},"url":"https://api.right-hand.ai/public/companies/:id/imported_files","description":"<p>Imports a CSV file into a specified company account to bulk-add or update users.</p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>The ID of the account where you want to import users. Get this ID from your CSM.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body</strong> (form-data)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>file</code></td>\n<td>File</td>\n<td>The CSV file to upload. The file should contain user data in the expected format.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Headers</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Content-Type</code></td>\n<td><code>application/json</code></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Notes</strong></p>\n<ul>\n<li><p>Ensure the CSV file follows the required schema before uploading to avoid import errors.</p>\n</li>\n<li><p>Authentication is required. Use the <code></code> or <code></code> variable in the Authorization header as appropriate.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"","key":"id"}]}},"response":[{"id":"9faa04f4-24e9-476a-809f-597a6230e688","name":"Import a CSV file","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","value":null}]},"url":{"raw":"https://api.right-hand.ai/public/companies/:id/imported_files","host":["https://api.right-hand.ai"],"path":["public","companies",":id","imported_files"],"variable":[{"key":"id","value":null,"description":"ID of account where you want to import users"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"29971d6b-724f-4ef3-93cf-5f67efd22422"},{"name":"Update an Existing User","id":"eafddd72-8032-4bc2-b3fe-8714d53dace2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"employee\": {\n        \"attribute_name\": \"attribute_value\"\n    }\n}   \n","options":{"raw":{"language":"text"}}},"url":"https://api.right-hand.ai/public/companies/:company_id/employees/:user_id","description":"<p>Updates one or more attributes of an existing employee/user within a specified company.</p>\n<p><strong>Method:</strong> PATCH<br /><strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/companies/:company_id/employees/:user_id</code></p>\n<hr />\n<h3 id=\"path-variables\">Path Variables</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The ID of the company in which the user exists. Resolved from the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>The ID of the user to update. Resolved from the <code></code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"request-headers\">Request Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Content-Type</code></td>\n<td><code>application/json</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"request-body\">Request Body</h3>\n<p>Send a JSON object with an <code>employee</code> key containing the fields to update as key-value pairs.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"employee\": {\n        \"attribute_name\": \"attribute_value\"\n    }\n}\n\n</code></pre>\n<p>Replace <code>attribute_name</code> and <code>attribute_value</code> with the actual employee field and its new value (e.g., <code>\"first_name\": \"Jane\"</code>).</p>\n<hr />\n<h3 id=\"authentication\">Authentication</h3>\n<p>This endpoint requires a valid account or user token. Set the appropriate token in the <code>ACCOUNT_TOKEN</code> or <code>USER_TOKEN</code> environment/collection variable before sending the request.</p>\n<hr />\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Only the fields included in the request body will be updated; omitted fields remain unchanged.</p>\n</li>\n<li><p>Ensure the <code>company_id</code> and <code>user_id</code> path variables are set correctly before sending.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"{{company_id}}","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":"c9e60112-db9c-482c-9bcc-62b48016ae83","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":"{{company_id}}"},{"key":"user_id","value":""}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"employee\": {\n            \"id\": integer,\n            \"first_name\": string,\n            \"last_name\": string,\n            \"email\": string,\n            \"role\": string,\n            \"risk_score\": x\n        }\n    }\n}"}],"_postman_id":"eafddd72-8032-4bc2-b3fe-8714d53dace2"},{"name":"Archive User(s)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status is 200\", function () {\n    pm.response.to.have.status(200);\n});"]}}],"id":"e6b63125-0bf8-4ea9-881e-2a611eb663f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": []\n} ","options":{"raw":{"language":"text"}}},"url":"https://api.right-hand.ai/public/companies/:company_id/send_multiple_archives","description":"<p>Archives one or more users within a specified company account.</p>\n<p><strong>Endpoint:</strong> <code>POST https://api.right-hand.ai/public/companies/:company_id/send_multiple_archives</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The ID of the account where you want to archive users.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body</strong> (JSON)</p>\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>id</code></td>\n<td>array</td>\n<td>A list of user IDs to archive. Supports archiving multiple users in a single request.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example Request Body</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": []\n}\n\n</code></pre>\n<p><strong>Authentication</strong><br />Requires a valid <code>Content-Type: application/json</code> header. Ensure the appropriate account token or user token is set in the active environment.</p>\n<p><strong>Responses</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200 OK</code></td>\n<td>Users were successfully archived.</td>\n</tr>\n<tr>\n<td><code>4xx</code></td>\n<td>Authentication or validation error. Check that <code>company_id</code> and user IDs are correct.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"","key":"company_id"}]}},"response":[{"id":"4ddeb178-0ccf-4276-8faf-c25439a831ca","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":"{{company_id}}","description":"ID of company where you want to archive users."}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}\n"}],"_postman_id":"e6b63125-0bf8-4ea9-881e-2a611eb663f8"},{"name":"Delete Existing User(s)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status is 200\", function () {\n    pm.response.to.have.status(200);\n});"]}}],"id":"2c06984a-e130-4fad-a2d3-ee992f884e37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": [] // array of user ids\n} ","options":{"raw":{"language":"text"}}},"url":"https://api.right-hand.ai/public/companies/:company_id/send_multiple_deletes","description":"<p>Permanently deletes one or more users from a specified company account. This action cannot be undone.</p>\n<p><strong>Method:</strong> POST\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/companies/:company_id/send_multiple_deletes</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The ID of the company from which users will be deleted. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n<p><strong>Request Body (JSON)</strong></p>\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>id</code></td>\n<td>array</td>\n<td>A list of user IDs to permanently delete. Supports deleting multiple users in a single request.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example Request Body</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": []\n}\n</code></pre>\n<p><strong>Response</strong></p>\n<p>Returns <code>200 OK</code> on successful deletion.</p>\n<p><strong>Warning</strong></p>\n<p>This permanently removes user records and all associated data. Use Archive User(s) instead if you want to deactivate users without losing their data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","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":"{{company_id}}","key":"company_id"}]}},"response":[{"id":"bfc88a98-746d-4986-b5ed-61ebbd5ed172","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":"{{company_id}}","description":"ID of company where you want to delete users."}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"success\": true\n    }\n}"}],"_postman_id":"2c06984a-e130-4fad-a2d3-ee992f884e37"},{"name":"List of employees in a company","id":"3ea88e7a-510e-4af5-9021-0be5ffd28a8a","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","description":"<p>Retrieves a paginated list of employees belonging to a specific company.</p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the company whose employees you want to list.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Query Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>page</code></td>\n<td><code>1</code></td>\n<td>The page number to retrieve.</td>\n</tr>\n<tr>\n<td><code>size_per_page</code></td>\n<td><code>10</code></td>\n<td>Number of employee records to return per page.</td>\n</tr>\n<tr>\n<td><code>sort_field</code></td>\n<td><code>first_name</code></td>\n<td>Field to sort results by. Available options: <code>first_name</code>, <code>last_name</code>, <code>risk_score</code>.</td>\n</tr>\n<tr>\n<td><code>sort_order</code></td>\n<td><code>asc</code></td>\n<td>Sort direction. Available options: <code>asc</code>, <code>desc</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid account or user token passed via the collection-level auth configuration.</p>\n<p><strong>Response</strong></p>\n<p>Returns a list of employee objects for the specified company, ordered and paginated according to the provided parameters.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employees"],"host":["https://api.right-hand.ai"],"query":[{"description":{"content":"<p>Page No</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Number of records per page</p>\n","type":"text/plain"},"key":"size_per_page","value":"10"},{"description":{"content":"<p>Default is first_name, available options (first_name, last_name, risk_score)</p>\n","type":"text/plain"},"key":"sort_field","value":"first_name"},{"description":{"content":"<p>Default is asc, available options (asc, desc)</p>\n","type":"text/plain"},"key":"sort_order","value":"asc"}],"variable":[{"description":{"content":"<p>ID of company </p>\n","type":"text/plain"},"type":"any","value":"{{company_id}}","key":"company_id"}]}},"response":[{"id":"6e693f50-36aa-4834-be57-61c936a827bc","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":"{{company_id}}","description":"ID of company "}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"employees\": [\n            {\n                \"id\": 1,\n                \"first_name\": \"Demo\",\n                \"last_name\": \"User\",\n                \"name\": \"Demo User\"\",\n                \"email\": \"demo@domain.com\",\n                \"last_sign_in_at\": \"2022-07-27 09:06 PM\",\n                \"department_title\": \"IT\",\n                \"role_names\": \"employee\",\n                \"risk_score\": 100,\n                \"title_text\": \"Demo\",\n                \"location_name\": \"Demo\",\n                \"report_to\": \"Demo Manager\",\n                \"is_admin\": false,\n                \"is_archive\": false,\n                \"invitation_accepted\": true,\n                \"action_id\": 1\n            }\n        ],\n        \"total_count\": 10,\n        \"active_count\": 9,\n        \"archived_count\": 1\n    }\n}\n"}],"_postman_id":"3ea88e7a-510e-4af5-9021-0be5ffd28a8a"},{"name":"Training Statistics","id":"d3b4bf2b-3e5f-49b2-a80e-c987b26227ca","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","description":"<p>Returns paginated training statistics for employees within a specific company, optionally filtered by a specific user.</p>\n<p><strong>Method:</strong> GET\n<strong>Endpoint:</strong> <code>https://api.right-hand.ai/public/companies/:company_id/employee_training_stats</code></p>\n<p><strong>Path Variables</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>company_id</code></td>\n<td>The unique ID of the company. Use the <code>{{company_id}}</code> collection variable.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Query Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>size_per_page</code></td>\n<td><code>10</code></td>\n<td>Number of records to return per page.</td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td><code>1</code></td>\n<td>Page number to retrieve.</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td><code></code></td>\n<td>Filter results to a specific employee by their user ID. Omit to return stats for all employees.</td>\n</tr>\n<tr>\n<td><code>sort_field</code></td>\n<td><code>id</code></td>\n<td>Field to sort results by.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication</strong></p>\n<p>Requires a valid bearer token inherited from the collection (<code></code>).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","companies",":company_id","employee_training_stats"],"host":["https://api.right-hand.ai"],"query":[{"key":"size_per_page","value":"10"},{"key":"page","value":"1"},{"description":{"content":"<p>ID of user </p>\n","type":"text/plain"},"key":"user_id","value":""},{"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":"{{company_id}}","key":"company_id"}]}},"response":[{"id":"7955a34d-1636-4699-ad81-e2a852b69211","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":"{{company_id}}","description":"ID of company where you want to query"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"OK\",\n    \"details\": {\n        \"user_trainings\": [\n            {\n                \"id\": 1,\n                \"name\": \"Training 1\",\n                \"category_name\": \"Category 1\",\n                \"competition_title\": \"September 2022\",\n                \"completed\": true,\n                \"passed\": true\n            }\n        ],\n        \"number_stats\": {\n            \"0\": 100.0,\n            \"1\": 0.0,\n            \"2\": 0.0,\n            \"3\": 0.0,\n            \"incomplete_stats\": 0.0\n        },\n        \"completion_stats\": {\n            \"daily_count\": 1,\n            \"daily_percentage\": 100.0,\n            \"weekly_count\": 1,\n            \"weekly_percentage\": 100.0,\n            \"monthly_count\": 1,\n            \"monthly_percentage\": 100.0\n        },\n        \"total\": 2,\n        \"completed\": 2,\n        \"incomplete\": 0,\n        \"passed\": 2,\n        \"failed\": 0\n    }\n}"}],"_postman_id":"d3b4bf2b-3e5f-49b2-a80e-c987b26227ca"}],"id":"941004c1-1e8a-4a2f-8227-83c53806cc9f","description":"<p>This folder contains endpoints to manage the full employee lifecycle within a Right-Hand account.</p>\n<p><strong>User provisioning</strong></p>\n<ul>\n<li><p>Add individual users or bulk-import them via a CSV file.</p>\n</li>\n<li><p>Send onboarding instructions to existing employees to get them set up.</p>\n</li>\n</ul>\n<p><strong>User maintenance</strong></p>\n<ul>\n<li><p>Update profile details for an existing user.</p>\n</li>\n<li><p>List all employees in a company with their current status.</p>\n</li>\n</ul>\n<p><strong>User offboarding</strong></p>\n<ul>\n<li><p>Archive users to suspend access while retaining their data.</p>\n</li>\n<li><p>Permanently delete one or more users from the account.</p>\n</li>\n</ul>\n<p><strong>Reporting</strong></p>\n<ul>\n<li>Retrieve training statistics for users to track security awareness progress.</li>\n</ul>\n<p>All requests in this folder require a valid Bearer token obtained from the Authentication folder.</p>\n","_postman_id":"941004c1-1e8a-4a2f-8227-83c53806cc9f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Reports","item":[{"name":"Phishing","item":[{"name":"Repeat Offender","id":"477f69d8-81b0-49f5-b0f3-43f7817e859a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{TOKEN}}","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":"3d733faa-6fe2-4d85-ac6e-e6afb34166b4","name":"Repeat Offender","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{TOKEN}}","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":"477f69d8-81b0-49f5-b0f3-43f7817e859a"},{"name":"Behavior Analysis","id":"60e01b1d-87f5-492f-bbad-93abc425c1f1","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":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","reports","export.json"],"host":["https://api.right-hand.ai"],"query":[{"key":"size_per_page","value":"10"},{"key":"type","value":"json"},{"key":"sort_field","value":"risk_score"},{"key":"sort_order","value":"desc"},{"key":"format","value":"json"},{"description":{"content":"<p>available option email_templates, attacker_profiles</p>\n","type":"text/plain"},"key":"report_type","value":"email_templates"}],"variable":[]}},"response":[{"id":"7545bad1-9485-4797-9546-06d61aa6fda7","name":"Behavior Analysis","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TOKEN}}","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":"60e01b1d-87f5-492f-bbad-93abc425c1f1"},{"name":"Custom Report -  Phishing Results","id":"281d8636-7d23-4d68-b49f-6a8bcc4aa9db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"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_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://api.right-hand.ai/public/reports/v1/phishing-export","description":"<h1 id=\"custom-report---phishing-results\">Custom Report - Phishing Results</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":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","reports","v1","phishing-export"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"e27a5ffb-35d7-4ad3-94b2-56c1dbb06d2f","name":"Example","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":"{{URL_PUBLIC}}/public/reports/v1/phishing-export"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"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":"281d8636-7d23-4d68-b49f-6a8bcc4aa9db"}],"id":"51d374b3-6547-4b23-82e9-45e909d35116","_postman_id":"51d374b3-6547-4b23-82e9-45e909d35116","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Training","item":[{"name":"Training Stats","id":"b1414011-dd8c-4b16-b83b-e56fb81a124f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{authorization_secret}}"}]},"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":""}],"variable":[]}},"response":[{"id":"24281eef-1fa0-4570-91f7-48fbbded585f","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":"20bb1780-4f07-4a26-a137-1a8d2ec52d5e","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":"Text","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":"b1414011-dd8c-4b16-b83b-e56fb81a124f"},{"name":"Custom Report - Training Data","id":"ae81dfa7-930f-456c-be43-7676541cc85d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"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://api.right-hand.ai/public/reports/v2/export","description":"<h1 id=\"custom-report---training-data\">Custom Report - 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>{{URL_PUBLIC}}</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","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","reports","v2","export"],"host":["https://api.right-hand.ai"],"query":[],"variable":[]}},"response":[{"id":"2aa522b8-9014-42af-89ab-533639c032fa","name":"Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"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":"{{URL_PUBLIC}}/public/reports/v1/export"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"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":"ae81dfa7-930f-456c-be43-7676541cc85d"}],"id":"ec3b03f9-691b-4af9-8ebc-f3cb5490a5e6","_postman_id":"ec3b03f9-691b-4af9-8ebc-f3cb5490a5e6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}}],"id":"d2de161c-58dd-4377-9668-bcfb1103d2c8","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":"d2de161c-58dd-4377-9668-bcfb1103d2c8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}},{"name":"Audit Logs","item":[{"name":"Most recent activity","id":"4a3e05f6-57b8-4bac-aa9c-ac0fd4d6291e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/v1/audit_logs?page=1&size_per_page=25","description":"<p>Recent events, all categories/actors incl. system.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","v1","audit_logs"],"host":["https://api.right-hand.ai"],"query":[{"key":"page","value":"1"},{"key":"size_per_page","value":"25"}],"variable":[]}},"response":[{"id":"ddafa0f3-e5fb-4320-8b76-42c054047a35","name":"Most recent activity","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/public/v1/audit_logs?page=1&size_per_page=25","host":["{{base_url}}"],"path":["public","v1","audit_logs"],"query":[{"key":"page","value":"1","type":"text"},{"key":"size_per_page","value":"25","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"user_id\":null,\"user_name\":\"System\",\"occurred_at\":\"2026-07-25T16:12:47+08:00\",\"ip\":null,\"log_target\":\"Campaigns\",\"log_action\":\"Update\",\"summary\":\"Campaign details have been updated\",\"metadata\":{\"Training Score\":\"changed from 100.0 to 75.0\"}},{\"user_id\":42,\"user_name\":\"Jane Doe\",\"occurred_at\":\"2026-07-25T15:55:15+08:00\",\"ip\":\"203.0.113.10\",\"log_target\":\"Employee Lifecycle\",\"log_action\":\"Role Change\",\"summary\":\"Role changed for user@example.com\",\"metadata\":{\"event\":\"role_changed\",\"role_before\":\"employee\",\"role_after\":\"employee, it_admin\"}}],\"pagination\":{\"page\":1,\"size_per_page\":25,\"has_more\":false,\"total_count\":24}}"}],"_postman_id":"4a3e05f6-57b8-4bac-aa9c-ac0fd4d6291e"},{"name":"Filter by category (log_target)","id":"636d85ec-4b31-441b-9901-1fa855982b3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/v1/audit_logs?log_target=Login Activity&size_per_page=100","description":"<p>Retrieves a filtered list of audit logs based on a specific log category (<code>log_target</code>). Use this endpoint to narrow down audit log results to a particular activity type, such as <code>Login Activity</code>.</p>\n<h2 id=\"query-parameters\">Query 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>log_target</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The audit log category to filter by. Must be an <strong>exact, case-sensitive</strong> match (e.g. <code>Login Activity</code>).</td>\n</tr>\n<tr>\n<td><code>size_per_page</code></td>\n<td>integer</td>\n<td>No</td>\n<td>Number of audit log entries to return per page. Defaults to <code>100</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"notes\">Notes</h2>\n<ul>\n<li>The <code>log_target</code> value is <strong>case-sensitive</strong> — ensure the value matches the category name exactly as it appears in the system.</li>\n<li>Use <code>size_per_page</code> to control pagination and limit the volume of results returned per request.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","v1","audit_logs"],"host":["https://api.right-hand.ai"],"query":[{"description":{"content":"<p>Exact, case-sensitive.</p>\n","type":"text/plain"},"key":"log_target","value":"Login Activity"},{"key":"size_per_page","value":"100"}],"variable":[]}},"response":[],"_postman_id":"636d85ec-4b31-441b-9901-1fa855982b3b"},{"name":"Filter by action (log_action)","id":"5e86e3a5-242b-4304-874e-7e062f1c20e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/v1/audit_logs?log_action=Logout&size_per_page=100","description":"<p>Retrieves audit log entries filtered by a specific action type using the <code>log_action</code> query parameter.</p>\n<p><strong>Use case:</strong> Use this endpoint to narrow down audit logs to a particular action, such as <code>Login</code>, <code>Logout</code>, <code>Create</code>, <code>Update</code>, <code>Delete</code>, or <code>Role Change</code>. This is useful for security reviews, compliance audits, or investigating specific user activities.</p>\n<h2 id=\"query-parameters\">Query 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>log_action</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The action type to filter by. Accepted values: <code>Login</code>, <code>Logout</code>, <code>Create</code>, <code>Update</code>, <code>Delete</code>, <code>Role Change</code>.</td>\n</tr>\n<tr>\n<td><code>size_per_page</code></td>\n<td>integer</td>\n<td>No</td>\n<td>Number of results to return per page. Defaults to <code>25</code>.</td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>No</td>\n<td>Page number for pagination. Defaults to <code>1</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<p>Returns a paginated list of audit log entries matching the specified action. Each entry includes:</p>\n<ul>\n<li><code>user_id</code> — ID of the user who performed the action.</li>\n<li><code>user_name</code> — Display name of the user.</li>\n<li><code>occurred_at</code> — ISO 8601 timestamp of when the event occurred (timezone-aware).</li>\n<li><code>ip</code> — IP address from which the action was performed.</li>\n<li><code>log_target</code> — Category of the event (e.g., <code>Login Activity</code>).</li>\n<li><code>log_action</code> — The action that was performed (matches the filter value).</li>\n<li><code>summary</code> — Human-readable description of the event.</li>\n<li><code>metadata</code> — Additional structured details about the event (e.g., auth method, session duration, reason for logout).</li>\n</ul>\n<h2 id=\"example\">Example</h2>\n<p>The default example filters for <code>Logout</code> events with up to 100 results per page:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://api.right-hand.ai/public/v1/audit_logs?log_action=Logout&amp;size_per_page=100\n</code></pre>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","v1","audit_logs"],"host":["https://api.right-hand.ai"],"query":[{"description":{"content":"<p>e.g. Login, Logout, Create, Update, Delete, Role Change.</p>\n","type":"text/plain"},"key":"log_action","value":"Logout"},{"key":"size_per_page","value":"100"}],"variable":[]}},"response":[],"_postman_id":"5e86e3a5-242b-4304-874e-7e062f1c20e1"},{"name":"Get Logs by Date Range","id":"ab80da86-1f91-4311-98b4-05c7c3d6c5db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/v1/audit_logs?log_target=Employee Lifecycle&log_action=Role Change&from_date=2026-07-01&to_date=2026-07-31&size_per_page=100","description":"<p>Retrieves audit log entries filtered by both a date range and a specific action type — in this case, <strong>Role Changes</strong> within the <strong>Employee Lifecycle</strong> category.</p>\n<p><strong>Use case:</strong> Use this request to audit all role change events that occurred for employees within a given time window. This is useful for compliance reviews, access control audits, or investigating privilege escalations.</p>\n<h2 id=\"query-parameters\">Query Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>log_target</code></td>\n<td><code>Employee Lifecycle</code></td>\n<td>Filters logs to the Employee Lifecycle category.</td>\n</tr>\n<tr>\n<td><code>log_action</code></td>\n<td><code>Role Change</code></td>\n<td>Narrows results to role change events only.</td>\n</tr>\n<tr>\n<td><code>from_date</code></td>\n<td><code>2026-07-01</code></td>\n<td>Start of the date range (inclusive). Format: <code>YYYY-MM-DD</code>.</td>\n</tr>\n<tr>\n<td><code>to_date</code></td>\n<td><code>2026-07-31</code></td>\n<td>End of the date range (inclusive). Format: <code>YYYY-MM-DD</code>.</td>\n</tr>\n<tr>\n<td><code>size_per_page</code></td>\n<td><code>100</code></td>\n<td>Number of results to return per page.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Adjust <code>from_date</code> and <code>to_date</code> to change the reporting window.</p>\n</li>\n<li><p>To paginate through results, use the <code>page</code> parameter (e.g. <code>page=2</code>).</p>\n</li>\n<li><p>Authentication is required. Ensure a valid token is set in the active environment (<code>ACCOUNT_TOKEN</code> or <code>USER_TOKEN</code>).</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","v1","audit_logs"],"host":["https://api.right-hand.ai"],"query":[{"key":"log_target","value":"Employee Lifecycle"},{"key":"log_action","value":"Role Change"},{"key":"from_date","value":"2026-07-01"},{"key":"to_date","value":"2026-07-31"},{"key":"size_per_page","value":"100"}],"variable":[]}},"response":[],"_postman_id":"ab80da86-1f91-4311-98b4-05c7c3d6c5db"},{"name":"Request Subsequent Pages","id":"7557392c-8bfd-4237-8baf-0d9508ec91e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.right-hand.ai/public/v1/audit_logs?page=2&size_per_page=100","description":"<p>Retrieves a paginated list of audit log entries, demonstrating how to navigate beyond the first page of results.</p>\n<p><strong>Pagination parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>page</code></td>\n<td><code>2</code></td>\n<td>The page number to retrieve (1-indexed).</td>\n</tr>\n<tr>\n<td><code>size_per_page</code></td>\n<td><code>100</code></td>\n<td>Number of records to return per page.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Use this request to:</strong></p>\n<ul>\n<li>Fetch the second page of audit logs when the total number of records exceeds the page size.</li>\n<li>Adjust <code>page</code> and <code>size_per_page</code> to navigate through large audit log datasets efficiently.</li>\n</ul>\n<p><strong>Response:</strong> Returns a <code>data</code> array of audit log objects. Each entry includes <code>user_id</code>, <code>user_name</code>, <code>occurred_at</code>, <code>ip</code>, <code>log_target</code>, <code>log_action</code>, <code>summary</code>, and a <code>metadata</code> object with change details.</p>\n<p><strong>Authentication:</strong> Requires a valid bearer token passed via the <code>Authorization</code> header (inherited from the collection).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}},"urlObject":{"path":["public","v1","audit_logs"],"host":["https://api.right-hand.ai"],"query":[{"key":"page","value":"2"},{"key":"size_per_page","value":"100"}],"variable":[]}},"response":[],"_postman_id":"7557392c-8bfd-4237-8baf-0d9508ec91e4"}],"id":"d0c1e4e3-89bf-44ea-8456-7d578c29d730","description":"<h1 id=\"right-hand--audit-logs-api\">Right-Hand — Audit Logs API</h1>\n<p>Read-only, JSON-only access to your company's audit logs — built for <strong>SIEM ingestion, compliance exports, actor investigations, and category monitoring</strong>.</p>\n<h2 id=\"prerequisites\">Prerequisites</h2>\n<ul>\n<li>The <strong>Audit Log</strong> product enabled for your company</li>\n</ul>\n<h2 id=\"query-parameters\">Query Parameters</h2>\n<p>All optional; multiple filters are combined with <strong>AND</strong>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>Default <code>1</code></td>\n</tr>\n<tr>\n<td><code>size_per_page</code></td>\n<td>integer</td>\n<td>Default <code>10</code>, max <code>100</code></td>\n</tr>\n<tr>\n<td><code>log_target</code></td>\n<td>string</td>\n<td>Exact match, <strong>case-sensitive</strong></td>\n</tr>\n<tr>\n<td><code>log_action</code></td>\n<td>string</td>\n<td>e.g. <code>Login</code>, <code>Logout</code>, <code>Create</code>, <code>Role Change</code></td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>integer</td>\n<td>Omit to get <strong>all</strong> actors (incl. system)</td>\n</tr>\n<tr>\n<td><code>from_date</code></td>\n<td>string</td>\n<td><code>YYYY-MM-DD</code> or ISO-8601</td>\n</tr>\n<tr>\n<td><code>to_date</code></td>\n<td>string</td>\n<td><code>YYYY-MM-DD</code> or ISO-8601</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": [\n    {\n      \"user_id\": 42,\n      \"user_name\": \"Jane Doe\",\n      \"occurred_at\": \"2026-07-25T15:55:15+08:00\",\n      \"ip\": \"203.0.113.10\",\n      \"log_target\": \"Login Activity\",\n      \"log_action\": \"Logout\",\n      \"summary\": \"Signed out\",\n      \"metadata\": { \"method\": \"session\" }\n    }\n  ],\n  \"pagination\": { \"page\": 1, \"size_per_page\": 10, \"has_more\": false, \"total_count\": 24 }\n}\n\n</code></pre>\n<blockquote>\n<p>This is a sample response.</p>\n</blockquote>\n","_postman_id":"d0c1e4e3-89bf-44ea-8456-7d578c29d730","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"00a93029-c762-4fb9-93e1-de0e218f71aa","id":"00a93029-c762-4fb9-93e1-de0e218f71aa","name":"Right-Hand API Documentation","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"e6eb473a-0bf6-468c-813e-b00e4148198e","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"4363508f-d9aa-4a74-871f-9b38b7658fa4","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"USER_TOKEN","value":""},{"key":"URL","value":"https://api.right-hand.ai"},{"key":"user_id","value":""},{"key":"ACCOUNT_TOKEN","value":""},{"key":"SERVICE_ACCOUNT_EMAIL","value":""},{"key":"campaign_id","value":""},{"key":"timezone","value":""},{"key":"COMPANY_NAME","value":""}]}