{"info":{"_postman_id":"236d8720-ed1f-4016-a2df-878f6a0657a7","name":"CommVersion Client API v3","description":"<html><head></head><body><h1 id=\"fetch-lead-details\">Fetch Lead Details</h1>\n<p>Retrieves chat lead data with advanced filtering, sorting, and pagination capabilities.</p>\n<h2 id=\"features\">Features</h2>\n<ul>\n<li><p><strong>Date Range Filtering</strong>: Filter by <code>date_from</code> and <code>date_to</code> (ISO 8601 format, UTC timezone) on:</p>\n<ul>\n<li><p><code>chat_start_time</code></p>\n</li>\n<li><p><code>chat_end_time</code></p>\n</li>\n<li><p><code>chat_dispatched_at</code></p>\n</li>\n</ul>\n</li>\n<li><p><strong>Dynamic Sorting</strong>: Sort results by <code>chat_start_time</code>, <code>chat_end_time</code>, or <code>chat_dispatched_at</code> in ascending or descending order</p>\n</li>\n<li><p><strong>Pagination</strong>: Configurable page size (1-200 records per page, default: 25)</p>\n</li>\n<li><p><strong>Security</strong>: API key authentication</p>\n</li>\n<li><p><strong>IP Allowlisting (Additional Security):</strong> Access to this API can be restricted by specifying one or more allowed IP addresses or IP address ranges (CIDR notation). Only requests originating from the configured IPs or ranges will be permitted; all other requests will be denied.</p>\n</li>\n</ul>\n<h2 id=\"query-limits\">Query Limits</h2>\n<ul>\n<li><p><strong>Maximum Date Range</strong>: 90 days (3 months)</p>\n</li>\n<li><p><strong>Maximum Page Size</strong>: 200 records</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Fetch Lead Details","slug":"fetch-lead-details"}],"owner":"32188624","collectionId":"236d8720-ed1f-4016-a2df-878f6a0657a7","publishedId":"2sB3QFQXRy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-09-30T13:22:19.000Z"},"item":[{"name":"Get Chat Data","event":[{"listen":"prerequest","script":{"id":"e70fab49-d7b7-4d45-991c-52de64c8bbfa","exec":["// Set dynamic timestamp for date filtering","const now = new Date();","const thirtyDaysAgo = new Date(now.getTime() - (30 * 24 * 60 * 60 * 1000));","","pm.collectionVariables.set(\"date_from\", thirtyDaysAgo.toISOString());","pm.collectionVariables.set(\"date_to\", now.toISOString());"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"40e6219d-6ca8-4cd1-a25e-0573c7afbc55","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response contains data\", function () {","    const jsonData = pm.response.json();","    pm.expect(jsonData).to.have.property('data');","    pm.expect(jsonData.data).to.have.property('total');","});","","pm.test(\"Response time is acceptable\", function () {","    pm.expect(pm.response.responseTime).to.be.below(5000);","});","","pm.test(\"API Key is valid\", function () {","    pm.expect(pm.response.code).to.not.equal(401);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"8c203c77-0c64-4f7b-bbd1-cf18fbf2d34b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Api-Key","value":"your-api-key-here","description":"<p>The API Key provided to you by CommVersion </p>\n","type":"text"},{"key":"User-Agent","value":"MyApp/1.0","description":"<p>You need to pass a User Agent to identify your machine and pass our firewall checks.</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>The API accepts JSON body</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"date_from\": \"2025-08-01T00:00:00.000Z\",\n    \"date_to\": \"2025-08-31T23:59:59.999Z\",\n    \"filter_by\": \"chat_start_time\",\n    \"sort_key\": \"chat_end_time\",\n    \"sort_order\": \"DESC\",\n    \"page\": 2,\n    \"page_size\": 50\n}","options":{"raw":{"language":"json"}}},"url":"https://client-api.commversion.com/v3/chats","description":"<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>All time-related fields use ISO 8601 format in UTC timezone.</p>\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<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>date_from</code></td>\n<td>string (ISO 8601)</td>\n<td>Optional</td>\n<td>Start date for filtering</td>\n<td><code>2025-08-01T00:00:00.000Z</code></td>\n</tr>\n<tr>\n<td><code>date_to</code></td>\n<td>string (ISO 8601)</td>\n<td>Optional</td>\n<td>End date for filtering</td>\n<td><code>2025-08-14T23:59:59.999Z</code></td>\n</tr>\n<tr>\n<td><code>filter_by</code></td>\n<td>string</td>\n<td>Optional</td>\n<td>Field to apply date range filter on</td>\n<td><code>chat_start_time</code>, <code>chat_end_time</code>, <code>chat_dispatched_at</code></td>\n</tr>\n<tr>\n<td><code>sort_key</code></td>\n<td>string</td>\n<td>Optional</td>\n<td>Field to sort results by</td>\n<td><code>chat_start_time</code>, <code>chat_end_time</code>, <code>chat_dispatched_at</code></td>\n</tr>\n<tr>\n<td><code>sort_order</code></td>\n<td>string</td>\n<td>Optional</td>\n<td>Sort direction (default: <code>DESC</code>)</td>\n<td><code>ASC</code> or <code>DESC</code></td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>Optional</td>\n<td>Page number, 1-based (default: <code>1</code>)</td>\n<td><code>1</code></td>\n</tr>\n<tr>\n<td><code>page_size</code></td>\n<td>integer</td>\n<td>Optional</td>\n<td>Records per page, max 200 (default: <code>25</code>)</td>\n<td><code>25</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"constraints\">Constraints</h3>\n<ul>\n<li><p><strong>Maximum Date Range</strong>: 90 days (3 months)</p>\n</li>\n<li><p><strong>Maximum Page Size</strong>: 200 records per page</p>\n</li>\n</ul>\n<h2 id=\"response-format\">Response Format</h2>\n<h3 id=\"top-level-structure\">Top-Level Structure</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": [ /* Array of chat objects */ ],\n  \"total\": 100\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>data</code></td>\n<td>array</td>\n<td>Array of chat lead objects (see detailed structure below)</td>\n</tr>\n<tr>\n<td><code>total</code></td>\n<td>integer</td>\n<td>Total number of records available across all pages</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"chat-object-structure\">Chat Object Structure</h3>\n<p>Each object in the <code>data</code> array contains the following sections:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"basic\": { /* Basic chat information */ },\n  \"client_details\": { /* Client information */ },\n  \"visitor_details\": { /* Visitor information */ },\n  \"tags\": { /* Chat tags and classifications */ },\n  \"additional_data\": { /* Client-specific additional fields */ },\n  \"metadata\": { /* Marketing metadata */ },\n  \"instant_connect\": { /* Instant connect call details */ },\n  \"custom_fields\": { /* Client-specific custom variables */ }\n}\n\n</code></pre>\n<hr />\n<h2 id=\"response-field-details\">Response Field Details</h2>\n<h3 id=\"basic---basic-chat-information\"><code>basic</code> - Basic Chat Information</h3>\n<p>Contains core chat details including transcript, duration, and timestamps.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"chat_id\": \"T08WVX8HG5\",\n  \"chat_taken_by\": \"John Doe\",\n  \"chat_start_url\": \"https://example.com/pricing\",\n  \"chat_referrer_url\": \"https://google.com\",\n  \"chat_duration_in_seconds\": 528,\n  \"chat_transcript\": \"Visitor: Hi\\nAgent: How can I help you?\",\n  \"chat_summary\": \"Customer inquired about pricing plans\",\n  \"chat_start_time\": \"2025-08-13T03:24:41.517Z\",\n  \"chat_end_time\": \"2025-08-13T03:32:15.859Z\",\n  \"source\": \"CommVersion\"\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>chat_id</code></td>\n<td>string</td>\n<td>Unique identifier of the chat</td>\n</tr>\n<tr>\n<td><code>chat_taken_by</code></td>\n<td>string</td>\n<td>Name of the operator who handled the chat</td>\n</tr>\n<tr>\n<td><code>chat_start_url</code></td>\n<td>string</td>\n<td>URL where the chat was initiated</td>\n</tr>\n<tr>\n<td><code>chat_referrer_url</code></td>\n<td>string</td>\n<td>Referrer URL from where the visitor came</td>\n</tr>\n<tr>\n<td><code>chat_duration_in_seconds</code></td>\n<td>number</td>\n<td>Duration of the chat in seconds</td>\n</tr>\n<tr>\n<td><code>chat_transcript</code></td>\n<td>string</td>\n<td>Complete transcript of the chat conversation</td>\n</tr>\n<tr>\n<td><code>chat_summary</code></td>\n<td>string</td>\n<td>AI-generated summary of the chat</td>\n</tr>\n<tr>\n<td><code>chat_start_time</code></td>\n<td>string (ISO 8601, UTC)</td>\n<td>Timestamp when the chat started</td>\n</tr>\n<tr>\n<td><code>chat_end_time</code></td>\n<td>string (ISO 8601, UTC)</td>\n<td>Timestamp when the chat ended</td>\n</tr>\n<tr>\n<td><code>source</code></td>\n<td>string</td>\n<td>Source platform of the chat</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"client_details---client-information\"><code>client_details</code> - Client Information</h3>\n<p>Contains information about the client/organization.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"client_name\": \"Acme Corporation\",\n  \"client_id\": \"d290f1ee-6c54-4b01-90e6-d701748f0851\"\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>client_name</code></td>\n<td>string</td>\n<td>Name of the client</td>\n</tr>\n<tr>\n<td><code>client_id</code></td>\n<td>string (UUID)</td>\n<td>Unique identifier of the client</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"visitor_details---visitor-information\"><code>visitor_details</code> - Visitor Information</h3>\n<p>Contains visitor contact information and location details.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"first_name\": \"Jane\",\n  \"last_name\": \"Smith\",\n  \"name\": \"Jane Smith\",\n  \"phone_number\": \"+1234567890\",\n  \"email\": \"jane.smith@example.com\",\n  \"city\": \"Los Angeles\",\n  \"region\": \"California\",\n  \"country\": \"United States\",\n  \"timezone\": \"America/Los_Angeles\"\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>first_name</code></td>\n<td>string</td>\n<td>First name of the visitor</td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td>string</td>\n<td>Last name of the visitor</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Full name of the visitor</td>\n</tr>\n<tr>\n<td><code>phone_number</code></td>\n<td>string</td>\n<td>Phone number of the visitor</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td>Email address of the visitor</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td>string</td>\n<td>City of the visitor</td>\n</tr>\n<tr>\n<td><code>region</code></td>\n<td>string</td>\n<td>Region/state of the visitor</td>\n</tr>\n<tr>\n<td><code>country</code></td>\n<td>string</td>\n<td>Country of the visitor</td>\n</tr>\n<tr>\n<td><code>timezone</code></td>\n<td>string</td>\n<td>Timezone of the visitor (IANA format)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"tags---chat-tags-and-classifications\"><code>tags</code> - Chat Tags and Classifications</h3>\n<p>Contains chat classification and categorization tags.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"chat_type\": \"lead\",\n  \"lead_type\": \"viewing\",\n  \"instantconnect\": \"instantconnect\"\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>chat_type</code></td>\n<td>string</td>\n<td>Type of the chat (e.g., \"lead\", \"support\")</td>\n</tr>\n<tr>\n<td><code>lead_type</code></td>\n<td>string</td>\n<td>Type of lead classification (e.g., \"viewing\", \"inquiry\")</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"additional_data---additional-custom-fields\"><code>additional_data</code> - Additional Custom Fields</h3>\n<p>Dynamic object containing client-specific additional fields configured in the system. Field names and values vary by client configuration.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"total_no_of_desks\": \"5\",\n  \"office_space\": \"200 sqft\",\n  \"budget_range\": \"$50k-$100k\"\n}\n\n</code></pre>\n<p><strong>Note</strong>: This is a dynamic object. The fields shown are examples and will differ based on client configuration.</p>\n<hr />\n<h3 id=\"metadata---marketing-metadata\"><code>metadata</code> - Marketing Metadata</h3>\n<p>Contains marketing tracking parameters and identifiers.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"utm_source\": \"google\",\n  \"utm_medium\": \"cpc\",\n  \"utm_term\": \"office+space\",\n  \"utm_campaign\": \"summer_2025\",\n  \"gclid\": \"TeSter-123\",\n  \"fbclid\": \"FbClicker-456\"\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>utm_source</code></td>\n<td>string</td>\n<td>UTM source parameter (traffic source)</td>\n</tr>\n<tr>\n<td><code>utm_medium</code></td>\n<td>string</td>\n<td>UTM medium parameter (marketing medium)</td>\n</tr>\n<tr>\n<td><code>utm_term</code></td>\n<td>string</td>\n<td>UTM term parameter (keyword)</td>\n</tr>\n<tr>\n<td><code>utm_campaign</code></td>\n<td>string</td>\n<td>UTM campaign parameter (campaign name)</td>\n</tr>\n<tr>\n<td><code>gclid</code></td>\n<td>string</td>\n<td>Google Click ID for ad tracking</td>\n</tr>\n<tr>\n<td><code>fbclid</code></td>\n<td>string</td>\n<td>Facebook Click ID for ad tracking</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"instant_connect---instant-connect-information\"><code>instant_connect</code> - Instant Connect Information</h3>\n<p>Contains details about instant connect phone calls associated with the chat.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"is_instantconnect_lead\": true,\n  \"call_started\": \"2025-08-13T03:25:00.000Z\",\n  \"call_ended\": \"2025-08-13T03:30:00.000Z\"\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>is_instantconnect_lead</code></td>\n<td>boolean</td>\n<td>Whether this chat resulted in an instant connect call</td>\n</tr>\n<tr>\n<td><code>call_started</code></td>\n<td>string (ISO 8601, UTC)</td>\n<td>Timestamp when the phone call started</td>\n</tr>\n<tr>\n<td><code>call_ended</code></td>\n<td>string (ISO 8601, UTC)</td>\n<td>Timestamp when the phone call ended</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"custom_fields---custom-variables\"><code>custom_fields</code> - Custom Variables</h3>\n<p>Dynamic object containing client-specific custom variables configured in the live chat system. Field names and values vary by client configuration.</p>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"landing_page\": \"https://www.example.com/pricing\",\n  \"postalCode\": \"94102\",\n  \"property_type\": \"commercial\"\n}\n\n</code></pre>\n<p><strong>Note</strong>: This is a dynamic object. The fields shown are examples and will differ based on client configuration.</p>\n<hr />\n<h2 id=\"important-notes\">Important Notes</h2>\n<ul>\n<li><p><strong>All time fields are in UTC timezone</strong> - You may need to convert to your local timezone for display</p>\n</li>\n<li><p><strong>Future Compatibility</strong>: Additional fields may be introduced in future versions. Existing fields will remain unchanged, but new fields can be added to any section. Ensure your integration handles unexpected fields gracefully</p>\n</li>\n<li><p><strong>Dynamic Fields</strong>: <code>additional_data</code> and <code>custom_fields</code> are client-specific and may contain different fields for different clients</p>\n</li>\n<li><p><strong>Null Values</strong>: Optional fields may be <code>null</code> or omitted if no data is available</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v3","chats"],"host":["client-api","commversion","com"],"query":[],"variable":[]}},"response":[{"id":"d6a358fc-9f26-49ac-a96e-f4ea35417953","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Api-Key","value":"your-api-key-here","description":"The API Key provided to you by CommVersion ","type":"text"},{"key":"User-Agent","value":"MyApp/1.0","description":"You need to pass a User Agent to identify your machine and pass our firewall checks.","type":"text"},{"key":"Content-Type","value":"application/json","description":"The API accepts JSON body","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"date_from\": \"2025-08-01T00:00:00.000Z\",\n    \"date_to\": \"2025-08-31T23:59:59.999Z\",\n    \"filter_by\": \"chat_start_time\",\n    \"sort_key\": \"chat_end_time\",\n    \"sort_order\": \"DESC\",\n    \"page\": 2,\n    \"page_size\": 50\n}","options":{"raw":{"language":"json"}}},"url":"https://client-api.commversion.com/v3/chats"},"status":"Ok","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Successfully retrieved chat data\",\n  \"data\": {\n    \"data\": [\n      {\n        \"basic\": {\n          \"chat_id\": \"T08WVX8HG5\",\n          \"chat_taken_by\": \"Alice\",\n          \"chat_start_url\": \"https://company.com/pricing/\",\n          \"chat_referrer_url\": \"https://www.google.com/?gclid=CjwKCAjw...\",\n          \"chat_duration_in_seconds\": 528.342,\n          \"chat_transcript\": \"Visitor: Hi\\nAlice: How can I help you?...\",\n          \"chat_summary\": \"The user was inquiring about pricing for design services.\",\n          \"chat_start_time\": \"2025-08-13T03:24:41.517Z\",\n          \"chat_end_time\": \"2025-08-13T03:32:15.859Z\",\n          \"source\": \"CommVersion\"\n        },\n        \"client_details\": {\n          \"client_name\": \"Abc Corporation\",\n          \"client_id\": \"d290f1ee-6c54-4b01-90e6-d701748f0851\"\n        },\n        \"visitor_details\": {\n          \"first_name\": \"John\",\n          \"last_name\": \"Doe\",\n          \"name\": \"John Doe\",\n          \"phone_number\": \"+1 122 23345\" ,\n          \"email\": \"john.doe@gmail.com\",\n          \"city\": \"Los Angeles\",\n          \"region\": \"California\",\n          \"country\": \"United States\",\n          \"timezone\": \"America/Los_Angeles\"\n        },\n        \"tags\": {\n          \"chat_type\": \"lead\",\n          \"lead_type\": \"viewing\"\n        },\n        \"additional_data\": {\n          \"total_no_of_desks\": \"5\",\n          \"office_space\": \"Open Plan\"\n           //   the field list in this section will be dynamic and will be updated based on the chat data\n        },\n        \"metadata\": {\n          \"utm_source\": \"google\",\n          \"utm_medium\": \"cpc\",\n          \"utm_term\": \"office+space\",\n          \"utm_campaign\": \"summer_campaign\",\n          \"gclid\": \"CjwKCAjw...\",\n          \"fbclid\": \"IwAR3...\"\n        },\n        \"instant_connect\": {\n          \"is_instantconnect_lead\": true,\n          \"call_started\": \"2025-08-13T03:25:00.000Z\",\n          \"call_ended\": \"2025-08-13T03:30:15.000Z\"\n        },\n        \"custom_fields\": {\n            // the field list in this section will be dynamic and will be updated based on the chat data. Usually this is empty.\n        }\n      }\n    ],\n    \"total\": 150\n  }\n}"},{"id":"d2d308e4-350d-45b9-b306-b1cb685a0c63","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Api-Key","value":"invalid-key","type":"text"},{"key":"User-Agent","value":"MyApp/1.0","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"date_from\": \"2025-08-01T00:00:00.000Z\",\n    \"date_to\": \"2025-08-31T23:59:59.999Z\",\n    \"filter_by\": \"chat_start_time\",\n    \"sort_key\": \"chat_end_time\",\n    \"sort_order\": \"DESC\",\n    \"page\": 2,\n    \"page_size\": 50\n}","options":{"raw":{"language":"json"}}},"url":"https://client-api.commversion.com/v3/chats"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 401,\n    \"message\": \"Invalid API key\",\n    \"error\": \"Unauthorized\"\n}"},{"id":"06ec1c42-234f-4cd6-99c4-a848b5f26ccb","name":"Bad Request","originalRequest":{"method":"POST","header":[{"key":"User-Agent","value":"MyApp/1.0","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"date_from\": \"2025-08-01T00:00:00.000Z\",\n    \"date_to\": \"2025-08-31T23:59:59.999Z\",\n    \"filter_by\": \"chat_start_time\",\n    \"sort_key\": \"chat_end_time\",\n    \"sort_order\": \"DESC\",\n    \"page\": 2,\n    \"page_size\": 50\n}","options":{"raw":{"language":"json"}}},"url":"https://client-api.commversion.com/v3/chats"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"Api-Key header is required\",\n    \"error\": \"Bad Request\"\n}"}],"_postman_id":"8c203c77-0c64-4f7b-bbd1-cf18fbf2d34b"}],"event":[{"listen":"prerequest","script":{"id":"0c8105a0-19bd-4eca-8651-619de602c4f0","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"7e522f84-e7d1-4d90-a096-949b133aebaa","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"https://cvhub-api.commversion.com/clients-api"},{"key":"api_key","value":"your-api-key-here"},{"key":"user_agent","value":"MyApp/1.0"}]}