{"info":{"_postman_id":"244e38d3-e4ed-4d7e-af6c-3295f48a0ba1","name":"LivingMetrics API","description":"<html><head></head><body><h2 id=\"livingmetrics-api-authentication\">LivingMetrics API Authentication</h2>\n<p>LivingMetrics implements the following endpoints for integrating with external services. All endpoints require an API key.</p>\n<p>API Base URL:</p>\n<p><code>https://api.livingmetrics.com</code></p>\n<h3 id=\"account-specific-api-key\">Account Specific API Key</h3>\n<p>The ActiveDEMAND account API key can be passed in the X-Api-Key request header field:</p>\n<p><code>X-Api-Key: APIKEY</code></p>\n<p>Or as a parameter named api-key:</p>\n<p><code>https://api.livingmetrics.com/?api-key=APIKEY</code></p>\n<h2 id=\"livingmetrics-api-support\">LivingMetrics API Support</h2>\n<p>If you are working on setting up an integration with our API, send an email to <a href=\"https://mailto:support@livingmetrics.com\">support@livingmetrics.com</a> and we answer any questions you have.</p>\n<h2 id=\"how-to-submit-custom-fields\">How To Submit Custom Fields</h2>\n<p>Custom fields can be entered in either of two formats.</p>\n<h3 id=\"using-the-custom-field-id-custom_id\">Using the custom field ID `custom_{id}`</h3>\n<p>This requires you to know the `id` for the custom field that you are trying to populate. This can be found by looking up the fields configured on your account.For example if your account is configured with a custom field named \"Department\" with an ID of 1234 on your contact object, you can populate using the following:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"contact\": {\n    \"custom_1234\": \"Human Resources\"\n  }\n}\n\n</code></pre>\n<h3 id=\"using-the-custom_fields-array\">Using the `custom_fields` array</h3>\n<p>This way of entering the custom fields requires that you know the name of the custom field(s) that you want to populate. For example if your account is configured with the custom fields \"Department\" and \"Total YTD Sales\" on your contact object, you can populate using the following:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"contact\": {\n    \"custom_fields\": [\n      { \"name\": \"Department\", \"value\": \"Human Resources\" },\n      { \"name\": \"Total Sales YTD\", \"value\": 5000.00 }\n    ]\n  }\n}\n\n</code></pre>\n<h3 id=\"custom-fields-support\">Custom Fields Support</h3>\n<p>The table below list the objects that currently support the submission of custom fields and the endpoint to lookup the fields available for this object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Object</th>\n<th>Fields Endpoint</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Contact</td>\n<td><a href=\"https://jumpdemand.postman.co/workspace/JumpDEMAND-API~be994ae1-1bc2-4942-86e1-465ccc72d21a/request/6051223-8e87baef-11ad-497e-96af-ea021037d94b?ctx=documentation\">/v1/contacts/fields</a></td>\n</tr>\n<tr>\n<td>Organization</td>\n<td>-</td>\n</tr>\n<tr>\n<td>Deal</td>\n<td><a href=\"https://jumpdemand.postman.co/workspace/JumpDEMAND-API~be994ae1-1bc2-4942-86e1-465ccc72d21a/request/6051223-fc7b7ff9-885f-46a4-807d-b85f444214cd?ctx=documentation\">/v1/deals/fields</a></td>\n</tr>\n<tr>\n<td>Task</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13809894","collectionId":"244e38d3-e4ed-4d7e-af6c-3295f48a0ba1","publishedId":"2sBXihpXqc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"c51e57"},"publishDate":"2026-03-17T20:03:03.000Z"},"item":[{"name":"Contacts","item":[{"name":"List Contacts","id":"2559eada-5027-4b27-8983-39d9883376fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/contacts?page=0&limit=100&search_term=John Doe&search_list_id=123&search_tag=lead,customer&history_type=SiteVisit,EmailOpen&employer_id=456&contact_ids=1,2,3&tracked_phone_id=789&include_deals=true&order=desc&order_by=updated&created_by=YYYY-MM-DDTHH:MM:SSZ&updated_by=YYYY-MM-DDTHH:MM:SSZ&include_timeline=1","description":"<p>Retrieves a paginated list of contacts based on various filter criteria. Requires <code>X-Api-Key</code> header for authentication.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>Page number for pagination (default: 0)</p>\n","type":"text/plain"},"key":"page","value":"0"},{"description":{"content":"<p>Number of contacts per page (default: 100, max: 500)</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"description":{"content":"<p>Search term for full-text search across contact details.</p>\n","type":"text/plain"},"key":"search_term","value":"John Doe"},{"description":{"content":"<p>ID of a contact list to search within.</p>\n","type":"text/plain"},"key":"search_list_id","value":"123"},{"description":{"content":"<p>Comma-separated tags to filter contacts by.</p>\n","type":"text/plain"},"key":"search_tag","value":"lead,customer"},{"description":{"content":"<p>Comma-separated history types to filter contacts by (e.g., SiteVisit, EmailOpen, TextMessage).</p>\n","type":"text/plain"},"key":"history_type","value":"SiteVisit,EmailOpen"},{"description":{"content":"<p>ID of an employer (Account) to filter contacts by.</p>\n","type":"text/plain"},"key":"employer_id","value":"456"},{"description":{"content":"<p>Comma-separated contact IDs to fetch specific contacts.</p>\n","type":"text/plain"},"key":"contact_ids","value":"1,2,3"},{"description":{"content":"<p>ID of a tracked phone, used with history_type='TextMessage' to filter messages to/from this number.</p>\n","type":"text/plain"},"key":"tracked_phone_id","value":"789"},{"description":{"content":"<p>Set to 'true' to include deal information with contacts.</p>\n","type":"text/plain"},"key":"include_deals","value":"true"},{"description":{"content":"<p>Order of results ('asc' or 'desc', default: 'desc').</p>\n","type":"text/plain"},"key":"order","value":"desc"},{"description":{"content":"<p>Field to order by ('updated', 'company', 'lead_score', 'visible_at' (default)).</p>\n","type":"text/plain"},"key":"order_by","value":"updated"},{"description":{"content":"<p>Filter contacts created on or after this date.</p>\n","type":"text/plain"},"key":"created_by","value":"YYYY-MM-DDTHH:MM:SSZ"},{"description":{"content":"<p>Filter contacts updated on or after this date.</p>\n","type":"text/plain"},"key":"updated_by","value":"YYYY-MM-DDTHH:MM:SSZ"},{"description":{"content":"<p>Set to '1' to include the contact's timeline (last 30 history items).</p>\n","type":"text/plain"},"key":"include_timeline","value":"1"}],"variable":[]}},"response":[{"id":"db13a365-793c-4201-be2d-4e20a4a51a79","name":"Success - List of Contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.livingmetrics.com/v1/contacts?limit=1","protocol":"https","host":["api","livingmetrics","com"],"path":["v1","contacts"],"query":[{"key":"limit","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[{\n  \"id\": 123,\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"full_name\": \"John Doe\",\n  \"email_address\": \"john.doe@example.com\",\n  \"phone_number\": \"+15551234567\",\n  \"title\": \"Software Engineer\",\n  \"company_name\": \"Example Corp\",\n  \"lead_score\": 75,\n  \"tags\": [\"lead\", \"interested_in_product_x\"],\n  \"custom_fields\": [\n    {\n      \"api_key\": \"custom_1\",\n      \"api_name\": \"Lead Source\",\n      \"api_value\": \"Website\"\n    }\n  ],\n  \"deals\": [\n    {\n      \"id\": 789,\n      \"name\": \"Deal for Product X\",\n      \"value\": 5000,\n      \"deal_status_name\": \"Negotiation\",\n      \"deal_stage_name\": \"Proposal Sent\",\n      \"deal_funnel_name\": \"Sales Pipeline\"\n    }\n  ],\n  \"histories\": [\n    {\n      \"id\": 1001,\n      \"history_type\": \"SiteVisit\",\n      \"summary_html\": \"Visited page /pricing\",\n      \"created_at\": \"2023-10-26T10:00:00Z\"\n    }\n  ]\n}]"},{"id":"4255f4d7-de79-4038-b8be-1d3b0e9077cb","name":"Error - Unauthorized","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/contacts"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Invalid API Key\"\n}"}],"_postman_id":"2559eada-5027-4b27-8983-39d9883376fc"},{"name":"Get Contact Count","id":"f07f84ed-1732-4de4-a864-f943627c67eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/contacts/count?search_term=John Doe&search_list_id=123&search_tag=lead&history_type=SiteVisit&employer_id=456&created_by=YYYY-MM-DDTHH:MM:SSZ&updated_by=YYYY-MM-DDTHH:MM:SSZ","description":"<p>Retrieves the total count of contacts matching the filter criteria. Requires <code>X-Api-Key</code> header.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts","count"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>Search term for full-text search.</p>\n","type":"text/plain"},"key":"search_term","value":"John Doe"},{"description":{"content":"<p>ID of a contact list.</p>\n","type":"text/plain"},"key":"search_list_id","value":"123"},{"description":{"content":"<p>Tag to filter by.</p>\n","type":"text/plain"},"key":"search_tag","value":"lead"},{"description":{"content":"<p>History type to filter by.</p>\n","type":"text/plain"},"key":"history_type","value":"SiteVisit"},{"description":{"content":"<p>Employer (Account) ID.</p>\n","type":"text/plain"},"key":"employer_id","value":"456"},{"description":{"content":"<p>Filter contacts created on or after this date.</p>\n","type":"text/plain"},"key":"created_by","value":"YYYY-MM-DDTHH:MM:SSZ"},{"description":{"content":"<p>Filter contacts updated on or after this date.</p>\n","type":"text/plain"},"key":"updated_by","value":"YYYY-MM-DDTHH:MM:SSZ"}],"variable":[]}},"response":[{"id":"996c42e4-4b99-460b-ac87-afecad0ac893","name":"Success - Contact Count","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/contacts/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"count\": 150\n}"}],"_postman_id":"f07f84ed-1732-4de4-a864-f943627c67eb"},{"name":"Get Contact Field Definition","id":"fa96a7d4-5fa6-4fc7-b793-3cb102970a18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/contacts/field?field_key=emails.email_address","description":"<p>Retrieves the definition for a specific contact field. No API key required for this endpoint.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts","field"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>The API key of the field (e.g., 'emails.email_address' or 'custom_123').</p>\n","type":"text/plain"},"key":"field_key","value":"emails.email_address"}],"variable":[]}},"response":[{"id":"d111385e-3f73-4dd4-aa06-46a4fad83f9e","name":"Success - Field Definition","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.livingmetrics.com/v1/contacts/field?field_key=emails.email_address","protocol":"https","host":["api","livingmetrics","com"],"path":["v1","contacts","field"],"query":[{"key":"field_key","value":"emails.email_address"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"type\": \"unicode\",\n  \"key\": \"contact[emails.email_address]\",\n  \"required\": true,\n  \"label\": \"Email\",\n  \"list\": false,\n  \"object\": \"Contact\",\n  \"group\": null\n}"},{"id":"686847bf-dd16-4188-8dc4-8376469136d4","name":"Error - Field Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.livingmetrics.com/v1/contacts/field?field_key=nonexistent_field","protocol":"https","host":["api","livingmetrics","com"],"path":["v1","contacts","field"],"query":[{"key":"field_key","value":"nonexistent_field"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fa96a7d4-5fa6-4fc7-b793-3cb102970a18"},{"name":"List Contact Fields","id":"6aec8238-b18a-473d-afac-a72410c3269e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/contacts/fields?data_import_id=123&powerdialer_only=1","description":"<p>Retrieves a list of available contact fields, including standard and custom fields. No API key required for this endpoint.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts","fields"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>(Optional) ID of a data import to get mapped fields.</p>\n","type":"text/plain"},"key":"data_import_id","value":"123"},{"description":{"content":"<p>(Optional) Set to '1' to restrict fields to those visible in the powerdialer.</p>\n","type":"text/plain"},"key":"powerdialer_only","value":"1"}],"variable":[]}},"response":[{"id":"84905d9d-6f48-4432-9ee0-3cf739a07cd9","name":"Success - List of Fields","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/contacts/fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[contact.edit_link]\",\n    \"required\": false,\n    \"label\": \"Contact Edit Link\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[contact.call_link]\",\n    \"required\": false,\n    \"label\": \"Contact Click To Call Link\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[lead_score.lead_score]\",\n    \"required\": false,\n    \"label\": \"Contact Lead Score\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[first_name]\",\n    \"required\": false,\n    \"label\": \"First Name\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[last_name]\",\n    \"required\": false,\n    \"label\": \"Last Name\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[full_name]\",\n    \"required\": false,\n    \"label\": \"Full Name\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[title]\",\n    \"required\": false,\n    \"label\": \"Title\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[dob]\",\n    \"required\": false,\n    \"label\": \"DOB\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[contact_source_name]\",\n    \"required\": false,\n    \"label\": \"Contact Source\",\n    \"list\": true,\n    \"choices\": [\n      \"Call-to-Action Web Form\",\n      \"Contact Web Form\",\n      \"eNewsletter Sign-up\",\n      \"Event Registration\",\n      \"Event Attendance\",\n      \"3rd Party List\",\n      \"3rd Party Website\",\n      \"Offline Marketing Initiative\",\n      \"Online Directory\",\n      \"Other\",\n      \"Webinar Registration\",\n      \"Account Introduction\",\n      \"Live Chat\",\n      \"Organic Search\",\n      \"Search Engine Marketing\",\n      \"Phone Call\",\n      \"Email Campaign\",\n      \"Twitter Follow\",\n      \"Email\",\n      \"Text Message\",\n      \"CRM Import\"\n    ]\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[contact_source_description]\",\n    \"required\": false,\n    \"label\": \"Contact Source Description\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[industry_list]\",\n    \"required\": false,\n    \"label\": \"Industries\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[tag_list]\",\n    \"required\": false,\n    \"label\": \"Tags\"\n  },\n  {\n    \"type\": \"bool\",\n    \"key\": \"contact[opted_in]\",\n    \"required\": false,\n    \"label\": \"Opted In\"\n  },\n  {\n    \"type\": \"bool\",\n    \"key\": \"contact[cookie_accept]\",\n    \"required\": false,\n    \"label\": \"Cookie Accepted\"\n  },\n  {\n    \"type\": \"bool\",\n    \"key\": \"contact[unsubscribed]\",\n    \"required\": false,\n    \"label\": \"Unsubscribed\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[claimed_by_id]\",\n    \"required\": false,\n    \"label\": \"Contact Manager Email\"\n  },\n  {\n    \"type\": \"bool\",\n    \"key\": \"contact[dni_list]\",\n    \"required\": false,\n    \"label\": \"DNI Replace For Contact\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[gender]\",\n    \"required\": false,\n    \"label\": \"Gender\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[seniority]\",\n    \"required\": false,\n    \"label\": \"Seniority\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[bio]\",\n    \"required\": false,\n    \"label\": \"Bio\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[contact_details.introduction_url]\",\n    \"required\": false,\n    \"label\": \"Contact Introduction URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[avatar]\",\n    \"required\": false,\n    \"label\": \"Avatar (url)\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.suite_no]\",\n    \"required\": false,\n    \"label\": \"Suite No\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.address]\",\n    \"required\": false,\n    \"label\": \"Street Address\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.city]\",\n    \"required\": false,\n    \"label\": \"City\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.province]\",\n    \"required\": false,\n    \"label\": \"Province/State\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.postal_code]\",\n    \"required\": false,\n    \"label\": \"Postal/Zip Code\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.country]\",\n    \"required\": false,\n    \"label\": \"Country\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.latitude]\",\n    \"required\": false,\n    \"label\": \"Latitude\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[addresses.longitude]\",\n    \"required\": false,\n    \"label\": \"Longitude\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[phones.phone_number]\",\n    \"required\": false,\n    \"label\": \"Phone Number\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[emails.email_address]\",\n    \"required\": true,\n    \"label\": \"Email Address\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[websites.url]\",\n    \"required\": false,\n    \"label\": \"Website\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[twitter.username]\",\n    \"required\": false,\n    \"label\": \"Twitter Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[twitter.url]\",\n    \"required\": false,\n    \"label\": \"Twitter URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[linkedin.username]\",\n    \"required\": false,\n    \"label\": \"LinkedIn Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[linkedin.url]\",\n    \"required\": false,\n    \"label\": \"LinkedIn URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[facebook.username]\",\n    \"required\": false,\n    \"label\": \"Facebook Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[facebook.url]\",\n    \"required\": false,\n    \"label\": \"Facebook URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[crunchbase.username]\",\n    \"required\": false,\n    \"label\": \"Crunchbase Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[crunchbase.url]\",\n    \"required\": false,\n    \"label\": \"Crunchbase URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[github.username]\",\n    \"required\": false,\n    \"label\": \"Github Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[github.url]\",\n    \"required\": false,\n    \"label\": \"Github URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[google_plus.username]\",\n    \"required\": false,\n    \"label\": \"Google+ Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[google_plus.url]\",\n    \"required\": false,\n    \"label\": \"Google+ URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[aboutme.username]\",\n    \"required\": false,\n    \"label\": \"AboutMe Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[aboutme.url]\",\n    \"required\": false,\n    \"label\": \"AboutMe URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.business_name]\",\n    \"required\": false,\n    \"label\": \"Employer Organization\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.blocked]\",\n    \"required\": false,\n    \"label\": \"Organization Blocked\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.is_referrer]\",\n    \"required\": false,\n    \"label\": \"Organization Is Referrer\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.suite_no]\",\n    \"required\": false,\n    \"label\": \"Organization Suite No\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.address]\",\n    \"required\": false,\n    \"label\": \"Organization Street Address\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.city]\",\n    \"required\": false,\n    \"label\": \"Organization City\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.province]\",\n    \"required\": false,\n    \"label\": \"Organization Province/State\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.postal_code]\",\n    \"required\": false,\n    \"label\": \"Organization Postal/Zip Code\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.country]\",\n    \"required\": false,\n    \"label\": \"Organization Country\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.latitude]\",\n    \"required\": false,\n    \"label\": \"Organization Latitude\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.addresses.longitude]\",\n    \"required\": false,\n    \"label\": \"Organization Longitude\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.phones.phone_number]\",\n    \"required\": false,\n    \"label\": \"Organization Phone Number\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.emails.email_address]\",\n    \"required\": false,\n    \"label\": \"Organization Email Address\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.websites.url]\",\n    \"required\": false,\n    \"label\": \"Organization Website\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.logo]\",\n    \"required\": false,\n    \"label\": \"Organization Logo (url)\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.lead_score]\",\n    \"required\": false,\n    \"label\": \"Organization Lead Score\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.claimed_by_id]\",\n    \"required\": false,\n    \"label\": \"Organization Contact Manager Email\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.employee_count]\",\n    \"required\": false,\n    \"label\": \"Organization Employee Count\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.employee_range]\",\n    \"required\": false,\n    \"label\": \"Organization Employee Range\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.annual_revenue]\",\n    \"required\": false,\n    \"label\": \"Organization Annual Revenue\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.long_about_company]\",\n    \"required\": false,\n    \"label\": \"Organization Description\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.industry_list]\",\n    \"required\": false,\n    \"label\": \"Organization Industries\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.tag_list]\",\n    \"required\": false,\n    \"label\": \"Organization Tags\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.technology_list]\",\n    \"required\": false,\n    \"label\": \"Organization Technologies\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.twitter.username]\",\n    \"required\": false,\n    \"label\": \"Organization Twitter Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.twitter.url]\",\n    \"required\": false,\n    \"label\": \"Organization Twitter URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.linkedin.username]\",\n    \"required\": false,\n    \"label\": \"Organization LinkedIn Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.linkedin.url]\",\n    \"required\": false,\n    \"label\": \"Organization LinkedIn URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.facebook.username]\",\n    \"required\": false,\n    \"label\": \"Organization Facebook Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.facebook.url]\",\n    \"required\": false,\n    \"label\": \"Organization Facebook URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.crunchbase.username]\",\n    \"required\": false,\n    \"label\": \"Organization Crunchbase Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.crunchbase.url]\",\n    \"required\": false,\n    \"label\": \"Organization Crunchbase URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.github.username]\",\n    \"required\": false,\n    \"label\": \"Organization Github Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.github.url]\",\n    \"required\": false,\n    \"label\": \"Organization Github URL\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.google_plus.username]\",\n    \"required\": false,\n    \"label\": \"Organization Google+ Handle\"\n  },\n  {\n    \"type\": \"unicode\",\n    \"key\": \"contact[accounts.google_plus.url]\",\n    \"required\": false,\n    \"label\": \"Organization Google+ URL\"\n  },\n  {\n    \"type\": \"select\",\n    \"key\": \"contact[custom_123]\",\n    \"required\": false,\n    \"label\": \"Lead Source Type\",\n    \"list\": false,\n    \"object\": \"Contact\",\n    \"group\": \"Lead Information\",\n    \"choices\": [\n      {\n        \"id\": \"Website\",\n        \"label\": \"Website\"\n      },\n      {\n        \"id\": \"Referral\",\n        \"label\": \"Referral\"\n      }\n    ]\n  }\n]"}],"_postman_id":"6aec8238-b18a-473d-afac-a72410c3269e"},{"name":"Get Contact Details","id":"4d9ba4a3-4fbc-44bc-9cee-c20792e886cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/contacts/{{contact-id}}?include_deals=true","description":"<p>Retrieves details for a specific contact. Requires <code>X-Api-Key</code> header.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts","{{contact-id}}"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>(Optional) Set to 'true' to include deal information.</p>\n","type":"text/plain"},"key":"include_deals","value":"true"}],"variable":[]}},"response":[{"id":"da747dfe-9636-42b1-8e64-e564bd2442a4","name":"Success - Contact Details","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/contacts/123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[{\n  \"id\": 123,\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"full_name\": \"John Doe\",\n  \"email_address\": \"john.doe@example.com\",\n  \"phone_number\": \"+15551234567\",\n  \"title\": \"Software Engineer\",\n  \"company_name\": \"Example Corp\",\n  \"lead_score\": 75,\n  \"tags\": [\"lead\", \"interested_in_product_x\"],\n  \"custom_fields\": [\n    {\n      \"api_key\": \"custom_1\",\n      \"api_name\": \"Lead Source\",\n      \"api_value\": \"Website\"\n    }\n  ],\n  \"deals\": [\n    {\n      \"id\": 789,\n      \"name\": \"Deal for Product X\",\n      \"value\": 5000,\n      \"deal_status_name\": \"Negotiation\",\n      \"deal_stage_name\": \"Proposal Sent\",\n      \"deal_funnel_name\": \"Sales Pipeline\"\n    }\n  ]\n}]"}],"_postman_id":"4d9ba4a3-4fbc-44bc-9cee-c20792e886cd"},{"name":"Create Contact","id":"62a3dfcb-9555-43dc-8338-5c2b2a087c1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contact\": {\n    \"emails.email_address\": \"test@example.com\",\n    \"first_name\": \"Test\",\n    \"last_name\": \"User\",\n    \"custom_fields\": [\n      {\n        \"name\": \"Your Custom Field Name\",\n        \"value\": \"Custom Value\"\n      }\n    ]\n  },\n  \"source\": \"cp\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/contacts","description":"<p>Creates a new contact. Use <code>contact[field_key]</code> for standard fields (e.g., <code>contact[emails.email_address]</code>) or <code>contact[custom_field_api_key]</code> for custom fields. Alternatively, provide custom fields as an array under <code>contact[custom_fields]</code> with <code>name</code> and <code>value</code>. <code>source=cp</code> can be used if the creation is from a control panel. Requires <code>X-Api-Key</code> header.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"90a0416f-eee7-41d9-9069-902a626ed325","name":"Success - Contact Created","originalRequest":{"method":"POST","header":[],"url":"https://api.livingmetrics.com/v1/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[{\n  \"id\": 124,\n  \"first_name\": \"Test\",\n  \"last_name\": \"User\",\n  \"full_name\": \"Test User\",\n  \"email_address\": \"test@example.com\",\n  \"custom_fields\": [\n    {\n      \"api_key\": \"custom_xyz\",\n      \"api_name\": \"Your Custom Field Name\",\n      \"api_value\": \"Custom Value\"\n    }\n  ]\n}]"},{"id":"58d0b79b-32d7-40c4-a915-acba695bcea8","name":"Error - Validation Failed","originalRequest":{"method":"POST","header":[],"url":"https://api.livingmetrics.com/v1/contacts"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"62a3dfcb-9555-43dc-8338-5c2b2a087c1f"},{"name":"Update Contact","id":"f05aeb49-568b-4af4-a939-06d28c5e7bf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-api-key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"contact[first_name]","value":"Bob","type":"text"},{"key":"contact[last_name]","value":"Smith","type":"text"},{"key":"contact[emails.email_address]","value":"bob.smith@domain.com","type":"text"},{"key":"contact[phones.phone_number]","value":"1234567890","type":"text"}]},"url":"https://api.livingmetrics.com/v1/contacts/12345.json","description":"<p>Update a LivingMetrics contact with a reference uid.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts","12345.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f05aeb49-568b-4af4-a939-06d28c5e7bf0"},{"name":"Add Contact Relationship","id":"0313b757-8168-43d9-93b7-a64d3377a2ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contact_relation\": {\n    \"contact1_id\": 1,\n    \"contact2_id\": 2,\n    \"relationship_type\": \"Spouse\",\n    \"is_primary\": \"true\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/contacts/add_relationship","description":"<p>Adds a relationship between two contacts. Requires <code>X-Api-Key</code> header.</p>\n","urlObject":{"protocol":"https","path":["v1","contacts","add_relationship"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"09f22c2d-7cbf-4fdd-b9a3-9ef9e10f7594","name":"Success - Relationship Added","originalRequest":{"method":"POST","header":[],"url":"https://api.livingmetrics.com/v1/contacts/add_relationship"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 55,\n  \"contact1_id\": 1,\n  \"contact2_id\": 2,\n  \"relationship_type\": \"Spouse\",\n  \"account_id\": 101,\n  \"is_primary\": true\n}"},{"id":"16493355-3865-43c0-a8f2-b3c13ec170de","name":"Error - Failed to Create Relationship","originalRequest":{"method":"POST","header":[],"url":"https://api.livingmetrics.com/v1/contacts/add_relationship"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Failed to create relationship\"\n}"}],"_postman_id":"0313b757-8168-43d9-93b7-a64d3377a2ea"}],"id":"c21a97cc-9975-4f2b-ab0d-fd72643498d2","description":"<p>Contacts endpoints can be used to update contacts.</p>\n<h2>The Contact Object</h2>\n\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n      \"id\": 12345678,\n      \"contact.edit_link\": \"https://client.livingmetrics.com/contacts/12345678/edit\",\n      \"contact.call_link\": \"https://client.livingmetrics.com/contacts/12345678/edit?call=true\",\n      \"lead_score.lead_score\": 0,\n      \"first_name\": \"Bob\",\n      \"last_name\": \"Smith\",\n      \"dob\": null,\n      \"tag_list\": null,\n      \"opted_in\": \"No\",\n      \"cookie_accept\": \"No\",\n      \"unsubscribed\": \"No\",\n      \"claimed_by_id\": null,\n      \"gender\": null,\n      \"avatar\": null,\n      \"addresses.suite_no\": null,\n      \"addresses.address\": null,\n      \"addresses.city\": \"New York\",\n      \"addresses.province\": \"NY\",\n      \"addresses.postal_code\": null,\n      \"addresses.country\": \"US\",\n      \"addresses.latitude\": null,\n      \"addresses.longitude\": null,\n      \"phones.phone_number\": \"1231234123\",\n      \"emails.email_address\": \"bob.smith@domain.com\",\n      \"created_at\": \"2022-11-22T04:08:58.000-07:00\",\n      \"updated_at\": \"2022-11-22T04:08:58.000-07:00\"\n    }\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"56d2e30b-f8b8-4163-af0f-cbef09466ee1"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"d48c733c-7664-4d4e-8af7-0885c5cddb59"}}],"_postman_id":"c21a97cc-9975-4f2b-ab0d-fd72643498d2"},{"name":"Leads","item":[{"name":"Submit Lead","id":"394454cc-cb44-43fa-ad14-08ab067327b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/leads","description":"<p>This endpoint can be used to post a Lead to LivingMetrics.</p>\n","urlObject":{"protocol":"https","path":["v1","leads"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"ebabd037-1334-4104-bf57-c705f9a6392d","name":"Submit a Lead","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"contact\": {\n        \"id\": 12345,\n        \"first_name\": \"Bob\",\n        \"last_name\": \"Smith\",\n        \"emails.email_address\": \"bob.smith@domain.com\",\n        \"phones.phone_number\": \"1234567890\"\n    },\n    \"notes\": \"notes about the lead here\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/leads"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"394454cc-cb44-43fa-ad14-08ab067327b2"}],"id":"190f66f9-4a7e-4408-9108-8137049cf07a","_postman_id":"190f66f9-4a7e-4408-9108-8137049cf07a","description":""},{"name":"Webhooks","item":[{"name":"Subscribe to event","id":"4a6bb24a-c558-4bfb-b2c7-6944a188abac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/web_hooks.json?target_url=&contact_id=12345","description":"<p>Subscribe to an event web hook. A reference uid is required. The subscription ID is returned and can be used to unsubscribe from the web hook.</p>\n","urlObject":{"protocol":"https","path":["v1","web_hooks.json"],"host":["api","livingmetrics","com"],"query":[{"key":"target_url","value":""},{"description":{"content":"<p>subscribe to events for only this contact</p>\n","type":"text/plain"},"key":"contact_id","value":"12345"}],"variable":[]}},"response":[],"_postman_id":"4a6bb24a-c558-4bfb-b2c7-6944a188abac"},{"name":"Unsubscribe from event","id":"a3d6b58b-732b-4290-b477-059046c85850","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/web_hooks?target_url&contact_id=12345","description":"<p>Unsubscribe from an event web hook. The ID of the subscription is required, or the target url and contact id you wish to unsubscribe from. If your target url returns a 410 response code, it will automatically be unsubscribed.</p>\n","urlObject":{"protocol":"https","path":["v1","web_hooks"],"host":["api","livingmetrics","com"],"query":[{"key":"target_url","value":null},{"description":{"content":"<p>unsubscribe to events for only this contact</p>\n","type":"text/plain"},"key":"contact_id","value":"12345"}],"variable":[]}},"response":[],"_postman_id":"a3d6b58b-732b-4290-b477-059046c85850"}],"id":"abc3ba7a-45d8-41ee-a0b8-4ff71873a76b","description":"<p>Web hooks are used to subscribe to LivingMetrics events. The event currently available to subscribe to is for a contact update.</p>\n<p>Example Data</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n      \"id\": 12345678,\n      \"contact.edit_link\": \"https://client.livingmetrics.com/contacts/12345678/edit\",\n      \"contact.call_link\": \"https://client.livingmetrics.com/contacts/12345678/edit?call=true\",\n      \"lead_score.lead_score\": 0,\n      \"first_name\": \"Bob\",\n      \"last_name\": \"Smith\",\n      \"dob\": null,\n      \"tag_list\": null,\n      \"opted_in\": \"No\",\n      \"cookie_accept\": \"No\",\n      \"unsubscribed\": \"No\",\n      \"claimed_by_id\": null,\n      \"gender\": null,\n      \"avatar\": null,\n      \"addresses.suite_no\": null,\n      \"addresses.address\": null,\n      \"addresses.city\": \"New York\",\n      \"addresses.province\": \"NY\",\n      \"addresses.postal_code\": null,\n      \"addresses.country\": \"US\",\n      \"addresses.latitude\": null,\n      \"addresses.longitude\": null,\n      \"phones.phone_number\": \"1231234123\",\n      \"emails.email_address\": \"bob.smith@domain.com\",\n      \"created_at\": \"2022-11-22T04:08:58.000-07:00\",\n      \"updated_at\": \"2022-11-22T04:08:58.000-07:00\"\n    }\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"1b8f6ba4-70ef-4552-b918-272929db3194"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"63c59d9b-c45c-4716-87e2-90b211ffac09"}}],"_postman_id":"abc3ba7a-45d8-41ee-a0b8-4ff71873a76b"},{"name":"Products (Units)","item":[{"name":"List Products","id":"560c414c-0338-4ee9-b8f8-c3a8fbef71d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products?limit=100&page=0","description":"<p>Retrieves a list of products, ordered by creation date in descending order. Supports pagination with <code>limit</code> and <code>page</code>.</p>\n","urlObject":{"protocol":"https","path":["v1","products"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>Number of products to return (Max: 500, Default: 100)</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"description":{"content":"<p>Page for pagination (Default: 0)</p>\n","type":"text/plain"},"key":"page","value":"0"}],"variable":[]}},"response":[{"id":"7e747986-f8ba-4708-b6a2-60ee653ab6c5","name":"Successful Response","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 1,\n    \"name\": \"Sample Product\",\n    \"product_uid\": \"PROD001\",\n    \"description\": \"A sample product description.\",\n    \"purchase_type\": \"SinglePurchase\",\n    \"subscription_interval\": null,\n    \"currency\": \"USD\",\n    \"tax_amount\": 0.0,\n    \"price\": 99.99,\n    \"is_stripe_product\": false,\n    \"product_url\": \"https://example.com/product/1\",\n    \"is_stock_managed\": true,\n    \"long_description\": \"A much longer description of the sample product.\",\n    \"stock_quantity\": 50,\n    \"is_purchasable\": true,\n    \"download_url\": null,\n    \"is_downloadable\": false,\n    \"created_at\": \"2023-01-01T10:00:00.000Z\",\n    \"updated_at\": \"2023-01-02T12:00:00.000Z\",\n    \"tag_list\": \"sample, example\",\n    \"category_list\": \"general\",\n    \"privacy\": \"Shared\",\n    \"max_inventory\": 100,\n    \"display_image_url\": \"https://example.com/images/product_1_display.jpg\",\n    \"product_status\": {\n      \"id\": 1,\n      \"name\": \"Active\",\n      \"status_type\": \"available\",\n      \"is_default\": true\n    },\n    \"custom_fields\": [\n      {\n        \"api_key\": \"color\",\n        \"name\": \"Color\",\n        \"value\": \"Red\"\n      }\n    ],\n    \"attachment_files\": [\n      {\n        \"id\": 1,\n        \"attachment_file_name\": \"manual.pdf\",\n        \"attachment_content_type\": \"application/pdf\",\n        \"attachment_file_size\": 102400,\n        \"authenticated_url\": \"https://example.com/files/manual.pdf?auth=token\"\n      }\n    ],\n    \"preview_images\": [\n      {\n        \"id\": 1,\n        \"image_file_name\": \"preview1.jpg\",\n        \"image_content_type\": \"image/jpeg\",\n        \"image_file_size\": 51200,\n        \"preview_url\": \"https://example.com/images/preview1.jpg\"\n      }\n    ],\n    \"product_contacts\": [\n      {\n        \"is_resident\": true,\n        \"contact\": {\n          \"id\": 101,\n          \"first_name\": \"John\",\n          \"last_name\": \"Doe\"\n        }\n      }\n    ],\n    \"deal_products\": [\n      {\n        \"quantity\": 2,\n        \"deal\": {\n          \"id\": 201,\n          \"name\": \"Big Sale Q1\",\n          \"deal_status\": {\"id\": 1, \"name\": \"Open\"},\n          \"deal_stage\":  {\"id\": 1, \"name\": \"Prospecting\"},\n          \"deal_funnel\": {\"id\": 1, \"name\": \"Sales Pipeline\"}\n        }\n      }\n    ]\n  }\n]"}],"_postman_id":"560c414c-0338-4ee9-b8f8-c3a8fbef71d4"},{"name":"Get Product by ID","id":"bcd9a323-9890-4990-a4ae-c66f5f3d151b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/12345","description":"<p>Retrieves a specific product by its ID.</p>\n","urlObject":{"protocol":"https","path":["v1","products","12345"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"15deb6da-4a86-4da8-8769-b46d2ed5c775","name":"Successful Response","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/12345"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 1,\n  \"name\": \"Sample Product\",\n  \"product_uid\": \"PROD001\",\n  \"description\": \"A sample product description.\",\n  \"purchase_type\": \"SinglePurchase\",\n  \"subscription_interval\": null,\n  \"currency\": \"USD\",\n  \"tax_amount\": 0.0,\n  \"price\": 99.99,\n  \"is_stripe_product\": false,\n  \"product_url\": \"https://example.com/product/1\",\n  \"is_stock_managed\": true,\n  \"long_description\": \"A much longer description of the sample product.\",\n  \"stock_quantity\": 50,\n  \"is_purchasable\": true,\n  \"download_url\": null,\n  \"is_downloadable\": false,\n  \"created_at\": \"2023-01-01T10:00:00.000Z\",\n  \"updated_at\": \"2023-01-02T12:00:00.000Z\",\n  \"tag_list\": \"sample, example\",\n  \"category_list\": \"general\",\n  \"privacy\": \"Shared\",\n  \"max_inventory\": 100,\n  \"display_image_url\": \"https://example.com/images/product_1_display.jpg\",\n  \"product_status\": {\n    \"id\": 1,\n    \"name\": \"Active\",\n    \"status_type\": \"available\",\n    \"is_default\": true\n  },\n  \"custom_fields\": [\n    {\n      \"api_key\": \"color\",\n      \"name\": \"Color\",\n      \"value\": \"Red\"\n    }\n  ],\n  \"attachment_files\": [],\n  \"preview_images\": [],\n  \"product_contacts\": [],\n  \"deal_products\": []\n}"},{"id":"ed95500e-fb8a-4b63-8042-4b0d887292fa","name":"Product Not Found","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/{{invalid-product-id}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Product not found\"\n}"}],"_postman_id":"bcd9a323-9890-4990-a4ae-c66f5f3d151b"},{"name":"Create Product","id":"40b3bdf3-9775-4d4b-9f99-aeff6e0bb462","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"product\": {\n    \"name\": \"New API Super Product\",\n    \"description\": \"This is a fantastic product created via API.\",\n    \"purchase_type\": \"SinglePurchase\", \n    \"price\": 49.99,\n    \"product_status_id\": 1, \n    \"tag_list\": \"api, new, gadget\",\n    \"category_list\": \"electronics, tools\",\n    \"is_stock_managed\": true,\n    \"stock_quantity\": 150,\n    \"max_inventory\": 250,\n    \"privacy\": \"Shared\",\n    \"custom_fields\": [\n      { \n        \"custom_field_type_id\": YOUR_CUSTOM_FIELD_TYPE_ID_1, \n        \"value\": \"Blue\"\n      },\n      { \n        \"name\": \"YOUR_CUSTOM_FIELD_NAME_BY_NAME\", \n        \"value\": \"XL\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/products","description":"<p>Creates a new product. </p>\n<ul>\n<li><code>currency</code> is derived from the account settings.</li>\n<li><code>is_purchasable</code> is determined by product status and other callbacks.</li>\n<li><code>product_uid</code> is auto-generated if left blank.</li>\n<li>For <code>display_image</code>, <code>preview_images_attributes</code>, and <code>attachment_files_attributes</code>, if sending file data via JSON, use base64 encoded strings or URLs. Alternatively, these might require <code>multipart/form-data</code> requests depending on server-side handling for Paperclip and nested file attributes.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","products"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"a673ab00-f031-4ccc-b0e3-fbf9be7f7a43","name":"Product Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"product\": {\n    \"name\": \"New API Super Product\",\n    \"description\": \"This is a fantastic product created via API.\",\n    \"purchase_type\": \"SinglePurchase\", \n    \"price\": 49.99,\n    \"product_status_id\": 1\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 2,\n  \"name\": \"New API Super Product\",\n  \"product_uid\": \"PR-ABCDE\",\n  \"description\": \"This is a fantastic product created via API.\",\n  \"purchase_type\": \"SinglePurchase\",\n  \"price\": 49.99,\n  \"is_purchasable\": true,\n  \"currency\": \"USD\",\n  \"product_status\": {\n      \"id\": 1,\n      \"name\": \"Active\",\n      \"status_type\": \"available\",\n      \"is_default\": true\n    },\n  \"custom_fields\": [\n      {\n        \"api_key\": \"color\",\n        \"name\": \"Color\",\n        \"value\": \"Blue\"\n      }\n    ]\n  // ... other fields\n}"},{"id":"7e6fc8d4-a51e-475e-93b9-993215110f4a","name":"Validation Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"product\": {\n    \"name\": \"\",\n    \"price\": -10\n  }\n}"},"url":"https://api.livingmetrics.com/v1/products"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"name\": [\n    \"can't be blank\"\n  ],\n  \"price\": [\n    \"must be greater than or equal to 0\"\n  ]\n}"}],"_postman_id":"40b3bdf3-9775-4d4b-9f99-aeff6e0bb462"},{"name":"Update Product","id":"9649e598-ea9d-4430-86ac-c5b1f22d625d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"product\": {\n    \"name\": \"Updated Product Name\",\n    \"price\": 59.99,\n    \"custom_fields\": [\n      { \n        \"custom_field_type_id\": YOUR_CUSTOM_FIELD_TYPE_ID_1, \n        \"value\": \"Green\"\n      }\n    ],\n    \"preview_images_attributes\": [\n      { \"id\": EXISTING_PREVIEW_IMAGE_ID, \"_destroy\": true },\n      { \"image\": \"image_file\" }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/products/12345","description":"<p>Updates an existing product. Send only the fields that need to be updated. \nCustom fields can be updated by <code>custom_field_type_id</code> or <code>name</code>. \nNested attributes like <code>preview_images_attributes</code> support adding, updating, and deleting items (using <code>_destroy: true</code>).</p>\n","urlObject":{"protocol":"https","path":["v1","products","12345"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"3c778975-1b2f-4037-9741-f88137458b9e","name":"Product Updated","originalRequest":{"method":"PUT","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"product\": {\n    \"name\": \"Updated Product Name\",\n    \"price\": 59.99,\n    \"custom_fields\": [\n      { \n        \"custom_field_type_id\": 123, \n        \"value\": \"Green\"\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/products/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 1,\n  \"name\": \"Updated Product Name\",\n  \"product_uid\": \"PROD001\",\n  \"description\": \"A sample product description.\",\n  \"purchase_type\": \"SinglePurchase\",\n  \"subscription_interval\": null,\n  \"currency\": \"USD\",\n  \"tax_amount\": 0.0,\n  \"price\": 99.99,\n  \"is_stripe_product\": false,\n  \"product_url\": \"https://example.com/product/1\",\n  \"is_stock_managed\": true,\n  \"long_description\": \"A much longer description of the sample product.\",\n  \"stock_quantity\": 50,\n  \"is_purchasable\": true,\n  \"download_url\": null,\n  \"is_downloadable\": false,\n  \"created_at\": \"2023-01-01T10:00:00.000Z\",\n  \"updated_at\": \"2023-01-02T12:00:00.000Z\",\n  \"tag_list\": \"sample, example\",\n  \"category_list\": \"general\",\n  \"privacy\": \"Shared\",\n  \"max_inventory\": 100,\n  \"display_image_url\": \"https://example.com/images/product_1_display.jpg\",\n  \"product_status\": {\n    \"id\": 1,\n    \"name\": \"Active\",\n    \"status_type\": \"available\",\n    \"is_default\": true\n  },\n  \"custom_fields\": [\n    {\n      \"api_key\": \"color\",\n      \"name\": \"Color\",\n      \"value\": \"Green\"\n    }\n  ],\n  \"attachment_files\": [],\n  \"preview_images\": [],\n  \"product_contacts\": [],\n  \"deal_products\": []\n}"}],"_postman_id":"9649e598-ea9d-4430-86ac-c5b1f22d625d"},{"name":"Delete Product","id":"d28ab3f0-3af3-4cd3-99c7-10ca9f1fec75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/12345?X-Api-Key=xxxx-xxxx-xxxx-xxxx","description":"<p>Soft-deletes a product. The product is marked as deleted but not permanently removed from the database.</p>\n","urlObject":{"protocol":"https","path":["v1","products","12345"],"host":["api","livingmetrics","com"],"query":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx"}],"variable":[]}},"response":[{"id":"32d06601-201c-4189-8469-22d9f861bddf","name":"Product Deleted","originalRequest":{"method":"DELETE","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/1"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"d28ab3f0-3af3-4cd3-99c7-10ca9f1fec75"},{"name":"Get Product Statuses","id":"a557f787-5f9d-4e33-ba89-24e084e69f50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/statuses","description":"<p>Retrieves a list of available product statuses for the account.</p>\n","urlObject":{"protocol":"https","path":["v1","products","statuses"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"b92f1d37-637a-4d1f-977d-8a156f6da737","name":"Successful Response","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 1,\n    \"name\": \"Active\",\n    \"status_type\": \"available\",\n    \"is_default\": true\n  },\n  {\n    \"id\": 2,\n    \"name\": \"Sold Out\",\n    \"status_type\": \"unavailable\",\n    \"is_default\": false\n  }\n]"}],"_postman_id":"a557f787-5f9d-4e33-ba89-24e084e69f50"},{"name":"Move Out Product for Contact","id":"22a6d68b-b28f-48ac-adf7-a072198f2eff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contact_id\": \"{{contact-id}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/products/move_out/12345","description":"<p>Moves a contact out of a specified product (e.g., a rental unit). Requires <code>contact_id</code>.</p>\n","urlObject":{"protocol":"https","path":["v1","products","move_out","12345"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"5c6121d4-219e-4c71-9289-555348f99714","name":"Move Out Successful","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/1/move_out"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"cookie":[],"responseTime":null,"body":""},{"id":"c8e2ba8d-bd92-42b4-8ad1-3107f9833522","name":"Contact ID Required","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/1/move_out"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Contact ID is required\"\n}"}],"_postman_id":"22a6d68b-b28f-48ac-adf7-a072198f2eff"},{"name":"Transfer Product for Contact","id":"28ccb907-2252-4741-9fd7-a0fcf9c9941b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"contact_id\": \"{{contact-id}}\",\n  \"transfer_id\": \"{{target-product-id}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/products/transfer/12345","description":"<p>Transfers a contact from one product to another. Requires <code>contact_id</code> and <code>transfer_id</code> (target product ID).</p>\n","urlObject":{"protocol":"https","path":["v1","products","transfer","12345"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"458dd428-a7c3-4eee-958b-70b62545cc28","name":"Transfer Successful","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/transfer/1"},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"cookie":[],"responseTime":null,"body":""},{"id":"81286955-bcfd-4345-92ca-de3a2836559c","name":"Cannot Transfer to Itself","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.livingmetrics.com/v1/products/transfer/1"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Cannot transfer product to itself\"\n}"}],"_postman_id":"28ccb907-2252-4741-9fd7-a0fcf9c9941b"}],"id":"120995ca-ecd9-4ba9-9754-8878719718ef","description":"<p>Endpoints for product management</p>\n","_postman_id":"120995ca-ecd9-4ba9-9754-8878719718ef"},{"name":"Deals (Prospects)","item":[{"name":"List Deals","id":"a1597d4d-9327-4aa8-8f72-95a4c490df1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals?page=0&limit=10&order_by=created_at&order=desc","description":"<p>Retrieves a paginated list of deals. Deals are filtered based on the authenticated account. Various query parameters can be used for filtering and sorting.</p>\n","urlObject":{"protocol":"https","path":["v1","deals"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>Page number for pagination (default: 0).</p>\n","type":"text/plain"},"key":"page","value":"0"},{"description":{"content":"<p>Number of deals per page (default: 100, max: 500).</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>Field to order by. Options: 'updated', 'value', 'estimated_close_date', 'created_at' (default).</p>\n","type":"text/plain"},"key":"order_by","value":"created_at"},{"description":{"content":"<p>Order direction. Options: 'asc', 'desc' (default).</p>\n","type":"text/plain"},"key":"order","value":"desc"},{"disabled":true,"description":{"content":"<p>Search term to filter deals by name, description, funnel, stage, or status.</p>\n","type":"text/plain"},"key":"search_term","value":"MyDeal"},{"disabled":true,"description":{"content":"<p>Filter deals by employer account ID.</p>\n","type":"text/plain"},"key":"employer_id","value":"123"},{"disabled":true,"description":{"content":"<p>Filter deals associated with a specific contact ID.</p>\n","type":"text/plain"},"key":"contact_id","value":"456"},{"disabled":true,"description":{"content":"<p>Filter deals created on or after this date.</p>\n","type":"text/plain"},"key":"created_by","value":"2023-01-01T00:00:00Z"},{"disabled":true,"description":{"content":"<p>Filter deals updated on or after this date.</p>\n","type":"text/plain"},"key":"updated_by","value":"2023-01-15T00:00:00Z"}],"variable":[]}},"response":[{"id":"986c3cce-ba17-4718-90e1-83a2ee559782","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Big Deal Q1\",\n        \"description\": \"Important deal for the first quarter\",\n        \"value\": 10000.0,\n        \"probability\": 75.0,\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\",\n        \"deal_stage_id\": 2,\n        \"deal_stage_name\": \"Proposal Made\",\n        \"deal_status_id\": 3,\n        \"deal_status_name\": \"Open\",\n        \"sales_contact_id\": 101,\n        \"sales_contact_name\": \"John Doe\",\n        \"sales_contact_email\": \"john.doe@example.com\",\n        \"created_at\": \"2023-10-26T10:00:00.000Z\",\n        \"updated_at\": \"2023-10-27T10:00:00.000Z\",\n        \"account_id\": 201,\n        \"account_name\": \"Client Corp\",\n        \"closed_on_date\": null,\n        \"estimated_close_date\": \"2024-03-31\",\n        \"currency\": \"USD\",\n        \"contacts\": [\n            {\n                \"contact_id\": 301,\n                \"is_primary\": true,\n                \"name\": \"Jane Smith\",\n                \"email\": \"jane.smith@clientcorp.com\",\n                \"related_contacts\": []\n            }\n        ],\n        \"custom_fields\": [\n            {\n                \"key\": \"custom_field_api_key_1\",\n                \"name\": \"Region\",\n                \"value\": \"North America\"\n            }\n        ],\n        \"products\": [\n            {\n                \"uid\": \"PROD001\",\n                \"quantity\": 2\n            }\n        ],\n        \"attachment_files\": []\n    }\n]"}],"_postman_id":"a1597d4d-9327-4aa8-8f72-95a4c490df1f"},{"name":"Create Deal","id":"069dd452-102a-424c-83fc-d08d2f2f941a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"deal\": {\n        \"name\": \"New API Deal\",\n        \"description\": \"Deal created via API\",\n        \"value\": 5000,\n        \"probability\": 50,\n        \"deal_funnel_id\": 1,\n        \"deal_stage_id\": 1,\n        \"deal_status_id\": 1,\n        \"sales_contact_id\": 102,\n        \"estimated_close_date\": \"2024-06-30\",\n        \"currency\": \"USD\",\n        \"contacts\": [\n            {\n                \"id\": 305,\n                \"is_primary\": true\n            }\n        ],\n        \"products\": [\n            {\n                \"uid\": \"PROD002\",\n                \"quantity\": 1\n            }\n        ],\n        \"custom_fields\": [\n            {\n                \"name\": \"Lead Source\",\n                \"value\": \"API\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/deals","description":"<p>Creates a new deal. The <code>prospect_account_id</code> is automatically set to the authenticated account. If <code>sales_contact_id</code> is blank and an employee is associated with the API key, it will be set to the employee's ID.</p>\n","urlObject":{"protocol":"https","path":["v1","deals"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"ad090139-608a-44ca-a164-5b54a10e75d3","name":"Successful Creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"deal\": {\n        \"name\": \"New API Deal\",\n        \"description\": \"Deal created via API\",\n        \"value\": 5000\n    }\n}"},"url":"https://api.livingmetrics.com/v1/deals"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"name\": \"New API Deal\",\n        \"description\": \"Deal created via API\",\n        \"value\": 5000.0,\n        \"probability\": 50.0,\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\",\n        \"deal_stage_id\": 1,\n        \"deal_stage_name\": \"Qualification\",\n        \"deal_status_id\": 1,\n        \"deal_status_name\": \"Open\",\n        \"sales_contact_id\": 102,\n        \"sales_contact_name\": \"Alice Wonderland\",\n        \"sales_contact_email\": \"alice@example.com\",\n        \"created_at\": \"2023-10-28T10:00:00.000Z\",\n        \"updated_at\": \"2023-10-28T10:00:00.000Z\",\n        \"account_id\": null,\n        \"account_name\": null,\n        \"closed_on_date\": null,\n        \"estimated_close_date\": \"2024-06-30\",\n        \"currency\": \"USD\",\n        \"contacts\": [\n            {\n                \"contact_id\": 305,\n                \"is_primary\": true,\n                \"name\": \"Bob The Builder\",\n                \"email\": \"bob@example.com\",\n                \"related_contacts\": []\n            }\n        ],\n        \"custom_fields\": [\n            {\n                \"key\": \"custom_field_api_key_2\",\n                \"name\": \"Lead Source\",\n                \"value\": \"API\"\n            }\n        ],\n        \"products\": [\n            {\n                \"uid\": \"PROD002\",\n                \"quantity\": 1\n            }\n        ],\n        \"attachment_files\": []\n    }\n]"}],"_postman_id":"069dd452-102a-424c-83fc-d08d2f2f941a"},{"name":"Get Deal","id":"af9f44d3-4dc5-48e9-9f4c-7335fb9dccce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals/1","description":"<p>Retrieves a specific deal by its ID. The deal must belong to the authenticated account.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","1"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"9aa9e957-b70d-4557-a823-a3380c7647d2","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Big Deal Q1\",\n        \"description\": \"Important deal for the first quarter\",\n        \"value\": 10000.0,\n        \"probability\": 75.0,\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\",\n        \"deal_stage_id\": 2,\n        \"deal_stage_name\": \"Proposal Made\",\n        \"deal_status_id\": 3,\n        \"deal_status_name\": \"Open\",\n        \"sales_contact_id\": 101,\n        \"sales_contact_name\": \"John Doe\",\n        \"sales_contact_email\": \"john.doe@example.com\",\n        \"created_at\": \"2023-10-26T10:00:00.000Z\",\n        \"updated_at\": \"2023-10-27T10:00:00.000Z\",\n        \"account_id\": 201,\n        \"account_name\": \"Client Corp\",\n        \"closed_on_date\": null,\n        \"estimated_close_date\": \"2024-03-31\",\n        \"currency\": \"USD\",\n        \"contacts\": [\n            {\n                \"contact_id\": 301,\n                \"is_primary\": true,\n                \"name\": \"Jane Smith\",\n                \"email\": \"jane.smith@clientcorp.com\",\n                \"related_contacts\": []\n            }\n        ],\n        \"custom_fields\": [\n            {\n                \"key\": \"custom_field_api_key_1\",\n                \"name\": \"Region\",\n                \"value\": \"North America\"\n            }\n        ],\n        \"products\": [\n            {\n                \"uid\": \"PROD001\",\n                \"quantity\": 2\n            }\n        ],\n        \"attachment_files\": []\n    }\n]"},{"id":"dcc32bf1-f5c9-4e91-b67c-8036eea8c1c8","name":"Deal Not Found","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals/9999"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"af9f44d3-4dc5-48e9-9f4c-7335fb9dccce"},{"name":"Update Deal","id":"4483a2c4-6e58-4e39-a97a-44c81baabcc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"deal\": {\n        \"name\": \"Updated API Deal Name\",\n        \"value\": 7500,\n        \"custom_fields\": [\n            {\n                \"name\": \"Lead Source\",\n                \"value\": \"Referral\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.livingmetrics.com/v1/deals/1","description":"<p>Updates an existing deal by its ID. Only the fields provided in the request body will be updated. The deal must belong to the authenticated account.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","1"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"dcd1c603-0a04-4feb-a764-7bf4448df9b9","name":"Successful Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"deal\": {\n        \"name\": \"Updated API Deal Name\",\n        \"value\": 7500\n    }\n}"},"url":"https://api.livingmetrics.com/v1/deals/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Updated API Deal Name\",\n        \"description\": \"Important deal for the first quarter\",\n        \"value\": 7500.0,\n        \"probability\": 75.0,\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\",\n        \"deal_stage_id\": 2,\n        \"deal_stage_name\": \"Proposal Made\",\n        \"deal_status_id\": 3,\n        \"deal_status_name\": \"Open\",\n        \"sales_contact_id\": 101,\n        \"sales_contact_name\": \"John Doe\",\n        \"sales_contact_email\": \"john.doe@example.com\",\n        \"created_at\": \"2023-10-26T10:00:00.000Z\",\n        \"updated_at\": \"2023-10-28T11:00:00.000Z\",\n        \"account_id\": 201,\n        \"account_name\": \"Client Corp\",\n        \"closed_on_date\": null,\n        \"estimated_close_date\": \"2024-03-31\",\n        \"currency\": \"USD\",\n        \"contacts\": [\n            {\n                \"contact_id\": 301,\n                \"is_primary\": true,\n                \"name\": \"Jane Smith\",\n                \"email\": \"jane.smith@clientcorp.com\",\n                \"related_contacts\": []\n            }\n        ],\n        \"custom_fields\": [\n            {\n                \"key\": \"custom_field_api_key_1\",\n                \"name\": \"Region\",\n                \"value\": \"North America\"\n            },\n            {\n                \"key\": \"custom_field_api_key_2\",\n                \"name\": \"Lead Source\",\n                \"value\": \"Referral\"\n            }\n        ],\n        \"products\": [\n            {\n                \"uid\": \"PROD001\",\n                \"quantity\": 2\n            }\n        ],\n        \"attachment_files\": []\n    }\n]"},{"id":"9eb7e7ad-8b66-4cf8-9626-46e7631fc97c","name":"Deal Not Found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"deal\": {\n        \"name\": \"Updated API Deal Name\",\n        \"value\": 7500\n    }\n}"},"url":"https://api.livingmetrics.com/v1/deals/9999"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4483a2c4-6e58-4e39-a97a-44c81baabcc0"},{"name":"Delete Deal","id":"a87a73d7-6971-4c9c-b9f7-56ea96d6b683","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals/1","description":"<p>Soft-deletes a deal by its ID. The deal must belong to the authenticated account.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","1"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"7b06dc49-8853-49e9-a306-2a4205342e18","name":"Successful Deletion","originalRequest":{"method":"DELETE","header":[],"url":"https://api.livingmetrics.com/v1/deals/1"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"f7493255-d981-43ea-9f98-ec5d8726945b","name":"Deal Not Found","originalRequest":{"method":"DELETE","header":[],"url":"https://api.livingmetrics.com/v1/deals/9999"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a87a73d7-6971-4c9c-b9f7-56ea96d6b683"},{"name":"Get Deals Count","id":"41819a07-a088-422b-b1da-850df909c8f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals/count","description":"<p>Retrieves the total count of deals matching the provided filters.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","count"],"host":["api","livingmetrics","com"],"query":[{"disabled":true,"description":{"content":"<p>Search term to filter deals.</p>\n","type":"text/plain"},"key":"search_term","value":"MyDeal"},{"disabled":true,"description":{"content":"<p>Filter deals by employer account ID.</p>\n","type":"text/plain"},"key":"employer_id","value":"123"},{"disabled":true,"description":{"content":"<p>Filter deals associated with a specific contact ID.</p>\n","type":"text/plain"},"key":"contact_id","value":"456"}],"variable":[]}},"response":[{"id":"d3e9d2dc-e146-45ae-8fed-9df3d950f8e4","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals/count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 5\n}"}],"_postman_id":"41819a07-a088-422b-b1da-850df909c8f4"},{"name":"Get Deal Fields","id":"e5cb14d7-a573-4f8e-8f9f-250526f368e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals/fields","description":"<p>Retrieves a list of available standard and custom fields for deals.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","fields"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"322cad90-00c4-4c8d-a979-1560d9ef89a3","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals/fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"type\": \"unicode\",\n        \"key\": \"deal[deals.name]\",\n        \"required\": \"true\",\n        \"label\": \"Deal Name\"\n    },\n    {\n        \"type\": \"unicode\",\n        \"key\": \"deal[deals.description]\",\n        \"required\": \"false\",\n        \"label\": \"Deal Description\"\n    },\n    {\n        \"type\": \"datetime\",\n        \"key\": \"deal[custom_field_api_key_3]\",\n        \"required\": false,\n        \"label\": \"Follow-up Date\",\n        \"list\": false,\n        \"object\": \"Deal\"\n    }\n]"}],"_postman_id":"e5cb14d7-a573-4f8e-8f9f-250526f368e0"},{"name":"Get Deal Funnels","id":"ac4e166b-9aff-4a14-a366-cfc8d741b070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals/funnels","description":"<p>Retrieves a list of deal funnels (pipelines) for the authenticated account, including their stages and statuses.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","funnels"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"b8747d43-10dd-4c1c-8781-63b06886f9b5","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals/funnels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Sales Pipeline\",\n        \"stages\": [\n            {\n                \"id\": 1,\n                \"name\": \"Qualification\"\n            },\n            {\n                \"id\": 2,\n                \"name\": \"Proposal Made\"\n            }\n        ],\n        \"statuses\": [\n            {\n                \"id\": 1,\n                \"name\": \"Open\"\n            },\n            {\n                \"id\": 2,\n                \"name\": \"Won\"\n            },\n            {\n                \"id\": 3,\n                \"name\": \"Lost\"\n            }\n        ]\n    }\n]"}],"_postman_id":"ac4e166b-9aff-4a14-a366-cfc8d741b070"},{"name":"Get Deal Stages","id":"bfcd4971-da8a-4272-b976-cf10a8b39faf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals/stages","description":"<p>Retrieves a list of all deal stages across all funnels for the authenticated account.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","stages"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"80a6a04c-7baa-4096-8583-37999d3f961e","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals/stages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Qualification\",\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Proposal Made\",\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\"\n    }\n]"}],"_postman_id":"bfcd4971-da8a-4272-b976-cf10a8b39faf"},{"name":"Get Deal Statuses","id":"e27d3978-cce9-4bd5-bf07-7f13ef228d77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"},{"key":"X-Application-Api-Key","value":"{{application-api-key}}","type":"text"}],"url":"https://api.livingmetrics.com/v1/deals/statuses","description":"<p>Retrieves a list of all deal statuses across all funnels for the authenticated account.</p>\n","urlObject":{"protocol":"https","path":["v1","deals","statuses"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"dc82acd7-c959-4a39-aaf2-434973c2b363","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/deals/statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Open\",\n        \"status\": \"open\",\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Won\",\n        \"status\": \"won\",\n        \"deal_funnel_id\": 1,\n        \"deal_funnel_name\": \"Sales Pipeline\"\n    }\n]"}],"_postman_id":"e27d3978-cce9-4bd5-bf07-7f13ef228d77"}],"id":"085edff6-a590-44ba-a561-10c8a7d970d9","description":"<p>Deals endpoints can be used to manage your account deals (list deals, get deal details, update/create deal).</p>\n<h2>The Deal Object</h2>\n\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"id\": 1,\n    \"name\": \"Big Deal Q1\",\n    \"description\": \"Important deal for the first quarter\",\n    \"value\": 10000.0,\n    \"probability\": 75.0,\n    \"deal_funnel_id\": 1,\n    \"deal_funnel_name\": \"Sales Pipeline\",\n    \"deal_stage_id\": 2,\n    \"deal_stage_name\": \"Proposal Made\",\n    \"deal_status_id\": 3,\n    \"deal_status_name\": \"Open\",\n    \"sales_contact_id\": 101,\n    \"sales_contact_name\": \"John Doe\",\n    \"sales_contact_email\": \"john.doe@example.com\",\n    \"created_at\": \"2023-10-26T10:00:00.000Z\",\n    \"updated_at\": \"2023-10-27T10:00:00.000Z\",\n    \"account_id\": 201,\n    \"account_name\": \"Client Corp\",\n    \"closed_on_date\": null,\n    \"estimated_close_date\": \"2024-03-31\",\n    \"currency\": \"USD\",\n    \"contacts\": [\n      {\n        \"contact_id\": 301,\n        \"is_primary\": true,\n        \"name\": \"Jane Smith\",\n        \"email\": \"jane.smith@clientcorp.com\",\n        \"related_contacts\": []\n      }\n    ],\n    \"custom_fields\": [\n      {\n        \"key\": \"custom_field_api_key_1\",\n        \"name\": \"Region\",\n        \"value\": \"North America\"\n      }\n    ],\n    \"products\": [\n      {\n        \"uid\": \"PROD001\",\n        \"quantity\": 2\n      }\n    ],\n    \"attachment_files\": []\n  }\n]\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"efd6c643-058e-4973-a2cc-a4b8bb62c882"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"4bbdefcb-6849-4c5b-b540-88cffd236cc1"}}],"_postman_id":"085edff6-a590-44ba-a561-10c8a7d970d9"},{"name":"Histories","item":[{"name":"Get Histories","id":"1022109d-9167-4228-bb31-338719b6ec7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/histories?page=0&limit=100&history_type={{history-type}}&campaign_id={{campaign-id}}&contact_id={{contact-id}}&start_date={{start-date}}&end_date={{end-date}}&last_history_id=&contact_group=emailed&search_term&order=asc&email_guid&tracked_number_id","description":"<p>This endpoint will return contact histories matching the given parameters</p>\n","urlObject":{"protocol":"https","path":["v1","histories"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>Default 0</p>\n","type":"text/plain"},"key":"page","value":"0"},{"description":{"content":"<p>Default 100, max 500</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"description":{"content":"<p>Contact History Type</p>\n","type":"text/plain"},"key":"history_type","value":"{{history-type}}"},{"description":{"content":"<p>Campaign ID</p>\n","type":"text/plain"},"key":"campaign_id","value":"{{campaign-id}}"},{"description":{"content":"<p>Contact ID</p>\n","type":"text/plain"},"key":"contact_id","value":"{{contact-id}}"},{"description":{"content":"<p>Start Date</p>\n","type":"text/plain"},"key":"start_date","value":"{{start-date}}"},{"description":{"content":"<p>End Date</p>\n","type":"text/plain"},"key":"end_date","value":"{{end-date}}"},{"key":"last_history_id","value":""},{"description":{"content":"<p>Values are \"all\", \"managed\" and \"emailed\". The default is \"emailed\"</p>\n","type":"text/plain"},"key":"contact_group","value":"emailed"},{"description":{"content":"<p>Search term</p>\n","type":"text/plain"},"key":"search_term","value":null},{"description":{"content":"<p>Values are \"asc\" or \"desc\". The default is \"desc\"</p>\n","type":"text/plain"},"key":"order","value":"asc"},{"description":{"content":"<p>Email GUID</p>\n","type":"text/plain"},"key":"email_guid","value":null},{"description":{"content":"<p>Return all text messages associated with this tracked number if history_type = TextMessage</p>\n","type":"text/plain"},"key":"tracked_number_id","value":null}],"variable":[]}},"response":[],"_postman_id":"1022109d-9167-4228-bb31-338719b6ec7a"}],"id":"8d9c6497-bb18-444e-926d-fae97accb5a9","description":"<p>The following is a sample of the data that will be returned from history endpoints:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n  {\n    \"id\": 12345678,\n    \"history_type\": \"SubmittedForm\",\n    \"created_at\": \"2022-11-22 14:57:26\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"form_id\": 1234,\n    \"form_name\": \"Sample Form\",\n    \"fields\": [\n      [\n        \"Company Name\",\n        \"Sample Company\"\n      ],\n      [\n        \"First Name\",\n        \"Person\"\n      ],\n      [\n        \"Last Name\",\n        \"Last\"\n      ],\n      [\n        \"Phone Number\",\n        \"1112221212\"\n      ],\n      [\n        \"Email Address\",\n        \"person@sample.com\"\n      ]\n    ],\n    \"field_keys\": [\n      {\n        \"key\": \"field_151_0\",\n        \"value\": \"Sample Company\"\n      },\n      {\n        \"key\": \"field_1_1\",\n        \"value\": \"Person\"\n      },\n      {\n        \"key\": \"field_11_2\",\n        \"value\": \"Last\"\n      },\n      {\n        \"key\": \"field_31_3\",\n        \"value\": \"1112221212\"\n      },\n      {\n        \"key\": \"field_21_4\",\n        \"value\": \"person@sample.com\"\n      }\n    ],\n    \"submitted_from_url\": \"https://sample.com/contact-us\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"PartialForm\",\n    \"created_at\": \"2022-11-22 14:46:31\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"SiteVisit\",\n    \"created_at\": \"2022-11-22 14:57:29\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"pages\": [\n      \"https://sample.com/page3\",\n      \"https://sample.com/page4\"\n    ],\n    \"page_details\": [\n      {\n        \"clean_url\": \"https://sample.com/page3\",\n        \"time_on_page\": 0.0,\n        \"is_on_page\": false,\n        \"timestamp\": \"2022-11-22T07:57:29.000-07:00\"\n      },\n      {\n        \"clean_url\": \"https://sample.com/page4\",\n        \"time_on_page\": 1180.0,\n        \"is_on_page\": false,\n        \"timestamp\": \"2022-11-22T08:21:08.000-07:00\"\n      }\n    ],\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"Live Chat\",\n    \"created_at\": \"2022-11-22 14:54:25\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"transcript\": \"Sample chat conversation\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"Email Log\",\n    \"created_at\": \"2022-11-22 14:57:28\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"subject_line\": \"Sample Subject\",\n    \"from\": \"example@sample.com\",\n    \"reply_to\": \"example@sample.com\",\n    \"email_guid\": \"hfuaipthnfjgkaslh\",\n    \"marketing_email\": true,\n    \"view_in_browser\": \"https://www2.sample.com/submit/view_email/mjfiht849574309jtrklgj\",\n    \"opened_at\": \"2022-11-22T08:03:12.000-07:00\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"EmailReply\",\n    \"created_at\": \"2022-11-22 14:52:42\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"subject_line\": \"Sample Subject\",\n    \"from\": \"example@sample.com\",\n    \"reply_to\": null,\n    \"email_guid\": \"1849fd167fd5f5e0\",\n    \"to\": \"+1231231234\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"EmailLinkClick\",\n    \"created_at\": \"2022-11-22 14:57:24\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"url\": \"https://sample.com/page4\",\n    \"subject_line\": \"Sample Subject\",\n    \"email_sent_at\": \"2022-11-21T12:31:32.000-07:00\",\n    \"view_in_browser\": \"https://www2.sample.com/submit/view_email/mjfiht849574309jtrklgj\",\n    \"email_log_history_id\": 1234567,\n    \"marketing_email\": true,\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"Unsubscribe\",\n    \"created_at\": \"2022-11-22 14:56:56\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"email\": \"person@sample.com\",\n    \"reason\": \"\",\n    \"subject_line\": \"Sample Subject\",\n    \"email_sent_at\": \"2022-11-21T13:00:43.000-07:00\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ContactCreation\",\n    \"created_at\": \"2022-11-22 14:57:19\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"EmailError\",\n    \"created_at\": \"2022-11-22 14:50:37\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"SpamReport\",\n    \"created_at\": \"2022-11-22 14:22:56\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"EmailOpen\",\n    \"created_at\": \"2022-11-22 14:57:29\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"open_tag_type\": \"image\",\n    \"subject_line\": \"Sample Subject\",\n    \"email_sent_at\": \"2022-11-22T07:48:31.000-07:00\",\n    \"view_in_browser\": \"https://www2.sample.com/submit/view_email/mjfiht849574309jtrklgj\",\n    \"email_log_history_id\": 1234567,\n    \"marketing_email\": true,\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"EmailBrokerRequest\",\n    \"created_at\": \"2022-11-07 19:50:47\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"PhoneCall\",\n    \"created_at\": \"2022-11-22 14:57:26\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"to\": \"+1231231234\",\n    \"caller_name\": \"Sample Person\",\n    \"from\": \"+1231231234\",\n    \"from_city\": \"Calgary\",\n    \"from_country\": \"CA\",\n    \"from_state\": \"AB\",\n    \"from_zip\": \"\",\n    \"direction\": \"inbound\",\n    \"to_phone_id\": 12345,\n    \"from_phone_id\": 12345,\n    \"transcript\": \"\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TwitterFollow\",\n    \"created_at\": \"2022-11-22 09:03:17\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TwitterUnFollow\",\n    \"created_at\": \"2016-01-07 18:15:54\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TwitterMention\",\n    \"created_at\": \"2022-11-21 21:37:03\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TwitterReTweet\",\n    \"created_at\": \"2022-11-21 21:37:23\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TwitterMessage\",\n    \"created_at\": \"2022-11-21 21:36:45\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TwitterTweet\",\n    \"created_at\": \"2022-11-22 13:46:01\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\"\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ListAdded\",\n    \"created_at\": \"2022-11-22 14:57:13\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ListRemoved\",\n    \"created_at\": \"2022-11-22 14:57:17\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"CampaignMatched\",\n    \"created_at\": \"2022-11-22 14:57:13\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"CampaignUnmatched\",\n    \"created_at\": \"2022-11-22 14:54:49\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"WebinarRegistration\",\n    \"created_at\": \"2022-11-22 13:55:33\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"WebinarAttendance\",\n    \"created_at\": \"2022-11-17 11:20:44\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"AppointmentAttendance\",\n    \"created_at\": \"2022-11-22 05:20:34\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"LinkedInShare\",\n    \"created_at\": \"2022-11-21 21:30:01\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\"\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"InstagramPost\",\n    \"created_at\": \"2022-11-22 14:30:09\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\"\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"FacebookPost\",\n    \"created_at\": \"2022-11-22 14:30:09\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\"\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"AssetDownload\",\n    \"created_at\": \"2022-11-22 14:57:24\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"name\": \"Sample Book\",\n    \"description\": \"\",\n    \"download_url\": \"https://www2.sample.com/submit/download/1234\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ShortUrlClick\",\n    \"created_at\": \"2022-11-22 14:57:24\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"InstagramComment\",\n    \"created_at\": \"2022-06-30 21:40:49\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"FacebookComment\",\n    \"created_at\": \"2022-11-19 11:59:10\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"FacebookLike\",\n    \"created_at\": \"2022-11-19 13:52:23\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"LinkedInLike\",\n    \"created_at\": \"2015-04-15 12:01:31\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"OptIn\",\n    \"created_at\": \"2022-11-22 14:53:07\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"CookieAccept\",\n    \"created_at\": \"2022-11-22 14:53:16\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"EmailForward\",\n    \"created_at\": \"2022-11-22 14:56:33\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"GoalCompletion\",\n    \"created_at\": \"2022-11-22 14:56:36\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TextMessage\",\n    \"created_at\": \"2022-11-22 14:50:24\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"message\": \"This is a sample message\",\n    \"to\": \"+1231231234\",\n    \"from\": \"+1231231234\",\n    \"from_city\": \"Calgary\",\n    \"from_country\": \"CA\",\n    \"from_state\": \"AB\",\n    \"from_zip\": \"\",\n    \"direction\": \"inbound\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"SalesNote\",\n    \"created_at\": \"2022-11-22 14:47:46\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"comments\": \"sample\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"SystemActivity\",\n    \"created_at\": \"2022-11-22 14:57:27\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"name\": \"System Sample Event\",\n    \"description\": \"Description of sample event\",\n    \"icon\": \"fa fa-google fab\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"WonDeal\",\n    \"created_at\": \"2022-11-22 14:52:28\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"name\": \"Sample Deal\",\n    \"value\": 200,\n    \"reference_uid\": 12345,\n    \"products\": [],\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"WordpressPost\",\n    \"created_at\": \"2022-10-31 13:00:07\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\"\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"PopupView\",\n    \"created_at\": \"2022-11-22 14:57:24\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"PopupClick\",\n    \"created_at\": \"2022-11-22 14:51:07\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"DynamicBlockView\",\n    \"created_at\": \"2022-11-22 14:57:00\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"DynamicBlockClick\",\n    \"created_at\": \"2022-11-22 14:41:32\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"gclid\": \"jgr890548yhgjkrrfedgre\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"FacebookPageView\",\n    \"created_at\": \"2019-07-31 12:17:18\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"PinterestPin\",\n    \"created_at\": \"2022-09-29 17:00:05\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\"\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"Referral\",\n    \"created_at\": \"2022-11-22 13:56:25\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"AffiliateLinkClick\",\n    \"created_at\": \"2022-11-21 14:05:27\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"campaign_name\": \"Sample Campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"AffiliateConversion\",\n    \"created_at\": \"2022-06-17 15:37:23\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"DynamicImageView\",\n    \"created_at\": \"2022-11-22 14:53:27\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"Appointment\",\n    \"created_at\": \"2022-11-22 13:24:12\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ContactExport\",\n    \"created_at\": \"2022-11-07 00:22:38\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"IVRDigits\",\n    \"created_at\": \"2022-11-22 14:57:23\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"CustomEvent\",\n    \"created_at\": \"2022-11-22 14:00:00\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"event_name\": \"Sample Event\",\n    \"event_description\": \"Sample event description\",\n    \"custom_event_items\": {},\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ContactChange\",\n    \"created_at\": \"2022-11-22 14:57:23\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ScheduleEvent\",\n    \"created_at\": \"2022-11-21 20:50:24\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"workflow_name\": \"Sample Workflow\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ga_client_uid\": \"1234.1234\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"DealChange\",\n    \"created_at\": \"2022-11-22 14:57:12\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"TaskChange\",\n    \"created_at\": \"2022-11-22 14:23:36\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"ContactEnrichment\",\n    \"created_at\": \"2022-11-22 14:44:51\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": \"https://sample.com/page3\",\n      \"ip_address\": \"xxx.xxx.xxx.xxx\"\n    },\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"WebChatMessage\",\n    \"created_at\": \"2025-03-12 19:14:15\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": null\n    },\n    \"message\": \"An interesting chat message\",\n    \"direction\": \"inbound\",\n    \"role\": \"User\",\n    \"contact\": {}\n  },\n  {\n    \"id\": 12345678,\n    \"history_type\": \"WebChatDiscussion\",\n    \"created_at\": \"2025-03-12 19:14:15\",\n    \"utm_medium\": \"sample-medium\",\n    \"utm_source\": \"sample-source\",\n    \"utm_campaign\": \"sample-campaign\",\n    \"session\": {\n      \"entry_page\": null\n    },\n    \"transcript\": \"\\u003Cspan class='speaker_user '\\u003EAn interesting chat message\\u003C/span\\u003E\\u003Cbr/\\u003E\\u003Cspan class='speaker_system'\\u003EA system response\\u003C/span\\u003E\\u003Cbr/\\u003E\",\n    \"contact\": {}\n  }\n]\n\n</code></pre>","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"23a40802-a6fb-45e2-b2b7-857e270948cd"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"4e580072-ff90-486e-a1b7-64564a1660f8"}}],"_postman_id":"8d9c6497-bb18-444e-926d-fae97accb5a9"},{"name":"Tasks","item":[{"name":"Get Tasks","id":"6ee16931-5c09-4f61-a82d-b55e00ee8978","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/tasks.json?limit=100&page=0&include_completed=0&user_only=0","description":"<p>Retrieves a list of tasks for the authenticated account. Supports pagination and filtering.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks.json"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>Default 100, max 500. Number of tasks to return per page.</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"description":{"content":"<p>Default 0. Page number for pagination.</p>\n","type":"text/plain"},"key":"page","value":"0"},{"description":{"content":"<p>Default 0. Set to 1 to include completed tasks.</p>\n","type":"text/plain"},"key":"include_completed","value":"0"},{"description":{"content":"<p>Default 0. Set to 1 to restrict tasks to the authenticated user (employee). This is forced true if the user only has permissions to see their own tasks.</p>\n","type":"text/plain"},"key":"user_only","value":"0"},{"disabled":true,"description":{"content":"<p>(Optional) Filter tasks by a specific contact ID.</p>\n","type":"text/plain"},"key":"contact_id","value":""}],"variable":[]}},"response":[{"id":"b435b585-9736-4e65-95e7-3fb277d0fe77","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.livingmetrics.com/v1/tasks.json?limit=2","protocol":"https","host":["api","livingmetrics","com"],"path":["v1","tasks.json"],"query":[{"key":"limit","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 101,\n    \"title\": \"Follow up call with Jane Doe\",\n    \"details_display\": \"<p>Discuss Q4 budget and new product line.</p>\",\n    \"due_date\": \"2024-08-15T14:00:00.000Z\",\n    \"completed_at\": null,\n    \"type_id\": 1,\n    \"status_id\": 2,\n    \"outcome_id\": null,\n    \"contact_id\": 505,\n    \"subject_location\": \"Q4 Budget Discussion\",\n    \"created_at\": \"2024-08-01T10:00:00.000Z\",\n    \"updated_at\": \"2024-08-01T10:30:00.000Z\",\n    \"custom_fields\": [\n        { \"name\": \"Priority\", \"value\": \"High\" }\n    ]\n  },\n  {\n    \"id\": 102,\n    \"title\": \"Prepare presentation for Project X\",\n    \"details_display\": \"<p>Include market analysis and competitor overview.</p>\",\n    \"due_date\": \"2024-08-20T17:00:00.000Z\",\n    \"completed_at\": null,\n    \"type_id\": 2,\n    \"status_id\": 1,\n    \"outcome_id\": null,\n    \"contact_id\": null,\n    \"subject_location\": \"Project X Presentation Prep\",\n    \"created_at\": \"2024-08-05T09:00:00.000Z\",\n    \"updated_at\": \"2024-08-05T09:00:00.000Z\"\n  }\\n]"}],"_postman_id":"6ee16931-5c09-4f61-a82d-b55e00ee8978"},{"name":"Get Tasks for a Contact","id":"74c27387-0772-4abd-b4c0-13ed4ebbf516","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/tasks/contact/{{contact-id}}.json?include_completed=0&user_only=0","description":"<p>Retrieves a list of tasks associated with a specific contact.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks","contact","{{contact-id}}.json"],"host":["api","livingmetrics","com"],"query":[{"description":{"content":"<p>Default 0. Set to 1 to include completed tasks.</p>\n","type":"text/plain"},"key":"include_completed","value":"0"},{"description":{"content":"<p>Default 0. Set to 1 to restrict tasks to the authenticated user (employee).</p>\n","type":"text/plain"},"key":"user_only","value":"0"}],"variable":[]}},"response":[{"id":"43387d0d-950c-43f2-a7e8-5e39901879e7","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/tasks/contact/505.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 101,\n    \"title\": \"Follow up call with Jane Doe\",\n    \"details_display\": \"<p>Discuss Q4 budget and new product line.</p>\",\n    \"due_date\": \"2024-08-15T14:00:00.000Z\",\n    \"completed_at\": null,\n    \"type_id\": 1,\n    \"status_id\": 2,\n    \"outcome_id\": null,\n    \"contact_id\": 505,\n    \"subject_location\": \"Q4 Budget Discussion\",\n    \"created_at\": \"2024-08-01T10:00:00.000Z\",\n    \"updated_at\": \"2024-08-01T10:30:00.000Z\",\n    \"custom_fields\": [\n        { \"name\": \"Priority\", \"value\": \"High\" }\n    ]\n  }\n]"}],"_postman_id":"74c27387-0772-4abd-b4c0-13ed4ebbf516"},{"name":"Get Task","id":"1d2ade47-7024-4ef9-9afc-69ae9eaf4029","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/tasks/{{task-id}}.json","description":"<p>Retrieves details for a single task by its ID.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks","{{task-id}}.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"771c99f4-89e2-47cc-bee1-72e1dafc8602","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/tasks/101.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 101,\n  \"title\": \"Follow up call with Jane Doe\",\n  \"details_display\": \"<p>Discuss Q4 budget and new product line.</p>\",\n  \"due_date\": \"2024-08-15T14:00:00.000Z\",\n  \"completed_at\": null,\n  \"type_id\": 1,\n  \"status_id\": 2,\n  \"outcome_id\": null,\n  \"contact_id\": 505,\n  \"subject_location\": \"Q4 Budget Discussion\",\n  \"created_at\": \"2024-08-01T10:00:00.000Z\",\n  \"updated_at\": \"2024-08-01T10:30:00.000Z\",\n  \"custom_fields\": [\n      { \"name\": \"Priority\", \"value\": \"High\" }\n  ]\n}"}],"_postman_id":"1d2ade47-7024-4ef9-9afc-69ae9eaf4029"},{"name":"Create Task","id":"24d02b1e-fdc7-47b1-9d7f-9195b439edc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"task[title]","value":"New API Task","description":"<p>Title of the task.</p>\n","type":"text"},{"key":"task[details]","value":"Details for the new API task.","description":"<p>Detailed description of the task (can be HTML).</p>\n","type":"text"},{"key":"task[due_date]","value":"2024-09-01T10:00:00Z","description":"<p>Due date and time in UTC (ISO 8601 format).</p>\n","type":"text"},{"key":"task[type_id]","value":"1","description":"<p>ID of the task type (see Get Types endpoint).</p>\n","type":"text"},{"key":"task[status_id]","value":"1","description":"<p>ID of the task status (see Get Statuses endpoint).</p>\n","type":"text"},{"key":"task[contact_id]","value":"{{contact-id}}","description":"<p>(Optional) ID of the contact associated with this task.</p>\n","type":"text"},{"key":"task[owner_id]","value":"{{employee-id}}","description":"<p>(Optional) ID of the employee assigned to this task. Defaults to API user or contact manager.</p>\n","type":"text"},{"key":"task[subject]","value":"Email Subject for Task","description":"<p>(Optional) Subject if task type is 'Email'.</p>\n","type":"text"},{"key":"task[location]","value":"Meeting Room A","description":"<p>(Optional) Location if task type is 'Appointment'.</p>\n","type":"text"},{"key":"task[custom_fields][][name]","value":"Custom Field Name 1","description":"<p>(Optional) Name of the first custom field.</p>\n","type":"text"},{"key":"task[custom_fields][][value]","value":"Custom Value 1","description":"<p>(Optional) Value for the first custom field.</p>\n","type":"text"},{"key":"task[custom_123]","value":"Another Custom Value","description":"<p>(Optional) Value for custom field with ID 123.</p>\n","type":"text"},{"key":"task[attachment]","description":"<p>(Optional) File attachment for the task.</p>\n","type":"file","value":null}]},"url":"https://api.livingmetrics.com/v1/tasks.json","description":"<p>Creates a new task. Custom fields can be submitted via <code>task[custom_fields][][name]</code> and <code>task[custom_fields][][value]</code> pairs, or by <code>task[custom_{field_id}]</code>.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"6c13afc5-0025-4691-a6e6-01830ebd4fc7","name":"Successful Creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.livingmetrics.com/v1/tasks.json"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 103,\n  \"title\": \"New API Task\",\n  \"details_display\": \"<p>Details for the new API task.</p>\",\n  \"due_date\": \"2024-09-01T10:00:00.000Z\",\n  \"completed_at\": null,\n  \"type_id\": 1,\n  \"status_id\": 1,\n  \"outcome_id\": null,\n  \"contact_id\": {{contact-id}},\n  \"subject_location\": \"Email Subject for Task\",\n  \"created_at\": \"2024-08-10T12:00:00.000Z\",\n  \"updated_at\": \"2024-08-10T12:00:00.000Z\",\n  \"custom_fields\": [\n      { \"name\": \"Custom Field Name 1\", \"value\": \"Custom Value 1\" }\n  ]\n}"},{"id":"2fee4cb6-4bc4-48d2-b636-c2733b6d9ea5","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"task[title]","value":"","type":"text"}]},"url":"https://api.livingmetrics.com/v1/tasks.json"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Title can't be blank\\nType can't be blank\"\n}"}],"_postman_id":"24d02b1e-fdc7-47b1-9d7f-9195b439edc9"},{"name":"Update Task","id":"e7681340-9cc3-45dd-a2b3-a5e215f8e286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"task[title]","value":"Updated Task Title via API","description":"<p>New title for the task.</p>\n","type":"text"},{"key":"task[status_id]","value":"2","description":"<p>Updated status ID.</p>\n","type":"text"},{"key":"task[completed_at]","value":"2024-08-15T16:00:00Z","description":"<p>(Optional) Completion date and time if status implies completion.</p>\n","type":"text"},{"key":"task[outcome_id]","value":"1","description":"<p>(Optional) Outcome ID if task type requires it and task is completed.</p>\n","type":"text"}]},"url":"https://api.livingmetrics.com/v1/tasks/{{task-id}}.json","description":"<p>Updates an existing task by its ID. Only include fields you want to change.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks","{{task-id}}.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"3fdbf95e-fdf2-4dc2-8c66-3d021d2ba14b","name":"Successful Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://api.livingmetrics.com/v1/tasks/101.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 101,\n  \"title\": \"Updated Task Title via API\",\n  \"details_display\": \"<p>Discuss Q4 budget and new product line.</p>\",\n  \"due_date\": \"2024-08-15T14:00:00.000Z\",\n  \"completed_at\": \"2024-08-15T16:00:00.000Z\",\n  \"type_id\": 1,\n  \"status_id\": 2,\n  \"outcome_id\": 1,\n  \"contact_id\": 505,\n  \"subject_location\": \"Q4 Budget Discussion\",\n  \"created_at\": \"2024-08-01T10:00:00.000Z\",\n  \"updated_at\": \"2024-08-10T13:00:00.000Z\",\n  \"custom_fields\": [\n      { \"name\": \"Priority\", \"value\": \"High\" }\n  ]\n}"}],"_postman_id":"e7681340-9cc3-45dd-a2b3-a5e215f8e286"},{"name":"Delete Task","id":"4ed259d1-a7fd-4b15-8876-3096f54e693b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/tasks/{{task-id}}.json","description":"<p>Deletes a task by its ID.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks","{{task-id}}.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"abb31050-c2a9-4f70-b463-919becbdd51a","name":"Successful Deletion","originalRequest":{"method":"DELETE","header":[],"url":"https://api.livingmetrics.com/v1/tasks/103.json"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4ed259d1-a7fd-4b15-8876-3096f54e693b"},{"name":"Get Task Outcomes","id":"f4d3c59b-c34d-418b-b2cf-f91ab69af016","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/tasks/outcomes.json","description":"<p>Retrieves a list of available task outcomes for the account.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks","outcomes.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"bc3b5e34-c075-4f44-a37d-f8940048e377","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/tasks/outcomes.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 1,\n    \"name\": \"Completed\"\n  },\n  {\n    \"id\": 2,\n    \"name\": \"Left Voicemail\"\n  },\n  {\n    \"id\": 3,\n    \"name\": \"No Answer\"\n  }\n]"}],"_postman_id":"f4d3c59b-c34d-418b-b2cf-f91ab69af016"},{"name":"Get Task Types","id":"0015c0cc-9d54-4672-a765-c112cee4eef3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/tasks/types.json","description":"<p>Retrieves a list of available task types for the account.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks","types.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"57ca9b12-e6be-4ccf-8aa4-4fb93069f57f","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/tasks/types.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 1,\n    \"name\": \"Call\",\n    \"icon\": \"fa-phone\",\n    \"outcome\": true,\n    \"position\": 1\n  },\n  {\n    \"id\": 2,\n    \"name\": \"Email\",\n    \"icon\": \"fa-envelope\",\n    \"outcome\": false,\n    \"position\": 2\n  },\n  {\n    \"id\": 3,\n    \"name\": \"Appointment\",\n    \"icon\": \"fa-calendar-alt\",\n    \"outcome\": true,\n    \"position\": 3\n  }\n]"}],"_postman_id":"0015c0cc-9d54-4672-a765-c112cee4eef3"},{"name":"Get Task Statuses","id":"d02c410c-dfaf-4729-a055-5e82ad869a94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"xxxx-xxxx-xxxx-xxxx","type":"text"}],"url":"https://api.livingmetrics.com/v1/tasks/statuses.json","description":"<p>Retrieves a list of available task statuses for the account.</p>\n","urlObject":{"protocol":"https","path":["v1","tasks","statuses.json"],"host":["api","livingmetrics","com"],"query":[],"variable":[]}},"response":[{"id":"2cb6a7ff-ed38-42a4-a587-d1c93bb53829","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.livingmetrics.com/v1/tasks/statuses.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 1,\n    \"name\": \"Not Started\",\n    \"position\": 1,\n    \"completed\": false\n  },\n  {\n    \"id\": 2,\n    \"name\": \"In Progress\",\n    \"position\": 2,\n    \"completed\": false\n  },\n  {\n    \"id\": 3,\n    \"name\": \"Completed\",\n    \"position\": 3,\n    \"completed\": true\n  }\n]"}],"_postman_id":"d02c410c-dfaf-4729-a055-5e82ad869a94"}],"id":"43864896-52e3-4f9a-bf77-366baca25587","description":"<p>Endpoints for managing tasks.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"d46b2633-67d5-493b-b0f6-27226c2043a2"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"9fce32cd-81cf-426a-899c-5ed772b09242"}}],"_postman_id":"43864896-52e3-4f9a-bf77-366baca25587"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"33c85f15-e9b7-4335-8e5c-8e84ba6b6dbf"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"68e9a6e0-38f3-49ea-9c9d-04d88e7f71a9"}}],"variable":[{"key":"api-key","value":"xxxx-xxxx-xxxx-xxxx","type":"default"},{"key":"host","value":"https://api.livingmetrics.com","type":"string"},{"key":"reference-uid","value":"12345","type":"default"},{"key":"webhook-id","value":"12345","type":"default"},{"key":"product-id","value":"12345","type":"string"}]}