{"info":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","description":"<html><head></head><body><p>Welcome to the Official Lawmatics RESTful API Documentation.</p>\n<p>Like the Lawmatics Platform, our API is under active development!<br>For any API related questions or feedback, reach out to us at <a href=\"https://mailto:api@lawmatics.com\">api@lawmatics.com</a>.</p>\n<h2 id=\"changelog\">CHANGELOG</h2>\n<h4 id=\"05262026---1220\">05/26/2026 - 1.22.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Collections</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Collection</strong></p>\n</li>\n<li><p>Add new endpoint: POST <strong>Collection</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Collection</strong></p>\n</li>\n<li><p>Add new endpoint: DELETE <strong>Collection</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Collection Items</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Collection Item</strong></p>\n</li>\n<li><p>Add new endpoint: POST <strong>Collection Item</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Collection Item</strong></p>\n</li>\n<li><p>Add new endpoint: DELETE <strong>Collection Item</strong></p>\n</li>\n</ul>\n<hr>\n<h4 id=\"05262026---12115\">05/26/2026 - 1.21.15</h4>\n<ul>\n<li>Per-firm rate limiting (500 requests/minute, returns <code>429</code> with <code>Retry-After: 60</code>) is now enforced.</li>\n</ul>\n<hr>\n<h4 id=\"05042026---12114\">05/04/2026 - 1.21.14</h4>\n<ul>\n<li>Fixed <strong>Custom Field</strong> <code>lookup_type</code> validation: <code>User</code> is now accepted; <code>Client</code> and <code>PracticeArea</code> are no longer accepted.</li>\n</ul>\n<hr>\n<h4 id=\"04272026---12113\">04/27/2026 - 1.21.13</h4>\n<ul>\n<li><strong>Company</strong> create/update now accepts <code>custom_fields</code> as an alias for <code>custom_field_values</code>.</li>\n</ul>\n<hr>\n<h4 id=\"12032025---12112\">12/03/2025 - 1.21.12</h4>\n<ul>\n<li>Add <code>send_receipt</code> param to <strong>Transaction</strong> create.</li>\n</ul>\n<hr>\n<h4 id=\"11042025---12111\">11/04/2025 - 1.21.11</h4>\n<ul>\n<li>The <strong>Custom Email</strong> endpoint now serves records from a different underlying model. All record <code>id</code>s have changed.</li>\n</ul>\n<hr>\n<h4 id=\"10272025---12110\">10/27/2025 - 1.21.10</h4>\n<ul>\n<li><strong>Task</strong> <code>GET</code> index: <code>filter_by=user_id</code> with a null/blank filter operator now returns unassigned Tasks.</li>\n</ul>\n<hr>\n<h4 id=\"03312025---1219\">03/31/2025 - 1.21.9</h4>\n<ul>\n<li>Rewrote phone number lookup on the <strong>Contact</strong>, <strong>Company</strong>, and <strong>Matter</strong> Finder endpoints (<code>find_by_phone</code>): a blank phone number now returns <code>400</code> instead of <code>404</code>.</li>\n</ul>\n<hr>\n<h4 id=\"10212024---1218\">10/21/2024 - 1.21.8</h4>\n<ul>\n<li>Add <code>unsubscribed</code> param to <strong>Contact</strong> create/update.</li>\n</ul>\n<hr>\n<h4 id=\"10042024---1217\">10/04/2024 - 1.21.7</h4>\n<ul>\n<li>Add <code>expires_in</code> query param to <code>GET</code> <strong>File</strong>, this controls how long the returned download URL stays valid (default 3600 seconds, max 604800 seconds).</li>\n</ul>\n<hr>\n<h4 id=\"08292024---1216\">08/29/2024 - 1.21.6</h4>\n<ul>\n<li>Canceling an <strong>Event</strong> now attributes the resulting timeline activity to the API caller, instead of always the Event's original creator.</li>\n</ul>\n<hr>\n<h4 id=\"08122024---1215\">08/12/2024 - 1.21.5</h4>\n<ul>\n<li>Add <code>sync_email</code> param to <strong>Relationship Type</strong> create/update.</li>\n</ul>\n<hr>\n<h4 id=\"08072024---1214\">08/07/2024 - 1.21.4</h4>\n<ul>\n<li>Add <code>canceled_at</code> field to the <strong>Event</strong> API.</li>\n</ul>\n<hr>\n<h4 id=\"08022024---1213\">08/02/2024 - 1.21.3</h4>\n<ul>\n<li>Contact and Matter <code>create</code>: when a firm has <strong>Match Contacts by Email</strong> enabled, submitting an <code>email</code> that matches an existing Contact now returns that existing record instead of creating a new one.</li>\n</ul>\n<hr>\n<h4 id=\"04252024---1212\">04/25/2024 - 1.21.2</h4>\n<ul>\n<li><p>Expenses and Time Entries: lowercase <code>contactable_type</code> values now work (previously only exact <code>Prospect</code>/<code>Contact</code>/<code>Company</code> casing was accepted).</p>\n</li>\n<li><p>Expenses and Time Entries: missing <code>contactable_type</code> now returns a <code>422</code> validation error.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"04122024---1211\">04/12/2024 - 1.21.1</h4>\n<ul>\n<li>Expenses and Time Entries <code>create</code> now return <code>201 Created</code> on success (previously <code>200</code>).</li>\n</ul>\n<hr>\n<h4 id=\"03042024---1210\">03/04/2024 - 1.21.0</h4>\n<ul>\n<li><p>Add new endpoint: POST <strong>Time Entry</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Time Entry</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Expenses</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Expense</strong></p>\n</li>\n<li><p>Add new endpoint: POST <strong>Expense</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Expense</strong></p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Expense</strong></p>\n</li>\n</ul>\n<hr>\n<h4 id=\"02082024---1205\">02/08/2024 - 1.20.5</h4>\n<ul>\n<li>Custom Field update no longer requires re-sending <code>type</code> or <code>lookup_type</code> when updating other fields.</li>\n</ul>\n<hr>\n<h4 id=\"01112024---1204\">01/11/2024 - 1.20.4</h4>\n<ul>\n<li>Add <code>path</code> param to <strong>Folder</strong> create (an array of folder names describing a nested path, creating or reusing each folder in the chain.)</li>\n</ul>\n<hr>\n<h4 id=\"01102024---1203\">01/10/2024 - 1.20.3</h4>\n<ul>\n<li>Creating a <strong>Folder</strong> with a name that's already taken in the same parent folder now returns a <code>409</code> error.</li>\n</ul>\n<hr>\n<h4 id=\"10112023---1202\">10/11/2023 - 1.20.2</h4>\n<ul>\n<li>Add <code>notes</code> param to Company create/update.</li>\n</ul>\n<hr>\n<h4 id=\"10102023---1201\">10/10/2023 - 1.20.1</h4>\n<ul>\n<li>Company create/update now accepts <code>street</code>, <code>street2</code>, <code>city</code>, <code>state</code>, <code>country</code>, <code>zipcode</code>, <code>email</code>, and <code>phone</code> directly (creates/updates the Company's primary Address, Email, and Phone Number).</li>\n</ul>\n<hr>\n<h4 id=\"10042023---1200\">10/04/2023 - 1.20.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Time Entry</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Time Entries</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Time Entry</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"09292023---1190\">09/29/2023 - 1.19.0</h4>\n<ul>\n<li><p>Add <strong>Company</strong> Finder endpoints, they behave the same as the <strong>Contact</strong> Finder endpoints, but return a <strong>Company</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Find Company by Name</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Find Company by Email</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Find Company by Phone</strong>.</p>\n</li>\n<li><p>Update Filter Operator capabilities for presence checking: e.g. \"null\", \"not_null\"</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"09272023---1180\">09/27/2023 - 1.18.0</h4>\n<ul>\n<li><p>Add new endpoint: POST <strong>Matter Sub Status</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Matter Sub Status</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Matter Sub Status</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"09212023---1170\">09/21/2023 - 1.17.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Custom Contact Type</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Custom Contact Types</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Custom Contact Type.</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Custom Contact Type.</strong></p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Custom Contact Type.</strong></p>\n</li>\n</ul>\n<hr>\n<h4 id=\"7072023---1160\">7/07/2023 - 1.16.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Email Campaign</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Email Campaigns</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Email Campaign Stats.</strong></p>\n</li>\n</ul>\n<hr>\n<h4 id=\"7072023---1150\">7/07/2023 - 1.15.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Folder.</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Folders.</strong></p>\n</li>\n<li><p>Add new endpoint: POST <strong>Folder.</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Folder.</strong></p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Folder.</strong></p>\n</li>\n<li><p>Update <strong>Task</strong> endpoints to create/read/update/delete <strong>Task</strong> <code>recurrence_rule</code><em><strong>.</strong></em></p>\n</li>\n<li><p>Expose <code>assigned_by_id</code> on <strong>Task</strong> endpoints.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Task Status.</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Task Statuses.</strong></p>\n</li>\n<li><p>Add new endpoint: POST <strong>Task Status.</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Task Status.</strong></p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Task Status.</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Subtask.</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Subtasks.</strong></p>\n</li>\n<li><p>Add new endpoint: POST <strong>Subtask.</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Subtask.</strong></p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Subtask.</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Comment.</strong></p>\n</li>\n<li><p>Add new endpoint: GET <strong>Comments.</strong></p>\n</li>\n<li><p>Add new endpoint: POST <strong>Comment.</strong></p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Comment.</strong></p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Comment.</strong></p>\n</li>\n</ul>\n<hr>\n<h4 id=\"3232023---1141\">3/23/2023 - 1.14.1</h4>\n<ul>\n<li>Update <strong>Tag</strong> endpoints to support attaching, detaching, and filtering by <strong>Tasks.</strong></li>\n</ul>\n<hr>\n<h4 id=\"11112022---1140\">11/11/2022 - 1.14.0</h4>\n<ul>\n<li><p>Add new endpoint: POST <strong>User</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>User</strong>.</p>\n</li>\n<li><p>Add new endpoint: DELETE <strong>User</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"1032022---1131\">10/3/2022 - 1.13.1</h4>\n<ul>\n<li><p>Expose creating <strong>Company Matters</strong> by name, passing company_name to POST <strong>Matters</strong></p>\n</li>\n<li><p>Expose creating <strong>Company Matters</strong> by passing Company ID to POST <strong>Matters</strong></p>\n</li>\n<li><p>Improve <strong>Contact</strong> deduplication (if matches on email or phone) on POST <strong>Matters</strong></p>\n</li>\n<li><p>NOTE - Any passed <strong>Contact</strong> Info (phone/email/address) for a <strong>Company Matter</strong> will be set on a found/created <strong>Contact</strong> as the <strong>Company Matter's</strong> P.o.C (primary_contact)</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"9192022---1130\">9/19/2022 - 1.13.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Company</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Companies</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Company</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Company</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Company</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Interaction</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Interactions</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Interaction</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Interaction</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Interaction</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"882022---1120\">8/8/2022 - 1.12.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Relationship Types</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Relationship Type</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Relationship Type</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Relationship Type</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Relationships</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Relationship</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Relationship</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Relationship</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Relationship</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"842022---1110\">8/4/2022 - 1.11.0</h4>\n<ul>\n<li><p>Add new endpoint: PUT <strong>File</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>File</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"7202022---1100\">7/20/2022 - 1.10.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Phone Numbers</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Phone Number</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Phone Number</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Phone Number</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Phone Number</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Email Addresses</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Email Address</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Email Address</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Email Address</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Email Address</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"6262022---190\">6/26/2022 - 1.9.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Event Type</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Event Type</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Event Type</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Event Type</strong>.</p>\n</li>\n<li><p>Improve validations, and error handling on many endpoints.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"6252022---170\">6/25/2022 - 1.7.0</h4>\n<ul>\n<li><p>Add new endpoint: PUT <strong>Address</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Address</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Address</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Upload File</strong>.</p>\n</li>\n<li><p>Improve validations, and error handling on many endpoints.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"6192022---160\">6/19/2022 - 1.6.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Event</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Custom Field</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Custom Fields</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Custom Field</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Custom Field</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Custom Field</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Practice Area</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Practice Areas</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Practice Area</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Practice Area</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Practice Area</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Note</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Note</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Note</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Note</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Note</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Address</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Addresses</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>File</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Files</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Download File</strong>.</p>\n</li>\n<li><p>Add ability to filter list GET endpoints by contact_id, matter_id, client_id, company_id on polymorphic relationships.</p>\n</li>\n<li><p>Add type specific custom field value attribute keys to Matter payload (e.g. value_string, value_int, value_datetime).</p>\n</li>\n<li><p>Update documentation.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"592022---151\">5/9/2022 - 1.5.1</h4>\n<ul>\n<li>Add support for submitting <code>Originating Attorney</code>, <code>Lead Attorney</code>, <code>Salesperson</code>, <code>Assigned Staff</code> fields on PUT/POST Prospect endpoints.</li>\n</ul>\n<hr>\n<h4 id=\"582022---150\">5/8/2022 - 1.5.0</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Task</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Tasks</strong>.</p>\n</li>\n<li><p>Add new endpoint: PUT <strong>Task</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Task</strong>.</p>\n</li>\n<li><p>Add new endpoint: DEL <strong>Task</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"4272022---146\">4/27/2022 - 1.4.6</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Invoice</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Invoices</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Transaction</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Transactions</strong>.</p>\n</li>\n<li><p>Add new endpoint: POST <strong>Transaction</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"8282019---145\">8/28/2019 - 1.4.5</h4>\n<ul>\n<li><p>Add new endpoint: POST <strong>Event</strong>.</p>\n</li>\n<li><p>Add new endpoint: DELETE <strong>Event</strong></p>\n</li>\n</ul>\n<hr>\n<h4 id=\"6212019---144\">6/21/2019 - 1.4.4</h4>\n<ul>\n<li><p>Add new endpoint: GET <strong>Locations</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Events</strong>.</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Event Types</strong>.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"452019---143\">4/5/2019 - 1.4.3</h4>\n<ul>\n<li><p>Fix bug with '.' included in email param for GET <strong>Contact</strong> find_by_email endpoint.</p>\n</li>\n<li><p>Fix bug with '.' included in email param for GET <strong>Matter</strong> find_by_email endpoint.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"412019---142\">4/1/2019 - 1.4.2</h4>\n<p>This update allows you to get more information about firm <strong>Pipelines</strong> or a specific <strong>Pipeline</strong>.</p>\n<ul>\n<li><p>Add new endpoint: GET <strong>Pipeline</strong> by id</p>\n</li>\n<li><p>Add new endpoint: GET <strong>Pipelines</strong>.</p>\n</li>\n<li><p>Update documentation.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"3312019---141\">3/31/2019 - 1.4.1</h4>\n<p>This update allows you to search for a <strong>Contact</strong> and adds an important field to <strong>Stages</strong>.</p>\n<ul>\n<li><p>Update GET <strong>Stages</strong> endpoint to return its <strong>Pipeline</strong> Relationship with <code>fields=pipeline</code>.</p>\n</li>\n<li><p>Add <strong>Contact</strong> Finder endpoints, they behave the same as the <strong>Matter</strong> Finder endpoints, but return a <strong>Contact</strong>.</p>\n</li>\n<li><p>Update documentation.</p>\n</li>\n</ul>\n<hr>\n<h4 id=\"3272019---140\">3/27/2019 - 1.4.0</h4>\n<p>This update adds the ability to create a <strong>Matter</strong> for an existing <strong>Contact</strong>.</p>\n<ul>\n<li><p>Add <code>contact_id</code> option to the POST <strong>Matter</strong> (Create) endpoint.</p>\n</li>\n<li><p>Add <code>match_contact_by</code> option to the POST <strong>Matter</strong> (Create) endpoint.</p>\n</li>\n</ul>\n<hr>\n<h3 id=\"custom-form-note\">CUSTOM FORM NOTE:</h3>\n<p>If you just are looking for info on submitting Custom Forms, you do not need to make a devloper app.<br>Disregard the authentication info below, and use our <strong>Unauthenticated</strong> Custom Form Submit endpoint: <a href=\"https://docs.lawmatics.com/?version=latest#c34ea101-b7af-46ac-a6c7-d185495af4f4\">https://docs.lawmatics.com/?version=latest#c34ea101-b7af-46ac-a6c7-d185495af4f4</a><br>You will not need to create a developer app, and you do not need to go through the OAuth2.0 grant flow!</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26379991","collectionId":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","publishedId":"2sA3JM7gbw","public":true,"customColor":{"top-bar":"EEEEEE","right-sidebar":"242628","highlight":"3E85BE"},"publishDate":"2026-09-22T17:59:35.000Z"},"item":[{"name":"Getting Started With Auth","item":[],"id":"adb17e17-e9d2-4008-9f94-0f9f1814b223","description":"<p>Lawmatics' REST API uses the standard OAuth2.0 token grant flow.</p>\n<p><a href=\"https://help.lawmatics.com/en/articles/15939403-api-authentication-oauth2-setup-guide\">API Authentication: OAuth2.0 Setup Guide</a></p>\n<h4 id=\"creating-a-new-oauth2-lawmatics-developer-app\">Creating a new OAuth2 Lawmatics Developer App:</h4>\n<blockquote>\n<p>To create a new developer app, you must have a Lawmatics account with developer settings. If your account does not have developer settings, you can contact our team at <a href=\"https://support@lawmatics.com\">support@lawmatics.com</a>. </p>\n</blockquote>\n<p>While logged in to your Lawmatics account, go to <a href=\"https://app.lawmatics.com/settings/developers\">Settings &gt; Developers</a>.</p>\n<p>To get credentials for programmatic access, click <strong>Create New Application</strong>. You'll enter the <strong>Name</strong>, <strong>Description</strong>, and <strong>Logo</strong> that users will see when connecting through your app, as well as the <strong>Callback URL</strong> (redirect URI) they'll be redirected back to after granting your app access to their account.</p>\n<p>This is also where Lawmatics sends the temporary authorization code, so the redirect URI you provide needs to point somewhere your app can actually capture that code (e.g. an endpoint on your server that reads it from the query string).</p>\n<hr />\n<h4 id=\"authenticating-with-your-client-app\">Authenticating with your Client App:</h4>\n<p>To authenticate, users of your application click your authorize link, log into their Lawmatics account, and then grant or deny your Client App access to act on their behalf. Once granted, Lawmatics redirects the user back to your application with a grant code included as a query param.</p>\n<p><strong>STEP 1: Getting a Grant Code</strong></p>\n<p>Our authorize url: <code>https://app.lawmatics.com/oauth/authorize</code>.</p>\n<p>This url must pass the following Query Params:</p>\n<ul>\n<li><p><code>client_id</code>: The app id shown in developer settings.</p>\n</li>\n<li><p><code>redirect_uri</code>: The Callback URL you set when creating your developer app (also shown in Developer Settings). Lawmatics redirects the user here along with the grant code.</p>\n</li>\n<li><p><code>response_type</code>: This should always be set to 'code'</p>\n</li>\n<li><p><code>state</code> (optional): This can be sent by your application to maintain state between the request and the callback.</p>\n</li>\n</ul>\n<p>All together, a valid request link will look something like this:</p>\n<p><code>https://app.lawmatics.com/oauth/authorize?client_id=&amp;redirect_uri=&amp;response_type=code</code>.</p>\n<p>Once the user authenticates and grants access, Lawmatics redirects them back to your Callback URL with a <code>code</code> query parameter:</p>\n<p><code>GET https://www.callbackurl.com/?code=f2da562a94981e24d610b021aedaae03eb286acab7cd855013f9165aebbeef48</code></p>\n<p>This <code>code</code> is short-lived (10 minutes/600 seconds,) and your backend needs to capture it and exchange it for an <code>access_token:</code></p>\n<p><strong>STEP 2: Getting an Access Token</strong></p>\n<p>From your backend, make a POST request to <code>https://api.lawmatics.com/oauth/token</code>.</p>\n<p>The POST body must contain the following required params:</p>\n<ul>\n<li><p><code>client_id</code>: Your app's Client ID (from Developer Settings)</p>\n</li>\n<li><p><code>client_secret</code>: Your app's Client Secret (from Developer Settings)</p>\n</li>\n<li><p><code>grant_type</code>: <code>authorization_code</code></p>\n</li>\n<li><p><code>code</code>: The authorization code returned in the redirect from Step 1</p>\n</li>\n<li><p><code>redirect_uri</code>: The same Callback URL used in the authorization request from Step 1</p>\n</li>\n</ul>\n<p>This returns a non-expiring <code>access_token</code>, which you should save and associate with that user.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>   HTTP/1.1 200 OK\n   {\n     \"token_type\":\"bearer\",\n     \"access_token\":\"YOUR_ACCESS_TOKEN\",\n     \"created_at\": 1539723267\n   }\n\n</code></pre><p>This token can now be passed as an <code>Authorization</code> header to authenticate all of our endpoints on behalf of that tokens user:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Bearer YOUR_ACCESS_TOKEN\n\n</code></pre><hr />\n<h4 id=\"limitations\">Limitations</h4>\n<ul>\n<li><p>We have a 500 req/min per-firm rate limit on all endpoints. Exceeding this limit returns a 429 error with `Retry-After: 60` header</p>\n</li>\n<li><p>We currently do not support scopes. Access granted is based on the authorizing user's role for record-level visibility, but is not fully restricted by all permission settings on the account.</p>\n</li>\n<li><p>We do not have a deauthorization endpoint. To revoke access, firms can contact us at <a href=\"https://mailto:support@lawmatics.com\">support@lawmatics.com</a> to have specific tokens revoked.</p>\n</li>\n<li><p>Access tokens do not expire, so we do not provide a refresh token.</p>\n</li>\n</ul>\n","_postman_id":"adb17e17-e9d2-4008-9f94-0f9f1814b223","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Param Guide","item":[{"name":"Field Selection","item":[],"id":"84c72867-616f-4b13-9114-02373fa0007d","description":"<p>Field Selection allows you to shape the response data to only include fields that are needed for your development. A \"field\" refers to either an attribute on the record or an association to another record.</p>\n<p>Field Selection can only return data one level deep.</p>\n<p>Field Selection works on every Lawmatics endpoint unless specified otherwise.</p>\n<p>A valid <code>?fields=</code> value is a comma separated list of attributes/relationships.</p>\n<p>e.g. <code>?fields=first_name,last_name,source,custom_fields</code>.</p>\n<p>Fields are returned in the order you select them.</p>\n<p>Requests that don't include the <code>fields</code> param will return a small set of commonly used default attributes (e.g. <code>name</code>, <code>email</code>).</p>\n<p>Requesting an associated field only returns that record's <code>id</code> and <code>type</code>. To get more data about that related record, use its <code>id</code> to query the relevant endpoint directly.</p>\n<h4 id=\"an-example-of-attribute-selection\">An Example of Attribute Selection:</h4>\n<p>You want to get more information about Prospect 74's related, <strong>Source</strong> data.</p>\n<p>First, request the association:</p>\n<p><code>curl -H \"Authorization: Bearer \" -i https://api.lawmatics.com/v1/prospects/74?fields=source</code></p>\n<p>This returns:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"data\": {\n        \"id\": \"74\",\n        \"type\": \"prospect\",\n        \"attributes\": {},\n        \"relationships\": {\n            \"source\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"source\"\n                }\n            }\n        }\n    }\n}\n\n</code></pre><p>Then use that <code>id</code> to query the Source directly:<br /><code>https://api.lawmatics.com/v1/sources/3?fields=all</code></p>\n<p>This exposes all available attributes and relationships on that Source.</p>\n<p><code>fields=all</code> is meant for exploring what fields/relationships are available. Once you know which fields you need, request just those instead to keep your responses lean.</p>\n","_postman_id":"84c72867-616f-4b13-9114-02373fa0007d","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Pagination","item":[],"id":"f6b440de-a0aa-4d65-8749-5429c11053a3","description":"<p>Pagination meta information is found at the bottom of any List response.</p>\n<p>You can change pages by passing <code>?page=X</code>, where X is the page number, as a query param appended to the endpoint URL.</p>\n<p>E.g. to see page 3 you would pass <code>?page=3</code></p>\n","_postman_id":"f6b440de-a0aa-4d65-8749-5429c11053a3","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Sorting","item":[],"id":"15cf7a43-5f27-4df3-86c2-df811fe17840","description":"<p>By default, List responses are sorted by <code>id</code>, descending (biggest to smallest.)</p>\n<p>Customizing the sort order of the response works with two query params:</p>\n<ol>\n<li><p><code>sort_by</code>: The field to sort on</p>\n</li>\n<li><p><code>sort_order</code>: <code>asc</code> or <code>desc</code></p>\n</li>\n</ol>\n<p>Available <code>sort_by</code> columns are:<br /><code>id, created_at, updated_at</code><br />As well as most fields listed by the fields='all' response.</p>\n<p>If you use <code>sort_order</code> without <code>sort_by</code>, <code>sort_by</code> defaults to sort by <code>id</code>.</p>\n","_postman_id":"15cf7a43-5f27-4df3-86c2-df811fe17840","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Filtering","item":[{"name":"Filtering Examples","item":[{"name":"Matters Filtered by specific Practice Area","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects?fields=practice_area`, function (err, response) {","   pm.globals.set(\"practice_area_id\", response.json().data.find(({relationships}) => relationships?.practice_area?.data?.type == 'practice_area').relationships.practice_area.data.id);","});","",""],"type":"text/javascript"}}],"id":"de1c42de-0089-4c21-9239-76d9af8ab96c","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects?fields=practice_area,first_name&filter_by=practice_area_id&filter_on={{practice_area_id}}","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[{"key":"fields","value":"practice_area,first_name"},{"key":"filter_by","value":"practice_area_id"},{"key":"filter_on","value":"{{practice_area_id}}"}],"variable":[]}},"response":[{"id":"5f4e4b56-19ec-4c7d-8f51-c5f84f494e94","name":"GET Matters of a specific Practice Area","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/prospects?fields=practice_area,first_name&filter_by=practice_area_id&filter_on=986","host":["{{host}}"],"path":["v1","prospects"],"query":[{"key":"fields","value":"practice_area,first_name"},{"key":"filter_by","value":"practice_area_id"},{"key":"filter_on","value":"986"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 07 Jan 2019 06:18:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=woUKst5L3inzYl6CcyGcHzFRJJrhX03P+y/KJB4BN1pD10+84hQN3N53kdgumoevVQvtbNZaPHuKHspEnwy4Mx1+2Pw3usjJoRIUEgDLX6sLrgOUG43abAbR0/W5; Expires=Mon, 14 Jan 2019 06:18:51 GMT; Path=/"},{"key":"ETag","value":"W/\"f226dae2807433146a1a9e8daf1b8e86\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"29855f4e-f627-4c35-b562-0e1fb16dd16c"},{"key":"X-Runtime","value":"0.015704"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"57802\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Annatest\"\n            },\n            \"relationships\": {\n                \"practice_area\": {\n                    \"data\": {\n                        \"id\": \"986\",\n                        \"type\": \"practice_area\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"55881\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Hazel\"\n            },\n            \"relationships\": {\n                \"practice_area\": {\n                    \"data\": {\n                        \"id\": \"986\",\n                        \"type\": \"practice_area\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"15396\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Anna\"\n            },\n            \"relationships\": {\n                \"practice_area\": {\n                    \"data\": {\n                        \"id\": \"986\",\n                        \"type\": \"practice_area\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 3\n    },\n    \"links\": {\n        \"self\": \"/v1/prospect?page=1\"\n    }\n}"}],"_postman_id":"de1c42de-0089-4c21-9239-76d9af8ab96c"},{"name":"Matters Filtered by Actual Value > $0.00","id":"72605706-f707-41fc-a676-cac0f408edc6","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects?fields=first_name,actual_value_cents&filter_by=actual_value_cents&filter_on=0&filter_with=>&sort_by=actual_value_cents&sort_order=asc","description":"<p>Filtering AND sorting by the actual_value_cents column.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[{"key":"fields","value":"first_name,actual_value_cents"},{"key":"filter_by","value":"actual_value_cents"},{"key":"filter_on","value":"0"},{"key":"filter_with","value":">"},{"key":"sort_by","value":"actual_value_cents"},{"key":"sort_order","value":"asc"}],"variable":[]}},"response":[{"id":"56da3858-2597-43a4-b7ff-f3657ba59e78","name":"GET Matters with Actual Value > 0","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/prospects?fields=first_name,actual_value_cents&filter_by=actual_value_cents&filter_on=0&filter_with=>&sort_by=actual_value_cents&sort_order=asc","host":["{{host}}"],"path":["v1","prospects"],"query":[{"key":"fields","value":"first_name,actual_value_cents"},{"key":"filter_by","value":"actual_value_cents"},{"key":"filter_on","value":"0"},{"key":"filter_with","value":">"},{"key":"sort_by","value":"actual_value_cents"},{"key":"sort_order","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 07 Jan 2019 06:34:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=JUrJO5FVaErHD9wzsEl/+gFgXvSF1f+FZ+aJDG5iZmhI67L1sttFKlOy+CM+LqEfcbsgt+wGJQjVsefNbijKf2O+1/6s77L4Q91Mae/JsQyE6ajeoNPmY/lDqCeW; Expires=Mon, 14 Jan 2019 06:34:51 GMT; Path=/"},{"key":"ETag","value":"W/\"4b768337ecbaae0e6321e5f86f9d4723\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"36492370-0860-4939-a66a-ed541a981f66"},{"key":"X-Runtime","value":"0.027916"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"29\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Eddard\",\n                \"actual_value_cents\": 250000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"722\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Matt\",\n                \"actual_value_cents\": 400000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"4316\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"anan\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"32\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Jaime\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5014\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Matt\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"25\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Tyrion\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"702\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Hunter\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"28\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Khal\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"35237\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Bob\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"10\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Gyi\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"34\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Ramsay\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"1856\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Stinson\",\n                \"actual_value_cents\": 500000\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 12\n    },\n    \"links\": {\n        \"self\": \"/v1/prospect?page=1\"\n    }\n}"}],"_postman_id":"72605706-f707-41fc-a676-cac0f408edc6"},{"name":"Matters Filtered by Status is not PNC","id":"b35a96a1-5d54-470b-9dd1-10b9dd1768bc","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects?fields=first_name,status&filter_by=status&filter_on=pnc&filter_with=!=","description":"<p>Using the not equals (!=) filter operator.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[{"key":"fields","value":"first_name,status"},{"key":"filter_by","value":"status"},{"key":"filter_on","value":"pnc"},{"key":"filter_with","value":"!="}],"variable":[]}},"response":[{"id":"031cea7e-ed61-4fc4-b805-13c66f855c65","name":"GET Matters Filtered by Status is not lost","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/prospects?fields=first_name,status&filter_by=status&filter_on=lost&filter_with=!=\n","host":["{{host}}"],"path":["v1","prospects"],"query":[{"key":"fields","value":"first_name,status"},{"key":"filter_by","value":"status"},{"key":"filter_on","value":"lost"},{"key":"filter_with","value":"!=\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"678b03022f4c3b47a94999ed473cac26\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b84a22b2-8343-4ad3-98ea-27cf864d1597"},{"key":"X-Runtime","value":"0.255679"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"57406\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Bob\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"29773\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Johnny\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"28428\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Bob\",\n                \"status\": \"lost\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"18025\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"John\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"16840\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Jeff\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"16614\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Tom\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"15760\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Sharon\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"15732\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Coleman\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"12524\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Joe \",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"12098\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Tana \",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"7464\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Jared\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"7441\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Chris\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5977\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"John\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5974\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Ali\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5971\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Niki\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5968\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Bud\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5966\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"wendy\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5963\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Vince\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5959\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Roey Test CLIO DEMO2\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5958\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Michelle\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5956\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Scott\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5953\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Thornton\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5950\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Roey Test CLIO DEMO\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5914\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Matt\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5842\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Kevin\",\n                \"status\": \"hired\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 4,\n        \"limit_per_page\": 25,\n        \"total_entries\": 84\n    },\n    \"links\": {\n        \"self\": \"/v1/prospect?page=1\",\n        \"next\": \"/v1/prospect?page=2\"\n    }\n}"}],"_postman_id":"b35a96a1-5d54-470b-9dd1-10b9dd1768bc"}],"id":"4248e95a-bead-4aa1-b356-903067c7b348","description":"<h4 id=\"matter-filtering-examples\">Matter Filtering Examples</h4>\n<blockquote>\n<p><strong>Stage</strong> </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.lawmatics.com/v1/prospects?filter_by=stage_id&amp;filter_on=123\n\n</code></pre><blockquote>\n<p><strong>Case Title (case insensitive, exact match)</strong> </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.lawmatics.com/v1/prospects?filter_by=case_title&amp;filter_on=Sauls+Wild+Ride\n\n</code></pre><blockquote>\n<p><strong>Case Title (case sensitive, starts with,</strong> <strong>fuzzy matches the end)</strong> </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.lawmatics.com/v1/prospects?filter_by=case_title&amp;filter_on=Sauls+Wi%&amp;filter_operator=like\n\n</code></pre><blockquote>\n<p><strong>Case Title (case insensitive, ends with, fuzzy matches the start)</strong> </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.lawmatics.com/v1/prospects?filter_by=case_title&amp;filter_on=%uls+Wild+Ride\n\n</code></pre><blockquote>\n<p><strong>Case Title (case insensitive, fuzzy matches both ends)</strong> </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.lawmatics.com/v1/prospects?filter_by=case_title&amp;filter_on=%ls+Wild+Ri%\n\n</code></pre><blockquote>\n<p><strong>Estimated Value Less Than or Equal to 100 Dollars</strong> </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.lawmatics.com/v1/prospects?filter_by=estimated_value_cents&amp;filter_on=10000&amp;filter_operator=&lt;=\n\n</code></pre><blockquote>\n<p><strong>First Name</strong> </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.lawmatics.com/v1/prospects?filter_by=first_name&amp;filter_on=Mat%\n\n</code></pre>","_postman_id":"4248e95a-bead-4aa1-b356-903067c7b348","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}}],"id":"130caa64-a67b-4d8b-9baf-c20dfb7629b9","description":"<p>By default List responses will return all records without any filters.</p>\n<p>Filtering the request works by appending these query params:</p>\n<ol>\n<li><p><code>filter_by</code> or <code>filter_field</code>: This specifies the field name to filter on.</p>\n</li>\n<li><p><code>filter_on</code> or <code>filter_value</code>: This is the value to filter on.</p>\n</li>\n<li><p><code>filter_with</code> or <code>filter_operator</code>: (Optional) This is the operator used to filter. (default: '=')</p>\n</li>\n</ol>\n<p><strong>Filterable fields:</strong></p>\n<ul>\n<li><p>Most standard fields listed in the fields='all' response.</p>\n</li>\n<li><p>Currency attributes are filtered in cents.</p>\n</li>\n<li><p>Association attributes require <code>_id</code> to be appended (e.g. <code>practice_area_id</code>). This applies to a resource's direct, single-type relationships. For resources that can belong to multiple different parent types, see <strong>Polymorphic Filter Shortcuts</strong> below.</p>\n</li>\n</ul>\n<p><strong>Polymorphic Filter Shortcuts</strong></p>\n<ul>\n<li><p>Some resources can belong to more than one parent type. For example, a Note can belong to a Matter, Contact, or Company. Internally, this is stored as a type/ID pair (e.g. <code>notable_type</code>/<code>notable_id</code>), which normally can't be filtered in one step.</p>\n</li>\n<li><p>For these resources, you can use a shortcut instead: <code>filter_by=matter_id</code>, <code>prospect_id</code>, <code>contact_id</code>, or <code>company_id</code>. The API automatically resolves it to the correct type/ID pair for you. This shortcut isn't available on every resource. Each endpoint's reference below lists its own valid shortcuts, if any.</p>\n</li>\n</ul>\n<p><strong>Operators:</strong></p>\n<ul>\n<li><p>Valid values for <code>filter_operator</code>: <code>=</code>, <code>!=</code>, <code>&lt;=</code>, <code>&lt;</code>, <code>&gt;=</code>, <code>&gt;</code>, <code>like</code>, <code>ilike</code></p>\n</li>\n<li><p>For presence checks, use <code>null</code> or <code>not_null</code> (aliases: <code>empty</code>, <code>present</code>, <code>blank.</code>) These don't require a <code>filter_value</code>.</p>\n</li>\n<li><p>Default operator depends on the field's type: <code>ilike</code> for text/string fields, <code>=</code> for all other field types.</p>\n</li>\n<li><p><code>like</code> and <code>ilike</code> do fuzzy string matching (<code>ilike</code> is case-insensitive). When using either, add <code>%</code> to <code>filter_value</code> where you want fuzzy matching to apply. Remember to URL-encode it, since <code>%</code> becomes <code>%</code>.</p>\n</li>\n</ul>\n<p><strong>\"Updated Records Only\" Filtering</strong></p>\n<ul>\n<li>You can filter any List response down to only records that have been edited since creation, using <code>updated_only=true</code>:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET {{host}}/v1/prospects?updated_only=true\n\n</code></pre><ul>\n<li><p>This excludes freshly created records (where <code>created_at</code> and <code>updated_at</code> are still identical) and returns only records that have been modified at least once.</p>\n</li>\n<li><p>Works on virtually every List endpoint, except <code>GET /v1/forms</code></p>\n</li>\n<li><p>This can be combined with a regular <code>filter_by</code>/<code>filter_on</code> filter:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET {{host}}/v1/contacts?updated_only=true&amp;filter_by=last_name&amp;filter_on=Smith&amp;filter_with=ilike\n\n</code></pre><blockquote>\n<p><strong>Note:</strong> <code>updated_only</code> is triggered by the <em>presence</em> of the param, not its value. Any non-empty value (including <code>updated_only=false</code>) will still apply the filter. <strong>The only way to disable it is to omit the param entirely.</strong> </p>\n</blockquote>\n<p><strong>Additional Notes:</strong></p>\n<ul>\n<li><p>If you use <code>filter_by</code> without <code>filter_on</code>, we will return an error response.</p>\n</li>\n<li><p>You do not need to have the field selected, for it to be filterable.</p>\n</li>\n<li><p>Currently only one filter is supported at a time.</p>\n</li>\n</ul>\n","_postman_id":"130caa64-a67b-4d8b-9baf-c20dfb7629b9","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}}],"id":"ad642454-72f0-4d16-98fd-5fd15f4718c9","description":"<p>We currently support the following query parameter options to modify results on any request:</p>\n<ol>\n<li><p><strong>Field Selection</strong></p>\n</li>\n<li><p><strong>Pagination</strong></p>\n</li>\n<li><p><strong>Sorting</strong></p>\n</li>\n<li><p><strong>Filtering</strong></p>\n</li>\n</ol>\n<p>There are two types of queries,</p>\n<ol>\n<li><p><strong>Single Object queries</strong>: These return one record. These only support Field Selection.</p>\n</li>\n<li><p><strong>List queries</strong>: These return multiple records. These support all four query param types.</p>\n</li>\n</ol>\n","_postman_id":"ad642454-72f0-4d16-98fd-5fd15f4718c9","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Addresses","item":[{"name":"Address","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is Successful\", function () {","    pm.response.to.be.ok","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/addresses`, function (err, response) {","   pm.globals.set(\"address_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}}],"id":"0e24d89c-100c-4dc7-946f-49f148f6bb69","request":{"method":"GET","header":[],"url":"{{host}}/v1/addresses/:address_id","description":"<p>A specific Address, by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","addresses",":address_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{address_id}}","key":"address_id"}]}},"response":[{"id":"e6ab3666-a92d-454e-9491-a44af58dc1c4","name":"GET Address","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/addresses/:address_id","host":["{{host}}"],"path":["v1","addresses",":address_id"],"variable":[{"key":"address_id","value":"101"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"023420c04dcd3571464273ca50735bf3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b0a05a6a-501e-42a7-8913-85ba28f4962e"},{"key":"X-Runtime","value":"0.035958"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"101\",\n        \"type\": \"address\",\n        \"attributes\": {\n            \"label\": \"Miami St\",\n            \"street\": \"1234 Miami\",\n            \"street2\": null,\n            \"city\": \"Miami\",\n            \"state\": \"FL\",\n            \"zipcode\": \"12345\",\n            \"country\": \"United States\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"0e24d89c-100c-4dc7-946f-49f148f6bb69"},{"name":"Addresses","event":[{"listen":"test","script":{"exec":["pm.test(\"The 'data' field is an array and is not empty\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.data).to.be.an('array');","    pm.expect(responseData.data).to.have.lengthOf.at.least(1, \"Array should not be empty\");","});","","","pm.test(\"Each item in the 'data' array has the required fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').that.is.not.empty;","","    responseData.data.forEach(function (item) {","        pm.expect(item).to.have.property('id');","        pm.expect(item).to.have.property('type');","        pm.expect(item).to.have.property('attributes');","        pm.expect(item).to.have.property('relationships');","    });","});","","","pm.test(\"Each item in the 'data' array has a non-empty 'id' field\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.data).to.be.an('array').that.is.not.empty;","","    responseData.data.forEach(function (item) {","        pm.expect(item.id).to.exist.and.to.be.a('string').and.to.have.lengthOf.at.least(1, \"Value should not be empty\");","    });","});","",""],"type":"text/javascript"}}],"id":"72089b5c-13fb-4101-a6f5-e090468b9793","request":{"method":"GET","header":[],"url":"{{host}}/v1/addresses","description":"<p>A <strong>paginated</strong> list of all <strong>Addresses</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>label</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>street</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>zipcode</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>country</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Valid Shortcuts:</strong> <code>contact_id</code>, <code>company_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","addresses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"402af8e9-337a-4a36-87c5-e3bfb7d04803","name":"GET Addresses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/addresses?fields=all","host":["{{host}}"],"path":["v1","addresses"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"0a0f4ad0870405d6fe1372cb5833b19d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5518c191-a0f5-4017-b5f1-feda9343b800"},{"key":"X-Runtime","value":"0.077484"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"105\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"1234 Fake Street\",\n                \"street2\": null,\n                \"city\": null,\n                \"state\": null,\n                \"zipcode\": null,\n                \"country\": null,\n                \"full_address\": \"1234 Fake Street\",\n                \"full_street\": \"1234 Fake Street\",\n                \"second_half\": \"\",\n                \"city_state_zip\": \"\",\n                \"created_at\": \"2022-03-29T22:03:55.343-07:00\",\n                \"updated_at\": \"2022-03-29T22:03:55.343-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"127\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"104\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"test\",\n                \"street\": \"\",\n                \"street2\": null,\n                \"city\": null,\n                \"state\": null,\n                \"zipcode\": null,\n                \"country\": null,\n                \"full_address\": \"\",\n                \"full_street\": \"\",\n                \"second_half\": \"\",\n                \"city_state_zip\": \"\",\n                \"created_at\": \"2022-02-09T13:56:33.557-08:00\",\n                \"updated_at\": \"2022-02-09T13:56:33.557-08:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"116\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"103\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"123\",\n                \"street2\": null,\n                \"city\": null,\n                \"state\": null,\n                \"zipcode\": null,\n                \"country\": null,\n                \"full_address\": \"123\",\n                \"full_street\": \"123\",\n                \"second_half\": \"\",\n                \"city_state_zip\": \"\",\n                \"created_at\": \"2022-02-09T13:56:33.548-08:00\",\n                \"updated_at\": \"2022-02-09T13:56:33.548-08:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"116\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"102\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"1234 fake street\",\n                \"street2\": \"suite 2\",\n                \"city\": \"San Diego\",\n                \"state\": \"CA\",\n                \"zipcode\": \"92104\",\n                \"country\": \"United States\",\n                \"full_address\": \"1234 fake street, suite 2, San Diego, CA 92104, United States\",\n                \"full_street\": \"1234 fake street, suite 2\",\n                \"second_half\": \"San Diego, CA 92104, United States\",\n                \"city_state_zip\": \"San Diego, CA 92104\",\n                \"created_at\": \"2021-11-08T14:06:20.224-08:00\",\n                \"updated_at\": \"2021-11-08T14:06:20.224-08:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"101\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Miami St\",\n                \"street\": \"1234 Miami\",\n                \"street2\": null,\n                \"city\": \"Miami\",\n                \"state\": \"FL\",\n                \"zipcode\": \"12345\",\n                \"country\": \"United States\",\n                \"full_address\": \"1234 Miami, Miami, FL 12345, United States\",\n                \"full_street\": \"1234 Miami\",\n                \"second_half\": \"Miami, FL 12345, United States\",\n                \"city_state_zip\": \"Miami, FL 12345\",\n                \"created_at\": \"2021-10-31T19:59:35.424-07:00\",\n                \"updated_at\": \"2021-10-31T19:59:35.424-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": [\n                        {\n                            \"id\": \"1\",\n                            \"type\": \"location\"\n                        }\n                    ]\n                }\n            }\n        },\n        {\n            \"id\": \"100\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"99 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"CA\",\n                \"zipcode\": \"90219\",\n                \"country\": \"United States\",\n                \"full_address\": \"99 Fake Rd, City 1, CA 90219, United States\",\n                \"full_street\": \"99 Fake Rd\",\n                \"second_half\": \"City 1, CA 90219, United States\",\n                \"city_state_zip\": \"City 1, CA 90219\",\n                \"created_at\": \"2021-10-26T15:47:48.382-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:48.382-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"100\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"99\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"98 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"IL\",\n                \"zipcode\": \"55126\",\n                \"country\": \"United States\",\n                \"full_address\": \"98 Fake Rd, City 3, IL 55126, United States\",\n                \"full_street\": \"98 Fake Rd\",\n                \"second_half\": \"City 3, IL 55126, United States\",\n                \"city_state_zip\": \"City 3, IL 55126\",\n                \"created_at\": \"2021-10-26T15:47:48.119-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:48.119-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"99\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"98\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"97 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 2\",\n                \"state\": \"IL\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"97 Fake Rd, City 2, IL 60633, United States\",\n                \"full_street\": \"97 Fake Rd\",\n                \"second_half\": \"City 2, IL 60633, United States\",\n                \"city_state_zip\": \"City 2, IL 60633\",\n                \"created_at\": \"2021-10-26T15:47:47.890-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:47.890-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"98\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"97\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"96 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 2\",\n                \"state\": \"IL\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"96 Fake Rd, City 2, IL 60633, United States\",\n                \"full_street\": \"96 Fake Rd\",\n                \"second_half\": \"City 2, IL 60633, United States\",\n                \"city_state_zip\": \"City 2, IL 60633\",\n                \"created_at\": \"2021-10-26T15:47:47.639-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:47.639-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"97\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"96\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"95 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"CA\",\n                \"zipcode\": \"55126\",\n                \"country\": \"United States\",\n                \"full_address\": \"95 Fake Rd, City 3, CA 55126, United States\",\n                \"full_street\": \"95 Fake Rd\",\n                \"second_half\": \"City 3, CA 55126, United States\",\n                \"city_state_zip\": \"City 3, CA 55126\",\n                \"created_at\": \"2021-10-26T15:47:46.875-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:46.875-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"96\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"95\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"94 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"CA\",\n                \"zipcode\": \"90219\",\n                \"country\": \"United States\",\n                \"full_address\": \"94 Fake Rd, City 3, CA 90219, United States\",\n                \"full_street\": \"94 Fake Rd\",\n                \"second_half\": \"City 3, CA 90219, United States\",\n                \"city_state_zip\": \"City 3, CA 90219\",\n                \"created_at\": \"2021-10-26T15:47:46.595-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:46.595-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"95\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"94\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"93 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"CA\",\n                \"zipcode\": \"55126\",\n                \"country\": \"United States\",\n                \"full_address\": \"93 Fake Rd, City 3, CA 55126, United States\",\n                \"full_street\": \"93 Fake Rd\",\n                \"second_half\": \"City 3, CA 55126, United States\",\n                \"city_state_zip\": \"City 3, CA 55126\",\n                \"created_at\": \"2021-10-26T15:47:46.277-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:46.277-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"94\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"93\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"92 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"MN\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"92 Fake Rd, City 1, MN 60633, United States\",\n                \"full_street\": \"92 Fake Rd\",\n                \"second_half\": \"City 1, MN 60633, United States\",\n                \"city_state_zip\": \"City 1, MN 60633\",\n                \"created_at\": \"2021-10-26T15:47:45.923-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:45.923-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"93\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"92\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"91 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"MN\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"91 Fake Rd, City 1, MN 60633, United States\",\n                \"full_street\": \"91 Fake Rd\",\n                \"second_half\": \"City 1, MN 60633, United States\",\n                \"city_state_zip\": \"City 1, MN 60633\",\n                \"created_at\": \"2021-10-26T15:47:45.619-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:45.619-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"92\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"91\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"90 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"CA\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"90 Fake Rd, City 1, CA 60633, United States\",\n                \"full_street\": \"90 Fake Rd\",\n                \"second_half\": \"City 1, CA 60633, United States\",\n                \"city_state_zip\": \"City 1, CA 60633\",\n                \"created_at\": \"2021-10-26T15:47:44.989-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:44.989-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"91\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"90\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"89 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"MN\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"89 Fake Rd, City 1, MN 60633, United States\",\n                \"full_street\": \"89 Fake Rd\",\n                \"second_half\": \"City 1, MN 60633, United States\",\n                \"city_state_zip\": \"City 1, MN 60633\",\n                \"created_at\": \"2021-10-26T15:47:44.732-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:44.732-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"90\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"89\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"88 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"MN\",\n                \"zipcode\": \"90219\",\n                \"country\": \"United States\",\n                \"full_address\": \"88 Fake Rd, City 1, MN 90219, United States\",\n                \"full_street\": \"88 Fake Rd\",\n                \"second_half\": \"City 1, MN 90219, United States\",\n                \"city_state_zip\": \"City 1, MN 90219\",\n                \"created_at\": \"2021-10-26T15:47:44.432-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:44.432-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"89\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"88\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"87 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"MN\",\n                \"zipcode\": \"55126\",\n                \"country\": \"United States\",\n                \"full_address\": \"87 Fake Rd, City 1, MN 55126, United States\",\n                \"full_street\": \"87 Fake Rd\",\n                \"second_half\": \"City 1, MN 55126, United States\",\n                \"city_state_zip\": \"City 1, MN 55126\",\n                \"created_at\": \"2021-10-26T15:47:44.158-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:44.158-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"88\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"87\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"86 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"MN\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"86 Fake Rd, City 3, MN 60633, United States\",\n                \"full_street\": \"86 Fake Rd\",\n                \"second_half\": \"City 3, MN 60633, United States\",\n                \"city_state_zip\": \"City 3, MN 60633\",\n                \"created_at\": \"2021-10-26T15:47:43.410-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:43.410-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"87\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"86\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"85 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 1\",\n                \"state\": \"MN\",\n                \"zipcode\": \"90219\",\n                \"country\": \"United States\",\n                \"full_address\": \"85 Fake Rd, City 1, MN 90219, United States\",\n                \"full_street\": \"85 Fake Rd\",\n                \"second_half\": \"City 1, MN 90219, United States\",\n                \"city_state_zip\": \"City 1, MN 90219\",\n                \"created_at\": \"2021-10-26T15:47:43.068-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:43.068-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"85\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"84 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"IL\",\n                \"zipcode\": \"55126\",\n                \"country\": \"United States\",\n                \"full_address\": \"84 Fake Rd, City 3, IL 55126, United States\",\n                \"full_street\": \"84 Fake Rd\",\n                \"second_half\": \"City 3, IL 55126, United States\",\n                \"city_state_zip\": \"City 3, IL 55126\",\n                \"created_at\": \"2021-10-26T15:47:42.519-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:42.519-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"85\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"84\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"83 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"CA\",\n                \"zipcode\": \"90219\",\n                \"country\": \"United States\",\n                \"full_address\": \"83 Fake Rd, City 3, CA 90219, United States\",\n                \"full_street\": \"83 Fake Rd\",\n                \"second_half\": \"City 3, CA 90219, United States\",\n                \"city_state_zip\": \"City 3, CA 90219\",\n                \"created_at\": \"2021-10-26T15:47:42.294-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:42.294-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"84\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"83\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"82 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"MN\",\n                \"zipcode\": \"55126\",\n                \"country\": \"United States\",\n                \"full_address\": \"82 Fake Rd, City 3, MN 55126, United States\",\n                \"full_street\": \"82 Fake Rd\",\n                \"second_half\": \"City 3, MN 55126, United States\",\n                \"city_state_zip\": \"City 3, MN 55126\",\n                \"created_at\": \"2021-10-26T15:47:42.069-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:42.069-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"83\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"82\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"81 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"CA\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"81 Fake Rd, City 3, CA 60633, United States\",\n                \"full_street\": \"81 Fake Rd\",\n                \"second_half\": \"City 3, CA 60633, United States\",\n                \"city_state_zip\": \"City 3, CA 60633\",\n                \"created_at\": \"2021-10-26T15:47:41.832-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:41.832-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"82\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        },\n        {\n            \"id\": \"81\",\n            \"type\": \"address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"street\": \"80 Fake Rd\",\n                \"street2\": null,\n                \"city\": \"City 3\",\n                \"state\": \"CA\",\n                \"zipcode\": \"60633\",\n                \"country\": \"United States\",\n                \"full_address\": \"80 Fake Rd, City 3, CA 60633, United States\",\n                \"full_street\": \"80 Fake Rd\",\n                \"second_half\": \"City 3, CA 60633, United States\",\n                \"city_state_zip\": \"City 3, CA 60633\",\n                \"created_at\": \"2021-10-26T15:47:41.082-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:41.082-07:00\"\n            },\n            \"relationships\": {\n                \"addressable\": {\n                    \"data\": {\n                        \"id\": \"81\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"locations\": {\n                    \"data\": []\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 5,\n        \"limit_per_page\": 25,\n        \"total_entries\": 105\n    },\n    \"links\": {\n        \"self\": \"/v1/addresses?page=1\",\n        \"next\": \"/v1/addresses?page=2\"\n    }\n}"}],"_postman_id":"72089b5c-13fb-4101-a6f5-e090468b9793"},{"name":"Create Address","id":"236a42db-424a-4f01-9acb-db5526702f08","protocolProfileBehavior":{"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"Home\",\n\t\"street\": \"1234 Fake Street\",\n\t\"street2\": \"Apt 1\",\n\t\"city\": \"Fake Town\",\n\t\"state\": \"CA\",\n\t\"zipcode\": \"92104\",\n    \"addressable_type\": \"Firm\"\n}"},"url":"{{host}}/v1/addresses?fields=all","description":"<p>Create a new <strong>Address</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>label</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Primary\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>street</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"1234 Fake Street\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>street2</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Apt 1\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Fake Town\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"CA\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>zipcode</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"92104\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>country</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"United States\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>addressable_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Prospect</code>, <code>Contact</code>, <code>Company</code>, <code>Firm</code> (case-insensitive; <code>matter</code> also accepted)</td>\n</tr>\n<tr>\n<td><code>addressable_id</code></td>\n<td>id</td>\n<td>Conditional</td>\n<td><code>\"12345\"</code></td>\n<td>Required for all <code>addressable_type</code> values except <code>Firm</code></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Setting the Address on a <code>Prospect</code> (Matter) sets it on the Matter's linked <strong>Contact</strong>/<strong>Company</strong>, not the Matter itself. </p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> For <code>addressable_type: \"Firm\"</code>, <code>addressable_id</code> is ignored.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","addresses"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"fa17ba1a-e05e-4ccf-8702-d80f3f403e4f","name":"POST Create Address","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"Primary\",\n\t\"street\": \"1234 Fake Street\",\n\t\"street2\": \"Apt 1\",\n\t\"city\": \"Fake Town\",\n\t\"state\": \"CA\",\n\t\"zipcode\": \"92104\",\n    \"addressable_type\": \"Contact\",\n    \"addressable_id\": 1\n}"},"url":{"raw":"{{host}}/v1/addresses?fields=all","host":["{{host}}"],"path":["v1","addresses"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"ae60d8f5275bb778c4ea46c208030c60\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d21b50e5-1553-4ae2-8ae5-c562cd2cac99"},{"key":"X-Runtime","value":"0.676577"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"122\",\n        \"type\": \"address\",\n        \"attributes\": {\n            \"label\": \"Primary\",\n            \"street\": \"1234 Fake Street\",\n            \"street2\": \"Apt 1\",\n            \"city\": \"Fake Town\",\n            \"state\": \"CA\",\n            \"zipcode\": \"92104\",\n            \"country\": null,\n            \"full_address\": \"1234 Fake Street, Apt 1, Fake Town, CA 92104\",\n            \"full_street\": \"1234 Fake Street, Apt 1\",\n            \"second_half\": \"Fake Town, CA 92104\",\n            \"city_state_zip\": \"Fake Town, CA 92104\",\n            \"created_at\": \"2022-06-25T18:22:46.177-07:00\",\n            \"updated_at\": \"2022-06-25T18:22:46.177-07:00\"\n        },\n        \"relationships\": {\n            \"addressable\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"locations\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"236a42db-424a-4f01-9acb-db5526702f08"},{"name":"Update Address","event":[{"listen":"test","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/addresses`, function (err, response) {","   pm.globals.set(\"address_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/addresses`, function (err, response) {","   pm.globals.set(\"address_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}}],"id":"6c5a766c-781b-4b17-891f-659797f490fb","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"Home\",\n\t\"street\": \"5555 Real Street\",\n\t\"street2\": \"Apt 77\",\n\t\"city\": \"Real Town\",\n\t\"state\": \"CA\",\n    \"country\": \"United States\"\n}"},"url":"{{host}}/v1/addresses/:address_id","description":"<p>Updates an <strong>Address</strong> by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","addresses",":address_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{address_id}}","key":"address_id"}]}},"response":[{"id":"6035b7ec-9fcc-482c-b20f-b88603816612","name":"PUT Update Address","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"Home\",\n\t\"street\": \"5555 Real Street\",\n\t\"street2\": \"Apt 77\",\n\t\"city\": \"Real Town\",\n\t\"state\": \"CA\",\n    \"country\": \"United States\"\n}"},"url":{"raw":"{{host}}/v1/addresses/:address_id","host":["{{host}}"],"path":["v1","addresses",":address_id"],"variable":[{"key":"address_id","value":"{{created_address_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"44b5053f4fd8c88b7605836ec306912c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"df23f2a1-5c50-420c-98bd-6ddd3377e6d7"},{"key":"X-Runtime","value":"0.031811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"122\",\n        \"type\": \"address\",\n        \"attributes\": {\n            \"label\": \"Home\",\n            \"street\": \"5555 Real Street\",\n            \"street2\": \"Apt 77\",\n            \"city\": \"Real Town\",\n            \"state\": \"CA\",\n            \"zipcode\": \"92104\",\n            \"country\": \"United States\"\n        },\n        \"relationships\": {\n            \"addressable\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"6c5a766c-781b-4b17-891f-659797f490fb"},{"name":"Delete Address","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/addresses`, function (err, response) {","   pm.globals.set(\"address_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}}],"id":"dac3ab25-fff9-4897-9365-09ed6c86a103","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/addresses/:address_id","description":"<p>Deletes the Address. It will no longer appear in any future GET responses.</p>\n<p><code>address_id</code> is the Address's own ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","addresses",":address_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{address_id}}","key":"address_id"}]}},"response":[{"id":"3400ba34-14a2-4658-a5e3-9862e5c9fef1","name":"DELETE Delete Address","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/addresses/:address_id","host":["{{host}}"],"path":["v1","addresses",":address_id"],"variable":[{"key":"address_id","value":"{{created_address_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"44b5053f4fd8c88b7605836ec306912c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82606b63-03c1-4a52-9077-b5173b32567a"},{"key":"X-Runtime","value":"0.131162"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"122\",\n        \"type\": \"address\",\n        \"attributes\": {\n            \"label\": \"Home\",\n            \"street\": \"5555 Real Street\",\n            \"street2\": \"Apt 77\",\n            \"city\": \"Real Town\",\n            \"state\": \"CA\",\n            \"zipcode\": \"92104\",\n            \"country\": \"United States\"\n        },\n        \"relationships\": {\n            \"addressable\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"dac3ab25-fff9-4897-9365-09ed6c86a103"}],"id":"a1c506d5-f5b3-4c3b-8bf1-578363e7515e","description":"<p>An <strong>Address</strong> is a physical/mailing/street address that belongs to a <strong>Firm</strong>, <strong>Contact</strong>, or <strong>Company</strong>.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Response time is less than 400ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(1400);","});"]}}],"_postman_id":"a1c506d5-f5b3-4c3b-8bf1-578363e7515e","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Collections","item":[{"name":"Collections","item":[{"name":"Collections","event":[{"listen":"test","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/collections`, function (err, response) {","   pm.globals.set(\"collection_id\", response.json().data[0].id);","});"," "],"type":"text/javascript","packages":{},"requests":{}}}],"id":"cf1869b9-687d-4f48-a4c2-5b519996911d","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"{{host}}/v1/collections","description":"<p>Returns a paginated list of all <strong>Collections</strong> in the Lawmatics account.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p><code>GET {{host}}/v1/collections</code></p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This request uses OAuth 2.0. Ensure a valid <code>access_token</code> is set in the active environment.</p>\n<h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<p>Returns a JSON object with a <code>data</code> array. Each item in the array represents a Collection and includes:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>Unique identifier for the collection</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Resource type — always <code>\"collection\"</code></td>\n</tr>\n<tr>\n<td><code>attributes.name</code></td>\n<td>string</td>\n<td>Name of the collection</td>\n</tr>\n<tr>\n<td><code>attributes.custom_fields</code></td>\n<td>array</td>\n<td>List of custom fields associated with the collection</td>\n</tr>\n<tr>\n<td><code>attributes.created_at</code></td>\n<td>string (ISO 8601)</td>\n<td>Timestamp when the collection was created</td>\n</tr>\n<tr>\n<td><code>attributes.updated_at</code></td>\n<td>string (ISO 8601)</td>\n<td>Timestamp when the collection was last updated</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"custom-field-object\">Custom Field Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>Unique identifier for the custom field</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Display name of the custom field</td>\n</tr>\n<tr>\n<td><code>field_type</code></td>\n<td>string</td>\n<td>Type of field (e.g., <code>list</code>, <code>multi_picklist</code>, <code>currency</code>)</td>\n</tr>\n<tr>\n<td><code>visibility</code></td>\n<td>string</td>\n<td>Visibility setting (e.g., <code>default</code>)</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Parent resource type — always <code>\"Collection\"</code></td>\n</tr>\n<tr>\n<td><code>list_options</code></td>\n<td>array</td>\n<td>Available options for list/picklist fields</td>\n</tr>\n<tr>\n<td><code>created_at</code></td>\n<td>string (ISO 8601)</td>\n<td>Timestamp when the field was created</td>\n</tr>\n<tr>\n<td><code>updated_at</code></td>\n<td>string (ISO 8601)</td>\n<td>Timestamp when the field was last updated</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collections"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"40fbf85e-d4c1-4fe0-ab2f-d5b7e79f9efe","name":"Collections","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"{{host}}/v1/collections"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"6\",\n            \"type\": \"collection\",\n            \"attributes\": {\n                \"name\": \"Test\",\n                \"custom_fields\": [\n                    {\n                        \"id\": \"306\",\n                        \"name\": \"MultiTest\",\n                        \"field_type\": \"multi_picklist\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"list_options\": [\n                            {\n                                \"id\": \"56\",\n                                \"name\": \"One\"\n                            },\n                            {\n                                \"id\": \"57\",\n                                \"name\": \"Two\"\n                            },\n                            {\n                                \"id\": \"58\",\n                                \"name\": \"Three\"\n                            }\n                        ],\n                        \"created_at\": \"2026-05-27T15:09:15.359-07:00\",\n                        \"updated_at\": \"2026-05-27T15:09:15.359-07:00\"\n                    }\n                ],\n                \"created_at\": \"2026-05-27T15:09:15.354-07:00\",\n                \"updated_at\": \"2026-05-27T15:09:15.354-07:00\"\n            }\n        },\n        {\n            \"id\": \"5\",\n            \"type\": \"collection\",\n            \"attributes\": {\n                \"name\": \"Bank Accounts\",\n                \"custom_fields\": [\n                    {\n                        \"id\": \"305\",\n                        \"name\": \"Type\",\n                        \"field_type\": \"list\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"list_options\": [\n                            {\n                                \"id\": \"54\",\n                                \"name\": \"Checking\"\n                            },\n                            {\n                                \"id\": \"55\",\n                                \"name\": \"Savings\"\n                            }\n                        ],\n                        \"created_at\": \"2026-05-27T14:52:05.096-07:00\",\n                        \"updated_at\": \"2026-05-27T14:52:05.096-07:00\"\n                    },\n                    {\n                        \"id\": \"304\",\n                        \"name\": \"Balance\",\n                        \"field_type\": \"currency\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"created_at\": \"2026-05-27T14:52:05.090-07:00\",\n                        \"updated_at\": \"2026-05-27T14:52:05.090-07:00\"\n                    },\n                    {\n                        \"id\": \"303\",\n                        \"name\": \"Name\",\n                        \"field_type\": \"text\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"created_at\": \"2026-05-27T14:52:05.057-07:00\",\n                        \"updated_at\": \"2026-05-27T14:52:05.057-07:00\"\n                    }\n                ],\n                \"created_at\": \"2026-05-27T14:52:05.019-07:00\",\n                \"updated_at\": \"2026-05-27T14:52:05.019-07:00\"\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"collection\",\n            \"attributes\": {\n                \"name\": \"Albums\",\n                \"custom_fields\": [\n                    {\n                        \"id\": \"299\",\n                        \"name\": \"Artist Name\",\n                        \"field_type\": \"text\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"created_at\": \"2026-05-26T16:10:41.056-07:00\",\n                        \"updated_at\": \"2026-05-26T16:10:41.056-07:00\"\n                    },\n                    {\n                        \"id\": \"298\",\n                        \"name\": \"Name\",\n                        \"field_type\": \"text\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"created_at\": \"2026-05-26T16:09:11.640-07:00\",\n                        \"updated_at\": \"2026-05-26T16:11:14.439-07:00\"\n                    }\n                ],\n                \"created_at\": \"2026-05-26T16:09:11.630-07:00\",\n                \"updated_at\": \"2026-05-26T16:09:11.630-07:00\"\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"collection\",\n            \"attributes\": {\n                \"name\": \"Movies\",\n                \"custom_fields\": [\n                    {\n                        \"id\": \"295\",\n                        \"name\": \"Name\",\n                        \"field_type\": \"string\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"created_at\": \"2026-05-26T13:09:49.162-07:00\",\n                        \"updated_at\": \"2026-05-26T13:09:49.162-07:00\"\n                    },\n                    {\n                        \"id\": \"296\",\n                        \"name\": \"Director\",\n                        \"field_type\": \"string\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"created_at\": \"2026-05-26T13:09:49.168-07:00\",\n                        \"updated_at\": \"2026-05-26T13:09:49.168-07:00\"\n                    },\n                    {\n                        \"id\": \"297\",\n                        \"name\": \"Genre\",\n                        \"field_type\": \"list\",\n                        \"visibility\": \"default\",\n                        \"type\": \"Collection\",\n                        \"list_options\": [\n                            {\n                                \"id\": \"49\",\n                                \"name\": \"Horror\"\n                            },\n                            {\n                                \"id\": \"50\",\n                                \"name\": \"Romance\"\n                            },\n                            {\n                                \"id\": \"51\",\n                                \"name\": \"Action\"\n                            },\n                            {\n                                \"id\": \"52\",\n                                \"name\": \"Comedy\"\n                            },\n                            {\n                                \"id\": \"53\",\n                                \"name\": \"Drama\"\n                            }\n                        ],\n                        \"created_at\": \"2026-05-26T13:09:49.192-07:00\",\n                        \"updated_at\": \"2026-05-26T13:09:49.192-07:00\"\n                    }\n                ],\n                \"created_at\": \"2026-05-26T13:09:49.160-07:00\",\n                \"updated_at\": \"2026-05-26T13:09:49.160-07:00\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 4\n    },\n    \"links\": {\n        \"self\": \"/v1/collections?page=1\"\n    }\n}"}],"_postman_id":"cf1869b9-687d-4f48-a4c2-5b519996911d"},{"name":"Collection","id":"fd916f02-49ca-456f-9017-d3d4cb1a5f8d","request":{"method":"GET","header":[],"url":"{{host}}/v1/collections/:collection_id","description":"<p>Retrieves a single <strong>Collection</strong> by, id</p>\n<h2 id=\"path-variables\">Path Variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>collection_id</code></td>\n<td>The unique identifier of the collection to retrieve.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<p>Returns a <code>data</code> object representing the collection with the following attributes:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>Unique identifier of the collection.</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Resource type (<code>\"collection\"</code>).</td>\n</tr>\n<tr>\n<td><code>attributes.name</code></td>\n<td>string</td>\n<td>Name of the collection.</td>\n</tr>\n<tr>\n<td><code>attributes.custom_fields</code></td>\n<td>array</td>\n<td>List of custom fields defined for the collection.</td>\n</tr>\n<tr>\n<td><code>attributes.created_at</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of when the collection was created.</td>\n</tr>\n<tr>\n<td><code>attributes.updated_at</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of when the collection was last updated.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"custom-field-object\">Custom Field Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>Unique identifier of the custom field.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Display name of the custom field.</td>\n</tr>\n<tr>\n<td><code>field_type</code></td>\n<td>string</td>\n<td>Data type of the field (e.g., <code>text</code>, <code>currency</code>, <code>list</code>).</td>\n</tr>\n<tr>\n<td><code>visibility</code></td>\n<td>string</td>\n<td>Visibility setting of the field.</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Resource type (<code>\"Collection\"</code>).</td>\n</tr>\n<tr>\n<td><code>list_options</code></td>\n<td>array</td>\n<td>Available options for <code>list</code> type fields.</td>\n</tr>\n<tr>\n<td><code>created_at</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of when the field was created.</td>\n</tr>\n<tr>\n<td><code>updated_at</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of when the field was last updated.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collections",":collection_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{collection_id}}","key":"collection_id"}]}},"response":[{"id":"0a36c618-6cb0-4d01-9612-d11918134c31","name":"Collection","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/collections/:collection_id","host":["{{host}}"],"path":["v1","collections",":collection_id"],"variable":[{"key":"collection_id","value":"{{collection_id}}"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"collection\",\n        \"attributes\": {\n            \"name\": \"Bank Accounts\",\n            \"custom_fields\": [\n                {\n                    \"id\": \"305\",\n                    \"name\": \"Type\",\n                    \"field_type\": \"list\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"list_options\": [\n                        {\n                            \"id\": \"54\",\n                            \"name\": \"Checking\"\n                        },\n                        {\n                            \"id\": \"55\",\n                            \"name\": \"Savings\"\n                        }\n                    ],\n                    \"created_at\": \"2026-05-27T14:52:05.096-07:00\",\n                    \"updated_at\": \"2026-05-27T14:52:05.096-07:00\"\n                },\n                {\n                    \"id\": \"304\",\n                    \"name\": \"Balance\",\n                    \"field_type\": \"currency\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"created_at\": \"2026-05-27T14:52:05.090-07:00\",\n                    \"updated_at\": \"2026-05-27T14:52:05.090-07:00\"\n                },\n                {\n                    \"id\": \"303\",\n                    \"name\": \"Name\",\n                    \"field_type\": \"text\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"created_at\": \"2026-05-27T14:52:05.057-07:00\",\n                    \"updated_at\": \"2026-05-27T14:52:05.057-07:00\"\n                }\n            ],\n            \"created_at\": \"2026-05-27T14:52:05.019-07:00\",\n            \"updated_at\": \"2026-05-27T14:52:05.019-07:00\"\n        }\n    }\n}"}],"_postman_id":"fd916f02-49ca-456f-9017-d3d4cb1a5f8d"},{"name":"Create Collection","id":"496c5536-263f-4863-a7b7-4551087ebfa5","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Bank Accounts\",\n    \"custom_fields\": [\n        {\n            \"name\": \"Name\",\n            \"field_type\": \"text\"\n        },\n        {\n            \"name\": \"Balance\",\n            \"field_type\": \"currency\"\n        },\n        {\n            \"name\": \"Type\",\n            \"field_type\": \"list\",\n            \"list_options\": [\n                {\n                    \"name\": \"Checking\"\n                },\n                {\n                    \"name\": \"Savings\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/collections","description":"<p>Creates a new Collection in Lawmatics.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<p>The request body must be a JSON object with the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The name of the collection to create.</td>\n</tr>\n<tr>\n<td><code>custom_fields</code></td>\n<td>array</td>\n<td>Yes</td>\n<td>An array of custom field definitions to attach to the collection.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"custom-field-object\">Custom Field Object</h3>\n<p>Each object in the <code>custom_fields</code> array supports the following properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The display name of the custom field.</td>\n</tr>\n<tr>\n<td><code>field_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The type of the field. Supported values: <code>integer</code>, <code>boolean</code>, <code>string</code>, <code>text</code>, <code>currency</code>, <code>date</code>, <code>time</code>, <code>datetime</code>, <code>list</code>, <code>lookup</code>, <code>multi_picklist</code></td>\n</tr>\n<tr>\n<td><code>list_options</code></td>\n<td>array</td>\n<td>Only for <code>list</code> and <code>multi_picklist</code> types</td>\n<td>An array of at least two option objects, each with a <code>name</code> property, defining the selectable values for a list field.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<p>Returns <code>201 Created</code> on success with a JSON object containing the created collection's data under the <code>data</code> key.</p>\n<h3 id=\"response-body\">Response Body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.id</code></td>\n<td>string</td>\n<td>The unique ID of the newly created collection.</td>\n</tr>\n<tr>\n<td><code>data.type</code></td>\n<td>string</td>\n<td>The resource type (<code>collection</code>).</td>\n</tr>\n<tr>\n<td><code>data.attributes.name</code></td>\n<td>string</td>\n<td>The name of the collection.</td>\n</tr>\n<tr>\n<td><code>data.attributes.custom_fields</code></td>\n<td>array</td>\n<td>The list of custom fields created for this collection, each including <code>id</code>, <code>name</code>, <code>field_type</code>, <code>visibility</code>, <code>created_at</code>, and <code>updated_at</code>.</td>\n</tr>\n<tr>\n<td><code>data.attributes.created_at</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of when the collection was created.</td>\n</tr>\n<tr>\n<td><code>data.attributes.updated_at</code></td>\n<td>string</td>\n<td>ISO 8601 timestamp of when the collection was last updated.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collections"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"74b98455-b012-4717-acfe-9d082e1f119a","name":"Create Collection","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Bank Accounts\",\n  \"custom_fields\": [\n    {\n        \"name\": \"Name\",\n        \"field_type\": \"text\"\n    },\n    {\n        \"name\": \"Balance\",\n        \"field_type\": \"currency\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/collections"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"7\",\n        \"type\": \"collection\",\n        \"attributes\": {\n            \"name\": \"Bank Accounts\",\n            \"custom_fields\": [\n                {\n                    \"id\": \"307\",\n                    \"name\": \"Name\",\n                    \"field_type\": \"text\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"created_at\": \"2026-05-28T11:10:33.113-07:00\",\n                    \"updated_at\": \"2026-05-28T11:10:33.113-07:00\"\n                },\n                {\n                    \"id\": \"308\",\n                    \"name\": \"Balance\",\n                    \"field_type\": \"currency\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"created_at\": \"2026-05-28T11:10:33.236-07:00\",\n                    \"updated_at\": \"2026-05-28T11:10:33.236-07:00\"\n                },\n                {\n                    \"id\": \"309\",\n                    \"name\": \"Type\",\n                    \"field_type\": \"list\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"list_options\": [\n                        {\n                            \"id\": \"59\",\n                            \"name\": \"Checking\"\n                        },\n                        {\n                            \"id\": \"60\",\n                            \"name\": \"Savings\"\n                        }\n                    ],\n                    \"created_at\": \"2026-05-28T11:10:33.249-07:00\",\n                    \"updated_at\": \"2026-05-28T11:10:33.249-07:00\"\n                }\n            ],\n            \"created_at\": \"2026-05-28T11:10:33.109-07:00\",\n            \"updated_at\": \"2026-05-28T11:10:33.109-07:00\"\n        }\n    }\n}"}],"_postman_id":"496c5536-263f-4863-a7b7-4551087ebfa5"},{"name":"Update Collection","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/collections`, function (err, response) {","   const collection = response.json().data[0];","   pm.globals.set(\"collection_id\", collection.id);","   pm.globals.set(\"collection_custom_field_id\", collection.attributes.custom_fields[0].id);","});",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3d7cf37b-589e-4d7c-a39e-a014e2be3bd5","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"custom_fields\": [\n        { \"id\": \"{{collection_custom_field_id}}\", \"name\": \"Account Balance\" }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/collections/:collection_id","description":"<p>Updates an existing <strong>Collection</strong>, by id. Allows you to modify the collection's associated custom fields.</p>\n<p><code>collection_id</code> is the Collection's own id.</p>\n<h2 id=\"url-parameters\">URL Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>integer</td>\n<td>The unique identifier of the collection to update. Provided as a path segment (e.g., <code>2</code> in <code>/v1/collections/2</code>).</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"request-body\">Request Body</h2>\n<p>Send a JSON object with the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>custom_fields</code></td>\n<td>array of objects</td>\n<td>Yes</td>\n<td>List of custom fields to associate with the collection.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"custom_fields-object-properties\"><code>custom_fields</code> Object Properties</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>The unique identifier of the custom field (e.g., <code>\"298\"</code>).</td>\n</tr>\n<tr>\n<td><code>field_type</code></td>\n<td>string</td>\n<td>The type of the custom field (e.g., <code>\"text\"</code>).</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collections",":collection_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{collection_id}}","key":"collection_id"}]}},"response":[{"id":"aa402e1d-4372-4616-8989-b68b9125e46a","name":"Update Collection","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"custom_fields\": [\n        {\n            \"id\": \"308\",\n            \"name\": \"Account Balance\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/collections/2"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"7\",\n        \"type\": \"collection\",\n        \"attributes\": {\n            \"name\": \"Bank Accounts\",\n            \"custom_fields\": [\n                {\n                    \"id\": \"309\",\n                    \"name\": \"Type\",\n                    \"field_type\": \"list\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"list_options\": [\n                        {\n                            \"id\": \"59\",\n                            \"name\": \"Checking\"\n                        },\n                        {\n                            \"id\": \"60\",\n                            \"name\": \"Savings\"\n                        }\n                    ],\n                    \"created_at\": \"2026-05-28T11:10:33.249-07:00\",\n                    \"updated_at\": \"2026-05-28T11:10:33.249-07:00\"\n                },\n                {\n                    \"id\": \"308\",\n                    \"name\": \"Account Balance\",\n                    \"field_type\": \"currency\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"created_at\": \"2026-05-28T11:10:33.236-07:00\",\n                    \"updated_at\": \"2026-05-28T11:12:08.285-07:00\"\n                },\n                {\n                    \"id\": \"307\",\n                    \"name\": \"Name\",\n                    \"field_type\": \"text\",\n                    \"visibility\": \"default\",\n                    \"type\": \"Collection\",\n                    \"created_at\": \"2026-05-28T11:10:33.113-07:00\",\n                    \"updated_at\": \"2026-05-28T11:10:33.113-07:00\"\n                }\n            ],\n            \"created_at\": \"2026-05-28T11:10:33.109-07:00\",\n            \"updated_at\": \"2026-05-28T11:10:33.109-07:00\"\n        }\n    }\n}"}],"_postman_id":"3d7cf37b-589e-4d7c-a39e-a014e2be3bd5"},{"name":"Delete Collection","event":[{"listen":"test","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/collections`, function (err, response) {","   pm.globals.set(\"collection_id\", response.json().data[0].id);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"b815d673-f303-45f1-8dc5-3adcd71d9d19","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/collections/:collection_id","description":"<p>Deletes the Collection. It will no longer appear in any future GET responses.</p>\n<p><code>collection_id</code> is the Collection's own id.</p>\n<h3 id=\"path-variables\">Path Variables</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>collection_id</code></td>\n<td>The unique identifier of the collection to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Returns a <code>200 OK</code> with the deleted collection's data on success, including:</p>\n<ul>\n<li><p><code>id</code> – The collection's unique identifier.</p>\n</li>\n<li><p><code>type</code> – Resource type (<code>collection</code>).</p>\n</li>\n<li><p><code>attributes</code> – Collection attributes:</p>\n<ul>\n<li><p><code>name</code> – Name of the collection.</p>\n</li>\n<li><p><code>custom_fields</code> – Array of custom fields associated with the collection.</p>\n</li>\n<li><p><code>created_at</code> – Timestamp when the collection was created.</p>\n</li>\n<li><p><code>updated_at</code> – Timestamp when the collection was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collections",":collection_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{collection_id}}","key":"collection_id"}]}},"response":[{"id":"fad1bc01-8f6e-469c-b557-2e65edecebf5","name":"Delete Collection","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/collections/:collection_id","host":["{{host}}"],"path":["v1","collections",":collection_id"],"variable":[{"key":"collection_id","value":"{{collection_id}}"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"collection\",\n        \"attributes\": {\n            \"name\": \"Bank Accounts\",\n            \"custom_fields\": [],\n            \"created_at\": \"2026-05-27T14:52:05.019-07:00\",\n            \"updated_at\": \"2026-05-28T11:10:19.399-07:00\"\n        }\n    }\n}"}],"_postman_id":"b815d673-f303-45f1-8dc5-3adcd71d9d19"}],"id":"60dbbb64-851c-476f-adb7-e26b0bba41f2","description":"<p>A <strong>Collection</strong> is a firm-level, reusable set of custom fields. To actually attach that field-set and real values to a Matter, you create a <strong>Collection Item</strong> linking the Collection to that Matter.</p>\n","_postman_id":"60dbbb64-851c-476f-adb7-e26b0bba41f2","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Collection Items","item":[{"name":"Collection Items","id":"c89a9a09-0196-4c80-873f-859e9669fb22","request":{"method":"GET","header":[],"url":"{{host}}/v1/collection_items","description":"<p>Returns a paginated list of all Collection Items.</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<p>Supports standard Lawmatics query parameters for filtering, sorting, pagination, and field selection.</p>\n<h3 id=\"response\">Response</h3>\n<p>Returns a <code>200 OK</code> with an array of collection item objects under <code>data</code>. Each item includes:</p>\n<ul>\n<li><p><code>id</code> – The collection item's unique identifier.</p>\n</li>\n<li><p><code>type</code> – Resource type (<code>collection_item</code>).</p>\n</li>\n<li><p><code>attributes</code> – Collection item attributes:</p>\n<ul>\n<li><p><code>collection_id</code> – The ID of the parent collection.</p>\n</li>\n<li><p><code>contactable_type</code> – The type of the associated record (e.g., <code>Prospect</code>, <code>Contact</code>).</p>\n</li>\n<li><p><code>contactable_id</code> – The ID of the associated record.</p>\n</li>\n<li><p><code>custom_field_values</code> – Array of custom field values for this item.</p>\n</li>\n<li><p><code>created_at</code> – Timestamp when the item was created.</p>\n</li>\n<li><p><code>updated_at</code> – Timestamp when the item was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collection_items"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2620d7a5-46a2-4171-b512-5f261e0cb5c5","name":"Collection Items","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/collection_items"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"1\",\n            \"type\": \"collection_item\",\n            \"attributes\": {\n                \"collection_id\": 3,\n                \"contactable_type\": \"Prospect\",\n                \"contactable_id\": 184,\n                \"custom_field_values\": [\n                    {\n                        \"id\": \"235\",\n                        \"custom_field_id\": \"302\",\n                        \"name\": \"Name\",\n                        \"field_type\": \"text\",\n                        \"value\": \"The Matrix\",\n                        \"formatted_value\": \"The Matrix\"\n                    }\n                ],\n                \"created_at\": \"2026-05-29T16:02:51.434-07:00\",\n                \"updated_at\": \"2026-05-29T16:02:51.482-07:00\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 1\n    },\n    \"links\": {\n        \"self\": \"/v1/collection_items?page=1\"\n    }\n}"}],"_postman_id":"c89a9a09-0196-4c80-873f-859e9669fb22"},{"name":"Collection Item","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/collection_items`, function (err, response) {","   pm.globals.set(\"collection_item_id\", response.json().data[0].id);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"035f2654-40c1-4247-a57f-7e9b1d9c39a3","request":{"method":"GET","header":[],"url":"{{host}}/v1/collection_items/:collection_item_id","description":"<p>Returns a single collection item, by id.</p>\n<h3 id=\"path-variables\">Path Variables</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>collection_item_id</code></td>\n<td>The unique identifier of the collection item to retrieve.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Returns a <code>200 OK</code> with the collection item object under <code>data</code>, including:</p>\n<ul>\n<li><p><code>id</code> – The collection item's unique identifier.</p>\n</li>\n<li><p><code>type</code> – Resource type (<code>collection_item</code>).</p>\n</li>\n<li><p><code>attributes</code> – Collection item attributes:</p>\n<ul>\n<li><p><code>collection_id</code> – The ID of the parent collection.</p>\n</li>\n<li><p><code>contactable_type</code> – The type of the associated record (e.g., <code>Prospect</code>, <code>Contact</code>).</p>\n</li>\n<li><p><code>contactable_id</code> – The ID of the associated record.</p>\n</li>\n<li><p><code>custom_field_values</code> – Array of custom field values for this item.</p>\n</li>\n<li><p><code>created_at</code> – Timestamp when the item was created.</p>\n</li>\n<li><p><code>updated_at</code> – Timestamp when the item was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collection_items",":collection_item_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{collection_item_id}}","key":"collection_item_id"}]}},"response":[{"id":"20807f00-0037-4e5a-a61f-cfc09bf04bcf","name":"Collection Item","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/collection_items/:collection_item_id","host":["{{host}}"],"path":["v1","collection_items",":collection_item_id"],"variable":[{"key":"collection_item_id","value":"{{collection_item_id}}"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"collection_item\",\n        \"attributes\": {\n            \"collection_id\": 3,\n            \"contactable_type\": \"Prospect\",\n            \"contactable_id\": 184,\n            \"custom_field_values\": [\n                {\n                    \"id\": \"235\",\n                    \"custom_field_id\": \"302\",\n                    \"name\": \"Name\",\n                    \"field_type\": \"text\",\n                    \"value\": \"The Matrix\",\n                    \"formatted_value\": \"The Matrix\"\n                }\n            ],\n            \"created_at\": \"2026-05-29T16:02:51.434-07:00\",\n            \"updated_at\": \"2026-05-29T16:02:51.482-07:00\"\n        }\n    }\n}"}],"_postman_id":"035f2654-40c1-4247-a57f-7e9b1d9c39a3"},{"name":"Create Collection Item","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/collections`, function (err, response) {","   const collection = response.json().data[0];","   pm.globals.set(\"collection_id\", collection.id);","   pm.globals.set(\"custom_field_id\", collection.attributes.custom_fields[0].id);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"ecc3a56f-d97e-42e6-a85c-bd069f5cef05","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contactable_type\": \"Prospect\",\n    \"contactable_id\": {{prospect_id}},\n    \"collection_id\": {{collection_id}},\n    \"custom_field_values\": [\n        {\n            \"id\": {{custom_field_id}},\n            \"value\": \"The Matrix\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/collection_items","description":"<p>Creates a new collection item, associating a matter record with a collection and optionally setting custom field values.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>contactable_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The type of the associated record. Only accepted value: <code>Prospect</code> (not Matter)</td>\n</tr>\n<tr>\n<td><code>contactable_id</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>The ID of the associated Prospect.</td>\n</tr>\n<tr>\n<td><code>collection_id</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td>The ID of the collection to add the item to.</td>\n</tr>\n<tr>\n<td><code>custom_field_values</code></td>\n<td>array</td>\n<td>No</td>\n<td>Array of custom field value objects to set on the item.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"custom_field_values-object\"><code>custom_field_values</code> Object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>integer</td>\n<td>The ID of the custom field.</td>\n</tr>\n<tr>\n<td><code>value</code></td>\n<td>string</td>\n<td>The value to set for the custom field.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-request-body\">Example Request Body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"contactable_type\": \"Prospect\",\n    \"contactable_id\": 185,\n    \"collection_id\": 1,\n    \"custom_field_values\": [\n        {\n            \"id\": 295,\n            \"value\": \"The Matrix\"\n        },\n        {\n            \"id\": 296,\n            \"value\": \"1999-03-31\"\n        }\n    ]\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>Returns a <code>201 Created</code> with the newly created collection item object under <code>data</code>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collection_items"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3509e3e4-ec8e-41ea-a841-ea91ad51eec7","name":"Create Collection Item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contactable_type\": \"Prospect\",\n    \"contactable_id\": 185,\n    \"collection_id\": 1,\n    \"custom_field_values\": [\n        {\n            \"id\": 295,\n            \"value\": \"The Matrix\"\n        },\n        {\n            \"id\": 296,\n            \"value\": \"1999-03-31\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/collection_items"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"4\",\n        \"type\": \"collection_item\",\n        \"attributes\": {\n            \"collection_id\": 1,\n            \"contactable_type\": \"Prospect\",\n            \"contactable_id\": 185,\n            \"custom_field_values\": [\n                {\n                    \"id\": \"240\",\n                    \"custom_field_id\": \"295\",\n                    \"name\": \"Name\",\n                    \"field_type\": \"string\",\n                    \"value\": \"The Matrix\",\n                    \"formatted_value\": \"The Matrix\"\n                },\n                {\n                    \"id\": \"241\",\n                    \"custom_field_id\": \"296\",\n                    \"name\": \"Director\",\n                    \"field_type\": \"string\",\n                    \"value\": \"1999-03-31\",\n                    \"formatted_value\": \"1999-03-31\"\n                }\n            ],\n            \"created_at\": \"2026-05-28T11:07:47.114-07:00\",\n            \"updated_at\": \"2026-05-28T11:07:47.172-07:00\"\n        }\n    }\n}"}],"_postman_id":"ecc3a56f-d97e-42e6-a85c-bd069f5cef05"},{"name":"Update Collection Item","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/collections`, function (err, response) {","   const collection = response.json().data[0];","   pm.globals.set(\"collection_id\", collection.id);","   pm.globals.set(\"custom_field_id\", collection.attributes.custom_fields[0].id);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"034b0901-155e-419f-96ff-ffeeb951c4d7","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"custom_field_values\": [\n        {\n            \"id\": \"{{custom_field_id}}\",\n            \"value\": \"Wachowski Sisters\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/collection_items/:collection_item_id","description":"<p>Updates an existing <strong>Collection item</strong>, by id. Updates an existing collection item's custom field values.</p>\n<p><code>collection_item_id</code> is the Collection item's own id.</p>\n<h3 id=\"path-variables\">Path Variables</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>collection_item_id</code></td>\n<td>The unique identifier of the collection item to update.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"request-body\">Request Body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>custom_field_values</code></td>\n<td>array</td>\n<td>Yes</td>\n<td>Array of custom field value objects to update on the item.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"custom_field_values-object\"><code>custom_field_values</code> Object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>The ID of the custom field.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>The name of the custom field.</td>\n</tr>\n<tr>\n<td><code>value</code></td>\n<td>string</td>\n<td>The new value to set for the custom field.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Returns a <code>200 OK</code> with the updated collection item object under <code>data</code>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collection_items",":collection_item_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{collection_item_id}}","key":"collection_item_id"}]}},"response":[{"id":"dd24e028-6cb2-4944-8667-e0dc1c74f726","name":"Update Collection Item","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"custom_field_values\": [\n        {\n            \"id\": \"296\",\n            \"name\": \"Director\",\n            \"value\": \"Wachowski Sisters\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/collection_items/:collection_item_id","host":["{{host}}"],"path":["v1","collection_items",":collection_item_id"],"variable":[{"key":"collection_item_id","value":"{{collection_item_id}}"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"3\",\n        \"type\": \"collection_item\",\n        \"attributes\": {\n            \"collection_id\": 1,\n            \"contactable_type\": \"Prospect\",\n            \"contactable_id\": 185,\n            \"custom_field_values\": [\n                {\n                    \"id\": \"238\",\n                    \"custom_field_id\": \"295\",\n                    \"name\": \"Name\",\n                    \"field_type\": \"string\",\n                    \"value\": \"The Matrix\",\n                    \"formatted_value\": \"The Matrix\"\n                },\n                {\n                    \"id\": \"239\",\n                    \"custom_field_id\": \"296\",\n                    \"name\": \"Director\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Wachowski Sisters\",\n                    \"formatted_value\": \"Wachowski Sisters\"\n                }\n            ],\n            \"created_at\": \"2026-05-26T16:33:22.565-07:00\",\n            \"updated_at\": \"2026-05-26T16:39:00.126-07:00\"\n        }\n    }\n}"}],"_postman_id":"034b0901-155e-419f-96ff-ffeeb951c4d7"},{"name":"Delete Collection Item","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/collection_items`, function (err, response) {","   pm.globals.set(\"collection_item_id\", response.json().data[0].id);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"f6acc316-b2cf-4aee-950b-b374c52ffd8b","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/collection_items/:collection_item_id","description":"<p>Deletes the Collection Item. It will no longer appear in any future GET responses.</p>\n<p><code>collection_item_id</code> is the Collection Item's own id.</p>\n<h3 id=\"path-variables\">Path Variables</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>collection_item_id</code></td>\n<td>The unique identifier of the collection item to delete.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Returns a <code>200 OK</code> with the deleted collection item's data on success, including:</p>\n<ul>\n<li><p><code>id</code> – The collection item's unique identifier.</p>\n</li>\n<li><p><code>type</code> – Resource type (<code>collection_item</code>).</p>\n</li>\n<li><p><code>attributes</code> – Collection item attributes:</p>\n<ul>\n<li><p><code>collection_id</code> – The ID of the parent collection.</p>\n</li>\n<li><p><code>contactable_type</code> – The type of the associated record.</p>\n</li>\n<li><p><code>contactable_id</code> – The ID of the associated record.</p>\n</li>\n<li><p><code>custom_field_values</code> – Array of custom field values associated with the item.</p>\n</li>\n<li><p><code>created_at</code> – Timestamp when the item was created.</p>\n</li>\n<li><p><code>updated_at</code> – Timestamp when the item was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","collection_items",":collection_item_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{collection_item_id}}","key":"collection_item_id"}]}},"response":[{"id":"ecb896c5-4064-4224-925b-daa590adc4df","name":"Delete Collection Item","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/collection_items/:collection_item_id","host":["{{host}}"],"path":["v1","collection_items",":collection_item_id"],"variable":[{"key":"collection_item_id","value":"{{collection_item_id}}"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"3\",\n        \"type\": \"collection_item\",\n        \"attributes\": {\n            \"collection_id\": 1,\n            \"contactable_type\": \"Prospect\",\n            \"contactable_id\": 185,\n            \"custom_field_values\": [],\n            \"created_at\": \"2026-05-26T16:33:22.565-07:00\",\n            \"updated_at\": \"2026-05-28T11:08:51.118-07:00\"\n        }\n    }\n}"}],"_postman_id":"f6acc316-b2cf-4aee-950b-b374c52ffd8b"}],"id":"d92dfefa-e576-49d2-a286-d6cd91a15b93","description":"<p>A <strong>Collection Item</strong> links a <strong>Collection</strong> to a specific <strong>Matter</strong>, holding the actual field values for that Matter.</p>\n","_postman_id":"d92dfefa-e576-49d2-a286-d6cd91a15b93","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}}],"id":"0ea691ff-3fe4-4ba3-a212-b6fa7ba25d1f","_postman_id":"0ea691ff-3fe4-4ba3-a212-b6fa7ba25d1f","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Contacts","item":[{"name":"Contact Finders","item":[{"name":"Find Contact By Phone Number","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"phone\", response.json().data.find(({attributes}) => attributes.phone).attributes.phone);","});","",""],"type":"text/javascript"}}],"id":"162367bc-1074-417a-9ab8-c77513794945","request":{"method":"GET","header":[],"url":"{{host}}/v1/contacts/find_by_phone/:phone_number","description":"<p>Fuzzy find a specific Contact by Phone Number.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts","find_by_phone",":phone_number"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{phone}}","key":"phone_number"}]}},"response":[{"id":"da2d3f34-5fc4-4227-89d7-ef7f58635491","name":"GET Find Contact By Phone Number","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/contacts/find_by_phone/:phone_number","host":["{{host}}"],"path":["v1","contacts","find_by_phone",":phone_number"],"variable":[{"key":"phone_number","value":"123-123-1234","description":"Any valid phone number. We strip all non digits when matching, and try with and without the leading 1 for US country codes."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"2c39f9a428133a72066b09542476807c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c0c5e1b5-f97e-45e3-b73a-2678a9d63a6a"},{"key":"X-Runtime","value":"0.099506"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"31556\",\n        \"type\": \"contact\",\n        \"attributes\": {\n            \"first_name\": \"test\",\n            \"last_name\": \"test\",\n            \"email\": \"test@nice.com\",\n            \"phone\": \"123-123-1234\",\n            \"created_at\": \"2018-09-06T19:17:17.786-07:00\",\n            \"updated_at\": \"2018-09-10T16:31:58.836-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"162367bc-1074-417a-9ab8-c77513794945"},{"name":"Find Contact By Email Address","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"email\", response.json().data.find(({attributes}) => attributes.email).attributes.email);","});","",""],"type":"text/javascript"}}],"id":"09306116-f5a9-4020-8200-5cbd7de4c2c5","request":{"method":"GET","header":[],"url":"{{host}}/v1/contacts/find_by_email/:email_address","description":"<p>Fuzzy find a specific Contact by Email Address.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts","find_by_email",":email_address"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{email}}","key":"email_address"}]}},"response":[{"id":"49de9398-5c0d-431d-a94e-9660b3c37de0","name":"GET Find Contact By Email Address","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/contacts/find_by_email/:email_address","host":["{{host}}"],"path":["v1","contacts","find_by_email",":email_address"],"variable":[{"key":"email_address","value":"roey@lawmatics.com","description":"A valid email address"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"c7858f17e14dc4760cade86b56c07dfd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8a1ed438-70c6-4a92-829e-e890b0c72ac8"},{"key":"X-Runtime","value":"0.042054"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"225\",\n        \"type\": \"contact\",\n        \"attributes\": {\n            \"first_name\": \"Existing\",\n            \"last_name\": \"Contact\",\n            \"email\": \"roey@lawmatics.com\",\n            \"phone\": \"520-730-1042\",\n            \"created_at\": \"2018-07-17T10:32:50.009-07:00\",\n            \"updated_at\": \"2019-03-28T20:17:41.198-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"09306116-f5a9-4020-8200-5cbd7de4c2c5"},{"name":"Find Contact By Name","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"name\", response.json().data.find(({attributes}) => attributes.first_name).attributes.first_name);","});",""],"type":"text/javascript"}}],"id":"8325ed7b-a8a9-4bac-966b-45c84c289102","request":{"method":"GET","header":[],"url":"{{host}}/v1/contacts/find_by_name/:name","description":"<p>Fuzzy find (case-insensitive) a specific Contact by their Name. You can pass either '{first_name} {last_name}' or simply '{first_name}'</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts","find_by_name",":name"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{name}}","key":"name"}]}},"response":[{"id":"d8221cac-bb10-48fe-a54d-cff836c89907","name":"GET Find Contact By Name","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/contacts/find_by_name/:name","host":["{{host}}"],"path":["v1","contacts","find_by_name",":name"],"variable":[{"key":"name","value":"Roey Cha","description":"We return the closest match. For better results include the PNC Contact's last name."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ce63cb4c164ee6f6333c8966160abce5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bce5d906-1677-4c02-b0d3-30a19dc6a77c"},{"key":"X-Runtime","value":"0.031852"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"76746\",\n        \"type\": \"contact\",\n        \"attributes\": {\n            \"first_name\": \"Roey\",\n            \"last_name\": \"Chasman\",\n            \"email\": null,\n            \"phone\": null,\n            \"created_at\": \"2019-02-04T12:38:11.574-08:00\",\n            \"updated_at\": \"2019-02-04T12:38:11.574-08:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"8325ed7b-a8a9-4bac-966b-45c84c289102"}],"id":"d2fdcf7f-797d-40bc-bcdc-20e077a75f81","description":"<p>The following endpoints are fuzzy find endpoints, returning the first <strong>Contact</strong> which matches the passed values.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Response has a body with an id\", function () {","    const body = pm.response.json()","    pm.expect(body.data).have.property('id');","});"]}}],"_postman_id":"d2fdcf7f-797d-40bc-bcdc-20e077a75f81","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Custom Contact Types","item":[{"name":"Custom Contact Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/custom_contact_types`, function (err, response) {","   pm.globals.set(\"custom_contact_type_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}}],"id":"f3320577-d098-4c80-9e9f-8fe086689c9b","request":{"method":"GET","header":[],"url":"{{host}}/v1/custom_contact_types/:custom_contact_type_id","description":"<p>A specific <strong>Custom Contact Type</strong> by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_contact_types",":custom_contact_type_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_contact_type_id}}","key":"custom_contact_type_id"}]}},"response":[{"id":"10b0e1a4-cdd2-4e24-ac6f-e5799d0c23ee","name":"GET Custom Contact Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/custom_contact_types/:custom_contact_type_id","host":["{{host}}"],"path":["v1","custom_contact_types",":custom_contact_type_id"],"variable":[{"key":"custom_contact_type_id","value":"{{created_custom_contact_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6419d5b290338c46d77912ca86189e6a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ff4ea2b1-56d0-479d-819d-d0daeae226eb"},{"key":"X-Runtime","value":"0.015453"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"188"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"15\",\n        \"type\": \"custom_contact_type\",\n        \"attributes\": {\n            \"name\": \"Judge\",\n            \"created_at\": \"2023-09-21T15:52:24.996-07:00\",\n            \"updated_at\": \"2023-09-21T15:52:24.996-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"f3320577-d098-4c80-9e9f-8fe086689c9b"},{"name":"Custom Contact Types","id":"7acb700e-255c-4dae-93ac-2cf9fd331111","request":{"method":"GET","header":[],"url":"{{host}}/v1/custom_contact_types","description":"<p>A <strong>paginated</strong> list of all <strong>Custom Contact Types</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_contact_types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d2ef2120-0298-49ab-8f36-18a4458752e0","name":"GET Custom Contact Types","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/custom_contact_types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a510a07dbebfd1353e6ae4425a3e4772\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"92092cbb-6e58-4e87-bc35-baaade4232a2"},{"key":"X-Runtime","value":"0.063210"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"1028"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"15\",\n            \"type\": \"custom_contact_type\",\n            \"attributes\": {\n                \"name\": \"Judge\",\n                \"created_at\": \"2023-09-21T15:31:26.656-07:00\",\n                \"updated_at\": \"2023-09-21T15:31:26.656-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"12\",\n            \"type\": \"custom_contact_type\",\n            \"attributes\": {\n                \"name\": \"test2\",\n                \"created_at\": \"2023-09-21T11:00:26.002-07:00\",\n                \"updated_at\": \"2023-09-21T11:00:26.002-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"10\",\n            \"type\": \"custom_contact_type\",\n            \"attributes\": {\n                \"name\": \"test\",\n                \"created_at\": \"2023-09-05T10:50:34.586-07:00\",\n                \"updated_at\": \"2023-09-21T11:00:04.446-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"7\",\n            \"type\": \"custom_contact_type\",\n            \"attributes\": {\n                \"name\": \"Cool Person\",\n                \"created_at\": \"2023-08-10T21:13:53.027-07:00\",\n                \"updated_at\": \"2023-08-10T21:13:53.027-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"custom_contact_type\",\n            \"attributes\": {\n                \"name\": \"Client\",\n                \"created_at\": \"2023-07-21T14:56:35.146-07:00\",\n                \"updated_at\": \"2023-07-21T14:56:35.146-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 5\n    },\n    \"links\": {\n        \"self\": \"/v1/custom_contact_types?page=1\"\n    }\n}"},{"id":"fb61ddc3-3299-4ac1-bd13-130eb6989ea3","name":"GET Filtered Custom Contact Types","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/custom_contact_types?filter_field=name&filter_value=Judge","host":["{{host}}"],"path":["v1","custom_contact_types"],"query":[{"key":"filter_field","value":"name"},{"key":"filter_value","value":"Judge"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ddfc113837780bc8ed6d0071897d2f36\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"3e364b85-4261-4e44-9d6d-5093077457b5"},{"key":"X-Runtime","value":"0.034148"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"304"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"15\",\n            \"type\": \"custom_contact_type\",\n            \"attributes\": {\n                \"name\": \"Judge\",\n                \"created_at\": \"2023-09-21T15:31:26.656-07:00\",\n                \"updated_at\": \"2023-09-21T15:31:26.656-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 1\n    },\n    \"links\": {\n        \"self\": \"/v1/custom_contact_types?page=1\"\n    }\n}"}],"_postman_id":"7acb700e-255c-4dae-93ac-2cf9fd331111"},{"name":"Create Custom Contact Type","id":"b8591aab-f77b-4abc-8863-70718d9172c3","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Judge-63b549b0-fb9e-4421-9128-4802067b57ea\"\n}"},"url":"{{host}}/v1/custom_contact_types","description":"<p>Create a new <strong>Custom Contact Type</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Vendor\"</code></td>\n<td>Must be unique per firm (case-sensitive; <code>\"vendor\"</code> and <code>\"Vendor\"</code> can coexist).</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Leading/trailing whitespace is automatically trimmed (internal whitespace, e.g. the space in \"Additional Contact\", is left untouched)</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_contact_types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"fec81dcd-07cf-4988-a768-024dcc327ff4","name":"POST Create Custom Contact Type","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Judge\"\n}"},"url":"{{host}}/v1/custom_contact_types"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a3ffdc119e1a583e3cd88108cd6ec6f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"085f3447-7a67-4b90-8009-193f04fca3c6"},{"key":"X-Runtime","value":"0.082289"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"188"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"15\",\n        \"type\": \"custom_contact_type\",\n        \"attributes\": {\n            \"name\": \"Judge\",\n            \"created_at\": \"2023-09-21T15:49:44.773-07:00\",\n            \"updated_at\": \"2023-09-21T15:49:44.773-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"b8591aab-f77b-4abc-8863-70718d9172c3"},{"name":"Update Custom Contact Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/custom_contact_types`, function (err, response) {","   pm.globals.set(\"custom_contact_type_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}}],"id":"027def0e-a20f-4cf9-ad9d-07c29c2fdbe5","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pudge\"\n}"},"url":"{{host}}/v1/custom_contact_types/:contact_id","description":"<p>Update an existing <strong>Custom Contact Type</strong> by id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_contact_types",":contact_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_contact_type_id}}","key":"contact_id"}]}},"response":[{"id":"d36d5150-f90f-4c9d-9359-480e20083fc7","name":"PUT/PATCH Update Custom Contact Type","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pudge\"\n}"},"url":{"raw":"{{host}}/v1/custom_contact_types/:contact_id","host":["{{host}}"],"path":["v1","custom_contact_types",":contact_id"],"variable":[{"key":"contact_id","value":"{{created_custom_contact_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"3b69e485f229cbc308ff8201e89906a5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5f0a558e-d6e9-42bc-ae9e-1eaa0f55f8ce"},{"key":"X-Runtime","value":"0.568729"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"188"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"15\",\n        \"type\": \"custom_contact_type\",\n        \"attributes\": {\n            \"name\": \"Pudge\",\n            \"created_at\": \"2023-09-21T11:00:26.002-07:00\",\n            \"updated_at\": \"2023-09-21T15:43:39.161-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"027def0e-a20f-4cf9-ad9d-07c29c2fdbe5"},{"name":"Delete Custom Contact Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/custom_contact_types`, function (err, response) {","   pm.globals.set(\"custom_contact_type_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}}],"id":"9368c3cb-a14d-4cd1-b5eb-2431db69744c","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{host}}/v1/custom_contact_types/:custom_contact_type_id","description":"<p>Delete an existing <strong>Custom Contact Type</strong> by id. It will no longer appear in any future GET responses.</p>\n<p><strong>Note:</strong> Contacts currently using this type are not affected or reassigned. They'll continue referencing the deleted value.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_contact_types",":custom_contact_type_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_contact_type_id}}","key":"custom_contact_type_id"}]}},"response":[{"id":"02d9abac-ef0c-4a36-814f-3bd75cb51a62","name":"DELETE Delete Custom Contact Type","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{host}}/v1/custom_contact_types/:custom_contact_type_id","host":["{{host}}"],"path":["v1","custom_contact_types",":custom_contact_type_id"],"variable":[{"key":"custom_contact_type_id","value":"{{created_custom_contact_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6d3195f2011612866c61a6e23836ae08\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ca392d30-bdbb-425c-90fd-ca4c6232ab26"},{"key":"X-Runtime","value":"0.187469"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"188"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"15\",\n        \"type\": \"custom_contact_type\",\n        \"attributes\": {\n            \"name\": \"Pudge\",\n            \"created_at\": \"2023-09-21T15:49:44.773-07:00\",\n            \"updated_at\": \"2023-09-21T15:52:02.257-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"9368c3cb-a14d-4cd1-b5eb-2431db69744c"}],"id":"71b6883e-efef-4f56-9d94-dd64b3e088a8","description":"<p>A <strong>Custom Contact Type</strong> is a user defined type to assign to a contact.</p>\n","_postman_id":"71b6883e-efef-4f56-9d94-dd64b3e088a8","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Contact","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"contact_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"8ddd5872-a0e8-473d-b585-2d2ae2ab6900","request":{"method":"GET","header":[],"url":"{{host}}/v1/contacts/:contact_id","description":"<p>A specific <strong>Contact</strong> by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts",":contact_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{contact_id}}","key":"contact_id"}]}},"response":[{"id":"7675dd23-9a83-4d25-9fbe-28eb4da50a72","name":"GET Contact","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/contacts/25?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","contacts","25"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 01:17:54 GMT","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"9a5e3ed91e6e5d00d45387d62cceadcb\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Set-Cookie","value":"AWSALB=Vp1aULYsA4a0Cy5Q92e5QZUyrcKtueIGcMD8pP6JHiVmEJWApIFr/xsE7Hdf+ZawAtkc6oI1TmqC5p3ECU0Sk9GeSOc6lhHT7NVpYg8bHuCq/FZzbYaIPyWhcgps; Expires=Wed, 24 Oct 2018 01:17:54 GMT; Path=/","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"e5c0b032-6c5c-47f9-aa3e-4c64cb95e980","description":"Custom header"},{"key":"X-Runtime","value":"0.024865","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"25\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Gregor\",\"last_name\":\"Clegane\",\"email\":\"gregor@clegane.com\",\"email_address\":\"gregor@clegane.com\",\"phone\":null,\"phone_number\":null,\"birthdate\":null,\"name_prefix\":null,\"middle_name\":null,\"name_suffix\":null,\"informal_name\":null,\"employer\":null,\"occupation\":null,\"citizenship\":null,\"bio\":null,\"title\":null,\"hobbies\":null,\"social_security\":null,\"age\":null,\"driver_license\":null,\"gender\":null,\"marital_status\":null,\"timezone\":null,\"tracking_source_id\":null,\"date_of_last_contact\":\"2018-03-07T13:38:58.288-08:00\",\"days_since_last_contact\":223,\"photo_url\":\"https://lm.lawmatics.com/attachments/0f060d4bbd3d8a2488c3f0b3352ce3ec0c9b6f3c/store/a49240eaa2d0bb7355b82b010b07a2c8f72c4d514b70616198d522266d48/photo\",\"custom_fields\":[],\"contact_type\":\"PNC\",\"created_at\":\"2018-03-07T13:38:58.288-08:00\",\"updated_at\":\"2018-03-13T08:09:50.696-07:00\"},\"relationships\":{\"prospects\":{\"data\":[{\"id\":\"21\",\"type\":\"prospect\"}]},\"created_by\":{\"data\":{\"id\":\"15\",\"type\":\"user\"}},\"client\":{\"data\":null},\"company\":{\"data\":null}}}}"}],"_postman_id":"8ddd5872-a0e8-473d-b585-2d2ae2ab6900"},{"name":"Contacts","event":[{"listen":"test","script":{"exec":["pm.test(\"The response contains the meta object\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData.meta).to.exist.and.to.be.an('object');","});","","pm.test(\"The response contains the links object with self, next fields\", function () {","    const responseData = pm.response.json();","","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.links).to.exist.and.to.be.an('object');","    pm.expect(responseData.links.self).to.exist.and.to.be.a('string');","    pm.expect(responseData.links.next).to.exist.and.to.be.a('string');","});","",""],"type":"text/javascript"}}],"id":"88a6c91d-6cfb-426a-ba96-f91d9cc63575","request":{"method":"GET","header":[],"url":"{{host}}/v1/contacts","description":"<p>A <strong>paginated</strong> list of all <strong>Contacts</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>first_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>middle_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>name_prefix</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>name_suffix</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>informal_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>bio</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>birthdate</code></td>\n<td>date</td>\n<td></td>\n</tr>\n<tr>\n<td><code>gender</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>marital_status</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>citizenship</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>driver_license</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>social_security</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>employer</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>occupation</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>timezone</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>hobbies</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>unsubscribed</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>custom_contact_type_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>matter_status</code></td>\n<td>integer</td>\n<td>Only the raw integer works here:  <br /><code>no_matters</code> = <code>0</code>  <br /><code>hired</code> = <code>1</code>  <br /><code>lost</code> = <code>2</code>  <br /><code>pnc</code> = <code>3</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6b10be6d-4554-405b-9c3d-aa3017e38d41","name":"GET Contacts","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/contacts?page=6","protocol":"https","host":["api","lawmatics","com"],"path":["v1","contacts"],"query":[{"key":"page","value":"6"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"c631d7df222996f8c0e3e2a1ce126a4d\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"4518a758-bd86-4d3a-bee1-3e51e2b2e0c2","description":"Custom header"},{"key":"X-Runtime","value":"0.162715","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"id\":\"136\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Linda\",\"last_name\":\"Baker\",\"email\":\"Linda35@gmail.com\",\"created_at\":\"2018-03-20T15:12:57.664-07:00\",\"updated_at\":\"2018-07-16T15:12:57.669-07:00\"},\"relationships\":{}},{\"id\":\"135\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"James\",\"last_name\":\"Lee\",\"email\":\"James34@gmail.com\",\"created_at\":\"2018-04-18T15:12:57.598-07:00\",\"updated_at\":\"2018-07-16T15:12:57.605-07:00\"},\"relationships\":{}},{\"id\":\"134\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Barbara\",\"last_name\":\"Martiniez\",\"email\":\"Barbara33@gmail.com\",\"created_at\":\"2018-06-21T15:12:57.524-07:00\",\"updated_at\":\"2018-07-16T15:12:57.529-07:00\"},\"relationships\":{}},{\"id\":\"133\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Charles\",\"last_name\":\"Williams\",\"email\":\"Charles32@gmail.com\",\"created_at\":\"2018-03-19T15:12:57.445-07:00\",\"updated_at\":\"2018-07-16T15:12:57.450-07:00\"},\"relationships\":{}},{\"id\":\"132\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Joseph\",\"last_name\":\"Moore\",\"email\":\"Joseph31@gmail.com\",\"created_at\":\"2018-06-28T15:12:57.380-07:00\",\"updated_at\":\"2018-07-16T15:12:57.384-07:00\"},\"relationships\":{}},{\"id\":\"131\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Joseph\",\"last_name\":\"Rodriguez\",\"email\":\"Joseph30@gmail.com\",\"created_at\":\"2018-06-10T15:12:57.310-07:00\",\"updated_at\":\"2018-07-16T15:12:57.317-07:00\"},\"relationships\":{}},{\"id\":\"130\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Susan\",\"last_name\":\"Smith\",\"email\":\"Susan29@gmail.com\",\"created_at\":\"2018-04-16T15:12:57.232-07:00\",\"updated_at\":\"2018-07-16T15:12:57.238-07:00\"},\"relationships\":{}},{\"id\":\"129\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Richard\",\"last_name\":\"Miller\",\"email\":\"Richard28@gmail.com\",\"created_at\":\"2018-06-23T15:12:57.164-07:00\",\"updated_at\":\"2018-07-16T15:12:57.169-07:00\"},\"relationships\":{}},{\"id\":\"128\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Barbara\",\"last_name\":\"Moore\",\"email\":\"Barbara27@gmail.com\",\"created_at\":\"2018-05-01T15:12:57.102-07:00\",\"updated_at\":\"2018-07-16T15:12:57.107-07:00\"},\"relationships\":{}},{\"id\":\"127\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"William\",\"last_name\":\"Walker\",\"email\":\"William26@gmail.com\",\"created_at\":\"2018-04-04T15:12:57.039-07:00\",\"updated_at\":\"2018-07-16T15:12:57.044-07:00\"},\"relationships\":{}},{\"id\":\"126\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Patricia\",\"last_name\":\"Jones\",\"email\":\"Patricia25@gmail.com\",\"created_at\":\"2018-02-14T14:12:56.978-08:00\",\"updated_at\":\"2018-07-16T15:12:56.983-07:00\"},\"relationships\":{}},{\"id\":\"125\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Sarah\",\"last_name\":\"Wilson\",\"email\":\"Sarah24@gmail.com\",\"created_at\":\"2018-04-09T15:12:56.918-07:00\",\"updated_at\":\"2018-07-16T15:12:56.923-07:00\"},\"relationships\":{}},{\"id\":\"124\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Susan\",\"last_name\":\"Davis\",\"email\":\"Susan23@gmail.com\",\"created_at\":\"2018-01-26T14:12:56.855-08:00\",\"updated_at\":\"2018-07-16T15:12:56.860-07:00\"},\"relationships\":{}},{\"id\":\"123\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Richard\",\"last_name\":\"Taylor\",\"email\":\"Richard22@gmail.com\",\"created_at\":\"2018-05-02T15:12:56.790-07:00\",\"updated_at\":\"2018-07-16T15:12:56.796-07:00\"},\"relationships\":{}},{\"id\":\"122\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Karen\",\"last_name\":\"Lee\",\"email\":\"Karen21@gmail.com\",\"created_at\":\"2018-07-04T15:12:56.724-07:00\",\"updated_at\":\"2018-07-16T15:12:56.729-07:00\"},\"relationships\":{}},{\"id\":\"121\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"David\",\"last_name\":\"Martiniez\",\"email\":\"David20@gmail.com\",\"created_at\":\"2018-04-22T15:12:56.658-07:00\",\"updated_at\":\"2018-07-16T15:12:56.664-07:00\"},\"relationships\":{}},{\"id\":\"120\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Patricia\",\"last_name\":\"Martiniez\",\"email\":\"Patricia19@gmail.com\",\"created_at\":\"2018-01-28T14:12:56.585-08:00\",\"updated_at\":\"2018-07-16T15:12:56.591-07:00\"},\"relationships\":{}},{\"id\":\"119\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Susan\",\"last_name\":\"Lee\",\"email\":\"Susan18@gmail.com\",\"created_at\":\"2018-05-18T15:12:56.504-07:00\",\"updated_at\":\"2018-07-16T15:12:56.509-07:00\"},\"relationships\":{}},{\"id\":\"118\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Joseph\",\"last_name\":\"Lee\",\"email\":\"Joseph17@gmail.com\",\"created_at\":\"2018-02-01T14:12:56.442-08:00\",\"updated_at\":\"2018-07-16T15:12:56.446-07:00\"},\"relationships\":{}},{\"id\":\"117\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Joseph\",\"last_name\":\"Baker\",\"email\":\"Joseph16@gmail.com\",\"created_at\":\"2018-02-19T14:12:56.384-08:00\",\"updated_at\":\"2018-07-16T15:12:56.388-07:00\"},\"relationships\":{}},{\"id\":\"116\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Lisa\",\"last_name\":\"Johnson\",\"email\":\"Lisa15@gmail.com\",\"created_at\":\"2018-04-08T15:12:56.327-07:00\",\"updated_at\":\"2018-07-16T15:12:56.331-07:00\"},\"relationships\":{}},{\"id\":\"115\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Sarah\",\"last_name\":\"Brown\",\"email\":\"Sarah14@gmail.com\",\"created_at\":\"2018-06-06T15:12:56.269-07:00\",\"updated_at\":\"2018-07-16T15:12:56.273-07:00\"},\"relationships\":{}},{\"id\":\"114\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Robert\",\"last_name\":\"Jackson\",\"email\":\"Robert13@gmail.com\",\"created_at\":\"2018-05-08T15:12:56.212-07:00\",\"updated_at\":\"2018-07-16T15:12:56.216-07:00\"},\"relationships\":{}},{\"id\":\"113\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Sarah\",\"last_name\":\"Taylor\",\"email\":\"Sarah12@gmail.com\",\"created_at\":\"2018-04-03T15:12:56.151-07:00\",\"updated_at\":\"2018-07-16T15:12:56.156-07:00\"},\"relationships\":{}},{\"id\":\"112\",\"type\":\"contact\",\"attributes\":{\"first_name\":\"Lisa\",\"last_name\":\"Johnson\",\"email\":\"Lisa11@gmail.com\",\"created_at\":\"2018-03-01T14:12:56.087-08:00\",\"updated_at\":\"2018-07-16T15:12:56.092-07:00\"},\"relationships\":{}}],\"meta\":{\"total_pages\":11,\"limit_per_page\":25,\"total_entries\":261},\"links\":{\"self\":\"/v1/contact?page=6\",\"next\":\"/v1/contact?page=7\",\"prev\":\"/v1/contact?page=5\"}}"}],"_postman_id":"88a6c91d-6cfb-426a-ba96-f91d9cc63575"},{"name":"Create Contact","id":"8f36b790-06db-4348-bd3c-3a271a132908","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"Example\",\n\t\"email\": \"fake@lawmatics.com\",\n\t\"phone\": \"123-123-1234\",\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Example Note\",\n\t\t\t\"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\"\n\t\t}\n\t]\n}"},"url":"{{host}}/v1/contacts","description":"<p>Create a new <strong>Contact</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>first_name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Bob\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Loblaw\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>middle_name</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"J\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>name_prefix</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Mr.\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>name_suffix</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Jr.\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>informal_name</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Bobby\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Esq.\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>bio</code></td>\n<td>text</td>\n<td>No</td>\n<td><code>\"Experienced litigator focused on family law.\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>birthdate</code></td>\n<td>date</td>\n<td>No</td>\n<td><code>\"1985-06-15\"</code></td>\n<td>ISO 8601, <code>yyyy-mm-dd</code>, or<code>mm/dd/yyyy</code></td>\n</tr>\n<tr>\n<td><code>gender</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Male\"</code></td>\n<td>In-app, this is a dropdown limited to Male/Female (or a longer list including Non Binary, Agender, Gender Fluid, Pangender, Two Spirit, Intersex, Other)</td>\n</tr>\n<tr>\n<td><code>marital_status</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Married\"</code></td>\n<td>In-app, this is a dropdown limited to dropdown limited to Single, Married, Divorced, Separated, Widowed, Domestic Partnership</td>\n</tr>\n<tr>\n<td><code>citizenship</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"USA\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>driver_license</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"D1234567\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>social_security</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"123-45-6789\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>employer</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Acme Corp\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>occupation</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Engineer\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>timezone</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"America/Los_Angeles\"</code></td>\n<td>Should be a standard tz-database identifier</td>\n</tr>\n<tr>\n<td><code>hobbies</code></td>\n<td>text</td>\n<td>No</td>\n<td><code>\"Golf, reading\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>unsubscribed</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>false</code></td>\n<td>Defaults to <code>false</code></td>\n</tr>\n<tr>\n<td><code>custom_contact_type_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>4</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td>Allows attributing creation to another user</td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime  <br />ISO 8601 with milliseconds and a UTC offset</td>\n<td>No</td>\n<td><code>\"2023-01-01T00:00:00.000-08:00\"</code></td>\n<td>Allows backdating</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Linked/Virtual Fields</strong> — these aren't real Contact columns; each one creates or updates a separate linked record:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>street</code> / <code>street2</code> / <code>city</code> / <code>state</code> / <code>zipcode</code> / <code>country</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"1234 Fake Street\"</code></td>\n<td>Creates the Contact's primary Address (label <code>Primary</code>)</td>\n</tr>\n<tr>\n<td><code>email</code> or <code>email_address</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"bob@example.com\"</code></td>\n<td>Creates a linked Email Address record</td>\n</tr>\n<tr>\n<td><code>phone</code> or <code>phone_number</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"123-456-7890\"</code></td>\n<td>Creates a linked Phone Number record</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td>array of strings</td>\n<td>No</td>\n<td><code>[\"VIP\", \"Referral\"]</code></td>\n<td>Tag names (matched to existing tags or created)</td>\n</tr>\n<tr>\n<td><code>custom_fields</code></td>\n<td>array of objects</td>\n<td>No</td>\n<td><code>[{ \"id\": \"4788\", \"value\": \"Contact String\" }]</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>notes</code></td>\n<td>array of objects</td>\n<td>No</td>\n<td><code>[{ \"name\": \"Intake Note\", \"body\": \"Met at conference.\" }]</code></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> If your firm has email-matching enabled and the <code>email</code> you submit matches an existing Contact, this endpoint <strong>updates</strong> that Contact instead of creating a new one, and returns <code>200</code> instead of <code>201</code>. </p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> If you don't pass a <code>fields</code> query param, the response only includes the fields you submitted (plus <code>created_at</code>/<code>updated_at</code>), not the full default field set. </p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> An invalid <code>birthdate</code> value returns <code>409</code>, not <code>422</code>.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"fd42e7c5-2e3a-472b-b2df-cc04f79b418d","name":"POST Create Contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"Example\",\n\t\"email\": \"roey@lawmatics.com\",\n\t\"phone\": \"123-123-1234\",\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Example Note\",\n\t\t\t\"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\"\n\t\t}\n\t],\n\t\"custom_fields\": [\n\t\t{\n\t\t\t\"id\": \"4788\",\n\t\t\t\"value\": \"Contact String\"\n\t\t}\n\t]\n}"},"url":{"raw":"{{host}}/v1/contacts?fields=first_name,last_name,email,phone,notes,custom_fields","host":["{{host}}"],"path":["v1","contacts"],"query":[{"key":"fields","value":"first_name,last_name,email,phone,notes,custom_fields"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b28049e487612c8f29de21b3e5cf2de7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dc49466f-3f25-41d9-b6de-1a51eaea7c50"},{"key":"X-Runtime","value":"3.136885"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"161257\",\n        \"type\": \"contact\",\n        \"attributes\": {\n            \"first_name\": \"Lawmatics\",\n            \"last_name\": \"Example\",\n            \"email\": \"roey@lawmatics.com\",\n            \"phone\": \"123-123-1234\",\n            \"custom_fields\": [\n                {\n                    \"id\": 4788,\n                    \"name\": \"text\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Contact String\",\n                    \"formatted_value\": \"Contact String\"\n                },\n                {\n                    \"id\": 4788,\n                    \"name\": \"text\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Contact String\",\n                    \"formatted_value\": \"Contact String\"\n                }\n            ]\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"8f36b790-06db-4348-bd3c-3a271a132908"},{"name":"Update Contact","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"contact_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"4d2a519f-565a-4a0f-96f8-fc980072405f","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"ExampleChanged\",\n\t\"email\": \"roey+changed@lawmatics.com\",\n    \"phone\": \"555-555-5555\",\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Cool Note\",\n\t\t\t\"body\": \"This is a long form sweet new note\"\n\t\t}\n\t]\n}"},"url":"{{host}}/v1/contacts/:contact_id","description":"<p>Update an existing <strong>Contact</strong> by ID.</p>\n<blockquote>\n<p><strong>Note:</strong> Passing Custom Field id and value, will set the custom field value on the <strong>Contact</strong>, and overwrite any existing value. Passing null as the value will clear it out.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts",":contact_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{contact_id}}","key":"contact_id"}]}},"response":[{"id":"cab5c31e-6dae-46f3-90bc-aa20219d2604","name":"PUT/PATCH Update Contact","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"ExampleChanged\",\n\t\"email\": \"roey+changed@lawmatics.com\",\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Cool Note\",\n\t\t\t\"body\": \"This is a long form sweet new note\"\n\t\t}\n\t],\n\t\"custom_fields\": [\n\t\t{\n\t\t\t\"id\": \"4788\",\n\t\t\t\"value\": \"Changed String\"\n\t\t}\n\t]\n}"},"url":{"raw":"{{host}}/v1/contacts/:contact_id?fields=first_name,last_name,email,custom_fields","host":["{{host}}"],"path":["v1","contacts",":contact_id"],"query":[{"key":"fields","value":"first_name,last_name,email,custom_fields"}],"variable":[{"key":"contact_id","value":"{{created_contact_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"afbb91d5edf97a58abe75580aa43791e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c3957d17-d6f8-4d01-b61f-88014f8db63b"},{"key":"X-Runtime","value":"0.129751"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"161260\",\n        \"type\": \"contact\",\n        \"attributes\": {\n            \"first_name\": \"Lawmatics\",\n            \"last_name\": \"ExampleChanged\",\n            \"email\": \"roey+changed@lawmatics.com\",\n            \"custom_fields\": [\n                {\n                    \"id\": 4788,\n                    \"name\": \"text\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Changed String\",\n                    \"formatted_value\": \"Changed String\"\n                },\n                {\n                    \"id\": 4788,\n                    \"name\": \"text\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Changed String\",\n                    \"formatted_value\": \"Changed String\"\n                }\n            ]\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"4d2a519f-565a-4a0f-96f8-fc980072405f"},{"name":"Delete Contact","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"contact_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"d0a361ff-8f76-47ae-bffd-7968daa0db04","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{host}}/v1/contacts/:contact_id","description":"<p>Deletes the <strong>Contact</strong>, by id. It will no longer appear in any future GET responses.</p>\n<p><strong>Warning:</strong> This also deletes every Matter linked to this <strong>Contact</strong>, along with their <strong>Notes</strong>, <strong>Tasks</strong>, <strong>Events</strong>, and <strong>Signatures</strong>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","contacts",":contact_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{contact_id}}","key":"contact_id"}]}},"response":[{"id":"756b3edb-2deb-4bdf-9eae-d3140aaf2a8b","name":"DELETE Delete Contact","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{host}}/v1/contacts/:contact_id","host":["{{host}}"],"path":["v1","contacts",":contact_id"],"variable":[{"key":"contact_id","value":"{{created_contact_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6130edb8504e2ebcb1d36942b89efd93\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"341ca96c-65d4-4265-bbbf-180e35799530"},{"key":"X-Runtime","value":"2.989432"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"161260\",\n        \"type\": \"contact\",\n        \"attributes\": {\n            \"first_name\": \"Lawmatics\",\n            \"last_name\": \"ExampleChanged\",\n            \"email\": null,\n            \"phone\": null,\n            \"created_at\": \"2021-08-27T15:36:02.920-07:00\",\n            \"updated_at\": \"2021-08-27T15:40:57.045-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"d0a361ff-8f76-47ae-bffd-7968daa0db04"}],"id":"684ac6d2-d46d-4cb6-a3ed-d6633a819391","description":"<p>A <strong>Contact</strong> can be thought of as a collection of data about a \"Person\".</p>\n<p>A <strong>Contact</strong> record is the base for all <em>Contactables</em> (<strong>Matters</strong>, <strong>Clients</strong>, and <strong>Companies</strong>).</p>\n<p>Since <strong>Contact</strong> data reflects a person, and is a base record, it is shared via any <em>Contactable</em> associated with the <strong>Contact</strong>.</p>\n<hr />\n<p>For Example:</p>\n<p>You begin talks with an existing client into opening a new case. In Lawmatics, you would create a <strong>Matter</strong> selecting this <strong>Contact</strong> as the base.</p>\n<p>If you update the email address on this <strong>Matter</strong>. It actually modifies the <strong>Matter</strong>'s associated <strong>Contact</strong>. Thus, the updated email address, will be shown when you view the <strong>Contact</strong> directly. It will also show on any <strong>Client</strong>, <strong>Company</strong> with it as it's Primary <strong>Contact</strong>, or any other hired <strong>Matter</strong>.</p>\n","_postman_id":"684ac6d2-d46d-4cb6-a3ed-d6633a819391","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Companies","item":[{"name":"Company Finders","item":[{"name":"Find Company By Phone Number","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"phone_number\", response.json().data.find(({attributes}) => attributes.phone_number).attributes.phone_number","   .replace('.', '')","   );","});","",""],"type":"text/javascript"}}],"id":"70d27802-c519-4292-9465-f053250a16c4","request":{"method":"GET","header":[],"url":"{{host}}/v1/companies/find_by_phone/:phone_number","description":"<p>Fuzzy find a specific <strong>Company</strong> by <strong>Phone Number</strong>. Will look for the <strong>Company</strong> <strong>Phone Number</strong>, then fallback to search though associated <strong>Contacts</strong>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies","find_by_phone",":phone_number"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Any valid phone number. We strip all non digits when matching, and try with and without the leading 1 for US country codes.</p>\n","type":"text/plain"},"type":"any","value":"{{phone_number}}","key":"phone_number"}]}},"response":[{"id":"24fb6620-36bd-412b-a388-8c7f4ab7cea2","name":"GET Find Company By Phone Number","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/companies/find_by_phone/:phone_number","host":["{{host}}"],"path":["v1","companies","find_by_phone",":phone_number"],"variable":[{"key":"phone_number","value":"707-986-0756","description":"Any valid phone number. We strip all non digits when matching, and try with and without the leading 1 for US country codes."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"0096fb0bd4bca933b7f3bd8fac84ab0c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8b9ce38d-cd7c-4d46-b9d7-8e285f975285"},{"key":"X-Runtime","value":"0.753325"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"421"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"company\",\n        \"attributes\": {\n            \"name\": \"Lawmatics\",\n            \"email\": \"roey+lame@lawmatics.com\",\n            \"address\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"addresses\": [],\n            \"phone_number\": \"(707) 986-0756\",\n            \"created_at\": \"2023-07-24T17:49:13.738-07:00\",\n            \"updated_at\": \"2023-07-28T15:00:40.321-07:00\"\n        },\n        \"relationships\": {\n            \"addresses\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": []\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"70d27802-c519-4292-9465-f053250a16c4"},{"name":"Find Company By Email Address","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"email_address\", response.json().data.find(({attributes}) => attributes.email).attributes.email);","});","",""],"type":"text/javascript"}}],"id":"eae985be-04ca-4401-b158-f02e65c0dcdc","request":{"method":"GET","header":[],"url":"{{host}}/v1/companies/find_by_email/:email_address","description":"<p>Fuzzy find a specific <strong>Company</strong> by <strong>Email Address</strong>. Will look for the <strong>Company</strong> <strong>Email Address</strong>, then fallback to search though associated <strong>Contacts</strong>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies","find_by_email",":email_address"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>A valid email address</p>\n","type":"text/plain"},"type":"any","value":"{{email_address}}","key":"email_address"}]}},"response":[{"id":"e07969fd-fa79-4dde-a941-6825f75b3dd4","name":"GET Find Company By Email Address","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/companies/find_by_email/:email_address","host":["{{host}}"],"path":["v1","companies","find_by_email",":email_address"],"variable":[{"key":"email_address","value":"help@lawmatics.com","description":"A valid email address"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"27af6a35438707e6d34a8ff314bf8561\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0e5d92be-c2e3-49d9-a818-3ebbbee00dff"},{"key":"X-Runtime","value":"0.729296"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"885"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2\",\n        \"type\": \"company\",\n        \"attributes\": {\n            \"name\": \"Nike\",\n            \"email\": \"roey+lame@lawmatics.com\",\n            \"address\": \"4250 Executive Square, Suite 101, La Jolla, CA 92130, United States\",\n            \"city\": \"La Jolla\",\n            \"state\": \"CA\",\n            \"zipcode\": \"92130\",\n            \"country\": \"United States\",\n            \"addresses\": [\n                {\n                    \"id\": 2,\n                    \"street\": \"4250 Executive Square\",\n                    \"street2\": \"Suite 101\",\n                    \"city\": \"La Jolla\",\n                    \"state\": \"CA\",\n                    \"zipcode\": \"92130\",\n                    \"country\": \"United States\",\n                    \"created_at\": \"2023-08-23T16:16:49.043-07:00\",\n                    \"updated_at\": \"2023-08-23T16:16:49.043-07:00\",\n                    \"label\": \"Primary\",\n                    \"addressable_type\": \"Company\",\n                    \"addressable_id\": 2,\n                    \"firm_id\": 2,\n                    \"deleted_at\": null\n                }\n            ],\n            \"phone_number\": \"(707) 986-0756\",\n            \"created_at\": \"2023-08-23T16:16:48.974-07:00\",\n            \"updated_at\": \"2023-09-15T15:14:25.499-07:00\"\n        },\n        \"relationships\": {\n            \"addresses\": {\n                \"data\": [\n                    {\n                        \"id\": \"2\",\n                        \"type\": \"address\"\n                    }\n                ]\n            },\n            \"emails\": {\n                \"data\": [\n                    {\n                        \"id\": \"3\",\n                        \"type\": \"email_address\"\n                    }\n                ]\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"eae985be-04ca-4401-b158-f02e65c0dcdc"},{"name":"Find Company By Name","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"name\", response.json().data.find(({attributes}) => attributes.name).attributes.name);","});","",""],"type":"text/javascript"}}],"id":"584bb8f2-9683-48b8-9753-b01bbbc86fff","request":{"method":"GET","header":[],"url":"{{host}}/v1/companies/find_by_name/:name","description":"<p>Fuzzy find (case-insensitive) a specific <strong>Company</strong> by Name</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies","find_by_name",":name"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>We return the closest match.</p>\n","type":"text/plain"},"type":"any","value":"{{name}}","key":"name"}]}},"response":[{"id":"04f2a8e5-35e8-4ee7-a8af-78dc3d6ad7ac","name":"GET Find Company By Name","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/companies/find_by_name/:name","host":["{{host}}"],"path":["v1","companies","find_by_name",":name"],"variable":[{"key":"name","value":"Nike","description":"We return the closest match."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"27af6a35438707e6d34a8ff314bf8561\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a63a5803-fa8e-4919-9c86-8eec95ff4670"},{"key":"X-Runtime","value":"0.137311"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"885"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2\",\n        \"type\": \"company\",\n        \"attributes\": {\n            \"name\": \"Nike\",\n            \"email\": \"roey+lame@lawmatics.com\",\n            \"address\": \"4250 Executive Square, Suite 101, La Jolla, CA 92130, United States\",\n            \"city\": \"La Jolla\",\n            \"state\": \"CA\",\n            \"zipcode\": \"92130\",\n            \"country\": \"United States\",\n            \"addresses\": [\n                {\n                    \"id\": 2,\n                    \"street\": \"4250 Executive Square\",\n                    \"street2\": \"Suite 101\",\n                    \"city\": \"La Jolla\",\n                    \"state\": \"CA\",\n                    \"zipcode\": \"92130\",\n                    \"country\": \"United States\",\n                    \"created_at\": \"2023-08-23T16:16:49.043-07:00\",\n                    \"updated_at\": \"2023-08-23T16:16:49.043-07:00\",\n                    \"label\": \"Primary\",\n                    \"addressable_type\": \"Company\",\n                    \"addressable_id\": 2,\n                    \"firm_id\": 2,\n                    \"deleted_at\": null\n                }\n            ],\n            \"phone_number\": \"(707) 986-0756\",\n            \"created_at\": \"2023-08-23T16:16:48.974-07:00\",\n            \"updated_at\": \"2023-09-15T15:14:25.499-07:00\"\n        },\n        \"relationships\": {\n            \"addresses\": {\n                \"data\": [\n                    {\n                        \"id\": \"2\",\n                        \"type\": \"address\"\n                    }\n                ]\n            },\n            \"emails\": {\n                \"data\": [\n                    {\n                        \"id\": \"3\",\n                        \"type\": \"email_address\"\n                    }\n                ]\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"584bb8f2-9683-48b8-9753-b01bbbc86fff"}],"id":"df01ed0c-a042-4718-8197-fcde8aec9e3f","description":"<p>The following endpoints are fuzzy find endpoints, returning the first <strong>Contact</strong> which matches the passed values.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Response has a body with an id\", function () {","    const body = pm.response.json()","    pm.expect(body.data).have.property('id');","});"]}}],"_postman_id":"df01ed0c-a042-4718-8197-fcde8aec9e3f","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Company","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"company_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"26bbe8f2-06b9-45eb-9559-81ee48cae44d","request":{"method":"GET","header":[],"url":"{{host}}/v1/companies/:company_id","description":"<p>A specific <strong>Company</strong> by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies",":company_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{company_id}}","key":"company_id"}]}},"response":[{"id":"7fbeceea-703d-4ed2-adb9-d7062b7b8e52","name":"GET Company","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/companies/:company_id","host":["{{host}}"],"path":["v1","companies",":company_id"],"variable":[{"key":"company_id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"cad0cb3648845df20aad6ff4d94610a5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c76881d4-b4c3-40ce-923a-a7a770d351b3"},{"key":"X-Runtime","value":"0.056953"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2\",\n        \"type\": \"company\",\n        \"attributes\": {\n            \"name\": \"Company 3\",\n            \"email\": \"company@limited.com\",\n            \"address\": \"Street Av, New York, NY 123456, United States\",\n            \"city\": \"New York\",\n            \"state\": \"NY\",\n            \"zipcode\": \"123456\",\n            \"country\": \"United States\",\n            \"addresses\": [\n                {\n                    \"id\": 133,\n                    \"street\": \"Street Av\",\n                    \"street2\": null,\n                    \"city\": \"New York\",\n                    \"state\": \"NY\",\n                    \"zipcode\": \"123456\",\n                    \"country\": \"United States\",\n                    \"created_at\": \"2022-08-11T11:29:33.157-07:00\",\n                    \"updated_at\": \"2022-08-11T11:29:33.157-07:00\",\n                    \"label\": \"Primary\",\n                    \"addressable_type\": \"Company\",\n                    \"addressable_id\": 2,\n                    \"firm_id\": 2,\n                    \"deleted_at\": null\n                }\n            ],\n            \"phone_number\": \"555 555 555\",\n            \"created_at\": \"2022-07-28T08:46:47.470-07:00\",\n            \"updated_at\": \"2022-08-11T11:29:33.529-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"23\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"26bbe8f2-06b9-45eb-9559-81ee48cae44d"},{"name":"Companies","id":"0d652830-1e5f-46d1-81bf-7c28fe7f64b7","request":{"method":"GET","header":[],"url":"{{host}}/v1/companies","description":"<p>A <strong>paginated</strong> list of all <strong>Companies</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>primary_contact_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>matter_status</code></td>\n<td>integer</td>\n<td>Only the raw integer works here:  <br /><code>no_matters</code> = <code>0</code>  <br /><code>hired</code> = <code>1</code>  <br /><code>lost</code> = <code>2</code>  <br /><code>pnc</code> = <code>3</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e1e2e9a2-6c8a-41f4-bb36-5d7b9d0b10b4","name":"GET Companies","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/companies"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"7\",\n            \"type\": \"company\",\n            \"attributes\": {\n                \"name\": \"Lawmatics Company\",\n                \"email\": \"jasmine+1@lawmatics.com\",\n                \"address\": \"128 White Water, Way, Elk Grove, CA 23422, United States\",\n                \"city\": \"Elk Grove\",\n                \"state\": \"CA\",\n                \"zipcode\": \"23422\",\n                \"country\": \"United States\",\n                \"addresses\": [\n                    {\n                        \"id\": 129,\n                        \"street\": \"128 White Water\",\n                        \"street2\": \"Way\",\n                        \"city\": \"Elk Grove\",\n                        \"state\": \"CA\",\n                        \"zipcode\": \"23422\",\n                        \"country\": \"United States\",\n                        \"created_at\": \"2022-09-01T14:43:10.307-07:00\",\n                        \"updated_at\": \"2022-09-01T14:43:10.307-07:00\",\n                        \"label\": \"Primary\",\n                        \"addressable_type\": \"Company\",\n                        \"addressable_id\": 7,\n                        \"firm_id\": 1,\n                        \"deleted_at\": null\n                    },\n                    {\n                        \"id\": 130,\n                        \"street\": \"7190 White Water\",\n                        \"street2\": \"Way\",\n                        \"city\": \"Sacramento\",\n                        \"state\": \"CA\",\n                        \"zipcode\": \"23422\",\n                        \"country\": \"United States\",\n                        \"created_at\": \"2022-09-01T14:43:10.319-07:00\",\n                        \"updated_at\": \"2022-09-01T14:43:10.319-07:00\",\n                        \"label\": \"Home\",\n                        \"addressable_type\": \"Company\",\n                        \"addressable_id\": 7,\n                        \"firm_id\": 1,\n                        \"deleted_at\": null\n                    }\n                ],\n                \"phone_number\": \"916-235-5678\",\n                \"created_at\": \"2022-09-01T14:43:10.254-07:00\",\n                \"updated_at\": \"2022-09-01T15:53:10.038-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"company\",\n            \"attributes\": {\n                \"name\": \"Client Company\",\n                \"email\": \"client@example.com\",\n                \"address\": \"879 F St, Newman, CA 30291, United States\",\n                \"city\": \"Newman\",\n                \"state\": \"CA\",\n                \"zipcode\": \"30291\",\n                \"country\": \"United States\",\n                \"addresses\": [\n                    {\n                        \"id\": 137,\n                        \"street\": \"879 F St\",\n                        \"street2\": null,\n                        \"city\": \"Newman\",\n                        \"state\": \"CA\",\n                        \"zipcode\": \"30291\",\n                        \"country\": \"United States\",\n                        \"created_at\": \"2022-09-07T10:26:46.349-07:00\",\n                        \"updated_at\": \"2022-09-07T10:26:46.349-07:00\",\n                        \"label\": \"Primary\",\n                        \"addressable_type\": \"Company\",\n                        \"addressable_id\": 2,\n                        \"firm_id\": 1,\n                        \"deleted_at\": null\n                    }\n                ],\n                \"phone_number\": \"5551235432\",\n                \"created_at\": \"2022-07-29T11:12:33.207-07:00\",\n                \"updated_at\": \"2022-09-07T10:26:46.421-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/companies?page=1\"\n    }\n}"}],"_postman_id":"0d652830-1e5f-46d1-81bf-7c28fe7f64b7"},{"name":"Create Company","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_company_id\", jsonData.data.id);","}"],"type":"text/javascript"}}],"id":"af944a41-a83a-43a2-97aa-56026236f644","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Lawmatics Company\",\n    \"email\": \"primary_email@lawmatics.com\",\n    \"emails_attributes\": [\n        {\n            \"info\": \"jasmine+1@lawmatics.com\"\n        },\n        {\n            \"label\": \"Home\",\n            \"info\": \"jasmine+2@lawmatics.com\"\n        }\n    ],\n    \"phone\": \"800-555-1234\",\n    \"phone_numbers_attributes\": [\n        {\n            \"info\": \"916-235-5678\"\n        },\n        {\n            \"label\": \"Home\",\n            \"info\": \"916-234-5677\"\n        }\n    ],\n    \"street\": \"999 Black Water\",\n    \"street2\": \"Road\",\n    \"city\": \"San Diego\",\n    \"state\": \"CA\",\n    \"country\": \"United States\",\n    \"zipcode\": \"99999\",\n    \"addresses_attributes\": [\n        {\n            \"street\": \"128 White Water\",\n            \"street2\": \"Way\",\n            \"city\": \"Elk Grove\",\n            \"state\": \"CA\",\n            \"country\": \"United States\",\n            \"zipcode\": \"23422\"\n        }, \n        {\n            \"label\": \"Home\",\n            \"street\": \"7190 White Water\",\n            \"street2\": \"Way\",\n            \"city\": \"Sacramento\",\n            \"state\": \"CA\",\n            \"country\": \"United States\",\n            \"zipcode\": \"23422\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/companies?fields=all","description":"<p>Create a new <strong>Company</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Acme Legal\"</code></td>\n<td>Unique per firm</td>\n</tr>\n<tr>\n<td><code>primary_contact_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>12345</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>contact_ids</code></td>\n<td>array of ids</td>\n<td>No</td>\n<td><code>[12345, 67890]</code></td>\n<td>Links existing Contacts to this Company; the first one added becomes the primary contact</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> An invalid <code>primary_contact_id</code> returns a 422 error </p>\n</blockquote>\n<p><strong>Linked/Virtual Fields</strong> — these aren't real Company columns; each one creates or updates a separate linked record:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>city</code> / <code>country</code> / <code>state</code> / <code>street</code> / <code>street2</code> / <code>zipcode</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"1234 Fake Street\"</code></td>\n<td>Creates the Company's primary Address</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"info@acme.com\"</code></td>\n<td>Creates a linked primary Email Address</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"123-456-7890\"</code></td>\n<td>Creates a linked primary Phone Number</td>\n</tr>\n<tr>\n<td><code>addresses_attributes</code></td>\n<td>array of objects</td>\n<td>No</td>\n<td><code>[{ \"label\": \"Office\", \"street\": \"1234 Fake Street\", \"city\": \"Fake Town\" }]</code></td>\n<td>For creating multiple linked addresses</td>\n</tr>\n<tr>\n<td><code>emails_attributes</code></td>\n<td>array of objects</td>\n<td>No</td>\n<td><code>[{ \"label\": \"Billing\", \"info\": \"billing@acme.com\" }]</code></td>\n<td>For creating multiple linked email addresses</td>\n</tr>\n<tr>\n<td><code>phone_numbers_attributes</code></td>\n<td>array of objects</td>\n<td>No</td>\n<td><code>[{ \"label\": \"Office\", \"info\": \"123-456-7890\" }]</code></td>\n<td>For creating multiple linked phone numbers</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> This label-defaulting behavior applies to <code>emails_attributes</code>/<code>phone_numbers_attributes</code> specifically (not the top-level <code>email</code>/<code>phone</code>, which always creates a <code>Primary</code> record).<br />A nested entry with no explicit <code>label</code> defaults to <code>Primary</code> — or to <code>Other</code> if you <em>also</em> sent a top-level <code>email</code>/<code>phone</code> (to avoid colliding with the <code>Primary</code> record that already created). Two nested entries with no explicit labels will collide with each other and 422.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"9406b6c8-0025-4316-be6f-5769f9cb06b0","name":"POST Create Company","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Lawmatics Company\",\n    \"email\": \"primary_email@lawmatics.com\",\n    \"emails_attributes\": [\n        {\n            \"info\": \"jasmine+1@lawmatics.com\"\n        },\n        {\n            \"label\": \"Home\",\n            \"info\": \"jasmine+2@lawmatics.com\"\n        }\n    ],\n    \"phone\": \"800-555-1234\",\n    \"phone_numbers_attributes\": [\n        {\n            \"info\": \"916-235-5678\"\n        },\n        {\n            \"label\": \"Home\",\n            \"info\": \"916-234-5677\"\n        }\n    ],\n    \"street\": \"999 Black Water\",\n    \"street2\": \"Road\",\n    \"city\": \"San Diego\",\n    \"state\": \"CA\",\n    \"country\": \"United States\",\n    \"zipcode\": \"99999\",\n    \"addresses_attributes\": [\n        {\n            \"street\": \"128 White Water\",\n            \"street2\": \"Way\",\n            \"city\": \"Elk Grove\",\n            \"state\": \"CA\",\n            \"country\": \"United States\",\n            \"zipcode\": \"23422\"\n        }, \n        {\n            \"label\": \"Home\",\n            \"street\": \"7190 White Water\",\n            \"street2\": \"Way\",\n            \"city\": \"Sacramento\",\n            \"state\": \"CA\",\n            \"country\": \"United States\",\n            \"zipcode\": \"23422\"\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":"{{host}}/v1/companies"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"28\",\n        \"type\": \"company\",\n        \"attributes\": {\n            \"name\": \"Lawmatics Company\",\n            \"email\": \"david1@example.com\",\n            \"address\": \"128 White Water, Way, Elk Grove, CA 23422, United States\",\n            \"city\": \"Elk Grove\",\n            \"state\": \"CA\",\n            \"zipcode\": \"23422\",\n            \"country\": \"United States\",\n            \"addresses\": [\n                {\n                    \"id\": 266,\n                    \"street\": \"128 White Water\",\n                    \"street2\": \"Way\",\n                    \"city\": \"Elk Grove\",\n                    \"state\": \"CA\",\n                    \"zipcode\": \"23422\",\n                    \"country\": \"United States\",\n                    \"created_at\": \"2022-08-23T16:51:11.769-07:00\",\n                    \"updated_at\": \"2022-08-23T16:51:11.769-07:00\",\n                    \"label\": \"Primary\",\n                    \"addressable_type\": \"Company\",\n                    \"addressable_id\": 28,\n                    \"firm_id\": 2,\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 267,\n                    \"street\": \"7190 White Water\",\n                    \"street2\": \"Way\",\n                    \"city\": \"Sacramento\",\n                    \"state\": \"CA\",\n                    \"zipcode\": \"23422\",\n                    \"country\": \"United States\",\n                    \"created_at\": \"2022-08-23T16:51:11.778-07:00\",\n                    \"updated_at\": \"2022-08-23T16:51:11.778-07:00\",\n                    \"label\": \"Home\",\n                    \"addressable_type\": \"Company\",\n                    \"addressable_id\": 28,\n                    \"firm_id\": 2,\n                    \"deleted_at\": null\n                }\n            ],\n            \"phone_number\": \"619-555-2855\",\n            \"created_at\": \"2022-08-23T16:51:11.755-07:00\",\n            \"updated_at\": \"2022-08-23T16:51:11.809-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"af944a41-a83a-43a2-97aa-56026236f644"},{"name":"Update Company","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"company_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"a86d75a8-b4a3-473b-b039-9b3ea335fce3","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Lawmatics Company\",\n    \"email\": \"primary_email_2@lawmatics.com\",\n    \"emails_attributes\": [\n        {\n            \"info\": \"jasmine+3@lawmatics.com\"\n        },\n        {\n            \"label\": \"Home\",\n            \"info\": \"jasmine+4@lawmatics.com\"\n        }\n    ],\n    \"phone\": \"800-555-4321\",\n    \"phone_numbers_attributes\": [\n        {\n            \"info\": \"916-235-5678\"\n        },\n        {\n            \"label\": \"Home\",\n            \"info\": \"916-234-5674\"\n        }\n    ],\n    \"street\": \"100 Black Water\",\n    \"street2\": \"Street\",\n    \"city\": \"San Diego\",\n    \"state\": \"CA\",\n    \"country\": \"United States\",\n    \"zipcode\": \"55123\",\n    \"addresses_attributes\": [\n        {\n            \"label\": \"test\",\n            \"street\": \"7190 White Water\",\n            \"street2\": \"Way\",\n            \"city\": \"Sacramento\",\n            \"state\": \"CA\",\n            \"country\": \"United States\",\n            \"zipcode\": \"23422\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/companies/:company_id","description":"<p>Update an existing <strong>Company</strong> by ID.</p>\n<blockquote>\n<p><strong>Note:</strong> Passing Custom Field id and value, will set the custom field value on the <strong>Company</strong>, and overwrite any existing value. Passing null as the value will clear it out.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies",":company_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{company_id}}","key":"company_id"}]}},"response":[{"id":"06be02b9-866c-4689-a5d3-b81b70535661","name":"PUT/PATCH Update Company","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Lawmatics Company\",\n    \"email\": \"primary_email_2@lawmatics.com\",\n    \"emails_attributes\": [\n        {\n            \"id\": 554,\n            \"info\": \"jasmine+3@lawmatics.com\"\n        },\n        {   \"id\": 555,\n            \"label\": \"Home\",\n            \"info\": \"jasmine+4@lawmatics.com\"\n        }\n    ],\n    \"phone\": \"800-555-4321\",\n    \"phone_numbers_attributes\": [\n        {\n            \"info\": \"916-235-5678\"\n        },\n        {\n            \"id\": 557,\n            \"label\": \"Home\",\n            \"info\": \"916-234-5674\"\n        }\n    ],\n    \"street\": \"100 Black Water\",\n    \"street2\": \"Street\",\n    \"city\": \"San Diego\",\n    \"state\": \"CA\",\n    \"country\": \"United States\",\n    \"zipcode\": \"55123\",\n    \"addresses_attributes\": [\n        {\n            \"id\": 267,\n            \"label\": \"test\",\n            \"street\": \"7190 White Water\",\n            \"street2\": \"Way\",\n            \"city\": \"Sacramento\",\n            \"state\": \"CA\",\n            \"country\": \"United States\",\n            \"zipcode\": \"23422\"\n        }\n    ],\n      \"custom_field_values\": [\n        {\n            \"id\": 7,\n            \"value\": 8\n        }\n    ]\n}","options":{"raw":{"language":"text"}}},"url":{"raw":"{{host}}/v1/companies/:company_id","host":["{{host}}"],"path":["v1","companies",":company_id"],"variable":[{"key":"company_id","value":"27"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"28\",\n        \"type\": \"company\",\n        \"attributes\": {\n            \"name\": \"Lawmatics Company\",\n            \"email\": \"david1@example.com\",\n            \"address\": \"128 White Water, Way, Elk Grove, CA 23422, United States\",\n            \"city\": \"Elk Grove\",\n            \"state\": \"CA\",\n            \"zipcode\": \"23422\",\n            \"country\": \"United States\",\n            \"addresses\": [\n                {\n                    \"addressable_id\": 28,\n                    \"label\": \"test\",\n                    \"city\": \"Sacramento\",\n                    \"country\": \"United States\",\n                    \"state\": \"CA\",\n                    \"street\": \"7190 White Water\",\n                    \"street2\": \"Way\",\n                    \"zipcode\": \"23422\",\n                    \"addressable_type\": \"Company\",\n                    \"firm_id\": 2,\n                    \"id\": 267,\n                    \"created_at\": \"2022-08-23T16:51:11.778-07:00\",\n                    \"updated_at\": \"2022-08-23T17:03:08.444-07:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 266,\n                    \"street\": \"128 White Water\",\n                    \"street2\": \"Way\",\n                    \"city\": \"Elk Grove\",\n                    \"state\": \"CA\",\n                    \"zipcode\": \"23422\",\n                    \"country\": \"United States\",\n                    \"created_at\": \"2022-08-23T16:51:11.769-07:00\",\n                    \"updated_at\": \"2022-08-23T16:51:11.769-07:00\",\n                    \"label\": \"Primary\",\n                    \"addressable_type\": \"Company\",\n                    \"addressable_id\": 28,\n                    \"firm_id\": 2,\n                    \"deleted_at\": null\n                }\n            ],\n            \"phone_number\": \"619-555-2855\",\n            \"created_at\": \"2022-08-23T16:51:11.755-07:00\",\n            \"updated_at\": \"2022-08-23T17:03:08.856-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"a86d75a8-b4a3-473b-b039-9b3ea335fce3"},{"name":"Delete Company","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"company_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"e062d534-cae9-45d5-a996-256bb051e1ba","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/companies/:company_id","description":"<p>Deletes the <strong>Company</strong>, by id. It will no longer appear in any future GET responses.</p>\n<p><strong>Warning:</strong> This also deletes every <strong>Matter</strong> linked to this <strong>Company</strong>, along with their <strong>Notes</strong>, <strong>Tasks</strong>, <strong>Signatures</strong>, and <strong>Timeline Activities</strong>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","companies",":company_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{company_id}}","key":"company_id"}]}},"response":[{"id":"4f79fddb-31a3-4b0f-bf88-177eff9529c1","name":"Delete Company","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/companies/:company_id","host":["{{host}}"],"path":["v1","companies",":company_id"],"variable":[{"key":"company_id","value":"27"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"86a5015b12560805d3a37f2a70e55953\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9623349a-c5e9-41e3-8cad-216ea432eb94"},{"key":"X-Runtime","value":"7.758076"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"27\",\n        \"type\": \"company\",\n        \"attributes\": {\n            \"name\": \"Lawmatics Company\",\n            \"email\": \"david1@example.com\",\n            \"address\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"addresses\": [],\n            \"phone_number\": \"619-555-2855\",\n            \"created_at\": \"2022-08-23T15:38:24.009-07:00\",\n            \"updated_at\": \"2022-08-23T16:50:37.867-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"e062d534-cae9-45d5-a996-256bb051e1ba"}],"id":"8dd8b3be-8e79-4326-ad61-beb81d44e7fa","_postman_id":"8dd8b3be-8e79-4326-ad61-beb81d44e7fa","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Custom Emails","item":[{"name":"Custom Email","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/custom_emails`, function (err, response) {","   pm.globals.set(\"custom_email_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"40c32839-212a-4334-a04e-7d1020d19ba7","request":{"method":"GET","header":[],"url":"{{host}}/v1/custom_emails/:custom_email_id","description":"<p>A specific <strong>Custom Email</strong> by id, including its stats: opens, sends, bounces, clicks, open rate, click rate, bounce rate, and delivered rate.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_emails",":custom_email_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_email_id}}","key":"custom_email_id"}]}},"response":[{"id":"9b8f0671-4417-4c28-8396-97110a8d03c3","name":"GET Custom Email","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/custom_emails/:custom_email_id","host":["{{host}}"],"path":["v1","custom_emails",":custom_email_id"],"variable":[{"key":"custom_email_id","value":"24"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"24\",\n        \"type\": \"custom_email\",\n        \"attributes\": {\n            \"name\": \"Welcome Email\",\n            \"subject\": \"Welcome!\",\n            \"opens\": 80,\n            \"sends\": 334,\n            \"bounces\": 8,\n            \"clicks\": 58,\n            \"open_rate\": 0.23952095808383234,\n            \"click_rate\": 0.017964071856287425,\n            \"bounce_rate\": 0.1467065868263473,\n            \"delivered_rate\": 0.7994011976047904,\n            \"promotional\": true,\n            \"created_at\": \"2023-06-29T15:04:44.943-07:00\",\n            \"updated_at\": \"2023-06-29T15:04:44.943-07:00\"\n        }\n    }\n}"}],"_postman_id":"40c32839-212a-4334-a04e-7d1020d19ba7"},{"name":"Custom Emails","id":"a936d02d-dc3e-4829-950a-45396ce446d7","request":{"method":"GET","header":[],"url":"{{host}}/v1/custom_emails","description":"<p>A paginated list of all <strong>custom emails</strong> in Lawmatics.</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>subject</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>promotional</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>folder_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_emails"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c160a9bd-6612-4b0b-a819-127c00db3215","name":"GET Custom Emails","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/custom_emails"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"24\",\n            \"type\": \"custom_email\",\n            \"attributes\": {\n                \"name\": \"Welcome Email\",\n                \"subject\": \"Welcome!\",\n                \"opens\": 80,\n                \"sends\": 334,\n                \"bounces\": 8,\n                \"clicks\": 58,\n                \"open_rate\": 0.23952095808383234,\n                \"click_rate\": 0.017964071856287425,\n                \"bounce_rate\": 0.1467065868263473,\n                \"delivered_rate\": 0.7994011976047904,\n                \"promotional\": true,\n                \"created_at\": \"2023-06-29T15:04:44.943-07:00\",\n                \"updated_at\": \"2023-06-29T15:04:44.943-07:00\"\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"custom_email\",\n            \"attributes\": {\n                \"name\": \"onboarding email\",\n                \"subject\": \"Thank you for Reaching out!\",\n                \"opens\": null,\n                \"sends\": null,\n                \"bounces\": null,\n                \"clicks\": null,\n                \"open_rate\": null,\n                \"click_rate\": null,\n                \"bounce_rate\": null,\n                \"delivered_rate\": null,\n                \"promotional\": false,\n                \"created_at\": \"2023-02-13T10:06:44.671-08:00\",\n                \"updated_at\": \"2023-02-13T10:06:44.671-08:00\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/custom_emails?page=1\"\n    }\n}"}],"_postman_id":"a936d02d-dc3e-4829-950a-45396ce446d7"}],"id":"bd6a3286-cbdb-4c58-9a01-1c0eccdba777","_postman_id":"bd6a3286-cbdb-4c58-9a01-1c0eccdba777","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Custom Fields","item":[{"name":"Custom Field","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/custom_fields`, function (err, response) {","   pm.globals.set(\"custom_field_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"81c19941-7ad9-4e81-821c-1e57f442eeb0","request":{"method":"GET","header":[],"url":"{{host}}/v1/custom_fields/:custom_field_id","description":"<p>A specific <strong>Custom Field</strong>, by id, including its metadata.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_fields",":custom_field_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_field_id}}","key":"custom_field_id"}]}},"response":[{"id":"de4f155d-9de3-4c82-afc2-7643de7e281a","name":"GET Custom Field","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/custom_fields/13"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 01:19:48 GMT","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"3ae16e93a434991a019f6c5eafc44324\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Set-Cookie","value":"AWSALB=QHNtV9Jp8QmDcEruq1ur0YjEZsKxlhpWyeTsFzUU3WoBLWFgZ9GLUGT0i2lrFhvIByHmN72fnw8IFS0MkhVoUbA+wqKUSP2/FXQBLyVLJ/07NacRIDtcPICaCYRo; Expires=Wed, 24 Oct 2018 01:19:48 GMT; Path=/","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"21275846-d151-4d06-8bd4-537815d0cf3d","description":"Custom header"},{"key":"X-Runtime","value":"0.012058","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"13\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Jurisdiction\",\"type\":\"Matter\",\"field_type\":\"list\",\"list_options\":[{\"id\":4,\"name\":\"West County\"},{\"id\":3,\"name\":\"East County\"},{\"id\":2,\"name\":\"South County\"},{\"id\":1,\"name\":\"North County\"}],\"created_at\":\"2018-01-08T10:05:25.432-08:00\",\"updated_at\":\"2018-01-08T10:05:25.432-08:00\"}}}"}],"_postman_id":"81c19941-7ad9-4e81-821c-1e57f442eeb0"},{"name":"Custom Fields","id":"da280315-f620-400c-9a6b-32d05bd7c293","request":{"method":"GET","header":[],"url":"{{host}}/v1/custom_fields?fields=all","description":"<p>A <strong>paginated</strong> list of all Custom Field metadata in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>enum</td>\n<td>Accepts label</td>\n</tr>\n<tr>\n<td><code>lookup_type</code></td>\n<td>enum</td>\n<td>Accepts label</td>\n</tr>\n<tr>\n<td><code>custom_fieldable_type</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>field_type</code></td>\n<td>integer</td>\n<td>Raw integer only: <code>integer</code>=0, <code>boolean</code>=1, <code>string</code>=2, <code>text</code>=3, <code>currency</code>=4, <code>date</code>=5, <code>time</code>=6, <code>datetime</code>=7, <code>list</code>=8, <code>lookup</code>=9, <code>multi_picklist</code>=10</td>\n</tr>\n<tr>\n<td><code>collection_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_fields"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"64c4596b-7bf4-4c61-b1d8-13fadcb0d808","name":"GET Custom Fields","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/custom_fields"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"e876eaa6aa11ea57afa5bc4955821309\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"ca2999e8-428f-48df-917d-259d21d43325","description":"Custom header"},{"key":"X-Runtime","value":"0.062167","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"id\":\"4638\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Date\",\"field_type\":\"date\",\"visibility\":\"default\",\"type\":\"Prospect\",\"created_at\":\"2018-09-24T12:31:05.231-07:00\",\"updated_at\":\"2018-10-12T14:23:23.732-07:00\"}},{\"id\":\"1\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Matter Checkbox\",\"field_type\":\"boolean\",\"visibility\":\"default\",\"type\":\"Matter\",\"created_at\":\"2018-07-17T15:27:16.765-07:00\",\"updated_at\":\"2018-10-12T14:24:58.670-07:00\"}},{\"id\":\"4627\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test User Lookup\",\"field_type\":\"lookup\",\"visibility\":\"default\",\"type\":\"Prospect\",\"lookup_type\":\"User\",\"created_at\":\"2018-08-28T17:19:04.897-07:00\",\"updated_at\":\"2018-10-12T14:22:00.976-07:00\"}},{\"id\":\"4639\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Time\",\"field_type\":\"time\",\"visibility\":\"default\",\"type\":\"Prospect\",\"created_at\":\"2018-09-24T12:31:15.295-07:00\",\"updated_at\":\"2018-10-12T14:23:35.585-07:00\"}},{\"id\":\"4644\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Contact String\",\"field_type\":\"string\",\"visibility\":\"default\",\"type\":\"Contact\",\"created_at\":\"2018-10-10T17:38:24.915-07:00\",\"updated_at\":\"2018-10-12T14:24:42.034-07:00\"}},{\"id\":\"4631\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test DateTime\",\"field_type\":\"datetime\",\"visibility\":\"hidden\",\"type\":\"Prospect\",\"created_at\":\"2018-09-06T16:33:22.026-07:00\",\"updated_at\":\"2018-10-12T14:23:43.570-07:00\"}},{\"id\":\"7\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Client String\",\"field_type\":\"string\",\"visibility\":\"default\",\"type\":\"Client\",\"created_at\":\"2018-07-22T13:37:40.043-07:00\",\"updated_at\":\"2018-10-12T14:24:01.079-07:00\"}},{\"id\":\"4\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Client Currency\",\"field_type\":\"currency\",\"visibility\":\"default\",\"type\":\"Client\",\"created_at\":\"2018-07-22T13:00:57.587-07:00\",\"updated_at\":\"2018-10-12T14:24:08.556-07:00\"}},{\"id\":\"2\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Status\",\"field_type\":\"list\",\"visibility\":\"default\",\"type\":\"Prospect\",\"list_options\":[{\"id\":1,\"name\":\"Open\"},{\"id\":2,\"name\":\"Closed Won\"},{\"id\":3,\"name\":\"Closed Lost\"}],\"created_at\":\"2018-07-21T10:30:31.322-07:00\",\"updated_at\":\"2018-08-23T16:53:20.710-07:00\"}},{\"id\":\"5\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Matter Text\",\"field_type\":\"text\",\"visibility\":\"default\",\"type\":\"Matter\",\"created_at\":\"2018-07-22T13:01:26.681-07:00\",\"updated_at\":\"2018-10-12T14:24:48.621-07:00\"}},{\"id\":\"8\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test Money Field\",\"field_type\":\"currency\",\"visibility\":\"default\",\"type\":\"Prospect\",\"created_at\":\"2018-07-22T14:25:40.345-07:00\",\"updated_at\":\"2018-08-23T16:53:20.807-07:00\"}},{\"id\":\"9\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test PNC Lookup\",\"field_type\":\"lookup\",\"visibility\":\"starred\",\"type\":\"Prospect\",\"lookup_type\":\"Prospect\",\"created_at\":\"2018-08-03T18:12:09.181-07:00\",\"updated_at\":\"2018-10-12T14:22:44.470-07:00\"}},{\"id\":\"6\",\"type\":\"custom_field\",\"attributes\":{\"name\":\"Test PNC Picklist\",\"field_type\":\"list\",\"visibility\":\"starred\",\"type\":\"Prospect\",\"list_options\":[{\"id\":9,\"name\":\"Blue\"},{\"id\":11,\"name\":\"Red\"}],\"created_at\":\"2018-07-22T13:17:19.943-07:00\",\"updated_at\":\"2018-08-23T16:53:20.791-07:00\"}}]}"}],"_postman_id":"da280315-f620-400c-9a6b-32d05bd7c293"},{"name":"Create Custom Field","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_custom_field_id\", jsonData.data.id);","}"],"type":"text/javascript"}}],"id":"03d0770c-cf0f-4a28-91fe-c87791554985","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Jurisdiction 494d3dce-676e-4bf6-b2d6-386d4adbcfbc\",\n    \"type\": \"Matter\",\n    \"field_type\": \"list\",\n    \"list_options\": [\"one\",\"two\",\"three\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/custom_fields","description":"<p>Create a new <strong>Custom Field</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Jurisdiction\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Matter\"</code></td>\n<td>One of <code>Matter</code>, <code>Contact</code>, <code>Company</code></td>\n</tr>\n<tr>\n<td><code>field_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"list\"</code></td>\n<td>One of <code>integer</code>, <code>boolean</code>, <code>string</code>, <code>text</code>, <code>currency</code>, <code>date</code>, <code>time</code>, <code>datetime</code>, <code>list</code>, <code>lookup</code>, <code>multi_picklist</code> (<strong>must be lowercase)</strong></td>\n</tr>\n<tr>\n<td><code>list_options</code></td>\n<td>array of strings</td>\n<td>Conditional</td>\n<td><code>[\"Option A\", \"Option B\"]</code></td>\n<td>Required (2+ options) if <code>field_type</code> is <code>list</code> or <code>multi_picklist</code>; must be omitted for every other <code>field_type</code></td>\n</tr>\n<tr>\n<td><code>lookup_type</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td><code>\"Contact\"</code></td>\n<td>Required if <code>field_type</code> is <code>lookup</code>. One of <code>User</code>, <code>Contact</code>, <code>Company</code>, <code>Prospect</code></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> An uppercase/mixed-case value for <code>field_type</code>drops <code>list_options</code> before validation runs, then fails asking for the options you already sent</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_fields"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1878982f-7650-4020-89d0-4ed25e626564","name":"POST Create Custom Field","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Jurisdiction\",\n    \"type\": \"Matter\",\n    \"field_type\": \"list\",\n    \"list_options\": [\"one\",\"two\",\"three\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/custom_fields"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"ec0751736db2ce98cc3d2a1c6567c43a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"16e7abea-505b-4a7d-bc3f-d4936434a87b"},{"key":"X-Runtime","value":"0.629906"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"custom_field\",\n        \"attributes\": {\n            \"name\": \"Jurisdiction\",\n            \"type\": \"Prospect\",\n            \"field_type\": \"list\",\n            \"list_options\": [\n                {\n                    \"id\": 7,\n                    \"name\": \"one\"\n                },\n                {\n                    \"id\": 8,\n                    \"name\": \"two\"\n                },\n                {\n                    \"id\": 9,\n                    \"name\": \"three\"\n                }\n            ],\n            \"created_at\": \"2022-06-01T16:09:06.943-07:00\",\n            \"updated_at\": \"2022-06-01T16:09:06.943-07:00\",\n            \"visibility\": \"default\"\n        }\n    }\n}"}],"_postman_id":"03d0770c-cf0f-4a28-91fe-c87791554985"},{"name":"Update Custom Field","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/custom_fields`, function (err, response) {","   pm.globals.set(\"custom_field_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"4c1459c3-302b-43fa-bc31-beb2862f5496","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Jurisprudence ef7aa188-c66d-4417-95ac-1b8d3345f9e6\",\n    \"type\": \"Contact\",\n    \"field_type\": \"multi_picklist\",\n    \"list_options\": [10, 20, 30]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/custom_fields/:custom_field_id","description":"<p>Update an existing Custom Field by id.</p>\n<blockquote>\n<p><strong>Note:</strong> Updating the list options for <code>list</code> or <code>multi_picklist</code> will replace the existing options. It is not recommended to do this with actively used fields.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_fields",":custom_field_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_field_id}}","key":"custom_field_id"}]}},"response":[{"id":"9e4cbc25-c1de-4860-b7dd-e2a2f63fff56","name":"PUT Update Custom Field","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Jurisprudence\",\n    \"type\": \"Contact\",\n    \"field_type\": \"multi_picklist\",\n    \"list_options\": [10, 20, 30]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/custom_fields/:custom_field_id","host":["{{host}}"],"path":["v1","custom_fields",":custom_field_id"],"variable":[{"key":"custom_field_id","value":"7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"146fd005693f5513b7c22741a92bad84\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"24828cfe-c853-4ed0-9edd-01801f1d93cd"},{"key":"X-Runtime","value":"29.551599"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"7\",\n        \"type\": \"custom_field\",\n        \"attributes\": {\n            \"name\": \"Jurisprudence\",\n            \"type\": \"Contact\",\n            \"field_type\": \"multi_picklist\",\n            \"list_options\": [\n                {\n                    \"id\": 18,\n                    \"name\": \"10\"\n                },\n                {\n                    \"id\": 19,\n                    \"name\": \"20\"\n                },\n                {\n                    \"id\": 20,\n                    \"name\": \"30\"\n                }\n            ],\n            \"created_at\": \"2022-06-02T12:03:29.977-07:00\",\n            \"updated_at\": \"2022-06-02T12:06:07.154-07:00\",\n            \"visibility\": \"default\"\n        }\n    }\n}"}],"_postman_id":"4c1459c3-302b-43fa-bc31-beb2862f5496"},{"name":"Delete Custom Field","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/custom_fields`, function (err, response) {","   pm.globals.set(\"custom_field_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"2f180997-da5d-45a5-9d00-5721f3534e32","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/custom_fields/:custom_field_id","description":"<p>Deletes the Custom Field. It will no longer appear in any future GET responses.</p>\n<p><strong>Warning:</strong> This also deletes every value that's been entered for this field across all records, NOT just the field definition itself.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","custom_fields",":custom_field_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_field_id}}","key":"custom_field_id"}]}},"response":[{"id":"42a063a5-d7d9-4dcf-8bfb-80958a30a669","name":"DELETE Delete Custom Field","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/custom_fields/:custom_field_id","host":["{{host}}"],"path":["v1","custom_fields",":custom_field_id"],"variable":[{"key":"custom_field_id","value":"7"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c4dcc3d4254894e367247cfdbb28ce8f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"767dbf69-30f4-4da3-897c-7dfd33e77be8"},{"key":"X-Runtime","value":"0.770847"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"7\",\n        \"type\": \"custom_field\",\n        \"attributes\": {\n            \"name\": \"Jurisprudence\",\n            \"type\": \"Contact\",\n            \"field_type\": \"multi_picklist\",\n            \"list_options\": [],\n            \"created_at\": \"2022-06-02T12:03:29.977-07:00\",\n            \"updated_at\": \"2022-06-02T12:10:42.915-07:00\",\n            \"visibility\": \"default\"\n        }\n    }\n}"}],"_postman_id":"2f180997-da5d-45a5-9d00-5721f3534e32"}],"id":"5420730a-04a8-4c31-bc37-51f1b44164cd","_postman_id":"5420730a-04a8-4c31-bc37-51f1b44164cd","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Custom Forms","item":[{"name":"Custom Form","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/forms`, function (err, response) {","   pm.globals.set(\"custom_form_uuid\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"c68aa046-21b6-4228-a493-076f44e5a495","request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{host}}/v1/forms/:custom_form_uuid?fields=all","description":"<p>This <strong>Unauthenticated</strong> endpoint takes a <strong>Custom Form</strong> id and returns metadata about that Custom Form. This metadata can be used to recreate a Lawmatics Custom Form to be filled using your own HTML code.</p>\n<blockquote>\n<p><strong>Note:</strong> Forms containing Appointment or Relationship (Contact) blocks can't be retrieved through this endpoint. It returns a 406 error.</p>\n</blockquote>\n","urlObject":{"path":["v1","forms",":custom_form_uuid"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[{"type":"any","value":"{{custom_form_uuid}}","key":"custom_form_uuid"}]}},"response":[{"id":"2d9cf108-8f5f-438d-b46b-7770cf5368d7","name":"GET Custom Form","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/forms/31a81c7b-378f-4d5f-8d03-57c2fb43fe3c?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","forms","31a81c7b-378f-4d5f-8d03-57c2fb43fe3c"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"0b654022716a7b501ad7f4be03a6d1e5\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"8773236c-b839-41bd-9309-00711e2c2ae9","description":"Custom header"},{"key":"X-Runtime","value":"0.208304","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"31a81c7b-378f-4d5f-8d03-57c2fb43fe3c\",\n        \"type\": \"custom_form\",\n        \"attributes\": {\n            \"name\": \"Lawmatics Intake Form\",\n            \"type\": \"Prospect\",\n            \"created_at\": \"2018-09-12T16:42:41.024-07:00\",\n            \"updated_at\": \"2018-10-12T15:16:53.787-07:00\",\n            \"rows\": [\n                {\n                    \"components\": [\n                        {\n                            \"id\": \"first_name\",\n                            \"field_type\": \"string\",\n                            \"label\": \"First Name\",\n                            \"component_type\": \"field\",\n                            \"required\": true\n                        },\n                        {\n                            \"id\": \"last_name\",\n                            \"field_type\": \"string\",\n                            \"label\": \"Last Name\",\n                            \"component_type\": \"field\",\n                            \"required\": true\n                        }\n                    ]\n                },\n                {\n                    \"components\": [\n                        {\n                            \"id\": \"Q3VzdG9tRm9ybUNvbXBvbmVudDo6QWR2YW5jZWQtZ2VuZXJhbF9maWVsZC0yMDE4LTA4LTI3VDE3OjMxOjU5LjE0NVo=\",\n                            \"field_type\": \"list\",\n                            \"label\": \"General Field\",\n                            \"component_type\": \"general_field\",\n                            \"required\": false,\n                            \"list_options\": [\n                                {\n                                    \"label\": \"1\",\n                                    \"value\": 0\n                                },\n                                {\n                                    \"label\": \"2\",\n                                    \"value\": 1\n                                }\n                            ]\n                        }\n                    ]\n                },\n                {\n                    \"components\": [\n                        {\n                            \"id\": \"Q3VzdG9tRm9ybUNvbXBvbmVudDo6QWR2YW5jZWQtaG9yaXpvbnRhbF9kaXZpZGVyLTIwMTgtMDgtMjdUMjA6Mzk6MTAuNjMzWg==\",\n                            \"component_type\": \"horizontal_divider\"\n                        }\n                    ]\n                },\n                {\n                    \"components\": [\n                        {\n                            \"id\": \"Q3VzdG9tRm9ybUNvbXBvbmVudDo6QWR2YW5jZWQtaW5zdHJ1Y3Rpb25zLTIwMTgtMDgtMjdUMjA6Mzk6MDIuNDUxWg==\",\n                            \"label\": \"<p>Instructions text</p>\",\n                            \"component_type\": \"instructions\"\n                        }\n                    ]\n                },\n                {\n                    \"components\": [\n                        {\n                            \"id\": \"Q3VzdG9tRm9ybUNvbXBvbmVudDo6QWR2YW5jZWQtZ2VuZXJhbF9maWVsZC0yMDE4LTA4LTI3VDE4OjI2OjAzLjI5Mlo=\",\n                            \"field_type\": \"boolean\",\n                            \"label\": \"Is Lawmatics Awesome?\",\n                            \"component_type\": \"general_field\",\n                            \"required\": false\n                        },\n                        {\n                            \"id\": \"RmllbGRzOjpTdGFuZGFyZEZpZWxkLUNvbnRhY3QtbGFzdF9uYW1l\",\n                            \"field_type\": \"integer\",\n                            \"label\": \"Integer Custom Field\",\n                            \"component_type\": \"field\",\n                            \"required\": false\n                        },\n                        {\n                            \"id\": \"birthdate\",\n                            \"field_type\": \"date\",\n                            \"label\": \"Birthdate\",\n                            \"component_type\": \"field\",\n                            \"required\": false\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"c68aa046-21b6-4228-a493-076f44e5a495"},{"name":"Custom Forms","id":"8bf9fcb6-4e82-4ccc-b3c8-13a7a04253b8","request":{"method":"GET","header":[],"url":"{{host}}/v1/forms","description":"<p>A <strong>paginated</strong> list of all Custom Forms in Lawmatics</p>\n<blockquote>\n<p><strong>Note:</strong> This endpoint does not support <code>filter_by</code>, <code>sort_by</code>, <code>page</code>, or <code>updated_only</code>. All list-modifying query params are silently ignored. (<code>GET /v1/forms/:id/entries</code> is unaffected.)</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","forms"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a9a281af-92b0-49a0-89ec-71cc626184e5","name":"GET Custom Forms","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/forms?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","forms"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"51e64335cc8e291ea9c043f57358d00f\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"9548e2f6-61f0-45c3-8130-2bff33dad26b","description":"Custom header"},{"key":"X-Runtime","value":"2.206322","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"id\":\"ad79c099-6c37-47d0-9452-cdbeb297559f\",\"type\":\"custom_form\",\"attributes\":{\"name\":\"Test Prospect Intake Form\",\"type\":\"Prospect\",\"created_at\":\"2018-09-12T16:42:41.024-07:00\",\"updated_at\":\"2018-10-12T15:16:53.787-07:00\",\"rows\":[{\"components\":[{\"id\":\"first_name\",\"field_type\":\"string\",\"label\":\"First name\",\"component_type\":\"field\",\"required\":true},{\"id\":\"last_name\",\"field_type\":\"string\",\"label\":\"Last name\",\"component_type\":\"field\",\"required\":true}]},{\"components\":[{\"id\":\"RmllbGRzOjpDdXN0b21GaWVsZC1DdXN0b21GaWVsZDo6UHJhY3RpY2VBcmVhLTU=\",\"field_type\":\"text\",\"label\":\"Test Practice Area Text\",\"component_type\":\"field\",\"required\":false}]},{\"components\":[{\"id\":\"Q3VzdG9tRm9ybUNvbXBvbmVudDo6QWR2YW5jZWQtaW5zdHJ1Y3Rpb25zLTIwMTgtMDktMTJUMjM6NDI6NDUuNjMxWg==\",\"label\":\"\\u003cp\\u003e\\u003cmark class=\\\"marker-blue\\\"\\u003eInstructions\\u003c/mark\\u003e\\u003c/p\\u003e\\u003cfigure class=\\\"image\\\"\\u003e\\u003cimg src=\\\"https://35010.cdn.cke-cs.com/xYsJJYSdHzfBDI20OIec/animations/140d1fdb22a2b76c73a2cbc080472d798c0f1e6e28720cf9_tumblr_obenjvTUOK1qzn6p7o1_400.gif\\\" srcset=\\\"https://35010.cdn.cke-cs.com/xYsJJYSdHzfBDI20OIec/animations/140d1fdb22a2b76c73a2cbc080472d798c0f1e6e28720cf9_tumblr_obenjvTUOK1qzn6p7o1_400.gif/w_135 135w, https://35010.cdn.cke-cs.com/xYsJJYSdHzfBDI20OIec/animations/140d1fdb22a2b76c73a2cbc080472d798c0f1e6e28720cf9_tumblr_obenjvTUOK1qzn6p7o1_400.gif/w_215 215w, https://35010.cdn.cke-cs.com/xYsJJYSdHzfBDI20OIec/animations/140d1fdb22a2b76c73a2cbc080472d798c0f1e6e28720cf9_tumblr_obenjvTUOK1qzn6p7o1_400.gif/w_295 295w, https://35010.cdn.cke-cs.com/xYsJJYSdHzfBDI20OIec/animations/140d1fdb22a2b76c73a2cbc080472d798c0f1e6e28720cf9_tumblr_obenjvTUOK1qzn6p7o1_400.gif/w_375 375w\\\" sizes=\\\"100vw\\\" width=\\\"375\\\"\\u003e\\u003c/figure\\u003e\",\"required\":false,\"component_type\":\"instructions\"}]}]}}]}"}],"_postman_id":"8bf9fcb6-4e82-4ccc-b3c8-13a7a04253b8"},{"name":"Custom Form Entries","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/forms`, function (err, response) {","   pm.globals.set(\"custom_form_uuid\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"0a621227-9c9a-4bb8-89cd-a467a933bbc5","request":{"method":"GET","header":[],"url":"{{host}}/v1/forms/:custom_form_uuid/entries","description":"<p>A paginated list of all entries submitted for a specific <strong>Custom Form</strong>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","forms",":custom_form_uuid","entries"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_form_uuid}}","key":"custom_form_uuid"}]}},"response":[{"id":"9477d0a2-03a3-454f-900d-62a293d0a981","name":"GET Custom Form Entries","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/forms/ad79c099-6c37-47d0-9452-cdbeb297559f/entries?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","forms","ad79c099-6c37-47d0-9452-cdbeb297559f","entries"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"8eccdca67fdfd1ba9035da69962db93e\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"ea0303f4-a306-4787-9f98-a708873c347a","description":"Custom header"},{"key":"X-Runtime","value":"0.112715","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"id\":\"91\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:30:48.711-07:00\",\"updated_at\":\"2018-10-17T12:30:48.711-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41869\",\"type\":\"prospect\"}}}},{\"id\":\"90\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:30:43.194-07:00\",\"updated_at\":\"2018-10-17T12:30:43.194-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41868\",\"type\":\"prospect\"}}}},{\"id\":\"89\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:30:36.721-07:00\",\"updated_at\":\"2018-10-17T12:30:36.721-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41867\",\"type\":\"prospect\"}}}},{\"id\":\"88\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:30:32.522-07:00\",\"updated_at\":\"2018-10-17T12:30:32.522-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41866\",\"type\":\"prospect\"}}}},{\"id\":\"87\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:29:55.684-07:00\",\"updated_at\":\"2018-10-17T12:29:55.684-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41865\",\"type\":\"prospect\"}}}},{\"id\":\"86\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:29:22.859-07:00\",\"updated_at\":\"2018-10-17T12:29:22.859-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41864\",\"type\":\"prospect\"}}}},{\"id\":\"85\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:29:16.213-07:00\",\"updated_at\":\"2018-10-17T12:29:16.213-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41863\",\"type\":\"prospect\"}}}},{\"id\":\"84\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:28:56.803-07:00\",\"updated_at\":\"2018-10-17T12:28:56.803-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41862\",\"type\":\"prospect\"}}}},{\"id\":\"83\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:25:34.196-07:00\",\"updated_at\":\"2018-10-17T12:25:34.196-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41861\",\"type\":\"prospect\"}}}},{\"id\":\"82\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:24:22.712-07:00\",\"updated_at\":\"2018-10-17T12:24:22.712-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41860\",\"type\":\"prospect\"}}}},{\"id\":\"81\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:24:04.170-07:00\",\"updated_at\":\"2018-10-17T12:24:04.170-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41859\",\"type\":\"prospect\"}}}},{\"id\":\"80\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:15:01.416-07:00\",\"updated_at\":\"2018-10-17T12:15:01.416-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41858\",\"type\":\"prospect\"}}}},{\"id\":\"79\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:14:35.492-07:00\",\"updated_at\":\"2018-10-17T12:14:35.492-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41857\",\"type\":\"prospect\"}}}},{\"id\":\"78\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:11:51.273-07:00\",\"updated_at\":\"2018-10-17T12:11:51.273-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41856\",\"type\":\"prospect\"}}}},{\"id\":\"77\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:10:33.065-07:00\",\"updated_at\":\"2018-10-17T12:10:33.065-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41855\",\"type\":\"prospect\"}}}},{\"id\":\"76\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:10:08.431-07:00\",\"updated_at\":\"2018-10-17T12:10:08.431-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41854\",\"type\":\"prospect\"}}}},{\"id\":\"75\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:09:46.031-07:00\",\"updated_at\":\"2018-10-17T12:09:46.031-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41853\",\"type\":\"prospect\"}}}},{\"id\":\"74\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:07:42.642-07:00\",\"updated_at\":\"2018-10-17T12:07:42.642-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41852\",\"type\":\"prospect\"}}}},{\"id\":\"73\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:06:47.744-07:00\",\"updated_at\":\"2018-10-17T12:06:47.744-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41851\",\"type\":\"prospect\"}}}},{\"id\":\"72\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:05:59.377-07:00\",\"updated_at\":\"2018-10-17T12:05:59.377-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41850\",\"type\":\"prospect\"}}}},{\"id\":\"71\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:03:15.314-07:00\",\"updated_at\":\"2018-10-17T12:03:15.314-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41849\",\"type\":\"prospect\"}}}},{\"id\":\"70\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:02:59.496-07:00\",\"updated_at\":\"2018-10-17T12:02:59.496-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41848\",\"type\":\"prospect\"}}}},{\"id\":\"69\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"test\"}],\"created_at\":\"2018-10-17T12:00:52.386-07:00\",\"updated_at\":\"2018-10-17T12:00:52.386-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41847\",\"type\":\"prospect\"}}}},{\"id\":\"63\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"Loblaw\"}],\"created_at\":\"2018-10-14T17:46:21.572-07:00\",\"updated_at\":\"2018-10-14T17:46:21.572-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41811\",\"type\":\"prospect\"}}}},{\"id\":\"62\",\"type\":\"custom_form_entry\",\"attributes\":{\"body\":[{\"label\":\"First name\",\"value\":\"Bob\"},{\"label\":\"Last name\",\"value\":\"Loblaw\"}],\"created_at\":\"2018-10-14T17:45:12.742-07:00\",\"updated_at\":\"2018-10-14T17:45:12.742-07:00\"},\"relationships\":{\"custom_form\":{\"data\":{\"id\":\"4\",\"type\":\"custom_form\"}},\"contactable\":{\"data\":{\"id\":\"41810\",\"type\":\"prospect\"}}}}],\"meta\":{\"total_pages\":2,\"limit_per_page\":25,\"total_entries\":50},\"links\":{\"self\":\"/v1/custom_form_entry?page=1\",\"next\":\"/v1/custom_form_entry?page=2\"}}"}],"_postman_id":"0a621227-9c9a-4bb8-89cd-a467a933bbc5"},{"name":"Submit Custom Form Entry  (Form Data Body)","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/forms`, function (err, response) {","   pm.globals.set(\"custom_form_uuid\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"9865b578-d794-465e-abb4-7f8ddb58e261","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"Bob","description":"<p>Form Field values are submitted as field_id -&gt; value pairs. The specific field uuid can be found in Lawmatics, in the Custom Form builder, under \"API Details\"</p>\n","type":"text"},{"key":"last_name","value":"Loblaw","type":"text"},{"key":"utm_source","value":"facebook","description":"<p>Optional Source tracking field, this value can be extracted from the cookie set by your LM tracking pixel</p>\n","type":"text"},{"key":"utm_campaign","value":"lookalike1","description":"<p>Optional Campaign tracking field, this value can be extracted from the cookie set by your LM tracking pixel</p>\n","type":"text"},{"key":"referring_url","value":"https://www.google.com/some_search_query","description":"<p>Optional Referring URL, this value can be tracked and automatically set by your LM tracking pixel</p>\n","type":"text"},{"key":"RmllbGRzOjpDdXN0b21GaWVsZC1DdXN0b21GaWVsZDo6UHJvc3BlY3QtMTAyNw==","value":"An important case","description":"<p>Old v1 long id for custom field</p>\n","type":"text"},{"key":"custom_field_2263","value":"FILL ME IN","description":"<p>v2 simple id for custom field</p>\n","type":"text"}]},"url":"{{host}}/v1/forms/:custom_form_uuid/submit","description":"<p>This <strong>Unauthenticated</strong> endpoint (you do not need a Developer App) submits <strong>Custom Form values</strong>. Keys for the values use the <strong>Custom Form</strong> field ids are found in Lawmatics, or found via the GET endpoint.</p>\n<p>Data should be serialized via form-data (plain html5 forms) or JSON body (shown in next example)</p>\n<blockquote>\n<p><strong>Note:</strong> Any automations will trigger as expected when this <strong>Custom Form</strong> is submitted via the API.</p>\n</blockquote>\n","urlObject":{"path":["v1","forms",":custom_form_uuid","submit"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_form_uuid}}","key":"custom_form_uuid"}]}},"response":[{"id":"236f1424-39f5-40d0-9b07-cc12c7c4b541","name":"POST Submit Custom Form (Form Data Body)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"first_name","value":"Bob","description":"An example param for a standard form field","type":"text"},{"key":"last_name","value":"Loblaw","description":"An example param for a standard form field","type":"text"},{"key":"utm_source","value":"facebook","description":"An example param for a Source tracking field, this value can be extracted from the cookie set by your LM tracking pixel","type":"text"},{"key":"utm_campaign","value":"lookalike1","description":"An example param for a Campaign tracking field, this value can be extracted from the cookie set by your LM tracking pixel","type":"text"},{"key":"custom_field_2263","value":"CustomFieldValue","description":"An example param for a custom or non-standard field. (These are found under API details on the Form builder page).","type":"text"}]},"url":"https://api.lawmatics.com/v1/forms/31a81c7b-378f-4d5f-8d03-57c2fb43fe3c/submit"},"status":"Created","code":201,"_postman_previewlanguage":"auto","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"58956\",\n        \"type\": \"contact\",\n        \"attributes\": {\n            \"first_name\": \"Bob\",\n            \"last_name\": \"Loblaw\",\n            \"email\": \"bob@loblaw.com\",\n            \"created_at\": \"2018-10-17T12:43:21.570-07:00\",\n            \"updated_at\": \"2018-10-17T12:43:21.570-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"9865b578-d794-465e-abb4-7f8ddb58e261"},{"name":"Submit Custom Form Entry (JSON Body)","id":"657b7eb3-e6ed-4b98-a9a5-d365ca483e50","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Another\",\n\t\"last_name\": \"Test\",\n\t\"utm_source\": \"facebook\",\n\t\"utm_campaign\": \"test1\",\n\t\"RmllbGRzOjpDdXN0b21GaWVsZC1DdXN0b21GaWVsZDo6UHJvc3BlY3QtMTAyNw==\": \"An important case\",\n\t\"custom_field_2263\": \"FILL ME IN\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/forms/:custom_form_uuid/submit","description":"<p>This <strong>Unauthenticated</strong> endpoint (you do not need a Developer App) submits <strong>Custom Form values</strong>. Keys for the values use the <strong>Custom Form</strong> field ids are found in Lawmatics, or found via the GET endpoint.</p>\n<p>Data should be serialized via form-data (plain html5 forms) (previous example) or JSON body.</p>\n<blockquote>\n<p><strong>Note:</strong> Any automations will trigger as expected when this <strong>Custom Form</strong> is submitted via the API.</p>\n</blockquote>\n","urlObject":{"path":["v1","forms",":custom_form_uuid","submit"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{custom_form_uuid}}","key":"custom_form_uuid"}]}},"response":[{"id":"8a97abb2-7e6a-467f-8636-e655a1c42f62","name":"POST Submit Custom Form (JSON Body)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Another\",\n\t\"last_name\": \"Test\",\n\t\"utm_source\": \"facebook\",\n\t\"utm_campaign\": \"test1\",\n\t\"RmllbGRzOjpDdXN0b21GaWVsZC1DdXN0b21GaWVsZDo6UHJvc3BlY3QtMTAyNw==\": \"An important case\",\n\t\"custom_field_2263\": \"FILL ME IN\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/forms/:custom_form_uuid/submit","host":["{{host}}"],"path":["v1","forms",":custom_form_uuid","submit"],"variable":[{"key":"custom_form_uuid","value":"c3005c33-c92b-4610-89d8-b54370b00ba2"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 30 Dec 2019 22:48:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=8DCToSAcwWrlk15ECQhJvBQBDJO4AXn2wRA/I49OPaCEAsRUv5xbKuJqCGfhXh1AKBQ6zOnW8DFK/aJJnrmVqSvXZguhjO8oFIjb0DyOKkP1qyMCDfVShiAva5bZ; Expires=Mon, 06 Jan 2020 22:48:51 GMT; Path=/"},{"key":"ETag","value":"W/\"8ccb5ca347640bd20b8c3bcc6bd168ef\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7cc686ae-cb31-4e5a-8fd8-fc761ab5d4ea"},{"key":"X-Runtime","value":"0.882725"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"356248\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Another\",\n            \"last_name\": \"Test\",\n            \"utm_source\": \"facebook\",\n            \"utm_campaign\": \"test1\",\n            \"created_at\": \"2019-12-30T14:48:52.146-08:00\",\n            \"updated_at\": \"2019-12-30T14:48:52.206-08:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"657b7eb3-e6ed-4b98-a9a5-d365ca483e50"}],"id":"eb7c83cb-fb93-473d-b1db-19f4b87fa2d9","description":"<p>NOTE: Field IDs for fields that are not considered \"Standard\", such as General fields, and Custom fields, are referred to by special long-form uuids that are enumerated on the API details page of the Custom Form in Lawmatics. (E.g. <a href=\"https://app.lawmatics.com/custom-forms/:custom_form_id/api-details\">https://app.lawmatics.com/custom-forms/:custom_form_id/api-details</a>).</p>\n<p>The API Details page link is found on the relevant Custom Form edit page as a button in the bottom action bar.</p>\n<p>Field IDs can also be found via the response body of the <code>GET Custom Form</code> endpoint.</p>\n<p>The \"custom_form_uuid\" needed to GET or POST a custom form, is also found on the API details page. It is NOT the same as the form custom form id you can see in the address bar of your browser on the Lawmatics form builder page.</p>\n<h4 id=\"form-components\">Form Components:</h4>\n<blockquote>\n<p><strong>Standard Fields</strong> - Common contact related Lawmatics defined fields. Standard fields have human readable field_ids. </p>\n</blockquote>\n<blockquote>\n<p><strong>Custom Fields</strong> - Custom user defined fields. Custom fields have long form \"uuid\" field_ids. </p>\n</blockquote>\n<blockquote>\n<p><strong>General Fields</strong> - General fields whose values are not considered important enough to save as data on a Contact/Matter. Values saved on General fields are saved to the form submission record and can only be viewed on the <code>https://app.lawmatics.com/custom-forms/:custom_form_id/values</code> page. General Fields have long form \"uuid\" field_ids. </p>\n</blockquote>\n<blockquote>\n<p><strong>Instruction Blocks</strong> - Blocks of User defined text these are read only and can not be set. </p>\n</blockquote>\n<h4 id=\"supported-standard-field-ids\">Supported Standard Field IDs:</h4>\n<p><strong>Contact-related</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Label</th>\n<th>Field ID</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>First name</td>\n<td>first_name</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Middle name</td>\n<td>middle_name</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Last name</td>\n<td>last_name</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Name prefix</td>\n<td>name_prefix</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Name suffix</td>\n<td>name_suffix</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Informal name</td>\n<td>informal_name</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Title</td>\n<td>title</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Bio</td>\n<td>bio</td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td>Birthdate</td>\n<td>birthdate</td>\n<td>date</td>\n<td></td>\n</tr>\n<tr>\n<td>Gender</td>\n<td>gender</td>\n<td>lookup</td>\n<td>Free text at the API/form-submission level. The rendered Lawmatics form limits the visible dropdown to a fixed list, but a direct submission isn't restricted to it</td>\n</tr>\n<tr>\n<td>Marital Status</td>\n<td>marital_status</td>\n<td>lookup</td>\n<td>Same as Gender, free text on submission, fixed list only enforced by the rendered form's dropdown</td>\n</tr>\n<tr>\n<td>Citizenship</td>\n<td>citizenship</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Driver license</td>\n<td>driver_license</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Social security</td>\n<td>social_security</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Employer</td>\n<td>employer</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Occupation</td>\n<td>occupation</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Timezone</td>\n<td>timezone</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Hobbies</td>\n<td>hobbies</td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td>Email (Primary)</td>\n<td>email</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Phone (Primary)</td>\n<td>phone</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Address (Primary) - Street</td>\n<td>street</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Address (Primary) - Street2</td>\n<td>street2</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Address (Primary) - City</td>\n<td>city</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Address (Primary) - State</td>\n<td>state</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Address (Primary) - Zipcode</td>\n<td>zipcode</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Address (Primary) - Country</td>\n<td>country</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Unsubscribed</td>\n<td>unsubscribed</td>\n<td>boolean</td>\n<td>String-parsing (\"true\"/\"1\"/\"yes\" etc. → true, \"false\"/\"0\"/blank etc. → false)</td>\n</tr>\n<tr>\n<td>Custom Contact Type</td>\n<td>custom_contact_type</td>\n<td>lookup</td>\n<td>Needs the actual internal ID of one of the firm's Custom Contact Types, not its name</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Matter-related</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Label</th>\n<th>Field ID</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Case Title</td>\n<td>case_title</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Case Blurb</td>\n<td>case_blurb</td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td>Status</td>\n<td>status</td>\n<td>lookup</td>\n<td>Accepts the label directly (\"hired\", \"pnc\", \"lost\")</td>\n</tr>\n<tr>\n<td>Sub Status</td>\n<td>sub_status</td>\n<td>lookup</td>\n<td>If the submitted value happens to be exactly \"hired\", \"pnc\", or \"lost\" (a top-level Status name), it redirects and sets the Matter's overall Status instead of Sub Status. Any other value requires the internal Sub Status ID</td>\n</tr>\n<tr>\n<td>Stage</td>\n<td>stage</td>\n<td>lookup</td>\n<td>Requires the internal ID, except sending exactly \"0\" is special-cased to mean \"No Stage\"</td>\n</tr>\n<tr>\n<td>Practice Area</td>\n<td>practice_area</td>\n<td>lookup</td>\n<td>Accepts either the internal ID or the Practice Area's name (case-insensitive exact match). If neither resolves, the whole submission fails with an \"Invalid Practice Area\" error</td>\n</tr>\n<tr>\n<td>Type of Billing</td>\n<td>type_of_billing</td>\n<td>lookup</td>\n<td>Accepts the label directly (\"hourly\", \"flat_fee\", \"contingency\")</td>\n</tr>\n<tr>\n<td>Actual Value</td>\n<td>actual_value</td>\n<td>currency</td>\n<td></td>\n</tr>\n<tr>\n<td>Estimated Value</td>\n<td>estimated_value</td>\n<td>currency</td>\n<td></td>\n</tr>\n<tr>\n<td>Lead Cost</td>\n<td>lead_cost</td>\n<td>currency</td>\n<td></td>\n</tr>\n<tr>\n<td>Source</td>\n<td>source</td>\n<td>lookup</td>\n<td>Requires the internal ID</td>\n</tr>\n<tr>\n<td>Campaign</td>\n<td>campaign</td>\n<td>lookup</td>\n<td>Requires the internal ID. If the Matter doesn't already have a Source set, submitting a valid Campaign ID auto-fills the Source from that Campaign's own linked Source</td>\n</tr>\n<tr>\n<td>Referring Url</td>\n<td>referring_url</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Converted At</td>\n<td>converted_date</td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td>Statute of Limitations</td>\n<td>statute_of_limitations</td>\n<td>date</td>\n<td></td>\n</tr>\n<tr>\n<td>Originating Attorney</td>\n<td>originating_attorney</td>\n<td>lookup</td>\n<td>Requires the internal User ID</td>\n</tr>\n<tr>\n<td>Lead Attorney</td>\n<td>lead_attorney</td>\n<td>lookup</td>\n<td>Requires the internal User ID</td>\n</tr>\n<tr>\n<td>Salesperson</td>\n<td>salesperson</td>\n<td>lookup</td>\n<td>Requires the internal User ID</td>\n</tr>\n<tr>\n<td>Owned By</td>\n<td>owned_by</td>\n<td>lookup</td>\n<td>Requires the internal User ID</td>\n</tr>\n<tr>\n<td>Assigned Staff</td>\n<td>assigned_staff[]</td>\n<td>multi_picklist</td>\n<td>Matches against firm Users by internal ID</td>\n</tr>\n<tr>\n<td>Tags</td>\n<td>tag_ids</td>\n<td>tags</td>\n<td>Requires internal Tag IDs. Two accepted formats:  <br />  <br />A plain array of IDs ([1, 2, 3]) which replaces the contactable's tags entirely with whichever of those IDs actually belong to the firm.  <br />  <br />A hash with selected/baseline keys ({\"selected\": [1, 2, 3], \"baseline\": [1, 2]}) which enables a smarter merge mode. If selected is missing or explicitly null in the hash format, tags aren't touched at all (rather than accidentally clearing everything). This requires having the matter's tags before the form submission, sending them with the form submission.</td>\n</tr>\n<tr>\n<td>Sync To OneDrive</td>\n<td>sync_to_one_drive</td>\n<td>boolean</td>\n<td>String-parsing (\"true\"/\"1\"/\"yes\" etc. → true, \"false\"/\"0\"/blank etc. → false)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Company</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Label</th>\n<th>Field ID</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Company Name</td>\n<td>company_name</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Company Email</td>\n<td>company_email</td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td>Company Phone</td>\n<td>company_phone</td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Other</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Label</th>\n<th>Field ID</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Note</td>\n<td>note</td>\n<td>string</td>\n<td>The field's label in the form builder becomes the Note's title, and the submitted text becomes the Note's body</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Tracking Parameters</strong> (hidden fields)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field ID</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>utm_source</td>\n<td>string</td>\n<td>Matched against a firm Source's <code>utm_match</code> value. Sets the Matter's Source if found</td>\n</tr>\n<tr>\n<td>utm_campaign</td>\n<td>string</td>\n<td>Matched against a Campaign under the matched Source's <code>utm_match</code> value. Only checked if Source matched first</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"eb7c83cb-fb93-473d-b1db-19f4b87fa2d9","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Email Addresses","item":[{"name":"Email Address","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/email_addresses`, function (err, response) {","   pm.globals.set(\"email_address_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"7cb89394-e56b-4532-99af-b277ec988e70","request":{"method":"GET","header":[],"url":"{{host}}/v1/email_addresses/:email_address_id","description":"<p>A specific <strong>Email Address</strong> by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_addresses",":email_address_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{email_address_id}}","key":"email_address_id"}]}},"response":[{"id":"a50c826b-61cf-4586-9226-75e6ad1f775d","name":"GET Email Address","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/email_addresses/:email_address_id","host":["{{host}}"],"path":["v1","email_addresses",":email_address_id"],"variable":[{"key":"email_address_id","value":"123"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"3414d9aa552f6cdd9db2a8d681ecc847\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"3ff648bd-e604-4293-8ced-10d08a3e0de2"},{"key":"X-Runtime","value":"0.096809"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"123\",\n        \"type\": \"email_address\",\n        \"attributes\": {\n            \"label\": \"Primary\",\n            \"info\": \"susan61@gmail.com\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"62\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7cb89394-e56b-4532-99af-b277ec988e70"},{"name":"Email Addresses","id":"e98f9e1a-159f-4dc0-af87-5aff22e581d0","request":{"method":"GET","header":[],"url":"{{host}}/v1/email_addresses","description":"<p>A <strong>paginated</strong> list of all <strong>Email Addresses</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>label</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>info</code></td>\n<td>string</td>\n<td>The actual email value</td>\n</tr>\n<tr>\n<td><code>informationable_type</code></td>\n<td>string</td>\n<td>One of <code>Prospect</code>, <code>Matter</code>, <code>Contact</code>, <code>Company</code>, <code>Firm</code> case-insensitive</td>\n</tr>\n<tr>\n<td><code>informationable_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_addresses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a70b1d35-24f3-4e39-88d4-531eda07cf03","name":"GET Email Addresses","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/email_addresses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"2d545f4bd920972ad50c91bb3d853f17\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e00dc2a7-8550-4acb-8078-169f06b699ca"},{"key":"X-Runtime","value":"0.164184"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"363\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"zoobiedooby213123123@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"193\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"356\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"189\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"304\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"162\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"302\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"161\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"300\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"160\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"298\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"159\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"296\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"158\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"294\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"157\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"292\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"156\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"290\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"155\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"288\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey+changed@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"154\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"286\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"153\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"284\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"152\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"276\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey+changed@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"148\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"274\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"147\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"272\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"146\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"270\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"145\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"268\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"144\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"266\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"143\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"264\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"142\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"260\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"140\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"258\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"139\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"256\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"138\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"254\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"137\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"252\",\n            \"type\": \"email_address\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"roey@lawmatics.com\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"136\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 6,\n        \"limit_per_page\": 25,\n        \"total_entries\": 138\n    },\n    \"links\": {\n        \"self\": \"/v1/email_addresses?page=1\",\n        \"next\": \"/v1/email_addresses?page=2\"\n    }\n}"}],"_postman_id":"e98f9e1a-159f-4dc0-af87-5aff22e581d0"},{"name":"Create Email Address","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_email_address_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/email_addresses`, function (err, response) {","   pm.globals.set(\"informationable_id\", response.json().data.find(({relationships}) => ","   relationships.informationable.data.type == 'contact').relationships.informationable.data.id)","});"],"type":"text/javascript"}}],"id":"59d1e455-96ff-4231-b039-feae5915fe03","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"Test\",\n    \"info\": \"roey+api@lawmatics.com\",\n    \"informationable_type\": \"Contact\",\n    \"informationable_id\": {{informationable_id}}\n}"},"url":"{{host}}/v1/email_addresses","description":"<p>Create a new <strong>Email Address</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>label</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Primary\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>info</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"bob@example.com\"</code></td>\n<td>Must match a valid email format. Automatically lowercased and stripped of whitespace.</td>\n</tr>\n<tr>\n<td><code>informationable_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Prospect</code>, <code>Contact</code>, <code>Company</code>, <code>Firm</code> (case-insensitive; <code>matter</code> also accepted).</td>\n</tr>\n<tr>\n<td><code>informationable_id</code></td>\n<td>id</td>\n<td>Conditional</td>\n<td><code>\"12345\"</code></td>\n<td>Required for all <code>informationable_type</code> values except <code>Firm</code></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Setting the Email Address on a <code>Prospect</code> (Matter) sets it on the Matter's linked <strong>Contact</strong>/<strong>Company</strong>, not the Matter itself. </p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> Only one <code>label: \"Primary\"</code> Email Address is allowed per owner — a second one returns a 422.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_addresses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"47b1e8c1-7f11-4265-96f3-f3aaab0fe6fb","name":"POST Create Email Address","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"Test\",\n    \"info\": \"roey+api@lawmatics.com\",\n    \"informationable_type\": \"Prospect\",\n    \"informationable_id\": 113\n}"},"url":"{{host}}/v1/email_addresses"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"98064004a3062938fc0390e8dc8c6722\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6ff45c23-334a-4872-9a19-7debe14fd2b2"},{"key":"X-Runtime","value":"0.125842"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"378\",\n        \"type\": \"email_address\",\n        \"attributes\": {\n            \"label\": \"Test\",\n            \"info\": \"roey+api@lawmatics.com\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"112\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"59d1e455-96ff-4231-b039-feae5915fe03"},{"name":"Update Email Address","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/email_addresses`, function (err, response) {","   pm.globals.set(\"informationable_id\", response.json().data.find(({relationships}) => ","   relationships.informationable.data.type == 'contact').relationships.informationable.data.id)","});"],"type":"text/javascript"}}],"id":"fece9f7a-8c0a-4449-9b58-0f13d740427f","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"label\": \"New Label\",\n    \"info\": \"roey+changed@lawmatics.com\",\n    \"informationable_type\": \"Contact\",\n    \"informationable_id\": {{informationable_id}}\n}"},"url":"{{host}}/v1/email_addresses/:email_address_id","description":"<p>Updates an <strong>Email Address</strong> by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_addresses",":email_address_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{email_address_id}}","key":"email_address_id"}]}},"response":[{"id":"b58ab34a-183a-48b1-9433-93f69d8714b9","name":"PUT Update Email Address","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"label\": \"New Label\",\n    \"info\": \"roey+changed@lawmatics.com\",\n    \"informationable_type\": \"Prospect\",\n    \"informationable_id\": 113\n}"},"url":{"raw":"{{host}}/v1/email_addresses/:email_address_id","host":["{{host}}"],"path":["v1","email_addresses",":email_address_id"],"variable":[{"key":"email_address_id","value":"{{created_email_address_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"f9af06d55e06c77880b503695b024acc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"368f7ec6-8180-493f-88c3-5d5a820b3a78"},{"key":"X-Runtime","value":"0.103245"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"379\",\n        \"type\": \"email_address\",\n        \"attributes\": {\n            \"label\": \"New Label\",\n            \"info\": \"roey+changed@lawmatics.com\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"112\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"fece9f7a-8c0a-4449-9b58-0f13d740427f"},{"name":"Delete Email Address","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/email_addresses`, function (err, response) {","   pm.globals.set(\"email_address_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"e854e686-3175-47ee-847c-ff489276c538","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/email_addresses/:email_address_id","description":"<p>Deletes the Email Address. It will no longer appear in any future GET responses.</p>\n<p><strong>Note:</strong> If this was the Contact/Company's Primary email and they have Client Portal access, their portal login email updates automatically to whichever email remains (or becomes blank if none do).</p>\n<p><code>email_address_id</code> is the Email Address's own ID (not the Contact/Company/Firm it belongs to).</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_addresses",":email_address_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{email_address_id}}","key":"email_address_id"}]}},"response":[{"id":"c8343a57-bd91-4ed2-b48b-71b8784849ef","name":"DELETE Delete Email Address","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/email_addresses/:email_address_id","host":["{{host}}"],"path":["v1","email_addresses",":email_address_id"],"variable":[{"key":"email_address_id","value":"{{created_email_address_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"f9af06d55e06c77880b503695b024acc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"3819928d-6947-4373-9a77-f93f9d38d771"},{"key":"X-Runtime","value":"0.156250"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"379\",\n        \"type\": \"email_address\",\n        \"attributes\": {\n            \"label\": \"New Label\",\n            \"info\": \"roey+changed@lawmatics.com\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"112\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"e854e686-3175-47ee-847c-ff489276c538"}],"id":"85916f17-3ea7-497e-a794-4c8a13d52ec1","description":"<p>A <strong>Email Address</strong> is contact information that belongs to a <strong>Firm</strong>, <strong>Contact</strong>, or <strong>Company.</strong></p>\n","_postman_id":"85916f17-3ea7-497e-a794-4c8a13d52ec1","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Email Campaigns","item":[{"name":"Email Campaign","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/email_campaigns`, function (err, response) {","   pm.globals.set(\"email_campaign_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"b602e9f7-a065-4f93-8057-e03e30ad1914","request":{"method":"GET","header":[],"url":"{{host}}/v1/email_campaigns/:id","description":"<p>Returns a specific <strong>Email Campaign</strong> in Lawmatics.</p>\n<p>To retrieve a specific campaign, use the format <code>TypeOfCampaign-id</code>:</p>\n<ul>\n<li><p>Marketing campaign: <code>/v1/email_campaigns/MarketingCampaign-1</code></p>\n</li>\n<li><p>Recurring campaign: <code>/v1/email_campaigns/RecurringCampaign-1</code></p>\n</li>\n<li><p>Date campaign: <code>/v1/email_campaigns/DateCampaign-1</code></p>\n</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_campaigns",":id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{email_campaign_id}}","key":"id"}]}},"response":[{"id":"1c3567b7-dfca-422c-ae66-81972546a4f6","name":"GET Email Campaign","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/email_campaigns/MarketingCampaign-1"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"MarketingCampaign-1\",\n        \"type\": \"marketing_campaign_view\",\n        \"attributes\": {\n            \"name\": \"new campagin\",\n            \"status\": 0,\n            \"open_rate\": null,\n            \"send_count\": 0,\n            \"sent_at\": null,\n            \"started_processing_at\": \"2023-04-17T11:36:37.108-07:00\",\n            \"campaign_type\": \"MarketingCampaign\",\n            \"created_at\": \"2023-04-17T10:47:32.675-07:00\"\n        },\n        \"relationships\": {\n            \"audience\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"audience\"\n                }\n            },\n            \"custom_email\": {\n                \"data\": {\n                    \"id\": \"23\",\n                    \"type\": \"custom_email\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"b602e9f7-a065-4f93-8057-e03e30ad1914"},{"name":"Email Campaigns","id":"1db2c433-0527-4080-8bb6-9e31ff602dbd","request":{"method":"GET","header":[],"url":"{{host}}/v1/email_campaigns","description":"<p>Returns all email campaigns in <strong>Lawmatics</strong>.</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>campaign_type</code></td>\n<td>enum</td>\n<td>One of <code>MarketingCampaign</code>, <code>DateCampaign</code>, <code>RecurringCampaign</code></td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>enum</td>\n<td>Accepts label directly: <code>run_once</code>, <code>inactive</code>, <code>active</code>. <code>run_once</code> only applies to Marketing campaigns; Recurring and Date campaigns only ever have <code>inactive</code>/<code>active</code></td>\n</tr>\n<tr>\n<td><code>send_count</code></td>\n<td>integer</td>\n<td>For Marketing/Date campaigns, this is that campaign's own send count. For Recurring campaigns, it's a running total across every send in the series</td>\n</tr>\n<tr>\n<td><code>sent_at</code></td>\n<td>datetime</td>\n<td>For Marketing/Date campaigns, this is that campaign's own send time. For Recurring campaigns, it updates to the most recent send in the series</td>\n</tr>\n<tr>\n<td><code>campaign_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_campaigns"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"87536e37-8960-42a7-9682-95916c0dba32","name":"GET Email Campaigns","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/email_campaigns"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"RecurringCampaign-1\",\n            \"type\": \"marketing_campaign_view\",\n            \"attributes\": {\n                \"name\": \"jasmine recurring\",\n                \"status\": 1,\n                \"open_rate\": null,\n                \"send_count\": 0,\n                \"sent_at\": \"2023-07-26T16:29:07.937-07:00\",\n                \"started_processing_at\": \"2023-07-26T16:28:19.471-07:00\",\n                \"campaign_type\": \"RecurringCampaign\",\n                \"created_at\": \"2023-07-24T11:28:27.459-07:00\"\n            },\n            \"relationships\": {\n                \"audience\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"audience\"\n                    }\n                },\n                \"custom_email\": {\n                    \"data\": {\n                        \"id\": \"25\",\n                        \"type\": \"custom_email\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"MarketingCampaign-1\",\n            \"type\": \"marketing_campaign_view\",\n            \"attributes\": {\n                \"name\": \"new campagin\",\n                \"status\": 0,\n                \"open_rate\": null,\n                \"send_count\": 0,\n                \"sent_at\": null,\n                \"started_processing_at\": \"2023-04-17T11:36:37.108-07:00\",\n                \"campaign_type\": \"MarketingCampaign\",\n                \"created_at\": \"2023-04-17T10:47:32.675-07:00\"\n            },\n            \"relationships\": {\n                \"audience\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"audience\"\n                    }\n                },\n                \"custom_email\": {\n                    \"data\": {\n                        \"id\": \"23\",\n                        \"type\": \"custom_email\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/marketing_campaign_views?page=1\"\n    }\n}"},{"id":"54d34b2a-045b-4efe-b8c3-d91dec3039b3","name":"GET Email Campaigns by Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/email_campaigns?filter_by=campaign_type&filter_on=MarketingCampaign","host":["{{host}}"],"path":["v1","email_campaigns"],"query":[{"key":"filter_by","value":"campaign_type"},{"key":"filter_on","value":"MarketingCampaign"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"MarketingCampaign-2\",\n            \"type\": \"email_campaign\",\n            \"attributes\": {\n                \"name\": \"run once\",\n                \"status\": 0,\n                \"open_rate\": null,\n                \"send_count\": 0,\n                \"sent_at\": null,\n                \"started_processing_at\": \"2023-07-28T07:41:18.465-07:00\",\n                \"campaign_type\": \"MarketingCampaign\",\n                \"created_at\": \"2023-07-28T07:41:14.484-07:00\"\n            },\n            \"relationships\": {\n                \"audience\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"audience\"\n                    }\n                },\n                \"custom_email\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"custom_email\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"MarketingCampaign-15\",\n            \"type\": \"email_campaign\",\n            \"attributes\": {\n                \"name\": \"another marketing campaign\",\n                \"status\": 0,\n                \"open_rate\": null,\n                \"send_count\": null,\n                \"sent_at\": null,\n                \"started_processing_at\": null,\n                \"campaign_type\": \"MarketingCampaign\",\n                \"created_at\": \"2023-08-09T14:32:34.630-07:00\"\n            },\n            \"relationships\": {\n                \"audience\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"audience\"\n                    }\n                },\n                \"custom_email\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"custom_email\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/marketing_campaign_views?page=1\"\n    }\n}"}],"_postman_id":"1db2c433-0527-4080-8bb6-9e31ff602dbd"}],"id":"214858c1-b3b4-45d2-a2b2-60342a84352e","description":"<p><strong>An Email</strong> <strong>Campaign</strong> is a marketing email send (or scheduled series of sends.) It can be one of three types: Marketing, Date, or Recurring.</p>\n","_postman_id":"214858c1-b3b4-45d2-a2b2-60342a84352e","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Email Campaign Stats","item":[{"name":"Email Campaign Stats","event":[{"listen":"prerequest","script":{"exec":["let token = pm.environment.get('access_token')","","pm.sendRequest({","   url: `${pm.environment.get('host')}/v1/email_campaigns`,","   method: 'GET',","   header: {","       'Authorization': `Bearer ${token}`","   }   ","}, function (err, response) {","   pm.globals.set(\"email_campaign_id\", response.json().data.find(campaign => campaign.attributes.campaign_type === 'MarketingCampaign').id);","});"],"type":"text/javascript"}}],"id":"48cde45c-3f17-4c08-b1e0-8fd7059abd65","request":{"method":"GET","header":[],"url":"{{host}}/v1/email_campaign_stats/:id","description":"<p>Retrieves a statistics of a specific email campaign in Lawmatics. Recurring Campaigns aren't supported.</p>\n<p>To retrieve a specific campaign, use the following format: <code>TypeofCampaign-id</code></p>\n<ul>\n<li><p>Marketing campaign: <code>/v1/email_campaign_stats/MarketingCampaign-1</code></p>\n</li>\n<li><p>Recurring campaign: <code>/v1/email_campaign_stats/DateCampaign-1</code></p>\n</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","email_campaign_stats",":id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{email_campaign_id}}","key":"id"}]}},"response":[{"id":"bcbd2cac-f8ee-46ca-a8e2-197c7214cadb","name":"GET Email Campaign Stats","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/email_campaign_stats/:id","host":["{{host}}"],"path":["v1","email_campaign_stats",":id"],"variable":[{"key":"id","value":"MarketingCampaign-1"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 160,\n                \"email\": \"jasmine+3@lawmatics.com\",\n                \"first_name\": \"lastOne3\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 146,\n                \"email\": \"jasmine+2@lawmatics.com\",\n                \"first_name\": \"lastOne2\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 149,\n                \"email\": \"bran@example.com\",\n                \"first_name\": \"Bran\",\n                \"last_name\": \"Stark\",\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 145,\n                \"email\": \"jasmine+3@lawmatics.com\",\n                \"first_name\": \"lastOne3\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 221,\n                \"email\": \"jasmine+1@lawmatics.com\",\n                \"first_name\": \"lastOne\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 151,\n                \"email\": \"jasmine+3@lawmatics.com\",\n                \"first_name\": \"lastOne3\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 152,\n                \"email\": \"jasmine+1@lawmatics.com\",\n                \"first_name\": \"lastOne\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 144,\n                \"email\": \"jasmine+2@lawmatics.com\",\n                \"first_name\": \"lastOne2\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 155,\n                \"email\": \"jasmine+1@lawmatics.com\",\n                \"first_name\": \"lastOne\",\n                \"last_name\": null,\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        },\n        {\n            \"id\": null,\n            \"type\": \"email_event\",\n            \"attributes\": {\n                \"contactable_id\": 132,\n                \"email\": \"sansastark@example.com\",\n                \"first_name\": \"Sansa\",\n                \"last_name\": \"Stark\",\n                \"delivered\": false,\n                \"bounces\": 0,\n                \"clicks\": 0,\n                \"opens\": 0\n            }\n        }\n    ]\n}\n"}],"_postman_id":"48cde45c-3f17-4c08-b1e0-8fd7059abd65"}],"id":"59b57e69-df6d-4226-8854-68e7ab7be786","description":"<p>Returns per-recipient delivery/engagement stats (delivered, opens, clicks, bounces) for a specific Marketing or Date Campaign.</p>\n","_postman_id":"59b57e69-df6d-4226-8854-68e7ab7be786","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Events (Appointments)","item":[{"name":"Event","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/events`, function (err, response) {","   pm.globals.set(\"event_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"17a67915-9d7b-433f-b742-ac177927ad45","request":{"method":"GET","header":[],"url":"{{host}}/v1/events/:event_id","description":"<p>A <strong>paginated</strong> list of all Events in Lawmatics. Appointments and Registerable Events, included.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","events",":event_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{event_id}}","key":"event_id"}]}},"response":[{"id":"4ccbab98-5c65-4dc4-a03c-25a8fa596b5e","name":"GET Event","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/events/:event_id?fields=all","host":["{{host}}"],"path":["v1","events",":event_id"],"query":[{"key":"fields","value":"all"}],"variable":[{"key":"event_id","value":"14"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"d8ada6f6b811cd3dfe019cd17605c148\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f1e975b5-2ad0-4484-be70-6c528576d342"},{"key":"X-Runtime","value":"0.305908"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"14\",\n        \"type\": \"event\",\n        \"attributes\": {\n            \"name\": \"New Appointment\",\n            \"description\": \"API Appointment\",\n            \"time_zone\": \"America/Los_Angeles\",\n            \"start_date\": \"2022-06-28T15:00:00.000-07:00\",\n            \"end_date\": \"2020-06-29T00:00:00.000-07:00\",\n            \"all_day\": true,\n            \"reminder_type\": \"minutes\",\n            \"reminder_delay_length\": 10,\n            \"reminder_sent\": false,\n            \"location\": {\n                \"id\": 1,\n                \"name\": \"Miami Location\",\n                \"locationable_type\": \"Firm\",\n                \"locationable_id\": 2,\n                \"address_id\": 101,\n                \"firm_id\": 2,\n                \"created_at\": \"2021-10-31T19:59:38.874-07:00\",\n                \"updated_at\": \"2021-10-31T19:59:38.874-07:00\"\n            },\n            \"send_invites\": true,\n            \"event_type_id\": 4,\n            \"attendee_name\": \"Jennifer Lee\",\n            \"attendee_email\": \"jennifer1@gmail.com\",\n            \"attendee_phone\": \"651-555-7796\",\n            \"location_name\": \"Miami Location\",\n            \"location_address\": \"1234 Miami, Miami, FL 12345, United States\",\n            \"zoom_us_meeting_url\": null,\n            \"created_at\": \"2022-05-10T15:19:38.947-07:00\",\n            \"updated_at\": \"2022-05-10T15:19:39.011-07:00\"\n        },\n        \"relationships\": {\n            \"eventable\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"users\": {\n                \"data\": [\n                    {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                ]\n            },\n            \"event_type\": {\n                \"data\": {\n                    \"id\": \"4\",\n                    \"type\": \"event_type\"\n                }\n            },\n            \"address\": {\n                \"data\": {\n                    \"id\": \"101\",\n                    \"type\": \"address\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"17a67915-9d7b-433f-b742-ac177927ad45"},{"name":"Events","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is Okay\", function () {","    pm.response.to.be.ok;","});","pm.test(\"Response time is less than 6s\", function () {","    pm.expect(pm.response.responseTime).to.be.below(6000);","});"],"type":"text/javascript"}}],"id":"c5e65bd4-420a-437f-b94f-bb6c9458c870","request":{"method":"GET","header":[],"url":"{{host}}/v1/events","description":"<p>A <strong>paginated</strong> list of all Events in Lawmatics. Appointments and Registerable Events, included.</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>start_date</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>end_date</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>all_day</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>event_type_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>location_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Valid Shortcuts:</strong> <code>matter_id</code>, <code>prospect_id</code>, <code>contact_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","events"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"53e11e8a-eaf7-46c0-8415-8bba45346a23","name":"GET Events","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/events?fields=all","host":["{{host}}"],"path":["v1","events"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c0b83df00a4a4f5d9c3aa251a4bdf259\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7cb37883-d252-494f-b288-6d25bbf5af8a"},{"key":"X-Runtime","value":"0.868393"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"5\",\n            \"type\": \"event\",\n            \"attributes\": {\n                \"name\": \"Initial Consultation\",\n                \"description\": \"test\",\n                \"time_zone\": \"America/Los_Angeles\",\n                \"start_date\": \"2021-12-31T22:01:00.000-08:00\",\n                \"end_date\": \"2021-12-31T22:31:00.000-08:00\",\n                \"all_day\": false,\n                \"reminder_type\": \"minutes\",\n                \"reminder_delay_length\": null,\n                \"reminder_sent\": false,\n                \"location\": {\n                    \"id\": 1,\n                    \"name\": \"Miami Location\",\n                    \"locationable_type\": \"Firm\",\n                    \"locationable_id\": 2,\n                    \"address_id\": 101,\n                    \"firm_id\": 2,\n                    \"created_at\": \"2021-10-31T19:59:38.874-07:00\",\n                    \"updated_at\": \"2021-10-31T19:59:38.874-07:00\"\n                },\n                \"send_invites\": null,\n                \"event_type_id\": 5\n            },\n            \"relationships\": {\n                \"eventable\": {\n                    \"data\": {\n                        \"id\": \"105\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"5\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"event_type\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"event_type\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"4\",\n            \"type\": \"event\",\n            \"attributes\": {\n                \"name\": \"Statute of Limitations\",\n                \"description\": null,\n                \"time_zone\": \"America/Los_Angeles\",\n                \"start_date\": \"2021-12-08T00:00:00.000-08:00\",\n                \"end_date\": \"2021-12-08T00:00:00.000-08:00\",\n                \"all_day\": true,\n                \"reminder_type\": null,\n                \"reminder_delay_length\": null,\n                \"reminder_sent\": false,\n                \"location\": null,\n                \"send_invites\": false,\n                \"event_type_id\": 4\n            },\n            \"relationships\": {\n                \"eventable\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"5\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"event_type\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"event_type\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"event\",\n            \"attributes\": {\n                \"name\": \"Initial Consultation\",\n                \"description\": \"test\\n\\nMatter Phone: 520-730-1042\",\n                \"time_zone\": \"America/New_York\",\n                \"start_date\": \"2021-11-11T14:43:00.000-08:00\",\n                \"end_date\": \"2021-11-11T15:13:00.000-08:00\",\n                \"all_day\": false,\n                \"reminder_type\": null,\n                \"reminder_delay_length\": null,\n                \"reminder_sent\": false,\n                \"location\": {\n                    \"id\": 1,\n                    \"name\": \"Miami Location\",\n                    \"locationable_type\": \"Firm\",\n                    \"locationable_id\": 2,\n                    \"address_id\": 101,\n                    \"firm_id\": 2,\n                    \"created_at\": \"2021-10-31T19:59:38.874-07:00\",\n                    \"updated_at\": \"2021-10-31T19:59:38.874-07:00\"\n                },\n                \"send_invites\": null,\n                \"event_type_id\": 3\n            },\n            \"relationships\": {\n                \"eventable\": {\n                    \"data\": null\n                },\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"5\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"event_type\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"event_type\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"event\",\n            \"attributes\": {\n                \"name\": \"New Appointment - Joseph Brown\",\n                \"description\": \"API Appointment\\n\\nMatter Phone: 619-555-7327\",\n                \"time_zone\": \"America/Halifax\",\n                \"start_date\": \"2020-06-28T00:00:00.000-07:00\",\n                \"end_date\": \"2020-06-29T00:00:00.000-07:00\",\n                \"all_day\": false,\n                \"reminder_type\": \"minutes\",\n                \"reminder_delay_length\": 10,\n                \"reminder_sent\": false,\n                \"location\": {\n                    \"id\": 1,\n                    \"name\": \"Miami Location\",\n                    \"locationable_type\": \"Firm\",\n                    \"locationable_id\": 2,\n                    \"address_id\": 101,\n                    \"firm_id\": 2,\n                    \"created_at\": \"2021-10-31T19:59:38.874-07:00\",\n                    \"updated_at\": \"2021-10-31T19:59:38.874-07:00\"\n                },\n                \"send_invites\": true,\n                \"event_type_id\": 5\n            },\n            \"relationships\": {\n                \"eventable\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"3\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"event_type\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"event_type\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"event\",\n            \"attributes\": {\n                \"name\": \"New Appointment\",\n                \"description\": \"API Appointment\\n\\nMatter Phone: 619-555-7327\",\n                \"time_zone\": \"America/New_York\",\n                \"start_date\": \"2020-06-28T00:00:00.000-07:00\",\n                \"end_date\": \"2020-06-29T00:00:00.000-07:00\",\n                \"all_day\": false,\n                \"reminder_type\": \"minutes\",\n                \"reminder_delay_length\": 10,\n                \"reminder_sent\": false,\n                \"location\": {\n                    \"id\": 1,\n                    \"name\": \"Miami Location\",\n                    \"locationable_type\": \"Firm\",\n                    \"locationable_id\": 2,\n                    \"address_id\": 101,\n                    \"firm_id\": 2,\n                    \"created_at\": \"2021-10-31T19:59:38.874-07:00\",\n                    \"updated_at\": \"2021-10-31T19:59:38.874-07:00\"\n                },\n                \"send_invites\": true,\n                \"event_type_id\": 5\n            },\n            \"relationships\": {\n                \"eventable\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"3\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"event_type\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"event_type\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 5\n    },\n    \"links\": {\n        \"self\": \"/v1/events?page=1\"\n    }\n}"}],"_postman_id":"c5e65bd4-420a-437f-b94f-bb6c9458c870"},{"name":"Create Event","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_event_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/locations`, function (err, response) {","   pm.globals.set(\"location_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/event_types?fields=type,id&filter_by=type&filter_on=AppointmentEventType`, function (err, response) {","   pm.globals.set(\"event_type_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"e1cb35ff-9b36-491f-86aa-e771c4f8cb96","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Appointment\",\n    \"description\": \"API Appointment\",\n    \"start_date\": \"2022-06-28T15:00:00-07:00\",\n    \"end_date\": \"2022-06-28T15:30:00-07:00\",\n    \"user_ids\": [\n        {{user_id}}\n    ],\n    \"all_day\": false,\n    \"eventable_type\": \"Prospect\",\n    \"eventable_id\": {{prospect_id}},\n    \"event_type_id\": {{event_type_id}},\n    \"location_id\": {{location_id}},\n    \"reminder_delay_length\": 10,\n    \"reminder_type\": \"minutes\",\n    \"send_invites\": true,\n    \"no_show\": false,\n    \"time_zone\": \"America/Halifax\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/events","description":"<p>Create a new <strong>Event</strong>/Appointment</p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Consultation\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>start_date</code></td>\n<td>datetime</td>\n<td>Yes</td>\n<td><code>\"2024-08-01T09:00:00.000-07:00\"</code></td>\n<td>ISO 8601 datetime format</td>\n</tr>\n<tr>\n<td><code>end_date</code></td>\n<td>datetime</td>\n<td>Conditional</td>\n<td><code>\"2024-08-01T10:00:00.000-07:00\"</code></td>\n<td>Required unless <code>event_type_id</code> is set — then it's derived from the event type's duration</td>\n</tr>\n<tr>\n<td><code>event_type_id</code></td>\n<td>id</td>\n<td>Required</td>\n<td><code>3</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>all_day</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>false</code></td>\n<td>Default <code>false</code></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>text</td>\n<td>No</td>\n<td><code>\"Initial consultation\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>location_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>eventable_type</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Prospect</code>, <code>Contact</code> (case-insensitive; <code>matter</code> also accepted)</td>\n</tr>\n<tr>\n<td><code>eventable_id</code></td>\n<td>id</td>\n<td>Conditional</td>\n<td><code>\"12345\"</code></td>\n<td>Id of the <code>eventable_type</code> is set</td>\n</tr>\n<tr>\n<td><code>user_ids</code></td>\n<td>array of ids</td>\n<td>No</td>\n<td><code>[2, 3]</code></td>\n<td>User(s) hosting the appointment. (<code>users</code> also works, but if both are sent <code>user_ids</code> wins)</td>\n</tr>\n<tr>\n<td><code>reminder_type</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"hours\"</code></td>\n<td>One of <code>minutes</code>, <code>hours</code>, <code>days</code>, <code>weeks</code></td>\n</tr>\n<tr>\n<td><code>reminder_delay_length</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>24</code></td>\n<td>Combined with <code>reminder_type</code> for how long to wait before sending a reminder</td>\n</tr>\n<tr>\n<td><code>send_invites</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>true</code></td>\n<td>Default <code>false</code></td>\n</tr>\n<tr>\n<td><code>time_zone</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"America/Los_Angeles\"</code></td>\n<td>A valid <a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">tz identifier string</a>; only validated if present</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","events"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"4a56c022-d451-40e8-a710-1a03035f264b","name":"POST Create Event","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Appointment\",\n\t\"description\": \"API Appointment\",\n\t\"start_date\": \"06/28/2020\",\n\t\"end_date\": \"06/29/2020\",\n\t\"user_ids\": [17],\n\t\"all_day\": false,\n\t\"eventable_type\": \"Prospect\",\n\t\"eventable_id\": \"15407\",\n\t\"event_type_id\": \"23\",\n\t\"location_id\": \"1\",\n\t\"reminder_delay_length\": 10,\n\t\"reminder_type\": \"minutes\",\n    \"time_zone\": \"America/Los_Angeles\"\n}"},"url":{"raw":"{{host}}/v1/events?fields=all","host":["{{host}}"],"path":["v1","events"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"13918\",\n        \"type\": \"event\",\n        \"attributes\": {\n            \"name\": \"New Appointment\",\n            \"description\": \"API Appointment\",\n            \"start_date\": \"2020-06-28T00:00:00.000-07:00\",\n            \"end_date\": \"2020-06-29T00:00:00.000-07:00\",\n            \"all_day\": false,\n            \"reminder_type\": \"minutes\",\n            \"reminder_delay_length\": 10,\n            \"reminder_sent\": false,\n            \"location\": {\n                \"id\": 1,\n                \"name\": \"LM Office\",\n                \"locationable_type\": \"Firm\",\n                \"locationable_id\": 15,\n                \"address_id\": 3588,\n                \"firm_id\": 15,\n                \"created_at\": \"2018-09-07T09:18:55.353-07:00\",\n                \"updated_at\": \"2018-09-07T09:18:55.353-07:00\"\n            },\n            \"send_invites\": false,\n            \"event_type_id\": 23,\n            \"time_zone\": \"America/Los_Angeles\"\n        },\n        \"relationships\": {\n            \"event_type\": {\n                \"data\": {\n                    \"id\": \"23\",\n                    \"type\": \"event_type\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"e1cb35ff-9b36-491f-86aa-e771c4f8cb96"},{"name":"Update Event","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/locations`, function (err, response) {","   pm.globals.set(\"location_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/event_types?fields=type,id&filter_by=type&filter_on=AppointmentEventType`, function (err, response) {","   pm.globals.set(\"event_type_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"68965fd5-c99a-4137-ab27-940b7d6b4250","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Appointment Changed\",\n\t\"description\": \"API Appointment\",\n\t\"start_date\": \"06/28/2020\",\n\t\"end_date\": \"06/29/2020\",\n\t\"user_ids\": [{{user_id}}],\n\t\"all_day\": false,\n\t\"eventable_type\": \"Prospect\",\n\t\"eventable_id\": {{prospect_id}},\n\t\"event_type_id\": {{event_type_id}},\n\t\"location_id\": {{location_id}},\n\t\"reminder_delay_length\": 10,\n\t\"reminder_type\": \"minutes\",\n\t\"send_invites\": true,\n\t\"no_show\": true,\n    \"time_zone\": \"America/Los_Angeles\"\n}"},"url":"{{host}}/v1/events/:event_id","description":"<p>Update an existing Event by ID.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","events",":event_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{created_event_id}}","key":"event_id"}]}},"response":[{"id":"634c0d4b-c2cd-48b7-8c18-5202936c83ed","name":"PUT Update Event","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Appointment\",\n\t\"description\": \"API Appointment\",\n\t\"start_date\": \"06/28/2020\",\n\t\"end_date\": \"06/29/2020\",\n\t\"user_ids\": [3],\n\t\"all_day\": false,\n\t\"eventable_type\": \"Prospect\",\n\t\"eventable_id\": \"3\",\n\t\"event_type_id\": \"5\",\n\t\"location_id\": \"1\",\n\t\"reminder_delay_length\": 10,\n\t\"reminder_type\": \"minutes\",\n\t\"send_invites\": true,\n\t\"no_show\": true,\n    \"time_zone\": \"America/Los_Angeles\"\n}"},"url":{"raw":"{{host}}/v1/events/:event_id?fields=all","host":["{{host}}"],"path":["v1","events",":event_id"],"query":[{"key":"fields","value":"all"}],"variable":[{"key":"event_id","value":"{{created_event_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"438e3e9bbde390baabab8ef56cbc64f6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ccbd72f4-0dea-4e8a-a140-6506740fcf28"},{"key":"X-Runtime","value":"0.080994"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"event\",\n        \"attributes\": {\n            \"name\": \"New Appointment\",\n            \"description\": \"API Appointment\\n\\nMatter Phone: 619-555-7327\",\n            \"start_date\": \"2020-06-28T00:00:00.000-07:00\",\n            \"end_date\": \"2020-06-29T00:00:00.000-07:00\",\n            \"all_day\": false,\n            \"reminder_type\": \"minutes\",\n            \"reminder_delay_length\": 10,\n            \"reminder_sent\": false,\n            \"location\": {\n                \"id\": 1,\n                \"name\": \"Miami Location\",\n                \"locationable_type\": \"Firm\",\n                \"locationable_id\": 2,\n                \"address_id\": 101,\n                \"firm_id\": 2,\n                \"created_at\": \"2021-10-31T19:59:38.874-07:00\",\n                \"updated_at\": \"2021-10-31T19:59:38.874-07:00\"\n            },\n            \"send_invites\": true,\n            \"event_type_id\": 5,\n            \"time_zone\": \"America/Los_Angeles\"\n        },\n        \"relationships\": {\n            \"users\": {\n                \"data\": [\n                    {\n                        \"id\": \"3\",\n                        \"type\": \"user\"\n                    }\n                ]\n            },\n            \"event_type\": {\n                \"data\": {\n                    \"id\": \"5\",\n                    \"type\": \"event_type\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"68965fd5-c99a-4137-ab27-940b7d6b4250"},{"name":"Cancel Event","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/events`, function (err, response) {","   pm.globals.set(\"event_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"22673718-60aa-4d62-adb9-103d8d882380","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/events/:event_id?notify_attendees=true","description":"<p>Cancels an existing Event/Appointment</p>\n<p><code>notify_attendees</code> (query param): If present, sends a cancellation notice to attendees. To skip notifying attendees, omit the parameter entirely.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","events",":event_id"],"host":["{{host}}"],"query":[{"key":"notify_attendees","value":"true"}],"variable":[{"description":{"content":"<p>The event/appointment</p>\n","type":"text/plain"},"type":"any","value":"{{event_id}}","key":"event_id"}]}},"response":[{"id":"feae74f1-bddb-4e79-96a3-54129508b054","name":"DELETE Cancel Event","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/events/:event_id?notify_attendees=true","host":["{{host}}"],"path":["v1","events",":event_id"],"query":[{"key":"notify_attendees","value":"true"}],"variable":[{"key":"event_id","value":"{{created_event_id}}","description":"The event/appointment"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"121e1449aec4cafcd0d37de002d1e8d2\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"da5927af-fc05-46bc-bcbb-3b4152e0e4ed"},{"key":"X-Runtime","value":"0.271719"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"6\",\n        \"type\": \"event\",\n        \"attributes\": {\n            \"name\": \"New Appointment\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"22673718-60aa-4d62-adb9-103d8d882380"}],"id":"e99f6dfb-a79c-4c5b-a6cb-cc99dad1ad44","description":"<p><em>Events</em> are generally referred to in the app as \"Appointments\". Registerable Events are read-only.</p>\n","_postman_id":"e99f6dfb-a79c-4c5b-a6cb-cc99dad1ad44","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Event Locations","item":[{"name":"Locations","id":"a1b5a43d-b57a-4e61-8da3-1897d81894de","request":{"method":"GET","header":[],"url":"{{host}}/v1/locations","description":"<p>A <strong>paginated</strong> list of all Firm Locations in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>address_id</code></td>\n<td>id</td>\n<td>Optional — virtual meeting locations (Zoom, Teams) have no address</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","locations"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0cac6905-992d-4c57-9065-a420a646844a","name":"GET Locations","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/locations?fields=all","host":["{{host}}"],"path":["v1","locations"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 01 Jul 2022 22:40:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=1IRzM73XbdtXoIWjUBTLT+75vgunsZgOm4U5vW8L2XMXF5opUo3idTOTQ0PD67gclqqvRJH9wzCHHfuLmRW9NccYxuQi8wG7glrXT9a2X+ECxCMl5vlx2MAjOqKF; Expires=Fri, 08 Jul 2022 22:40:34 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=1IRzM73XbdtXoIWjUBTLT+75vgunsZgOm4U5vW8L2XMXF5opUo3idTOTQ0PD67gclqqvRJH9wzCHHfuLmRW9NccYxuQi8wG7glrXT9a2X+ECxCMl5vlx2MAjOqKF; Expires=Fri, 08 Jul 2022 22:40:34 GMT; Path=/; SameSite=None; Secure"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c80cf90be5b337bef8e80ec5fee22dc8\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5e241bad-3ef3-46a0-a2f1-e4e9271d811a"},{"key":"X-Runtime","value":"0.028762"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"2985\",\n            \"type\": \"location\",\n            \"attributes\": {\n                \"name\": \"Zoom\",\n                \"address\": \"www.zoom.com\",\n                \"created_at\": \"2021-09-23T11:37:21.602-07:00\",\n                \"updated_at\": \"2021-09-23T11:37:21.602-07:00\"\n            },\n            \"relationships\": {\n                \"address\": {\n                    \"data\": {\n                        \"id\": \"1033526\",\n                        \"type\": \"address\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"314\",\n            \"type\": \"location\",\n            \"attributes\": {\n                \"name\": \"Phone Conference\",\n                \"address\": \"800-883-1105 ext. 2\",\n                \"created_at\": \"2019-05-15T14:07:18.373-07:00\",\n                \"updated_at\": \"2019-05-15T14:07:18.373-07:00\"\n            },\n            \"relationships\": {\n                \"address\": {\n                    \"data\": {\n                        \"id\": \"82052\",\n                        \"type\": \"address\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"location\",\n            \"attributes\": {\n                \"name\": \"Spokane - Conference Room B\",\n                \"address\": \"711 W. Indiana, Spokane, WA 99205, United States\",\n                \"created_at\": \"2018-09-07T10:52:27.992-07:00\",\n                \"updated_at\": \"2018-09-07T10:52:27.992-07:00\"\n            },\n            \"relationships\": {\n                \"address\": {\n                    \"data\": {\n                        \"id\": \"3590\",\n                        \"type\": \"address\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"location\",\n            \"attributes\": {\n                \"name\": \"Spokane - Conference Room A\",\n                \"address\": \"711 W. Indiana, Spokane, WA 99205, United States\",\n                \"created_at\": \"2018-09-07T10:49:00.735-07:00\",\n                \"updated_at\": \"2018-09-07T10:49:00.735-07:00\"\n            },\n            \"relationships\": {\n                \"address\": {\n                    \"data\": {\n                        \"id\": \"3590\",\n                        \"type\": \"address\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"location\",\n            \"attributes\": {\n                \"name\": \"LM Office\",\n                \"address\": \"4250 Executive Square, Suite 101, La Jolla, CA 92037, United States\",\n                \"created_at\": \"2018-09-07T09:18:55.353-07:00\",\n                \"updated_at\": \"2018-09-07T09:18:55.353-07:00\"\n            },\n            \"relationships\": {\n                \"address\": {\n                    \"data\": {\n                        \"id\": \"3588\",\n                        \"type\": \"address\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 5\n    },\n    \"links\": {\n        \"self\": \"/v1/locations?page=1\"\n    }\n}"}],"_postman_id":"a1b5a43d-b57a-4e61-8da3-1897d81894de"}],"id":"5dca354c-c27b-4fb6-b2a1-e72b006802ef","description":"<p>These are Firm related Locations (for events/appointments) that can be configured in Firm settings.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Response time is less than 400ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(400);","});","pm.test(\"Status code is Successful\", function () {","    pm.response.to.be.ok","});"]}}],"_postman_id":"5dca354c-c27b-4fb6-b2a1-e72b006802ef","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Event Types","item":[{"name":"Event Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/event_types`, function (err, response) {","   pm.globals.set(\"event_type_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"eb80c443-585e-4d4a-9cbb-90e20a45d936","request":{"method":"GET","header":[],"url":"{{host}}/v1/event_types/:event_type_id","description":"<p>A specific <strong>Event/Appointment Type</strong> by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","event_types",":event_type_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{event_type_id}}","key":"event_type_id"}]}},"response":[{"id":"32f5dfc3-e1e7-44f1-b2bb-10ab18b4e4a3","name":"GET Event Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/event_types/:event_type_id?fields=all","host":["{{host}}"],"path":["v1","event_types",":event_type_id"],"query":[{"key":"fields","value":"all"}],"variable":[{"key":"event_type_id","value":"{{created_event_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"8ec547f220bc01feb06836ba68411c57\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ccf87a84-abbf-45b3-8596-6169ae5ff32c"},{"key":"X-Runtime","value":"0.089710"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"14\",\n        \"type\": \"event_type\",\n        \"attributes\": {\n            \"name\": \"test6\",\n            \"duration\": 30,\n            \"created_at\": \"2022-06-26T17:29:20.139-07:00\",\n            \"updated_at\": \"2022-06-26T17:29:20.139-07:00\"\n        },\n        \"relationships\": {\n            \"events\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"eb80c443-585e-4d4a-9cbb-90e20a45d936"},{"name":"Event Types","id":"1ef94bef-215b-415d-b590-4ce2645e377e","request":{"method":"GET","header":[],"url":"{{host}}/v1/event_types","description":"<p>A <strong>paginated</strong> list of all <strong>Event Types</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>integer</td>\n<td>In minutes</td>\n</tr>\n<tr>\n<td><code>billing_activity_type_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>rate_cents</code></td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string (STI)</td>\n<td>Discriminator column; defaults to <code>AppointmentEventType</code>, accepts <code>RegisterableEventType</code></td>\n</tr>\n<tr>\n<td><code>default_maximum_registrants</code></td>\n<td>integer</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","event_types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b517474d-61cd-4a7d-84f5-61139e18734e","name":"GET Event Types","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/event_types"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"9d54c43342500c28735c1b9a8789cce1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"10134758-40bd-46df-9434-c24f0f238766"},{"key":"X-Runtime","value":"0.423784"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"5\",\n            \"type\": \"event_type\",\n            \"attributes\": {\n                \"name\": \"Seminar\"\n                \"duration\": 30,\n                \"created_at\": \"2021-10-31T20:00:25.779-07:00\",\n                \"updated_at\": \"2022-03-29T17:41:14.493-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"4\",\n            \"type\": \"event_type\",\n            \"attributes\": {\n                \"name\": \"Statute of Limitations\",\n                \"duration\": 30,\n                \"created_at\": \"2021-10-26T15:47:05.612-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:05.612-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"event_type\",\n            \"attributes\": {\n                \"name\": \"Initial Consultation\",\n                \"duration\": 30,\n                \"created_at\": \"2021-10-26T15:47:05.611-07:00\",\n                \"updated_at\": \"2021-10-26T15:47:05.611-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 3\n    },\n    \"links\": {\n        \"self\": \"/v1/event_types?page=1\"\n    }\n}"}],"_postman_id":"1ef94bef-215b-415d-b590-4ce2645e377e"},{"name":"Create Event Type","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_event_type_id\", jsonData.data.id);","}"],"type":"text/javascript"}}],"id":"00fe8528-9158-4578-bf1f-84c6db51bd3d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Test Event Type\",\n    \"duration\": 30\n}"},"url":"{{host}}/v1/event_types","description":"<p>Create a new <strong>Event Type</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Initial Consultation\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>30</code></td>\n<td>In minutes. Defaults to <code>30</code> if omitted</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","event_types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"772b6cc4-85e4-4fb9-9c4f-2d672c2e8728","name":"POST Create Event Type","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"test5\",\n    \"duration\": 30\n}"},"url":"{{host}}/v1/event_types"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"939b6120afd40e90273bb7c28c02b8f8\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a6ba33f8-137c-4246-8955-1f8a7c0dfa62"},{"key":"X-Runtime","value":"0.032795"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"13\",\n        \"type\": \"event_type\",\n        \"attributes\": {\n            \"name\": \"test5\",\n            \"duration\": 30,\n            \"created_at\": \"2022-06-26T17:28:08.821-07:00\",\n            \"updated_at\": \"2022-06-26T17:28:08.821-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"00fe8528-9158-4578-bf1f-84c6db51bd3d"},{"name":"Update Event Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/event_types`, function (err, response) {","   pm.globals.set(\"event_type_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"5cd5d659-6771-450a-b390-6969df1e59e0","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Different Event Type\",\n    \"duration\": 60\n}"},"url":"{{host}}/v1/event_types/:event_type_id","description":"<p>Updates an <strong>Event Type</strong></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","event_types",":event_type_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{event_type_id}}","key":"event_type_id"}]}},"response":[{"id":"ab1e91b9-f3ba-4857-b2aa-0ac5cdaf15f5","name":"PUT Update Event Type","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Different Event Type\",\n    \"duration\": 60\n}"},"url":{"raw":"{{host}}/v1/event_types/:event_type_id","host":["{{host}}"],"path":["v1","event_types",":event_type_id"],"variable":[{"key":"event_type_id","value":"{{created_event_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"281716829600f6290ba7cfca0c556c94\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"692830cb-37fb-4a18-b4ba-4466bff63fe0"},{"key":"X-Runtime","value":"0.035370"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"17\",\n        \"type\": \"event_type\",\n        \"attributes\": {\n            \"name\": \"Different Event Type\",\n            \"duration\": 60,\n            \"created_at\": \"2022-06-26T17:34:30.915-07:00\",\n            \"updated_at\": \"2022-06-26T17:35:02.532-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"5cd5d659-6771-450a-b390-6969df1e59e0"},{"name":"Delete Event Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/event_types`, function (err, response) {","   pm.globals.set(\"event_type_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"26b2a35c-0f74-4b02-872e-445c318fea54","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/event_types/:event_type_id","description":"<p>Delete an <strong>Event Type</strong></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","event_types",":event_type_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{created_event_type_id}}","key":"event_type_id"}]}},"response":[{"id":"e134a8b6-c06f-4e57-b54b-a7b465b5e9bf","name":"DEL Delete Event Type","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/event_types/:event_type_id","host":["{{host}}"],"path":["v1","event_types",":event_type_id"],"variable":[{"key":"event_type_id","value":"{{created_event_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"281716829600f6290ba7cfca0c556c94\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"64f5494a-3063-4da0-add3-ddfcc04cb02e"},{"key":"X-Runtime","value":"0.034158"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"17\",\n        \"type\": \"event_type\",\n        \"attributes\": {\n            \"name\": \"Different Event Type\",\n            \"duration\": 60,\n            \"created_at\": \"2022-06-26T17:34:30.915-07:00\",\n            \"updated_at\": \"2022-06-26T17:35:02.532-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"26b2a35c-0f74-4b02-872e-445c318fea54"}],"id":"2d2f28e0-4834-47f9-bb7f-b5f12aeab3dd","description":"<p><strong>Event Types</strong> define <strong>Event/Appointment</strong> defaults, and can trigger automations, for common types of <strong>Events/Appointments</strong> created in Lawmatics.</p>\n","_postman_id":"2d2f28e0-4834-47f9-bb7f-b5f12aeab3dd","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Files","item":[{"name":"File","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/files`, function (err, response) {","   pm.globals.set(\"file_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"b99d5c56-96f8-455c-a6dc-60cbdb2bd3dc","request":{"method":"GET","header":[],"url":"{{host}}/v1/files/:file_id","description":"<p>A specific File's metadata in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","files",":file_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{file_id}}","key":"file_id"}]}},"response":[{"id":"48230b81-57cb-4f5f-8f73-89c4158d9a3e","name":"GET File","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/files/:file_id?fields=all","host":["{{host}}"],"path":["v1","files",":file_id"],"query":[{"key":"fields","value":"all"}],"variable":[{"key":"file_id","value":"{{file_id}}"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2\",\n        \"type\": \"file\",\n        \"attributes\": {\n            \"name\": \"unnamed.png\",\n            \"file_size\": 8833,\n            \"file_url\": \"https://api.lawmatics.com/attachments/962626ca7818b57e20da04a9ededcfa3dbe240dc/store/1d5cd6d1a447ec549b8dc91f584050c8f625c29b376a39f9e531a0d0b666/unnamed.png\",\n            \"file_name\": \"unnamed.png\",\n            \"file_type\": \"image/png\",\n            \"created_at\": \"2022-06-14T16:59:22.915-07:00\",\n            \"updated_at\": \"2022-06-14T16:59:22.915-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"firm\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"b99d5c56-96f8-455c-a6dc-60cbdb2bd3dc"},{"name":"Files","event":[{"listen":"test","script":{"exec":["pm.test(\"Response time is less than 6000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(6000);","});","","pm.test(\"Status code is Successful\", function () {","    pm.response.to.be.ok","});"],"type":"text/javascript"}}],"id":"4d27194d-e66a-44b1-9817-47b70dc4d662","request":{"method":"GET","header":[],"url":"{{host}}/v1/files","description":"<p>A <strong>paginated</strong> list of all File metadata in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>folder_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>documentable_type</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Valid Shortcuts:</strong> (<code>filter_by</code>) <code>matter_id</code>, <code>prospect_id</code>, <code>contact_id</code>, <code>company_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","files"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c8cb12dd-3a3a-4cae-8a9c-89f3fdfd46e7","name":"GET Files","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"924adef8c3dda08b0fa6e077dcb26292\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dcc86f78-e42c-4f07-8223-17c60ea24efe"},{"key":"X-Runtime","value":"3.472721"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"48\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d494fe46a2bae430671b8de9e2e0d00720d4bf80a5f3e6d4d870c1579803?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223139Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=f861eb81cb5e418a8a0d8553f47fdba3796dd8c0fdf7589784147fc322a06c9a\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-08-04T14:55:13.759-07:00\",\n                \"updated_at\": \"2022-08-04T14:55:13.759-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"45\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"spaceroey.png\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d8638a97af376bbfe4c37a02b58bdc00be27412ba3df2c827ac2ef43c83d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223139Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=d999a7c1f3826190e3b562fd60d7aa776503d8dbe540e7c51e043679e6cceb74\",\n                \"file_size\": 0,\n                \"file_name\": \"spaceroey.png\",\n                \"file_type\": \"image/png\",\n                \"created_at\": \"2022-08-04T09:54:25.820-07:00\",\n                \"updated_at\": \"2022-08-04T09:54:25.820-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"231\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"44\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Bob Man - Form Submission 07/25/2022 03:28pm PDT - Internal Form.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/14ec6afab06c33e4380cabf1afae1e1d010a70d9ea15b18bbb6beaabe1ea?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223139Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=a70b8170ae975cdb5a6f9e02d0e678336c07f58fc12246070662088efbb1581b\",\n                \"file_size\": 0,\n                \"file_name\": \"bob_man_form_submission_1658788088_internal_form.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-07-25T15:28:12.293-07:00\",\n                \"updated_at\": \"2022-07-25T15:28:12.293-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"191\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"43\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Bob Man - Form Submission 07/25/2022 03:27pm PDT - Internal Form.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/027bfa7a400265118a10f0bb5b7ba5f628c3a822f931c7bec272a46ba84f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223139Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=977832ca88970c3201a4cef9ccbb135260db161aa8e30d3d78691ba447e49f8a\",\n                \"file_size\": 0,\n                \"file_name\": \"bob_man_form_submission_1658788029_internal_form.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-07-25T15:27:12.733-07:00\",\n                \"updated_at\": \"2022-07-25T15:27:12.733-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"190\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"42\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lisa Williams - Form Submission 07/25/2022 03:24pm PDT - Internal Form.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/e0dae1bf5bc8525a493b0095ac3cbb968ecb26288792a190f5cec10fdf7a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223139Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b871cf316e75f16e3efa502a3aa00a863f06dc645de2d1a01b5906d11806c204\",\n                \"file_size\": 0,\n                \"file_name\": \"lisa_williams_form_submission_1658787883_internal_form.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-07-25T15:24:51.675-07:00\",\n                \"updated_at\": \"2022-07-25T15:24:51.675-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"189\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"41\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Cool!!asdasdasd.png.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/4ff0aeabc979f59d118a0c809c51533b0bf04305376d565aa820c364e924?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223139Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=02919ec93a8cdb656b2d35840733642e9b98bbee0d4e392b46748d082ae44720\",\n                \"file_size\": 0,\n                \"file_name\": \"Cool!!asdasdasd.png.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-07-25T10:35:42.954-07:00\",\n                \"updated_at\": \"2022-07-27T11:24:44.621-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"40\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"cool story.csv\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/2807232cdaa3d43e2089347172dbc5d123025e2ceb76439f9b0cc340ad66?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=fe592825976776b6998a547d2109ea3161636b8c0373b2229accf3431281928c\",\n                \"file_size\": 0,\n                \"file_name\": \"cool story.csv\",\n                \"file_type\": \"text/csv\",\n                \"created_at\": \"2022-07-12T13:11:14.184-07:00\",\n                \"updated_at\": \"2022-07-12T17:01:17.287-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"168\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"39\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Invoice #1.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/a6c745e68adfc23759b2456c8bc09ac9d98d527c98cf4ff740c33198413e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=74798bd6e7f7619577c7d34a970b581f0f9f5627a929fa8ba140b71ddfe77ede\",\n                \"file_size\": 0,\n                \"file_name\": \"Invoice #1.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-07-06T18:56:55.603-07:00\",\n                \"updated_at\": \"2022-07-06T18:56:55.603-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"invoice\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"38\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"test - Form Submission 07/04/2022 05:48pm PDT - Rel Block.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/eae6f302adda6078a79fe611ffc5afccba774a4b3738b6c8a97026911c83?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=fd5d85259985e2d9a8c06adb59c7438144d2ed98ee1d6784c708a48f00d84530\",\n                \"file_size\": 0,\n                \"file_name\": \"test_form_submission_1656982120_rel_block.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-07-04T17:48:43.286-07:00\",\n                \"updated_at\": \"2022-07-04T17:48:43.286-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"168\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"37\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Test Hello.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/5e1a9d6f5e98f728d178f4bc70555db8ba1ad9c9ef952b30bd9492ca3d2b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=c5f3592ad48e309d92e11cb5a654105c7124ba43bc1de8e4d39413ac32023233\",\n                \"file_size\": 0,\n                \"file_name\": \"Test Hello.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-07-03T18:19:29.673-07:00\",\n                \"updated_at\": \"2022-07-12T13:09:19.042-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"168\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"36\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"test - Form Submission 07/03/2022 06:16pm PDT - Internal Form.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/c3e44f8bb947e82c1e8cb3959e3c34eac7dec8757684fa5f86067642cfbf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=7708eb3345e86ebfaf233cab40b3fd157d2e8bb7227564c663142e2ac6cdf62a\",\n                \"file_size\": 0,\n                \"file_name\": \"test_form_submission_1656897411_internal_form.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-07-03T18:16:58.807-07:00\",\n                \"updated_at\": \"2022-07-03T18:16:58.807-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"167\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"35\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/5ff972883ad42adbbe87a7cef1d5ce1cd5d31ccf1d7e702c8a724b24fef8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=6627d0e5484239b97241f9e89de69b0aa723d370025d34e7071a8733ccdf99c5\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-07-03T16:00:00.571-07:00\",\n                \"updated_at\": \"2022-07-03T16:00:00.571-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"34\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"stones.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/203d0529a67d9abf75f69733714a15a3f634f907b60082e4030c3e81bc2f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=ff98e4c5fa2d418e608c61efbbc413b16ac2d070fd747fb04774daf147cae876\",\n                \"file_size\": 0,\n                \"file_name\": \"stones.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-07-01T10:28:01.073-07:00\",\n                \"updated_at\": \"2022-07-01T10:28:01.073-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"189\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"33\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Folder.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/a83e5e0c6936fe3f0dc5421782dbc79ce8c6c7ecba3854a40e1ea67491b8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=ffdd44a278b0bc912203a54ec73a117f9cb8f13bf95776cc8131fa785c16a594\",\n                \"file_size\": 0,\n                \"file_name\": \"Folder.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-07-01T10:20:23.803-07:00\",\n                \"updated_at\": \"2022-07-01T10:20:23.803-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"189\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"32\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/095ab26b896eea101eab5a9c778607738f10ede4833a735886a7d1bd4bc2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223140Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=8261cf5387a1b8d12e23f6a10aab78f25c21f80c3a45a7f85d43edb1de7bb4ad\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-26T15:31:41.098-07:00\",\n                \"updated_at\": \"2022-06-26T15:31:41.098-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"31\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/9900cf727fb296b32d96c1db7247152cc9a131ba4300fee9b5c7979f203c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=196b87bb17c4f8259b1ce8861c2dbfe207d56b34842cfdad5d4d5db81d4cc19e\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-26T15:30:53.907-07:00\",\n                \"updated_at\": \"2022-06-26T15:30:53.907-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"30\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/fade18ead85043c48ae4a4d1eb369f8a1a161ab828c0884d1b85a0abc7d4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b7cd060b822570ec7a5a543fdb6713f0642c794070b354e450609e28406f8b36\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-25T17:18:40.392-07:00\",\n                \"updated_at\": \"2022-06-25T17:18:40.392-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"29\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/be01f4136fc22d0d0ad721d4e8f622fab1b53f18bba33c5d4813784fad00?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=9543b444af2e36af1855d9c1e95e74aaa21320fedcabc3e5e0815a9d47942844\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-25T10:02:41.453-07:00\",\n                \"updated_at\": \"2022-06-25T10:02:41.453-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"28\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d5d211a740262b977e34de50464f050f2760e93f8a10c1403ba79a47f1b4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=7e50202a183abcb05e61ba8d4f9c625de56047e3e4048b6402214324b5489856\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-25T10:01:20.655-07:00\",\n                \"updated_at\": \"2022-06-25T10:01:20.655-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"27\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/23e3f75eda7a156633835c9bb138da3b033879878e0117616d89dcaf0378?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=c406ffd1f797bfe849af963781bb8e4c9558c408e58d3cd85abe32063f6facd3\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-24T19:25:43.550-07:00\",\n                \"updated_at\": \"2022-06-24T19:25:43.550-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"26\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/7f5fee8fa2873b2150d672f1be983d08286c0d5751618ead58a38ee630ff?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=4b3504f50db9cd2a50d2599d198bd95133a868761bc7d34f9fdbf141fc9c5d68\",\n                \"file_size\": 0,\n                \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-24T19:25:00.768-07:00\",\n                \"updated_at\": \"2022-06-24T19:25:00.768-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"25\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"stones.jpg\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/ba1b760b74e7110cf64b8e1aec353a2a36678cd263ab79231912e0686a14?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=04b459f6d6de1e747aad63f3373d156080974b2ddc48c236e32042c107a58c73\",\n                \"file_size\": 0,\n                \"file_name\": \"stones.jpg\",\n                \"file_type\": \"image/jpeg\",\n                \"created_at\": \"2022-06-20T18:03:45.722-07:00\",\n                \"updated_at\": \"2022-06-20T18:03:45.722-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"162\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"24\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"(opening title) Forsaken.mp3\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/dd24455f01dd651fe073afaf1edfd995624f5b65f1cbba74a21fd83d4a34?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=d28d8755301fd9781d2b99bad2056540dddecf76d158c45629ad648c5deb481d\",\n                \"file_size\": 0,\n                \"file_name\": \"(opening title) Forsaken.mp3\",\n                \"file_type\": \"audio/mpeg\",\n                \"created_at\": \"2022-06-20T01:05:23.906-07:00\",\n                \"updated_at\": \"2022-06-20T01:05:23.906-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"150\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"23\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"LM_Matter_import3 (1).csv\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/a1f4a97561c339a1f54d547b70a57c98226f0b5b554f088a035d79b3a34e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223141Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=e8e1b5f45f41eed3d74f8a7ab82cd23d9208b5dcfa570a4b2e86003f2986e25c\",\n                \"file_size\": 0,\n                \"file_name\": \"LM_Matter_import3 (1).csv\",\n                \"file_type\": \"text/csv\",\n                \"created_at\": \"2022-06-19T23:25:01.629-07:00\",\n                \"updated_at\": \"2022-06-19T23:46:30.803-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"150\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"22\",\n            \"type\": \"file\",\n            \"attributes\": {\n                \"name\": \"goosby_res_sdf-13.pdf\",\n                \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/c31f89fa03259249fd13b037f2fbbb5cf1163099491c2b409a5af3c4e706?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223142Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=0f4baaf819aead8e88b6c09fbb0f77902987953557a2d7d7fd053195cfda9d29\",\n                \"file_size\": 0,\n                \"file_name\": \"goosby_res_sdf-13.pdf\",\n                \"file_type\": \"application/pdf\",\n                \"created_at\": \"2022-06-19T23:15:31.597-07:00\",\n                \"updated_at\": \"2022-06-19T23:15:31.597-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"150\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 2,\n        \"limit_per_page\": 25,\n        \"total_entries\": 45\n    },\n    \"links\": {\n        \"self\": \"/v1/documents?page=1\",\n        \"next\": \"/v1/documents?page=2\"\n    }\n}"},{"id":"ae09037a-1b75-4fe8-aeff-515ea23d56cf","name":"GET Files for a specific Matter","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/files?filter_by=matter_id&filter_on=116","host":["{{host}}"],"path":["v1","files"],"query":[{"key":"filter_by","value":"matter_id"},{"key":"filter_on","value":"116"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null},{"id":"59938179-3f6e-4dd1-9720-50f9521830a4","name":"GET Firm Files","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/files?filter_by=documentable_type&filter_on=firm","host":["{{host}}"],"path":["v1","files"],"query":[{"key":"filter_by","value":"documentable_type"},{"key":"filter_on","value":"firm"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null},{"id":"38aacaf9-8466-40f1-b7f6-05d1cbb4bb29","name":"GET Contact Files","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/files?filter_by=contact_id&filter_on=34","host":["{{host}}"],"path":["v1","files"],"query":[{"key":"filter_by","value":"contact_id"},{"key":"filter_on","value":"34"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4d27194d-e66a-44b1-9817-47b70dc4d662"},{"name":"Download File","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/files`, function (err, response) {","   pm.globals.set(\"file_id\", response.json().data[0].id);","});"],"type":"text/javascript"}},{"listen":"test","script":{"exec":[""],"type":"text/javascript"}}],"id":"73e98060-da52-456e-b525-69a559214833","protocolProfileBehavior":{"disabledSystemHeaders":{},"followRedirects":true,"disableUrlEncoding":false,"disableCookies":false},"request":{"method":"GET","header":[],"url":"{{host}}/v1/files/download/:id","description":"<ul>\n<li><p>When testing from <strong>Postman</strong> please click on '<strong>Send and download</strong>' option instead of '<strong>Send</strong>'.</p>\n</li>\n<li><p>a 404 can be sent case the file isn't found.</p>\n</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","files","download",":id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{file_id}}","key":"id"}]}},"response":[{"id":"f80ead13-890d-41fa-ade5-5db1dccac8d6","name":"Download File","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/files/download/:id","host":["{{host}}"],"path":["v1","files","download",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"xml","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":""},{"key":"Access-Control-Allow-Method","value":""},{"key":"Cache-Control","value":"public, max-age=31536000"},{"key":"Expires","value":"Sat, 10 Jun 2023 16:19:42 GMT"},{"key":"Content-Type","value":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},{"key":"Content-Disposition","value":"inline; filename=\"sheet2.xlsx\""},{"key":"Last-Modified","value":"Fri, 10 Jun 2022 16:19:42 GMT"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Request-Id","value":"aa7cfefc-4f60-44f9-8b86-118d292c4637"},{"key":"X-Runtime","value":"3.919725"},{"key":"Vary","value":"Origin"},{"key":"Content-Length","value":"9299"}],"cookie":[],"responseTime":null,"body":null},{"id":"537c2e62-28e0-47b5-b974-1dd495c8c3b1","name":"File Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/files/download/:id","host":["{{host}}"],"path":["v1","files","download",":id"],"variable":[{"key":"id","value":"invalidId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"702db896-1193-42e9-870f-0f417d511b57"},{"key":"X-Runtime","value":"0.711911"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"status\": 404,\n            \"title\": \"Not found\",\n            \"detail\": \"File with id invalidId was not found.\"\n        }\n    ]\n}"}],"_postman_id":"73e98060-da52-456e-b525-69a559214833"},{"name":"Upload File","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_file_id\", jsonData.data.id);","}"],"type":"text/javascript"}}],"id":"b6d5e182-fa93-4ba5-89e5-2aebbb8eee0d","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Firm","description":"<p>Firm/Contact/Matter</p>\n","type":"text"},{"key":"documentable_id","value":"1","description":"<p>ID of the Documentable to attach the file to</p>\n","type":"text","disabled":true},{"key":"file","type":"file","src":"README.md"},{"key":"path[]","value":"Folder 1","type":"text","disabled":true},{"key":"path[]","value":"Folder 2","type":"text","disabled":true}]},"url":"{{host}}/v1/files","description":"<p>Uploads a file to a Firm, Matter, Contact or Client</p>\n<p>Max allowed file size is 1GB. However, we recommend to avoid files greater than 100MB.</p>\n<p><strong>documentable_type</strong>: One of [\"firm\", \"client\", \"matter\", \"contact\"]</p>\n<p><strong>documentable_id:</strong> The record ID, not needed for Firm documentable_type.</p>\n<p><strong>file</strong>: File to upload</p>\n<p><strong>folder_id:</strong> the Folder ID the file should be located in</p>\n<p><strong>name:</strong> name for the File. Defaults to uploaded file name</p>\n<p><strong>path:</strong> String Array. e.g. [\"Root\", \"Folder 1\", \"Folder 2\"]. Finds folder with name or creates it if it doesn't exist. Path overrides folder_id if both given.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","files"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"278042f6-0009-4254-89ba-f3bcfa8127da","name":"POST Upload File","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Firm","type":"text"},{"key":"documentable_id","value":"1","type":"text","disabled":true},{"key":"file","type":"file","src":"postman-cloud:///1eeb9696-4e64-4020-a53c-f8a3e1701572"}]},"url":"{{host}}/v1/files"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c8a702cf969372e64bc6ec08be8b83e3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7a8ca61e-7dc3-42b4-8b83-4cb5e6ade9bf"},{"key":"X-Runtime","value":"0.830422"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"48\",\n        \"type\": \"file\",\n        \"attributes\": {\n            \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n            \"file_size\": 504210,\n            \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d494fe46a2bae430671b8de9e2e0d00720d4bf80a5f3e6d4d870c1579803?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T215513Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=bf5c169514e8ac883b0240e019c2adf3390d03368db9580393499e89015bc49f\",\n            \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n            \"file_type\": \"image/jpeg\",\n            \"created_at\": \"2022-08-04T14:55:13.759-07:00\",\n            \"updated_at\": \"2022-08-04T14:55:13.759-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"firm\"\n                }\n            }\n        }\n    }\n}"},{"id":"82f7c5cf-1687-479e-af22-89f13176c87b","name":"POST Upload File to a file path","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Firm","type":"text"},{"key":"documentable_id","value":"1","type":"text","disabled":true},{"key":"file","type":"file","src":"postman-cloud:///1eeb9696-4e64-4020-a53c-f8a3e1701572"},{"key":"path[]","value":"Folder 1","type":"text"},{"key":"path[]","value":"Folder 2","type":"text"},{"key":"path[]","value":"Folder 3","type":"text"}]},"url":"{{host}}/v1/files"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c8a702cf969372e64bc6ec08be8b83e3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7a8ca61e-7dc3-42b4-8b83-4cb5e6ade9bf"},{"key":"X-Runtime","value":"0.830422"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"48\",\n        \"type\": \"file\",\n        \"attributes\": {\n            \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n            \"file_size\": 504210,\n            \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d494fe46a2bae430671b8de9e2e0d00720d4bf80a5f3e6d4d870c1579803?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T215513Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=bf5c169514e8ac883b0240e019c2adf3390d03368db9580393499e89015bc49f\",\n            \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n            \"file_type\": \"image/jpeg\",\n            \"folder_id\": 234,\n            \"created_at\": \"2022-08-04T14:55:13.759-07:00\",\n            \"updated_at\": \"2022-08-04T14:55:13.759-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"firm\"\n                }\n            }\n        }\n    }\n}"},{"id":"6d468c10-8f0a-403f-b18b-e2ee07f14904","name":"POST Upload File to a specific folder","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Firm","type":"text"},{"key":"documentable_id","value":"1","type":"text","disabled":true},{"key":"file","type":"file","src":"postman-cloud:///1eeb9696-4e64-4020-a53c-f8a3e1701572"},{"key":"folder_id","value":"123","description":"Folder ID to uplaod to","type":"text"}]},"url":"{{host}}/v1/files"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c8a702cf969372e64bc6ec08be8b83e3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7a8ca61e-7dc3-42b4-8b83-4cb5e6ade9bf"},{"key":"X-Runtime","value":"0.830422"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"48\",\n        \"type\": \"file\",\n        \"attributes\": {\n            \"name\": \"Lawmatics_LinkedIn_Header.jpg\",\n            \"file_size\": 504210,\n            \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d494fe46a2bae430671b8de9e2e0d00720d4bf80a5f3e6d4d870c1579803?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T215513Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=bf5c169514e8ac883b0240e019c2adf3390d03368db9580393499e89015bc49f\",\n            \"file_name\": \"Lawmatics_LinkedIn_Header.jpg\",\n            \"folder_id\": 123,\n            \"file_type\": \"image/jpeg\",\n            \"created_at\": \"2022-08-04T14:55:13.759-07:00\",\n            \"updated_at\": \"2022-08-04T14:55:13.759-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"firm\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"b6d5e182-fa93-4ba5-89e5-2aebbb8eee0d"},{"name":"Update File Metadata","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_file_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/files`, function (err, response) {","   pm.globals.set(\"file_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/folders`, function (err, response) {","   pm.globals.set(\"folder_id\", response.json().data[0].id);","   pm.globals.set(\"documentable_id\", response.json().data[0].relationships.documentable.data.id);","   pm.globals.set(\"documentable_type\", response.json().data[0].relationships.documentable.data.type);","});"],"type":"text/javascript"}}],"id":"97ae259a-5347-4460-9621-1ce16e196d59","request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"{{documentable_type}}","type":"text"},{"key":"documentable_id","value":"{{documentable_id}}","type":"text"},{"key":"name","value":"Changed Name","type":"text"},{"key":"file_name","value":"Wow.jpg","type":"text"},{"key":"folder_id","value":"{{folder_id}}","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"{{host}}/v1/files/:file_id","description":"<p>Updates a <strong>File</strong>'''s metadata</p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>documentable_type</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"matter\"</td>\n<td>One of <code>firm</code>, <code>client</code>, <code>matter</code>, <code>contact</code></td>\n</tr>\n<tr>\n<td><code>documentable_id</code></td>\n<td>id</td>\n<td>Conditional</td>\n<td>\"12345\"</td>\n<td>Not needed for <code>firm</code></td>\n</tr>\n<tr>\n<td><code>folder_id</code></td>\n<td>id</td>\n<td>No</td>\n<td>5</td>\n<td>The Folder ID the file should be located in</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"Contract.pdf\"</td>\n<td></td>\n</tr>\n<tr>\n<td><code>path</code></td>\n<td>array of strings</td>\n<td>No</td>\n<td>[\"Root\", \"Folder 1\", \"Folder 2\"]</td>\n<td>Finds each folder by name or creates it if missing. Overrides <code>folder_id</code> if both are sent</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","files",":file_id"],"host":["{{host}}"],"query":[{"disabled":true,"key":"","value":""}],"variable":[{"type":"any","value":"{{file_id}}","key":"file_id"}]}},"response":[{"id":"c7caa26a-7bfc-4c07-ae41-6012c7723cf8","name":"PUT Update File Metadata","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Prospect","type":"text"},{"key":"documentable_id","value":"3","type":"text"},{"key":"name","value":"Changed Name.jpg","type":"text"},{"key":"path[]","value":"Folder A","description":"Folder Path Array","type":"text"},{"key":"path[]","value":"Sub Folder B","description":"Folder Path Array","type":"text"},{"key":"id","value":"48","description":"File ID","type":"text"}]},"url":{"raw":"daa3-64-158-23-250.ngrok-free.app/v1/files/:file_id","host":["daa3-64-158-23-250","ngrok-free","app"],"path":["v1","files",":file_id"],"query":[{"key":"","value":null,"disabled":true}],"variable":[{"key":"file_id","value":"{{created_file_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"05af258ba67e59ad4ea5cccec905070f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"355dc4bb-1339-4ec2-88d8-1f5491d82f04"},{"key":"X-Runtime","value":"0.980937"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"48\",\n        \"type\": \"file\",\n        \"attributes\": {\n            \"name\": \"Changed Name.jpg\",\n            \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d494fe46a2bae430671b8de9e2e0d00720d4bf80a5f3e6d4d870c1579803?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223323Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=58ca60aa950be962522f7d59d1cbc3cc4bed1918984202d27d846a2e9936c301\",\n            \"file_size\": 0,\n            \"file_name\": \"Wow.jpg\",\n            \"file_type\": \"image/jpeg\",\n            \"folder_id\": 456,\n            \"created_at\": \"2022-08-04T14:55:13.759-07:00\",\n            \"updated_at\": \"2022-08-04T15:33:22.647-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"},{"id":"258d272a-6456-4746-9538-7310bf0030fb","name":"PUT Move file to file path","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"id","value":"48","description":"File ID","type":"text"},{"key":"path[]","value":"Folder A","type":"text"},{"key":"path[]","value":"Sub Folder B","type":"text"}]},"url":{"raw":"daa3-64-158-23-250.ngrok-free.app/v1/files/:file_id","host":["daa3-64-158-23-250","ngrok-free","app"],"path":["v1","files",":file_id"],"query":[{"key":"","value":null,"disabled":true}],"variable":[{"key":"file_id","value":"{{created_file_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"05af258ba67e59ad4ea5cccec905070f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"355dc4bb-1339-4ec2-88d8-1f5491d82f04"},{"key":"X-Runtime","value":"0.980937"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"48\",\n        \"type\": \"file\",\n        \"attributes\": {\n            \"name\": \"Changed Name.jpg\",\n            \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d494fe46a2bae430671b8de9e2e0d00720d4bf80a5f3e6d4d870c1579803?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223323Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=58ca60aa950be962522f7d59d1cbc3cc4bed1918984202d27d846a2e9936c301\",\n            \"file_size\": 0,\n            \"file_name\": \"Wow.jpg\",\n            \"file_type\": \"image/jpeg\",\n            \"folder_id\": 789,\n            \"created_at\": \"2022-08-04T14:55:13.759-07:00\",\n            \"updated_at\": \"2022-08-04T15:33:22.647-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"97ae259a-5347-4460-9621-1ce16e196d59"},{"name":"Delete File","event":[{"listen":"test","script":{"exec":["pm.test(\"Response time is less than 6000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(6000);","});","","pm.test(\"Status code is Successful\", function () {","    pm.response.to.be.ok","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/files`, function (err, response) {","   pm.globals.set(\"file_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"7902830b-1551-4cf7-ab4d-dfb8ec9804f2","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/files/:file_id","description":"<p>Deletes a <strong>File</strong> by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","files",":file_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{file_id}}","key":"file_id"}]}},"response":[{"id":"618f0068-c6c6-48a0-b7fa-875a930177b0","name":"DELETE Delete File","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/files/:file_id","host":["{{host}}"],"path":["v1","files",":file_id"],"variable":[{"key":"file_id","value":"{{created_file_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"6edccdfb932134cb28ff8480de0d8b4a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"101d6204-de7e-495e-9e60-17b5d2304809"},{"key":"X-Runtime","value":"0.504538"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"48\",\n        \"type\": \"file\",\n        \"attributes\": {\n            \"name\": \"Changed Name\",\n            \"file_url\": \"https://bucket.s3.us-west-1.amazonaws.com/store/d494fe46a2bae430671b8de9e2e0d00720d4bf80a5f3e6d4d870c1579803?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXX%2F20220804%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220804T223345Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=0d2ef50d2036f61041bad3cd7fd4ff83dc79ddd3e42b3baf2630fa30361201ec\",\n            \"file_size\": 0,\n            \"file_name\": \"Wow.jpg\",\n            \"file_type\": \"image/jpeg\",\n            \"created_at\": \"2022-08-04T14:55:13.759-07:00\",\n            \"updated_at\": \"2022-08-04T15:33:45.619-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7902830b-1551-4cf7-ab4d-dfb8ec9804f2"}],"id":"4d039eae-9c15-4ccc-ab74-5359f26bb564","_postman_id":"4d039eae-9c15-4ccc-ab74-5359f26bb564","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Folders","item":[{"name":"Folder","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/folders`, function (err, response) {","   pm.globals.set(\"folder_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"a1c64158-3bbc-4438-a604-3e53cabbf4c0","request":{"method":"GET","header":[],"url":"{{host}}/v1/folders/:folder_id","description":"<p>A specific Folder's metadata in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","folders",":folder_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{folder_id}}","key":"folder_id"}]}},"response":[{"id":"250fec5d-3595-4c61-91b1-ef80dbc675bd","name":"GET Folder","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/folders/3?fields=all","host":["{{host}}"],"path":["v1","folders","3"],"query":[{"key":"fields","value":"all"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"3\",\n        \"type\": \"folder\",\n        \"attributes\": {\n            \"name\": \"images\",\n            \"created_at\": \"2023-07-06T15:58:41.855-07:00\",\n            \"updated_at\": \"2023-07-06T15:58:41.855-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"144\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"a1c64158-3bbc-4438-a604-3e53cabbf4c0"},{"name":"Folders","event":[{"listen":"test","script":{"exec":["pm.test(\"Response time is less than 6000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(6000);","});","","pm.test(\"Status code is Successful\", function () {","    pm.response.to.be.ok","});"],"type":"text/javascript"}}],"id":"6e15ad4a-9207-4d00-bcd7-ef3ef03d862d","request":{"method":"GET","header":[],"url":"{{host}}/v1/folders","description":"<p>A <strong>paginated</strong> list of all Folder metadata in Lawmatics</p>\n<p>A paginated list of all Folder metadata in Lawmatics.</p>\n<blockquote>\n</blockquote>\n<p><strong>Note:</strong> Folders is the only endpoint in the API with this direct-parameter filtering behavior. The <code>matter_id</code>/<code>prospect_id</code>/<code>contact_id</code> query params described below work <em>only</em> on this endpoint.</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<p>Folders support two separate filtering mechanisms:</p>\n<p><strong>1. Direct convenience params</strong>: pass these as their own top-level query params (not through <code>filter_by</code>/<code>filter_on</code>):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /v1/folders?matter_id=123\nGET /v1/folders?prospect_id=123\nGET /v1/folders?contact_id=123\n\n</code></pre><p>These are always exact-match on ID, and no operators (<code>like</code>, <code>&gt;</code>, etc.) are supported. If more than one of these three is passed at once, only one is applied (<code>matter_id</code>, then <code>prospect_id</code>, then <code>contact_id</code>, in that priority order.)</p>\n<p><strong>2. Standard</strong> <strong><code>filter_by</code><strong><strong>/</strong></strong><code>filter_on</code></strong>: supports the regular field list below, same as any other endpoint.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>folder_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Combining both mechanisms:</strong> Because the direct params and <code>filter_by</code> run as two separate conditions, they combine with each other rather than one overriding the other:</p>\n<ul>\n<li><strong>Unrelated fields</strong> — e.g. <code>?matter_id=123&amp;filter_by=name&amp;filter_on=Discovery</code> — both apply together. This is how you can filter on two conditions at once, which isn't otherwise possible elsewhere in the API (only one <code>filter_by</code> condition is allowed per request):</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  GET /v1/folders?matter_id=123&amp;filter_by=name&amp;filter_on=Discovery\n\n</code></pre><ul>\n<li><p><strong>Same target, matching values</strong> — e.g. <code>?matter_id=123&amp;filter_by=matter_id&amp;filter_on=123</code> — redundant, but harmless.</p>\n</li>\n<li><p><strong>Same target, conflicting values</strong> — e.g. <code>?matter_id=123&amp;filter_by=matter_id&amp;filter_on=456</code> — this silently returns <strong>zero results</strong>, with no error. The two conditions cancel each other out rather than one taking priority. If a folder list appears unexpectedly empty, check for a combination like this first.</p>\n</li>\n</ul>\n<p><em>(Folders use the direct params above instead of the standard Polymorphic Filter Shortcuts mechanism)</em></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","folders"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"c864093c-1f15-450b-8df1-7833c0716346","name":"GET Folders","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/folders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"924adef8c3dda08b0fa6e077dcb26292\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dcc86f78-e42c-4f07-8223-17c60ea24efe"},{"key":"X-Runtime","value":"3.472721"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"11\",\n            \"type\": \"folder\",\n            \"attributes\": {\n                \"name\": \"eulogy\",\n                \"created_at\": \"2023-07-06T16:10:00.232-07:00\",\n                \"updated_at\": \"2023-07-06T16:10:00.232-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"142\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"folder\",\n            \"attributes\": {\n                \"name\": \"docs\",\n                \"created_at\": \"2023-07-06T16:01:22.321-07:00\",\n                \"updated_at\": \"2023-07-06T16:01:22.321-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"144\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"folder\",\n            \"attributes\": {\n                \"name\": \"images\",\n                \"created_at\": \"2023-07-06T15:58:41.855-07:00\",\n                \"updated_at\": \"2023-07-06T15:58:41.855-07:00\"\n            },\n            \"relationships\": {\n                \"documentable\": {\n                    \"data\": {\n                        \"id\": \"144\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 3\n    },\n    \"links\": {\n        \"self\": \"/v1/folders?page=1\"\n    }\n}"}],"_postman_id":"6e15ad4a-9207-4d00-bcd7-ef3ef03d862d"},{"name":"Create Folder","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_folder_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/folders`, function (err, response) {","   pm.globals.set(\"folder_id\", response.json().data[0].id);","","   const { id, type } = response.json().data[0].relationships.documentable.data","   documentable_type = type.charAt(0).toUpperCase() + type.slice(1)","   pm.globals.set(\"documentable_type\", documentable_type);","   pm.globals.set(\"documentable_id\", id);","});"],"type":"text/javascript"}}],"id":"b1f61d69-c4f4-4361-93dd-c808841afff2","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"{{documentable_type}}","type":"text"},{"key":"documentable_id","value":"{{documentable_id}}","type":"text"},{"key":"name","value":"This is a folder","type":"text"},{"key":"folder_id","value":"{{folder_id}}","type":"text"}]},"url":"{{host}}/v1/folders","description":"<p>Create a new <strong>Folder</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Discovery Documents\"</code></td>\n<td>Must be unique within the parent folder. A <code>/</code> in the name is silently converted to <code>:</code></td>\n</tr>\n<tr>\n<td><code>documentable_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Matter</code>/<code>Prospect</code>, <code>Contact</code>, <code>Client</code>, <code>Company</code> (case-insensitive). Note: <code>Firm</code> is <strong>not</strong> valid here (unlike Addresses/Emails/Phones) — returns a 404</td>\n</tr>\n<tr>\n<td><code>documentable_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>folder_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>5</code></td>\n<td>Parent folder. Ignored if <code>path</code> is also sent</td>\n</tr>\n<tr>\n<td><code>path</code></td>\n<td>array of strings</td>\n<td>No</td>\n<td><code>[\"Discovery\", \"2024\"]</code></td>\n<td>Creates/reuses each folder in the chain; overrides <code>folder_id</code> if both are sent</td>\n</tr>\n<tr>\n<td><code>created_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Don't send <code>matter_id</code>, <code>prospect_id</code>, or <code>contact_id</code> on this endpoint — they're valid on GET requests (as filters), but on Create they can trigger a server error instead of a normal 422. Use <code>documentable_type</code>/<code>documentable_id</code> instead.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> A duplicate folder name (same name, same parent folder, same linked record) returns a <code>409</code>. The error message reads \"Documentable not found\", which is misleading — the actual cause is the name collision, not a missing record.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","folders"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b3ee8b94-abb9-41fb-82c1-9845683ca66b","name":"POST Create Folder","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Matter","type":"text"},{"key":"documentable_id","value":"144","type":"text"},{"key":"folder_id","value":"14","type":"text"},{"key":"name","value":"This is a folder","description":"Must be unique within folder.  \"/\" in folder name will be replaces with \":\"","type":"text"},{"key":"path[]","value":"Folder A","type":"text"},{"key":"path[]","value":"Folder B","type":"text"},{"key":"path","value":"Folder C","type":"text"}]},"url":"daa3-64-158-23-250.ngrok-free.app/v1/folders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c8a702cf969372e64bc6ec08be8b83e3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7a8ca61e-7dc3-42b4-8b83-4cb5e6ade9bf"},{"key":"X-Runtime","value":"0.830422"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"21\",\n        \"type\": \"folder\",\n        \"attributes\": {\n            \"name\": \"This is a folder\",\n            \"created_at\": \"2023-07-07T15:19:05.673-07:00\",\n            \"updated_at\": \"2023-07-07T15:19:05.673-07:00\",\n            \"folder_id\": 456\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"144\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"folders\": {\n                \"data\": []\n            }\n        }\n    }\n}"},{"id":"5224bdf6-edcf-46a1-acb0-2b685dff5c8d","name":"POST Create Subfolder","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Matter","type":"text"},{"key":"documentable_id","value":"1","type":"text"},{"key":"folder_id","value":"1397","type":"text"},{"key":"name","value":"Subfolder","description":"Must be unique within parent folder.  \"/\" in folder name will be replaces with \":\"","type":"text"}]},"url":"{{host}}/v1/folders"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"\"data\": {\n    \"id\": \"21\",\n    \"type\": \"folder\",\n    \"attributes\": {\n        \"name\": \"This is a folder\",\n        \"created_at\": \"2023-07-07T15:19:05.673-07:00\",\n        \"updated_at\": \"2023-07-07T15:19:05.673-07:00\",\n        \"folder_id\": 1397\n    },\n    \"relationships\": {\n        \"documentable\": {\n            \"data\": {\n                \"id\": \"1\",\n                \"type\": \"prospect\"\n            }\n        },\n        \"folders\": {\n            \"data\": []\n        }\n    }\n}\n"},{"id":"09d12220-2e4a-43ef-9b72-61eac82026ab","name":"POST Create Subfolders by folder path","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Matter","type":"text"},{"key":"documentable_id","value":"1","type":"text"},{"key":"name","value":"Subfolder","description":"Must be unique within folder.  \"/\" in folder name will be replaces with \":\"","type":"text"},{"key":"path[]","value":"foo","description":"root file","type":"text"},{"key":"path[]","value":"bar","type":"text"},{"key":"path[]","value":"baz","type":"text"}]},"url":"{{host}}/v1/folders"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"\"data\": {\n    \"id\": \"21\",\n    \"type\": \"folder\",\n    \"attributes\": {\n        \"name\": \"This is a folder\",\n        \"created_at\": \"2023-07-07T15:19:05.673-07:00\",\n        \"updated_at\": \"2023-07-07T15:19:05.673-07:00\",\n        \"folder_id\": 456\n    },\n    \"relationships\": {\n        \"documentable\": {\n            \"data\": {\n                \"id\": \"1\",\n                \"type\": \"prospect\"\n            }\n        },\n        \"folders\": {\n            \"data\": []\n        }\n    }\n}\n"}],"_postman_id":"b1f61d69-c4f4-4361-93dd-c808841afff2"},{"name":"Update Folder","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_file_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/folders`, function (err, response) {","   pm.globals.set(\"folder_id\", response.json().data[0].id);","","   const { id, type } = response.json().data[0].relationships.documentable.data","   documentable_type = type.charAt(0).toUpperCase() + type.slice(1)","   pm.globals.set(\"documentable_type\", documentable_type);","   pm.globals.set(\"documentable_id\", id);","});"],"type":"text/javascript"}}],"id":"6d37476e-6401-4cc0-8633-e470ed2d5847","request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"{{documentable_type}}","type":"text"},{"key":"documentable_id","value":"{{documentable_id}}","type":"text"},{"key":"name","value":"Changed Id","description":"<p>Must be unique within folder.  \"/\" in folder name will be replaces with \":\"</p>\n","type":"text"}]},"url":"{{host}}/v1/folders/:folder_id","description":"<p>Updates a <strong>Folder</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>documentable_type</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"Contact\"</td>\n<td>One of <code>matter</code>, <code>contact</code></td>\n</tr>\n<tr>\n<td><code>documentable_id</code></td>\n<td>id</td>\n<td>No</td>\n<td>\"12345\"</td>\n<td></td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"Discovery Documents\"</td>\n<td>Must be unique within the parent folder. Returns <code>409</code> if the name is already taken. A <code>/</code> in the name is silently converted to <code>:</code></td>\n</tr>\n<tr>\n<td><code>folder_id</code></td>\n<td>id</td>\n<td>No</td>\n<td>5</td>\n<td>Parent folder — use this if adding a subfolder</td>\n</tr>\n<tr>\n<td><code>path</code></td>\n<td>array of strings</td>\n<td>No</td>\n<td>[\"Root\", \"Folder 1\", \"Folder 2\"]</td>\n<td>Finds each folder by name or creates it if missing. Moves the folder into the last folder in the path. Overrides <code>folder_id</code> if both are sent</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","folders",":folder_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{folder_id}}","key":"folder_id"}]}},"response":[{"id":"903aca69-2ed7-4c92-9e5c-253da57ec9ed","name":"PUT Update Folder","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Matter","type":"text"},{"key":"documentable_id","value":"144","type":"text"},{"key":"name","value":"Changed Name","description":"Must be unique within folder.  \"/\" in folder name will be replaces with \":\"","type":"text"},{"key":"folder_id","value":"","type":"text","disabled":true}]},"url":"daa3-64-158-23-250.ngrok-free.app/v1/folders/144"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"05af258ba67e59ad4ea5cccec905070f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"355dc4bb-1339-4ec2-88d8-1f5491d82f04"},{"key":"X-Runtime","value":"0.980937"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"20\",\n        \"type\": \"folder\",\n        \"attributes\": {\n            \"name\": \"Changed name\",\n            \"created_at\": \"2023-07-07T15:14:15.974-07:00\",\n            \"updated_at\": \"2023-07-07T15:29:39.922-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"144\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"folders\": {\n                \"data\": []\n            }\n        }\n    }\n}"},{"id":"fab5e3a7-1a06-47b8-857f-295557b66ac3","name":"PUT Update Subfolder","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Matter","type":"text"},{"key":"documentable_id","value":"144","type":"text"},{"key":"name","value":"Changed Name","description":"Must be unique within folder.  \"/\" in folder name will be replaces with \":\"","type":"text"},{"key":"folder_id","value":"","description":"Folder ID of new parent folder","type":"text"}]},"url":"{{host}}/v1/folders/144"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"05af258ba67e59ad4ea5cccec905070f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"355dc4bb-1339-4ec2-88d8-1f5491d82f04"},{"key":"X-Runtime","value":"0.980937"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"20\",\n        \"type\": \"folder\",\n        \"attributes\": {\n            \"name\": \"Subfolder is now a root folder\",\n            \"created_at\": \"2023-07-07T15:14:15.974-07:00\",\n            \"updated_at\": \"2023-07-10T10:03:45.312-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"225\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"folders\": {\n                \"data\": []\n            },\n            \"files\": {\n                \"data\": []\n            }\n        }\n    }\n}"},{"id":"02db2a87-6215-46c1-a892-8bfe996960b3","name":"PUT Update Subfolder by folder path","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"documentable_type","value":"Matter","type":"text"},{"key":"documentable_id","value":"143","type":"text"},{"key":"name","value":"Changed Name","description":"Must be unique within folder.  \"/\" in folder name will be replaces with \":\"","type":"text","disabled":true},{"key":"path[]","value":"foo","type":"text"}]},"url":"{{host}}/v1/folders/164"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"05af258ba67e59ad4ea5cccec905070f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"355dc4bb-1339-4ec2-88d8-1f5491d82f04"},{"key":"X-Runtime","value":"0.980937"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"164\",\n        \"type\": \"folder\",\n        \"attributes\": {\n            \"name\": \"bar\",\n            \"created_at\": \"2024-01-19T11:29:34.054-08:00\",\n            \"updated_at\": \"2024-01-19T11:41:57.557-08:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"143\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"folders\": {\n                \"data\": [\n                    {\n                        \"id\": \"159\",\n                        \"type\": \"folder\"\n                    }\n                ]\n            },\n            \"files\": {\n                \"data\": [\n                    {\n                        \"id\": \"159\",\n                        \"type\": \"file\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"6d37476e-6401-4cc0-8633-e470ed2d5847"},{"name":"Delete Folder","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/folders`, function (err, response) {","   pm.globals.set(\"folder_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"db2bcdd3-e9c1-444c-b7f4-ad04df21b521","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/folders/:folder_id","description":"<p>Deletes a <strong>Folder</strong> by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","folders",":folder_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{folder_id}}","key":"folder_id"}]}},"response":[{"id":"498c7c67-2b2c-4b6a-9458-3b5ac99dcbb5","name":"DELETE Folder","originalRequest":{"method":"DELETE","header":[],"url":"{{host}}/v1/folders/17"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"6edccdfb932134cb28ff8480de0d8b4a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"101d6204-de7e-495e-9e60-17b5d2304809"},{"key":"X-Runtime","value":"0.504538"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"17\",\n        \"type\": \"folder\",\n        \"attributes\": {\n            \"name\": \"videos\",\n            \"created_at\": \"2023-07-07T14:55:12.311-07:00\",\n            \"updated_at\": \"2023-07-07T14:55:37.861-07:00\"\n        },\n        \"relationships\": {\n            \"documentable\": {\n                \"data\": {\n                    \"id\": \"144\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"folders\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"db2bcdd3-e9c1-444c-b7f4-ad04df21b521"}],"id":"bcdb453d-4ab4-434f-a658-390883ee3546","_postman_id":"bcdb453d-4ab4-434f-a658-390883ee3546","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matters (Prospects)","item":[{"name":"Matter Finders","item":[{"name":"Find Matter By Phone Number","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects?fields=all`, function (err, response) {","   pm.globals.set(\"phone\", response.json().data.find(({attributes}) => attributes.phone).attributes.phone);","});","",""],"type":"text/javascript"}}],"id":"d1d2723b-5b4b-4708-811b-033b38f9fda9","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects/find_by_phone/:phone_number","description":"<p>Fuzzy find a specific Matter by Phone Number.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects","find_by_phone",":phone_number"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Any valid phone number. We strip all non digits when matching, and try with and without the leading 1 for US country codes.</p>\n","type":"text/plain"},"type":"any","value":"{{phone}}","key":"phone_number"}]}},"response":[{"id":"76306b30-59ae-4d1e-b7e0-fc6c9f895974","name":"GET Find Matter By Phone Number","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/prospects/find_by_phone/5555555"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"fe5742a93141b540658d83170b538ce3\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"793bcf21-4400-4dc1-a035-1adfd69bd02f","description":"Custom header"},{"key":"X-Runtime","value":"0.511475","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"41871\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Roey\",\n            \"last_name\": \"Chasman\",\n            \"email\": \"roey+api@lawmatics.com\",\n            \"phone\": \"5555555555\",\n            \"created_at\": \"2018-10-17T17:24:43.293-07:00\",\n            \"updated_at\": \"2018-10-17T17:24:43.293-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"d1d2723b-5b4b-4708-811b-033b38f9fda9"},{"name":"Find Matter By Email Address","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects?fields=all`, function (err, response) {","   pm.globals.set(\"email\", response.json().data.find(({attributes}) => attributes.email).attributes.email);","});","",""],"type":"text/javascript"}}],"id":"463343c6-43f0-461f-888c-fecf867d5e2b","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects/find_by_email/:email_address","description":"<p>Fuzzy find a specific Matter by Email Address.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects","find_by_email",":email_address"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>A valid email address</p>\n","type":"text/plain"},"type":"any","value":"{{email}}","key":"email_address"}]}},"response":[{"id":"eaa53a71-57c4-4817-9de9-f0bf9171d0b3","name":"GET Find Matter By Email Address","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/prospects/find_by_email/roey+api@lawmatics.com"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"41871\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Roey\",\n            \"last_name\": \"Chasman\",\n            \"email\": \"roey+api@lawmatics.com\",\n            \"phone\": \"5555555555\",\n            \"created_at\": \"2018-10-17T17:24:43.293-07:00\",\n            \"updated_at\": \"2018-10-17T17:24:43.293-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"463343c6-43f0-461f-888c-fecf867d5e2b"},{"name":"Find Matter By Name","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects?fields=all`, function (err, response) {","   pm.globals.set(\"name\", response.json().data.find(({attributes}) => attributes.first_name).attributes.first_name);","});"],"type":"text/javascript"}}],"id":"12577bca-3509-4064-9234-cde88697c0cb","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects/find_by_name/:name","description":"<p>Fuzzy find (case-insensitive) a specific Matter by their Name. You can pass either '{first_name} {last_name}' or simply '{first_name}'</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects","find_by_name",":name"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>We return the closest match. For better results include the PNC Contact's last name.</p>\n","type":"text/plain"},"type":"any","value":"{{name}}","key":"name"}]}},"response":[{"id":"65e37c2f-4fa3-42d3-afa0-49075c8f6b70","name":"GET Find Matter By Name","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/prospects/find_by_name/rOeY%20cHaS"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"41871\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Roey\",\n            \"last_name\": \"Chasman\",\n            \"email\": \"roey+api@lawmatics.com\",\n            \"phone\": \"5555555555\",\n            \"created_at\": \"2018-10-17T17:24:43.293-07:00\",\n            \"updated_at\": \"2018-10-17T17:24:43.293-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"12577bca-3509-4064-9234-cde88697c0cb"}],"id":"b179719e-4b03-42ee-9d6e-c05fc58dfe2a","description":"<p>The following endpoints are fuzzy find endpoints, returning the first <strong>Matter</strong> which matches the passed values.</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Response has a body with an id\", function () {","    const body = pm.response.json()","    pm.expect(body.data).have.property('id');","});"]}}],"_postman_id":"b179719e-4b03-42ee-9d6e-c05fc58dfe2a","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Interactions","item":[{"name":"Interaction","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/interactions`, function (err, response) {","   pm.globals.set(\"interaction_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"5c617211-edc9-4507-8782-43bc5d4e0110","request":{"method":"GET","header":[],"url":"{{host}}/v1/interactions/:interaction_id","description":"<p>Retrieves an interaction by its ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","interactions",":interaction_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{interaction_id}}","key":"interaction_id"}]}},"response":[{"id":"0680d655-0c08-48d8-969a-6b07b32324cc","name":"GET Interaction","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/interactions/69"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"d8ada6f6b811cd3dfe019cd17605c148\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f1e975b5-2ad0-4484-be70-6c528576d342"},{"key":"X-Runtime","value":"0.305908"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"69\",\n        \"type\": \"interaction\",\n        \"attributes\": {\n            \"interaction_type\": \"One kind of interaction\",\n            \"body\": \"The one - cannot change.\",\n            \"happened_at\": \"2019-03-01T14:00:00.000-08:00\",\n            \"created_at\": \"2022-08-23T20:19:47.926-07:00\",\n            \"updated_at\": \"2022-08-24T15:30:15.255-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"interactable\": {\n                \"data\": {\n                    \"id\": \"144\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"5c617211-edc9-4507-8782-43bc5d4e0110"},{"name":"Interactions","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is Okay\", function () {","    pm.response.to.be.ok;","});","pm.test(\"Response time is less than 6s\", function () {","    pm.expect(pm.response.responseTime).to.be.below(1200);","});"],"type":"text/javascript"}}],"id":"ced9592d-a669-4b48-9285-82e64c913c9a","request":{"method":"GET","header":[],"url":"{{host}}/v1/interactions/","description":"<p>A <strong>paginated</strong> list of all Interactions in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>interactable_type</code></td>\n<td>string</td>\n<td>Always <code>\"Prospect\"</code> in practice — Create Interaction only accepts <code>prospect_id</code>, so this can never be anything else through this API</td>\n</tr>\n<tr>\n<td><code>interactable_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>happened_at</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>interaction_type</code></td>\n<td>string</td>\n<td>Free-form text — no fixed/enumerated value list</td>\n</tr>\n<tr>\n<td><code>body</code></td>\n<td>text</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","interactions",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d573f79b-cb55-4bee-99c1-853e2b45d21b","name":"GET Interactions","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/interactions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"c0b83df00a4a4f5d9c3aa251a4bdf259\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7cb37883-d252-494f-b288-6d25bbf5af8a"},{"key":"X-Runtime","value":"0.868393"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"70\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"A type of interaction\",\n                \"body\": \"The two.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-24T15:29:44.289-07:00\",\n                \"updated_at\": \"2022-08-24T15:29:44.289-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"143\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"69\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"One kind of interaction\",\n                \"body\": \"The one - cannot change.\",\n                \"happened_at\": \"2019-03-01T14:00:00.000-08:00\",\n                \"created_at\": \"2022-08-23T20:19:47.926-07:00\",\n                \"updated_at\": \"2022-08-24T15:30:15.255-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"144\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"68\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-19T07:08:05.717-07:00\",\n                \"updated_at\": \"2022-08-19T07:08:05.717-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"143\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"67\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-19T06:57:07.842-07:00\",\n                \"updated_at\": \"2022-08-19T06:57:07.842-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"143\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"65\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"Phone Call\",\n                \"body\": \"2016\",\n                \"happened_at\": \"2016-08-18T21:02:00.790-07:00\",\n                \"created_at\": \"2022-08-18T21:03:08.111-07:00\",\n                \"updated_at\": \"2022-08-18T21:03:08.111-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"143\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"33\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-17T07:45:22.510-07:00\",\n                \"updated_at\": \"2022-08-17T07:45:22.510-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"32\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-17T07:18:57.068-07:00\",\n                \"updated_at\": \"2022-08-17T07:18:57.068-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"31\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-17T07:18:20.243-07:00\",\n                \"updated_at\": \"2022-08-17T07:18:20.243-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"29\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T18:31:05.746-07:00\",\n                \"updated_at\": \"2022-08-16T18:31:05.748-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"121\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"28\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T18:31:00.704-07:00\",\n                \"updated_at\": \"2022-08-16T18:31:00.713-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"27\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction.\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T10:13:38.683-07:00\",\n                \"updated_at\": \"2022-08-16T10:13:38.685-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"26\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction too\",\n                \"body\": \"Body of the Interaction!\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T10:13:28.379-07:00\",\n                \"updated_at\": \"2022-08-16T10:13:28.381-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"25\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction!\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T10:13:20.531-07:00\",\n                \"updated_at\": \"2022-08-16T10:13:20.534-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"24\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T10:13:16.189-07:00\",\n                \"updated_at\": \"2022-08-16T10:13:16.207-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"23\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T10:04:07.490-07:00\",\n                \"updated_at\": \"2022-08-16T10:04:07.522-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"22\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"some type of Interaction\",\n                \"body\": \"Body of the Interaction\",\n                \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n                \"created_at\": \"2022-08-16T09:52:39.900-07:00\",\n                \"updated_at\": \"2022-08-16T09:52:39.917-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"21\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"77777\",\n                \"body\": \"77777\",\n                \"happened_at\": \"2022-03-01T14:00:00.000-08:00\",\n                \"created_at\": \"2022-08-16T09:04:14.069-07:00\",\n                \"updated_at\": \"2022-08-16T09:12:12.824-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"interaction\",\n            \"attributes\": {\n                \"interaction_type\": \"77777\",\n                \"body\": \"77777\",\n                \"happened_at\": \"2022-03-01T14:00:00.000-08:00\",\n                \"created_at\": \"2022-08-16T08:23:18.610-07:00\",\n                \"updated_at\": \"2022-08-16T10:20:42.847-07:00\"\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"interactable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 18\n    },\n    \"links\": {\n        \"self\": \"/v1/interactions?page=1\"\n    }\n}"}],"_postman_id":"ced9592d-a669-4b48-9285-82e64c913c9a"},{"name":"Create Interaction","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_interaction_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"4ad66759-cce9-4aa4-9b7c-9519f6f3ac50","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"happened_at\": \"2022-06-29T15:00:00-07:00\",\n    \"prospect_id\": {{prospect_id}},\n    \"body\":\"Body of the Interaction\",\n    \"interaction_type\":\"some type of Interaction\"\n}"},"url":"{{host}}/v1/interactions","description":"<p>Create a new <strong>Interaction</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prospect_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td>The Matter this Interaction is logged against</td>\n</tr>\n<tr>\n<td><code>interaction_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Made Phone Call\"</code></td>\n<td>Free-form text, not a fixed enum. The app's own \"Log Activity\" UI uses a fixed list — <code>Made Phone Call</code>, <code>Sent Email</code>, <code>Had In Person Meeting</code>, <code>Sent Text Message</code>, <code>Posted to Social Media</code>, <code>Physical Mail</code> — but the API does not enforce it; any string is accepted and stored as-is</td>\n</tr>\n<tr>\n<td><code>body</code></td>\n<td>text</td>\n<td>Yes</td>\n<td><code>\"Discussed case status with client.\"</code></td>\n<td>Must be non-blank</td>\n</tr>\n<tr>\n<td><code>happened_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-15T14:30:00.000-08:00\"</code></td>\n<td>ISO 8601. Defaults to the creation time for timeline ordering if omitted</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","interactions"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"0a48f0d0-7168-451f-bf8e-a6bec3a76221","name":"POST Create Interaction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"happened_at\": \"202-06-29T15:00:00-07:00\",\n    \"prospect_id\": 12,\n    \"body\":\"Body of the Interaction\",\n    \"interaction_type\":\"some type of Interaction\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/interaction"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"71\",\n        \"type\": \"interaction\",\n        \"attributes\": {\n            \"interaction_type\": \"A type of interaction\",\n            \"body\": \"the body\",\n            \"happened_at\": \"2022-06-29T15:00:00.000-07:00\",\n            \"created_at\": \"2022-08-24T20:42:19.343-07:00\",\n            \"updated_at\": \"2022-08-24T20:42:19.343-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"interactable\": {\n                \"data\": {\n                    \"id\": \"143\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"4ad66759-cce9-4aa4-9b7c-9519f6f3ac50"},{"name":"Update Interaction","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/interactions`, function (err, response) {","   pm.globals.set(\"interaction_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"d63f82fd-6ae0-404c-9d53-4669a92afa2a","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"happened_at\": \"2019-02-29T15:00:00-07:00\",\n    \"body\":\"The one - from 143 to 144\",\n    \"interaction_type\":\"One kind of interaction\"\n}"},"url":"{{host}}/v1/interactions/:interaction_id","description":"<p>Update an existing Interaction by ID.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","interactions",":interaction_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{created_interaction_id}}","key":"interaction_id"}]}},"response":[{"id":"97dfcc95-ac80-4b37-9132-b4a197ee16f7","name":"PUT Update Interaction","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"happened_at\": \"2022-06-29T15:00:00-07:00\",\n    \"body\":\"A changed body.\",\n    \"interaction_type\":\"One kind of interaction\"\n}"},"url":{"raw":"{{host}}/v1/events/:event_id","host":["{{host}}"],"path":["v1","events",":event_id"],"variable":[{"key":"event_id","value":"{{created_event_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"438e3e9bbde390baabab8ef56cbc64f6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ccbd72f4-0dea-4e8a-a140-6506740fcf28"},{"key":"X-Runtime","value":"0.080994"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"69\",\n        \"type\": \"interaction\",\n        \"attributes\": {\n            \"interaction_type\": \"One kind of interaction\",\n            \"body\": \"A changed body.\",\n            \"happened_at\": \"2019-03-01T14:00:00.000-08:00\",\n            \"created_at\": \"2022-08-23T20:19:47.926-07:00\",\n            \"updated_at\": \"2022-08-24T20:43:05.020-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"interactable\": {\n                \"data\": {\n                    \"id\": \"144\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"d63f82fd-6ae0-404c-9d53-4669a92afa2a"},{"name":"Delete Interaction","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/interactions`, function (err, response) {","   pm.globals.set(\"interaction_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"021971d2-ddd0-4e27-9e01-e73bef9b957c","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/interactions/:interaction_id","description":"<p>Deletes an existing interaction</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","interactions",":interaction_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{interaction_id}}","key":"interaction_id"}]}},"response":[{"id":"e87462fc-8843-4b76-8fac-a64eb1a41b94","name":"DELETE Interaction","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/interaction/69"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"121e1449aec4cafcd0d37de002d1e8d2\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"da5927af-fc05-46bc-bcbb-3b4152e0e4ed"},{"key":"X-Runtime","value":"0.271719"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"69\",\n        \"type\": \"interaction\",\n        \"attributes\": {\n            \"interaction_type\": \"One kind of interaction\",\n            \"body\": \"A changed body.\",\n            \"happened_at\": \"2019-03-01T14:00:00.000-08:00\",\n            \"created_at\": \"2022-08-23T20:19:47.926-07:00\",\n            \"updated_at\": \"2022-08-24T20:43:25.148-07:00\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"interactable\": {\n                \"data\": {\n                    \"id\": \"144\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"021971d2-ddd0-4e27-9e01-e73bef9b957c"}],"id":"271d7990-a6d8-4f82-9dd5-6bd747f934e9","description":"<p>External <strong>Interaction</strong> logs that will be displayed in the activity timeline of a <strong>Matter</strong>.</p>\n","_postman_id":"271d7990-a6d8-4f82-9dd5-6bd747f934e9","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Marketing Campaigns","item":[{"name":"Campaign","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/campaigns`, function (err, response) {","   pm.globals.set(\"campaign_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"4dd773f6-2928-4e65-944d-e3eab5b961bd","request":{"method":"GET","header":[],"url":"{{host}}/v1/campaigns/:campaign_id","description":"<p>A specific Marketing Campaign by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","campaigns",":campaign_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{campaign_id}}","key":"campaign_id"}]}},"response":[{"id":"84779634-87bd-4ca4-8b77-ff690d119020","name":"GET Campaign","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/campaigns/286?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","campaigns","286"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"43ee10a8f125502530043754a8c0abf9\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"126eb837-e4f5-4c6e-aaea-0616a925d7ff","description":"Custom header"},{"key":"X-Runtime","value":"0.026408","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"192\",\n        \"type\": \"campaign\",\n        \"attributes\": {\n            \"name\": \"ClioCon 2018\",\n            \"description\": \"ClioCon in New Orleans 2018\",\n            \"utm_match\": \"clio_con\",\n            \"tracking_number\": \"+18556347246\",\n            \"pnc_count\": 9,\n            \"created_at\": \"2018-10-04T10:35:00.880-07:00\",\n            \"updated_at\": \"2018-10-04T10:35:00.880-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"source\"\n                }\n            },\n            \"prospects\": {\n                \"data\": [\n                    {\n                        \"id\": \"12505\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"6017\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"5977\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"5974\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"5971\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"5968\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"5966\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"5963\",\n                        \"type\": \"prospect\"\n                    },\n                    {\n                        \"id\": \"5959\",\n                        \"type\": \"prospect\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"4dd773f6-2928-4e65-944d-e3eab5b961bd"},{"name":"Campaigns","id":"047e2709-96cb-4d51-bb56-47ab395c5f58","request":{"method":"GET","header":[],"url":"{{host}}/v1/campaigns","description":"<p>A <strong>paginated</strong> list of all Marketing Campaigns in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td><code>NULL</code> for standard Campaigns, <code>Referrer</code> for referral records.</td>\n</tr>\n<tr>\n<td><code>source_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>contact_id</code></td>\n<td>id</td>\n<td>Only for referral records.</td>\n</tr>\n<tr>\n<td><code>company_id</code></td>\n<td>id</td>\n<td>Only for referral records.</td>\n</tr>\n<tr>\n<td><code>utm_match</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>extra_match_value</code></td>\n<td>string</td>\n<td>CallRail-only, \"campaign match value\"</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","campaigns"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3ef278b6-7d3d-4067-b13e-b6ec576e0e73","name":"GET Campaigns","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/campaigns"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"f1fa3afbde7d591af176761fb2d8363e\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"bdacb752-b482-4f6b-be8b-7fcc18d7b071","description":"Custom header"},{"key":"X-Runtime","value":"0.513929","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"284\",\n            \"type\": \"campaign\",\n            \"attributes\": {\n                \"name\": \"Landing Page Ad 1\",\n                \"created_at\": \"2018-10-11T18:09:55.363-07:00\",\n                \"updated_at\": \"2018-10-11T18:09:55.363-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"285\",\n            \"type\": \"campaign\",\n            \"attributes\": {\n                \"name\": \"Blog Ad 1\",\n                \"created_at\": \"2018-10-12T15:28:16.893-07:00\",\n                \"updated_at\": \"2018-10-12T15:28:23.512-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"286\",\n            \"type\": \"campaign\",\n            \"attributes\": {\n                \"name\": \"Banner Ad 1\",\n                \"created_at\": \"2018-10-12T15:28:34.041-07:00\",\n                \"updated_at\": \"2018-10-12T15:28:34.041-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"287\",\n            \"type\": \"campaign\",\n            \"attributes\": {\n                \"name\": \"Banner Ad 2\",\n                \"created_at\": \"2018-10-12T15:28:41.512-07:00\",\n                \"updated_at\": \"2018-10-12T15:28:45.320-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"288\",\n            \"type\": \"campaign\",\n            \"attributes\": {\n                \"name\": \"Roey Chasman\",\n                \"created_at\": \"2018-10-12T15:38:08.058-07:00\",\n                \"updated_at\": \"2018-10-12T15:38:08.058-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 5\n    },\n    \"links\": {\n        \"self\": \"/v1/campaigns?page=1\"\n    }\n}"}],"_postman_id":"047e2709-96cb-4d51-bb56-47ab395c5f58"}],"id":"bf3acc76-5286-4335-b4d4-5a63ecf3464c","_postman_id":"bf3acc76-5286-4335-b4d4-5a63ecf3464c","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Marketing Sources","item":[{"name":"Source","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/sources`, function (err, response) {","   pm.globals.set(\"source_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"20d5c188-f180-4f8e-83ec-3c3718e273f4","request":{"method":"GET","header":[],"url":"{{host}}/v1/sources/:source_id","description":"<p>A specific Marketing Source by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","sources",":source_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{source_id}}","key":"source_id"}]}},"response":[{"id":"76c16656-db42-4325-9a73-d07d27e1e660","name":"GET Source","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/sources/1374?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","sources","1374"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"48998395646735dac874c8c8386f90fe\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"c7355f61-d074-4a22-b605-35b029c90a17","description":"Custom header"},{"key":"X-Runtime","value":"0.706541","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"243\",\n        \"type\": \"source\",\n        \"attributes\": {\n            \"name\": \"Facebook\",\n            \"description\": null,\n            \"color\": \"#F70303\",\n            \"utm_match\": null,\n            \"spend_frequency\": \"weekly\",\n            \"tracking_number\": null,\n            \"pnc_count\": 0,\n            \"created_at\": \"2018-09-20T10:45:21.681-07:00\",\n            \"updated_at\": \"2018-09-20T10:45:21.681-07:00\"\n        },\n        \"relationships\": {\n            \"campaigns\": {\n                \"data\": [\n                    {\n                        \"id\": \"174\",\n                        \"type\": \"campaign\"\n                    }\n                ]\n            },\n            \"prospects\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"20d5c188-f180-4f8e-83ec-3c3718e273f4"},{"name":"Sources","id":"9bb9ec5d-68d7-479c-8c78-adfec6ac71e6","request":{"method":"GET","header":[],"url":"{{host}}/v1/sources","description":"<p>A <strong>paginated</strong> list of all Marketing Sources in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>6-digit hex string, <code>#RRGGBB</code></td>\n</tr>\n<tr>\n<td><code>spend_frequency</code></td>\n<td>string</td>\n<td>3 options: <code>daily</code>, <code>weekly</code>, <code>monthly</code></td>\n</tr>\n<tr>\n<td><code>utm_match</code></td>\n<td>string</td>\n<td>Matched against <code>utm_source</code>/<code>utm_campaign</code> for web attribution</td>\n</tr>\n<tr>\n<td><code>extra_match_value</code></td>\n<td>string</td>\n<td>CallRail-only, \"source match value\"</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","sources"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"71e1a789-eb82-4fda-8f26-fe15f8a41197","name":"GET Sources","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/sources"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"96d14fd124b530a5be37cd7aac5cf2ab\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"7f6225e4-4099-4459-9f4b-ad38337a7cfc","description":"Custom header"},{"key":"X-Runtime","value":"0.473402","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"243\",\n            \"type\": \"source\",\n            \"attributes\": {\n                \"name\": \"Facebook\",\n                \"created_at\": \"2018-09-20T10:45:21.681-07:00\",\n                \"updated_at\": \"2018-09-20T10:45:21.681-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"200\",\n            \"type\": \"source\",\n            \"attributes\": {\n                \"name\": \"Nolo\",\n                \"created_at\": \"2018-08-29T15:14:15.629-07:00\",\n                \"updated_at\": \"2018-08-29T15:14:15.629-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"90\",\n            \"type\": \"source\",\n            \"attributes\": {\n                \"name\": \"ChatBot 101\",\n                \"created_at\": \"2018-07-20T09:44:43.821-07:00\",\n                \"updated_at\": \"2018-07-20T09:44:43.821-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"source\",\n            \"attributes\": {\n                \"name\": \"Referrals\",\n                \"created_at\": \"2018-03-04T02:17:45.924-08:00\",\n                \"updated_at\": \"2018-04-12T14:13:01.357-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"source\",\n            \"attributes\": {\n                \"name\": \"Google\",\n                \"created_at\": \"2018-01-24T10:44:54.260-08:00\",\n                \"updated_at\": \"2018-01-24T10:44:54.260-08:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"source\",\n            \"attributes\": {\n                \"name\": \"Conferences\",\n                \"created_at\": \"2018-01-08T10:47:20.997-08:00\",\n                \"updated_at\": \"2018-10-05T09:02:59.114-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"source\",\n            \"attributes\": {\n                \"name\": \"Google PPC\",\n                \"created_at\": \"2018-01-08T10:02:16.040-08:00\",\n                \"updated_at\": \"2018-10-05T07:29:39.386-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 7\n    },\n    \"links\": {\n        \"self\": \"/v1/source?page=1\"\n    }\n}"}],"_postman_id":"9bb9ec5d-68d7-479c-8c78-adfec6ac71e6"}],"id":"c935b886-0997-4451-9e29-276abc23b3c6","_postman_id":"c935b886-0997-4451-9e29-276abc23b3c6","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Pipelines","item":[{"name":"Pipeline","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/pipelines`, function (err, response) {","   pm.globals.set(\"pipeline_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"9b0a932f-24a1-4ad4-bede-4f336a597ef9","request":{"method":"GET","header":[],"url":"{{host}}/v1/pipelines/:pipeline_id","description":"<p>A specific Pipeline by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","pipelines",":pipeline_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{pipeline_id}}","key":"pipeline_id"}]}},"response":[{"id":"ec5698c3-a3bb-463a-80f4-b35cc259ae0c","name":"GET Pipeline","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/pipelines/:pipeline_id?fields=all","host":["{{host}}"],"path":["v1","pipelines",":pipeline_id"],"query":[{"key":"fields","value":"all"}],"variable":[{"key":"pipeline_id","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5dec75f61a17ba41b67a8964026d6920\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dbaab9e9-d1d5-49a5-b5bd-1f0e0501a538"},{"key":"X-Runtime","value":"0.231155"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"4\",\n        \"type\": \"pipeline\",\n        \"attributes\": {\n            \"name\": \"Intake\",\n            \"description\": \"Intake Pipeline\",\n            \"statuses\": [\n                \"pnc\"\n            ],\n            \"pipeline_type\": \"intake\",\n            \"matter_count\": 174,\n            \"estimated_value\": \"$0.22\",\n            \"created_at\": \"2019-02-28T07:21:48.362-08:00\",\n            \"updated_at\": \"2019-02-28T07:21:48.362-08:00\"\n        },\n        \"relationships\": {\n            \"stages\": {\n                \"data\": [\n                    {\n                        \"id\": \"6\",\n                        \"type\": \"stage\"\n                    },\n                    {\n                        \"id\": \"7\",\n                        \"type\": \"stage\"\n                    },\n                    {\n                        \"id\": \"9\",\n                        \"type\": \"stage\"\n                    },\n                    {\n                        \"id\": \"148\",\n                        \"type\": \"stage\"\n                    },\n                    {\n                        \"id\": \"352\",\n                        \"type\": \"stage\"\n                    },\n                    {\n                        \"id\": \"138\",\n                        \"type\": \"stage\"\n                    },\n                    {\n                        \"id\": \"146\",\n                        \"type\": \"stage\"\n                    },\n                    {\n                        \"id\": \"147\",\n                        \"type\": \"stage\"\n                    }\n                ]\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"14\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9b0a932f-24a1-4ad4-bede-4f336a597ef9"},{"name":"Pipelines","id":"522b2e16-f256-4a24-823a-9edb344d6caf","request":{"method":"GET","header":[],"url":"{{host}}/v1/pipelines","description":"<p>A <strong>paginated</strong> list of all Pipelines in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>order</code></td>\n<td>integer</td>\n<td>Display order among the firm's pipelines (default: 0). Positions are actively managed — inserting a Pipeline at a given position pushes every existing Pipeline at or after that position down by one</td>\n</tr>\n<tr>\n<td><code>pipeline_type</code></td>\n<td>integer</td>\n<td>(Raw integer only) <code>0</code> = normal, <code>1</code> = intake. Labels (e.g. <code>intake</code>) are not accepted.</td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","pipelines"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"805d2a03-52ab-408d-a80d-6203d9c722a1","name":"GET Pipelines","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/pipelines?fields=all","host":["{{host}}"],"path":["v1","pipelines"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a6ba9f8df08c23b4dc7c208847873dca\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ea601a0f-28d9-4192-9954-d43c7c078a18"},{"key":"X-Runtime","value":"0.459638"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"61\",\n            \"type\": \"pipeline\",\n            \"attributes\": {\n                \"name\": \"sdf\",\n                \"description\": \"sdfdfs\",\n                \"statuses\": [\n                    \"pnc\"\n                ],\n                \"pipeline_type\": \"normal\",\n                \"matter_count\": 0,\n                \"estimated_value\": \"$0\",\n                \"created_at\": \"2019-04-01T13:47:21.156-07:00\",\n                \"updated_at\": \"2019-04-01T13:47:21.156-07:00\"\n            },\n            \"relationships\": {\n                \"stages\": {\n                    \"data\": []\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"60\",\n            \"type\": \"pipeline\",\n            \"attributes\": {\n                \"name\": \"test23\",\n                \"description\": \"wow\",\n                \"statuses\": [\n                    \"pnc\"\n                ],\n                \"pipeline_type\": \"intake\",\n                \"matter_count\": 0,\n                \"estimated_value\": \"$0\",\n                \"created_at\": \"2019-04-01T13:46:50.796-07:00\",\n                \"updated_at\": \"2019-04-01T13:46:50.796-07:00\"\n            },\n            \"relationships\": {\n                \"stages\": {\n                    \"data\": [\n                        {\n                            \"id\": \"374\",\n                            \"type\": \"stage\"\n                        }\n                    ]\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"16\",\n            \"type\": \"pipeline\",\n            \"attributes\": {\n                \"name\": \"test\",\n                \"description\": \"test\",\n                \"statuses\": [\n                    \"pnc\"\n                ],\n                \"pipeline_type\": \"intake\",\n                \"matter_count\": 0,\n                \"estimated_value\": \"$0\",\n                \"created_at\": \"2019-03-12T10:45:35.796-07:00\",\n                \"updated_at\": \"2019-03-12T10:45:35.796-07:00\"\n            },\n            \"relationships\": {\n                \"stages\": {\n                    \"data\": []\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"4\",\n            \"type\": \"pipeline\",\n            \"attributes\": {\n                \"name\": \"Intake\",\n                \"description\": \"Intake Pipeline\",\n                \"statuses\": [\n                    \"pnc\"\n                ],\n                \"pipeline_type\": \"intake\",\n                \"matter_count\": 173,\n                \"estimated_value\": \"$0.22\",\n                \"created_at\": \"2019-02-28T07:21:48.362-08:00\",\n                \"updated_at\": \"2019-02-28T07:21:48.362-08:00\"\n            },\n            \"relationships\": {\n                \"stages\": {\n                    \"data\": [\n                        {\n                            \"id\": \"6\",\n                            \"type\": \"stage\"\n                        },\n                        {\n                            \"id\": \"7\",\n                            \"type\": \"stage\"\n                        },\n                        {\n                            \"id\": \"9\",\n                            \"type\": \"stage\"\n                        },\n                        {\n                            \"id\": \"148\",\n                            \"type\": \"stage\"\n                        },\n                        {\n                            \"id\": \"352\",\n                            \"type\": \"stage\"\n                        },\n                        {\n                            \"id\": \"138\",\n                            \"type\": \"stage\"\n                        },\n                        {\n                            \"id\": \"146\",\n                            \"type\": \"stage\"\n                        },\n                        {\n                            \"id\": \"147\",\n                            \"type\": \"stage\"\n                        }\n                    ]\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"14\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 4\n    },\n    \"links\": {\n        \"self\": \"/v1/pipeline?page=1\"\n    }\n}"}],"_postman_id":"522b2e16-f256-4a24-823a-9edb344d6caf"}],"id":"f195d182-37e9-47d1-bb65-bea4fdb10928","_postman_id":"f195d182-37e9-47d1-bb65-bea4fdb10928","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Pipeline Stages","item":[{"name":"Stage","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/stages`, function (err, response) {","   pm.globals.set(\"stage_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"d81d2ac5-27ce-457e-849b-1fb6513342ec","request":{"method":"GET","header":[],"url":"{{host}}/v1/stages/:stage_id","description":"<p>A specific Stage by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","stages",":stage_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{stage_id}}","key":"stage_id"}]}},"response":[{"id":"dda593b3-bdbb-4fee-b62a-a1493f6a2bb9","name":"GET Stage","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/stages/:stage_id?fields=all","host":["{{host}}"],"path":["v1","stages",":stage_id"],"query":[{"key":"fields","value":"all"}],"variable":[{"key":"stage_id","value":"147"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"deff2277314a3a4c8cc43eeaaefdea90\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"92c91851-58ad-46a0-bbe7-5f666b03647c"},{"key":"X-Runtime","value":"0.160184"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"147\",\n        \"type\": \"stage\",\n        \"attributes\": {\n            \"name\": \"Initial Call\",\n            \"color\": \"#bcc2c94d\",\n            \"order\": 7,\n            \"created_at\": \"2018-10-02T11:25:35.532-07:00\",\n            \"updated_at\": \"2019-02-28T19:28:40.101-08:00\"\n        },\n        \"relationships\": {\n            \"prospects\": {\n                \"data\": [\n                    {\n                        \"id\": \"50645\",\n                        \"type\": \"prospect\"\n                    }\n                ]\n            },\n            \"pipeline\": {\n                \"data\": {\n                    \"id\": \"4\",\n                    \"type\": \"pipeline\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"d81d2ac5-27ce-457e-849b-1fb6513342ec"},{"name":"Stages","id":"fc45f999-6886-47c8-9201-f6c863098e49","request":{"method":"GET","header":[],"url":"{{host}}/v1/stages","description":"<p>A <strong>paginated</strong> list of all Stages in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>order</code></td>\n<td>integer</td>\n<td>Display order within the pipeline</td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>6-digit hex string, <code>#RRGGBB</code> — the app's color picker for Stages uses a fixed palette: <code>#000000</code>, <code>#757F8F</code>, <code>#7997C9</code>, <code>#6519FA</code>, <code>#1D196E</code>, <code>#70B08B</code>, <code>#A8CA45</code>, <code>#EDBE30</code>, <code>#A7783B</code>, <code>#DE5E1C</code>, <code>#80231C</code>, <code>#F70303</code>, <code>#9E4487</code>, <code>#DC438F</code>, <code>#5EB575</code>, <code>#27AE60</code>, <code>#E74C3C</code>, <code>#8E44AD</code>, <code>#16A085</code>, <code>#1F344C</code></td>\n</tr>\n<tr>\n<td><code>track_time_in_stage</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>pipeline_id</code></td>\n<td>id</td>\n<td>Which Pipeline this stage belongs to (see <code>GET /v1/pipelines</code>)</td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","stages"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b4588d99-a5c3-4201-9a51-558909a93be6","name":"GET Stages Filtered By Pipeline","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/stages?fields=name,pipeline&filter_by=pipeline_id&filter_on=4","host":["{{host}}"],"path":["v1","stages"],"query":[{"key":"fields","value":"name,pipeline"},{"key":"filter_by","value":"pipeline_id"},{"key":"filter_on","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"9ebb45799c1f5885dd6df2589da4482c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"86800377-f13e-42fb-b556-34288112ae9e"},{"key":"X-Runtime","value":"0.033421"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"352\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"test      w\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"148\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Consult Completed\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"147\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Initial Call\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"146\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Consult Scheduled\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"138\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Really very way too long stage name\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Stage 3\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"7\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Stage 2\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Stage 1\"\n            },\n            \"relationships\": {\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 8\n    },\n    \"links\": {\n        \"self\": \"/v1/stage?page=1\"\n    }\n}"},{"id":"d39490a5-1b84-4470-a27b-841818a74893","name":"GET Stages","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/stages?fields=all","host":["{{host}}"],"path":["v1","stages"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4b96a5c6dfc6ea80e666534692ec22b7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0a581e82-6e94-42ee-a76e-fdfc4266b1e2"},{"key":"X-Runtime","value":"0.056537"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"352\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"test      w\",\n                \"color\": \"#757F8F\",\n                \"order\": 4,\n                \"created_at\": \"2019-01-10T16:13:55.733-08:00\",\n                \"updated_at\": \"2019-03-06T23:08:42.168-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"54736\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"50661\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"148\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Consult Completed\",\n                \"color\": \"#bcc2c94d\",\n                \"order\": 3,\n                \"created_at\": \"2018-10-02T11:25:36.329-07:00\",\n                \"updated_at\": \"2019-03-06T23:08:42.168-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"54747\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54787\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54748\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54749\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54750\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"147\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Initial Call\",\n                \"color\": \"#bcc2c94d\",\n                \"order\": 7,\n                \"created_at\": \"2018-10-02T11:25:35.532-07:00\",\n                \"updated_at\": \"2019-02-28T19:28:40.101-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"50645\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"146\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Consult Scheduled\",\n                \"color\": \"#bcc2c94d\",\n                \"order\": 6,\n                \"created_at\": \"2018-10-02T11:25:35.363-07:00\",\n                \"updated_at\": \"2019-02-28T19:28:40.096-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"79\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"32\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"10\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"100\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"46\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"17877\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"17683\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"27\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"138\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Really very way too long stage name\",\n                \"color\": \"#F70303\",\n                \"order\": 5,\n                \"created_at\": \"2018-08-07T16:55:52.659-07:00\",\n                \"updated_at\": \"2019-02-28T19:28:40.091-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"54688\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"19\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54767\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45305\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"6\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"41789\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"65\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45302\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"16\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"90\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"93\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"60\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Stage 3\",\n                \"color\": \"#70B08B\",\n                \"order\": 2,\n                \"created_at\": \"2018-07-17T17:40:21.805-07:00\",\n                \"updated_at\": \"2019-03-06T23:08:42.170-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"50662\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45306\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"41788\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"17682\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"17681\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45303\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"128\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"21\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"68\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"26\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"95\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"52\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"7\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Stage 2\",\n                \"color\": \"#DC438F\",\n                \"order\": 1,\n                \"created_at\": \"2018-07-16T15:12:39.502-07:00\",\n                \"updated_at\": \"2019-03-06T23:08:40.445-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"40\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45310\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"50649\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45311\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"72\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"63\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"57\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"23\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"43\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"35\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"67\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"62\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"58\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"12\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"17\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"20\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"80\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"55\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"53\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"77\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"44\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"99\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"stage\",\n            \"attributes\": {\n                \"name\": \"Stage 1\",\n                \"color\": \"#7997C9\",\n                \"order\": 0,\n                \"created_at\": \"2018-07-16T15:12:39.495-07:00\",\n                \"updated_at\": \"2019-02-28T07:21:48.506-08:00\"\n            },\n            \"relationships\": {\n                \"prospects\": {\n                    \"data\": [\n                        {\n                            \"id\": \"54896\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54895\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54894\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54893\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54892\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54891\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54890\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54889\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54888\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54887\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54886\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54885\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54884\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54883\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54882\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54881\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54880\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54879\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54878\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54877\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54876\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54875\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54874\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54873\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54872\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54871\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54870\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54869\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54868\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54867\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54866\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54865\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54864\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54863\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54862\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54861\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54860\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54859\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54858\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54857\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54856\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54855\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54854\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54853\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54852\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54851\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54850\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54849\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54848\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54846\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54845\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54844\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54843\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54842\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54841\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54840\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54839\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54838\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54837\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54836\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54833\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54832\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54831\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54820\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54810\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54808\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54807\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54730\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"54733\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"50659\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"50664\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"50663\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"50665\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45307\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"122\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"127\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45308\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"45301\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"28\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"8\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"87\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"86\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"82\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"22\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"18\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"9\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"98\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"61\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"7\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"5\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"74\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"70\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"69\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"59\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"51\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"49\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"42\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"41\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"36\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"34\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"30\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"97\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"94\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"92\",\n                            \"type\": \"prospect\"\n                        },\n                        {\n                            \"id\": \"91\",\n                            \"type\": \"prospect\"\n                        }\n                    ]\n                },\n                \"pipeline\": {\n                    \"data\": {\n                        \"id\": \"4\",\n                        \"type\": \"pipeline\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 8\n    },\n    \"links\": {\n        \"self\": \"/v1/stage?page=1\"\n    }\n}"}],"_postman_id":"fc45f999-6886-47c8-9201-f6c863098e49"}],"id":"62da6770-12f5-414a-9291-33ec3f10405d","description":"<p>A <strong>Stage</strong> is a single step of a process <strong>Pipeline</strong>, that a <strong>Matter</strong> is in.</p>\n<p>Setting a <strong>Stage</strong> on a <strong>Matter</strong> is a way for a Lawmatics Firm to organize <strong>Matters</strong> according to their custom business processes.</p>\n<ul>\n<li>You can see a high level overview of all your <strong>Matters</strong> and their <strong>Stages</strong> in the <strong>Pipelines</strong> view.</li>\n<li>You can trigger automations to fire based on which <strong>Stage</strong> a <strong>Matter</strong> is currently in.</li>\n</ul>\n","_postman_id":"62da6770-12f5-414a-9291-33ec3f10405d","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Practice Areas","item":[{"name":"Practice Area","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/practice_areas`, function (err, response) {","   pm.globals.set(\"practice_area_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"2e008bcc-dd94-42d2-b7cc-70fb5c0b74b2","request":{"method":"GET","header":[],"url":"{{host}}/v1/practice_areas/:practice_area_id","description":"<p>A specific Practice Area by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","practice_areas",":practice_area_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{practice_area_id}}","key":"practice_area_id"}]}},"response":[{"id":"517fd547-6ebb-48fa-9dfd-a3c3d64c91c6","name":"GET Practice Area","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/practice_areas/63"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"51c763e3f2d0d39ceb337bb238807b39\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"1745af6c-8e96-4dfe-8e3b-2fad07885766","description":"Custom header"},{"key":"X-Runtime","value":"0.025256","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"63\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Family Law\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-07-23T14:41:38.401-07:00\",\"updated_at\":\"2018-07-23T14:41:38.401-07:00\"}}}"}],"_postman_id":"2e008bcc-dd94-42d2-b7cc-70fb5c0b74b2"},{"name":"Practice Areas","id":"de1c149d-e7f4-4b04-b12d-baaed504191f","request":{"method":"GET","header":[],"url":"{{host}}/v1/practice_areas","description":"<p>A <strong>paginated</strong> list of all Practice Areas in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>6-digit hex string, #RRGGBB — the app's color picker for Practice Areas uses a fixed palette: <code>#000000</code>, <code>#757F8F</code>, <code>#7997C9</code>, <code>#6519FA</code>, <code>#1D196E</code>, <code>#70B08B</code>, <code>#A8CA45</code>, <code>#EDBE30</code>, <code>#A7783B</code>, <code>#DE5E1C</code>, <code>#80231C</code>, <code>#F70303</code>, <code>#9E4487</code>, <code>#DC438F</code>, <code>#5EB575</code>, <code>#27AE60</code>, <code>#E74C3C</code>, <code>#8E44AD</code>, <code>#16A085</code>, <code>#1F344C</code></td>\n</tr>\n<tr>\n<td><code>statute_of_limitations_enabled</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","practice_areas"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"be51583c-3a21-4da1-9376-44b35ecfae19","name":"GET Practice Areas","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/practice_areas"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"7ab6c1839f8565358c9ddb6ec03075ed\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"8a3bda97-5e21-4377-8d17-8d871401bbbb","description":"Custom header"},{"key":"X-Runtime","value":"0.080161","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"id\":\"4\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Criminal Defense\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-07-16T15:13:04.112-07:00\",\"updated_at\":\"2018-07-16T15:13:04.112-07:00\"}},{\"id\":\"5\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Intellectual Property\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-07-16T15:13:04.114-07:00\",\"updated_at\":\"2018-07-16T15:13:04.114-07:00\"}},{\"id\":\"6\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Divorce\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-07-16T15:13:04.116-07:00\",\"updated_at\":\"2018-07-16T15:13:04.116-07:00\"}},{\"id\":\"63\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Family Law\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-07-23T14:41:38.401-07:00\",\"updated_at\":\"2018-07-23T14:41:38.401-07:00\"}},{\"id\":\"64\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Veterans Disability\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-07-23T14:41:38.691-07:00\",\"updated_at\":\"2018-07-23T14:41:38.691-07:00\"}},{\"id\":\"65\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Estate Planning\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-07-23T14:41:39.193-07:00\",\"updated_at\":\"2018-07-23T14:41:39.193-07:00\"}},{\"id\":\"94\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Expungement\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.060-07:00\",\"updated_at\":\"2018-08-07T16:49:06.060-07:00\"}},{\"id\":\"95\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Dui\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.134-07:00\",\"updated_at\":\"2018-08-07T16:49:06.134-07:00\"}},{\"id\":\"96\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Unknown\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.187-07:00\",\"updated_at\":\"2018-08-07T16:49:06.187-07:00\"}},{\"id\":\"97\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Misdemeanor\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.221-07:00\",\"updated_at\":\"2018-08-07T16:49:06.221-07:00\"}},{\"id\":\"98\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Non Practice Area\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.233-07:00\",\"updated_at\":\"2018-08-07T16:49:06.233-07:00\"}},{\"id\":\"99\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Domestic Violence\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.302-07:00\",\"updated_at\":\"2018-08-07T16:49:06.302-07:00\"}},{\"id\":\"100\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Felony\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.384-07:00\",\"updated_at\":\"2018-08-07T16:49:06.384-07:00\"}},{\"id\":\"101\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Marijuana\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.691-07:00\",\"updated_at\":\"2018-08-07T16:49:06.691-07:00\"}},{\"id\":\"102\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Asset Forfeiture\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:06.927-07:00\",\"updated_at\":\"2018-08-07T16:49:06.927-07:00\"}},{\"id\":\"103\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Juvenile\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:07.191-07:00\",\"updated_at\":\"2018-08-07T16:49:07.191-07:00\"}},{\"id\":\"104\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Marijuana Business\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:07.315-07:00\",\"updated_at\":\"2018-08-07T16:49:07.315-07:00\"}},{\"id\":\"105\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Prop 64\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:08.097-07:00\",\"updated_at\":\"2018-08-07T16:49:08.097-07:00\"}},{\"id\":\"106\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Prop 57\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:09.110-07:00\",\"updated_at\":\"2018-08-07T16:49:09.110-07:00\"}},{\"id\":\"107\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Unassigned\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-08-07T16:49:09.644-07:00\",\"updated_at\":\"2018-08-07T16:49:09.644-07:00\"}},{\"id\":\"109\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Business - Business General\",\"color\":\"#757F8F\",\"created_at\":\"2018-08-24T16:36:17.715-07:00\",\"updated_at\":\"2018-08-24T16:36:17.715-07:00\"}},{\"id\":\"125\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Paternity\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-10-08T14:26:25.945-07:00\",\"updated_at\":\"2018-10-08T14:26:25.945-07:00\"}},{\"id\":\"128\",\"type\":\"practice_area\",\"attributes\":{\"name\":\"Limited Scope\",\"color\":\"#bcc2c9\",\"created_at\":\"2018-10-11T10:11:54.969-07:00\",\"updated_at\":\"2018-10-11T10:11:54.969-07:00\"}}],\"meta\":{\"total_pages\":1,\"limit_per_page\":25,\"total_entries\":23},\"links\":{\"self\":\"/v1/practice_areas?page=1\"}}"}],"_postman_id":"de1c149d-e7f4-4b04-b12d-baaed504191f"},{"name":"Create Practice Area","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_practice_area_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}}],"id":"bad643a2-1a91-4af0-85b7-9ed83e34f248","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Test Practice Area a7a874ce-5dbe-468f-a9f9-01fdf17e66a5\",\n    \"color\": \"#bcc2c9\",\n\t\"statute_of_limitations_enabled\": true\n}"},"url":"{{host}}/v1/practice_areas","description":"<p>Create a new <strong>Practice Area</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Family Law\"</code></td>\n<td>Unique per firm (case-insensitive)</td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"#bcc2c9\"</code></td>\n<td>No format validation at the API level, but the app's own color picker only offers a fixed palette: <code>#000000</code>, <code>#757F8F</code>, <code>#7997C9</code>, <code>#6519FA</code>, <code>#1D196E</code>, <code>#70B08B</code>, <code>#A8CA45</code>, <code>#EDBE30</code>, <code>#A7783B</code>, <code>#DE5E1C</code>, <code>#80231C</code>, <code>#F70303</code>, <code>#9E4487</code>, <code>#DC438F</code>, <code>#5EB575</code>, <code>#27AE60</code>, <code>#E74C3C</code>, <code>#8E44AD</code>, <code>#16A085</code>, <code>#1F344C</code>. Use one of these to match what the UI can produce. Note <code>#bcc2c9</code> (the DB default when omitted) isn't itself one of these preset options. If you explicitly send <code>null</code> it will fail (hits a NOT NULL constraint) — omit the key entirely instead</td>\n</tr>\n<tr>\n<td><code>statute_of_limitations_enabled</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>true</code></td>\n<td>Defaults to <code>false</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","practice_areas"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"752a7043-ea00-4f8d-ba6c-382a7dd1b82c","name":"POST Create Practice Area","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Area\",\n    \"color\": \"#bcc2c9\",\n\t\"statute_of_limitations_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/practice_areas?fields=all","host":["{{host}}"],"path":["v1","practice_areas"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"practice_area\",\n        \"attributes\": {\n            \"name\": \"New Area\",\n            \"color\": \"#bcc2c9\",\n            \"statute_of_limitations_enabled\": true,\n            \"matter_count\": 0,\n            \"created_at\": \"2022-05-26T10:54:59.444-07:00\",\n            \"updated_at\": \"2022-05-26T10:54:59.444-07:00\"\n        },\n        \"relationships\": {\n            \"prospects\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"bad643a2-1a91-4af0-85b7-9ed83e34f248"},{"name":"Update Practice Area","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/practice_areas`, function (err, response) {","   pm.globals.set(\"practice_area_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"860cd808-acc2-4641-9b9a-2aab006c3654","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Name\",\n    \"color\": \"#bcc2c9\",\n\t\"statute_of_limitations_enabled\": true\n}"},"url":"{{host}}/v1/practice_areas/:practice_area_id","description":"<p>Updates an existing <strong>Practice Area</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"Family Law\"</td>\n<td></td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"#bcc2c9\"</td>\n<td>No format validation at the API level, but the app's own color picker only offers a fixed palette: <code>#000000</code>, <code>#757F8F</code>, <code>#7997C9</code>, <code>#6519FA</code>, <code>#1D196E</code>, <code>#70B08B</code>, <code>#A8CA45</code>, <code>#EDBE30</code>, <code>#A7783B</code>, <code>#DE5E1C</code>, <code>#80231C</code>, <code>#F70303</code>, <code>#9E4487</code>, <code>#DC438F</code>, <code>#5EB575</code>, <code>#27AE60</code>, <code>#E74C3C</code>, <code>#8E44AD</code>, <code>#16A085</code>, <code>#1F344C</code>. Use one of these to match what the UI can produce</td>\n</tr>\n<tr>\n<td><code>statute_of_limitations_enabled</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>true</code></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","practice_areas",":practice_area_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{practice_area_id}}","key":"practice_area_id"}]}},"response":[{"id":"12b5686b-2d92-4dba-93cd-a042193858a0","name":"PUT Update Practice Area","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Name\",\n    \"color\": \"#bcc2c9\",\n\t\"statute_of_limitations_enabled\": true\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/practice_areas/:practice_area_id","host":["{{host}}"],"path":["v1","practice_areas",":practice_area_id"],"variable":[{"key":"practice_area_id","value":null}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"practice_area\",\n        \"attributes\": {\n            \"name\": \"New Name\",\n            \"color\": \"#bcc2c9\",\n            \"statute_of_limitations_enabled\": true,\n            \"matter_count\": 0,\n            \"created_at\": \"2022-05-26T10:54:59.444-07:00\",\n            \"updated_at\": \"2022-05-26T11:27:35.598-07:00\"\n        },\n        \"relationships\": {\n            \"prospects\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"860cd808-acc2-4641-9b9a-2aab006c3654"},{"name":"Delete Practice Area","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_event_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/practice_areas`, function (err, response) {","   pm.globals.set(\"practice_area_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"65e74179-5785-43ac-9fa9-50a12a3996f4","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"url":"{{host}}/v1/practice_areas/:practice_area_id","description":"<p>Deletes an existing Practice Area</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","practice_areas",":practice_area_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{practice_area_id}}","key":"practice_area_id"}]}},"response":[{"id":"2503a892-32ed-4761-a994-e490fa236feb","name":"DELETE Update Practice Area","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{host}}/v1/practice_areas/:practice_area_id","host":["{{host}}"],"path":["v1","practice_areas",":practice_area_id"],"variable":[{"key":"practice_area_id","value":null}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"practice_area\",\n        \"attributes\": {\n            \"name\": \"New Name\",\n            \"created_at\": \"2022-05-26T10:54:59.444-07:00\",\n            \"updated_at\": \"2022-05-26T11:45:32.351-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"65e74179-5785-43ac-9fa9-50a12a3996f4"}],"id":"34c9ad54-2e3e-4952-9e95-21dfaa47e329","_postman_id":"34c9ad54-2e3e-4952-9e95-21dfaa47e329","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Relationships","item":[{"name":"Relationship","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/relationships`, function (err, response) {","   pm.globals.set(\"relationship_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"fd83a13e-58d0-4b1a-9ab6-806434814258","request":{"method":"GET","header":[],"url":"{{host}}/v1/relationships/:relationship_id","description":"<p>A specific <strong>Relationship</strong> by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationships",":relationship_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{relationship_id}}","key":"relationship_id"}]}},"response":[{"id":"a43c8777-d178-4da8-ad30-f34ba22067d4","name":"GET Relationship","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/relationships/:relationship_id","host":["{{host}}"],"path":["v1","relationships",":relationship_id"],"variable":[{"key":"relationship_id","value":"{{created_relationship_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"239435163a3e3ba00b667767c93edadc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e1e22998-039c-4989-8213-6e4cf134039b"},{"key":"X-Runtime","value":"0.032465"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2\",\n        \"type\": \"relationship\",\n        \"attributes\": {\n            \"name\": \"Spouse\",\n            \"prospect_id\": 101,\n            \"contact_id\": 6,\n            \"relationship_type_id\": 1,\n            \"created_at\": \"2021-10-31T19:34:53.641-07:00\",\n            \"updated_at\": \"2021-10-31T19:34:53.641-07:00\"\n        }\n    }\n}"}],"_postman_id":"fd83a13e-58d0-4b1a-9ab6-806434814258"},{"name":"Relationships","id":"f6d54276-4b60-4cdc-8767-685e45d1a95b","request":{"method":"GET","header":[],"url":"{{host}}/v1/relationships","description":"<p>A <strong>paginated</strong> list of all Relationships in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prospect_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>relationship_type_id</code></td>\n<td>id</td>\n<td>From <code>GET /v1/relationship_types</code></td>\n</tr>\n<tr>\n<td><code>contactable_id</code></td>\n<td>id</td>\n<td>The related Contact's id</td>\n</tr>\n<tr>\n<td><code>custom_field_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>created_at</code> and <code>updated_at</code> are shown in every response, but aren't real filterable/sortable fields on this endpoint. They're pulled in from a related record rather than stored directly.<br />As a result, <code>filter_by=created_at</code> returns a normal 422 error, and <code>sort_by=created_at</code> falls back to the default <code>id desc</code> sort. Also recommend skipping <code>updated_only=true</code> here.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationships"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d480a9b4-3df2-48d2-b86a-e1ae46202bc4","name":"GET Relationships","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/relationships?fields=all","host":["{{host}}"],"path":["v1","relationships"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a0d20a9b9d5c17a10e15cb02adbe92c5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b2fab58b-3eb2-4c03-80b3-cb4798f5a367"},{"key":"X-Runtime","value":"0.403351"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"4\",\n            \"type\": \"relationship\",\n            \"attributes\": {\n                \"name\": \"Child\",\n                \"prospect_id\": 101,\n                \"contact_id\": 8,\n                \"has_portal_access?\": false,\n                \"created_at\": \"2021-10-31T20:26:39.243-07:00\",\n                \"updated_at\": \"2021-10-31T20:26:39.243-07:00\"\n            },\n            \"relationships\": {\n                \"relationship_type\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"relationship_type\"\n                    }\n                },\n                \"custom_field\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"custom_field\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"relationship\",\n            \"attributes\": {\n                \"name\": \"Spouse\",\n                \"prospect_id\": 101,\n                \"contact_id\": 102,\n                \"has_portal_access?\": false,\n                \"created_at\": \"2021-10-31T19:34:53.637-07:00\",\n                \"updated_at\": \"2021-10-31T19:34:53.637-07:00\"\n            },\n            \"relationships\": {\n                \"relationship_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"relationship_type\"\n                    }\n                },\n                \"custom_field\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"custom_field\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"relationship\",\n            \"attributes\": {\n                \"name\": \"Brother\",\n                \"prospect_id\": 101,\n                \"contact_id\": 101,\n                \"has_portal_access?\": true,\n                \"created_at\": \"2021-10-31T19:31:56.908-07:00\",\n                \"updated_at\": \"2021-10-31T19:31:56.908-07:00\"\n            },\n            \"relationships\": {\n                \"relationship_type\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"relationship_type\"\n                    }\n                },\n                \"custom_field\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"custom_field\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 3\n    },\n    \"links\": {\n        \"self\": \"/v1/relationships?page=1\"\n    }\n}"}],"_postman_id":"f6d54276-4b60-4cdc-8767-685e45d1a95b"},{"name":"Create Relationship","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"contact_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/relationship_types`, function (err, response) {","   pm.globals.set(\"relationship_type_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/relationships`, function (err, response) {","   relationship_id = response.json().data[0].id","   pm.sendRequest({url: `${pm.environment.get('host')}/v1/relationships/${relationship_id}`, method: 'DELETE'})","});"],"type":"text/javascript"}}],"id":"58459898-4a9c-4cc8-a722-8fbf9bce9010","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"prospect_id\": \"{{prospect_id}}\",\n\t\"contact_id\": \"{{contact_id}}\",\n\t\"relationship_type_id\": \"{{relationship_type_id}}\"\n}"},"url":"{{host}}/v1/relationships","description":"<p>Create a <strong>Relationship</strong> between a Matter and a Contact (e.g. Spouse, Emergency Contact), using a previously defined Relationship Type (see <code>relationship_type_id</code> below).</p>\n<p>If the Relationship Type allows multiple (<code>is_repeatable: true</code>), you can create more than one Relationship of that type per Matter.</p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>prospect_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td>The Matter</td>\n</tr>\n<tr>\n<td><code>relationship_type_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"7\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>contact_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"67890\"</code></td>\n<td>Must be a Contact — Companies cannot be related through this endpoint</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> A Relationship doesn't have its own <code>created_at</code>/<code>updated_at</code> timestamps.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> If the Relationship Type has <code>is_repeatable: false</code> and this Matter already has a Relationship of that type, this returns a 422 (\"Cannot create relationship ''. It already exists.\").</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationships"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d3b4ad21-747f-4134-8464-091a277c4b8f","name":"POST Create Relationship","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"prospect_id\": \"101\",\n\t\"contact_id\": \"8\",\n\t\"relationship_type_id\": \"2\"\n}"},"url":"{{host}}/v1/relationships"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5493d3567a541a1b186305f86211e922\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"85eccd8d-72da-4a6a-b49b-49f9426e4754"},{"key":"X-Runtime","value":"0.228638"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"21\",\n        \"type\": \"relationship\",\n        \"attributes\": {\n            \"name\": \"Brother\",\n            \"prospect_id\": 101,\n            \"contact_id\": 8,\n            \"relationship_type_id\": 2,\n            \"created_at\": \"2021-10-31T23:21:53.269-07:00\",\n            \"updated_at\": \"2021-10-31T23:21:53.269-07:00\"\n        }\n    }\n}"}],"_postman_id":"58459898-4a9c-4cc8-a722-8fbf9bce9010"},{"name":"Update Relationship","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"contact_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/relationship_types`, function (err, response) {","   pm.globals.set(\"relationship_type_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/relationships`, function (err, response) {","   pm.globals.set(\"relationship_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"221e4861-4c88-448b-8e17-15837f62d2bd","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"prospect_id\": \"{{prospect_id}}\",\n\t\"contact_id\": \"{{contact_id}}\",\n\t\"relationship_type_id\": \"{{relationship_type_id}}\"\n}"},"url":"{{host}}/v1/relationships/:relationship_id","description":"<p>Update Relationship</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationships",":relationship_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{relationship_id}}","key":"relationship_id"}]}},"response":[{"id":"e6efec77-7a29-4e44-a4ac-16db6c6561e5","name":"PUT Update Relationship","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"prospect_id\": \"99\",\n\t\"contact_id\": \"7\",\n\t\"relationship_type_id\": \"9\"\n}"},"url":{"raw":"{{host}}/v1/relationships/:relationship_id","host":["{{host}}"],"path":["v1","relationships",":relationship_id"],"variable":[{"key":"relationship_id","value":"{{created_relationship_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"3e1db25ea7ae4dacf2ca8977d83d2b08\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"fadb5229-6fd1-4d2f-b834-d9fbbc3e05de"},{"key":"X-Runtime","value":"0.458669"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"19\",\n        \"type\": \"relationship\",\n        \"attributes\": {\n            \"name\": \"Aunties\",\n            \"prospect_id\": 99,\n            \"contact_id\": 7,\n            \"created_at\": \"2021-10-31T23:17:44.457-07:00\",\n            \"updated_at\": \"2021-10-31T23:20:50.162-07:00\",\n            \"relationship_type_id\": 9\n        }\n    }\n}"}],"_postman_id":"221e4861-4c88-448b-8e17-15837f62d2bd"},{"name":"Delete Relationship","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/relationships`, function (err, response) {","   pm.globals.set(\"relationship_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"35887c6d-72a0-4d3f-8187-37a0d32f88b0","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/relationships/:relationship_id","description":"<p>Delete a Relationship by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationships",":relationship_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{relationship_id}}","key":"relationship_id"}]}},"response":[{"id":"13813571-70b1-44f3-b500-bc5c3720a297","name":"DEL Delete Relationship","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/relationships/:relationship_id","host":["{{host}}"],"path":["v1","relationships",":relationship_id"],"variable":[{"key":"relationship_id","value":"{{created_relationship_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"f0cf077b-15bb-4dfc-8ba5-c404fb56cbf3"},{"key":"X-Runtime","value":"0.279033"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"35887c6d-72a0-4d3f-8187-37a0d32f88b0"}],"id":"458859ba-fad4-45d4-80cc-310e2609aa5d","description":"<p><em>Relationships</em> are connections between a Matter and a Contact</p>\n","_postman_id":"458859ba-fad4-45d4-80cc-310e2609aa5d","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Relationship Types","item":[{"name":"Relationship Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/relationship_types`, function (err, response) {","   pm.globals.set(\"relationship_type_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"95b960d0-1005-4945-b6fc-01e5065ed811","request":{"method":"GET","header":[],"url":"{{host}}/v1/relationship_types/:relationship_type_id","description":"<p>A specific <strong>Relationship Type</strong> by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationship_types",":relationship_type_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{relationship_type_id}}","key":"relationship_type_id"}]}},"response":[{"id":"216efc7f-7e19-48b3-acd1-34637921c5fd","name":"GET Relationship","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/relationships/:relationship_id","host":["{{host}}"],"path":["v1","relationships",":relationship_id"],"variable":[{"key":"relationship_id","value":"{{created_relationship_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"239435163a3e3ba00b667767c93edadc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e1e22998-039c-4989-8213-6e4cf134039b"},{"key":"X-Runtime","value":"0.032465"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2\",\n        \"type\": \"relationship\",\n        \"attributes\": {\n            \"name\": \"Spouse\",\n            \"prospect_id\": 101,\n            \"contact_id\": 6,\n            \"relationship_type_id\": 1,\n            \"created_at\": \"2021-10-31T19:34:53.641-07:00\",\n            \"updated_at\": \"2021-10-31T19:34:53.641-07:00\"\n        }\n    }\n}"}],"_postman_id":"95b960d0-1005-4945-b6fc-01e5065ed811"},{"name":"Relationship Types","id":"80f32c1c-f64c-4d19-87c0-ec6232181a2a","request":{"method":"GET","header":[],"url":"{{host}}/v1/relationship_types","description":"<p>A <strong>paginated</strong> list of all Relationship Types in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>is_repeatable</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>sync_email</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationship_types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6a46885b-f4be-409e-b66a-cfcb088c0e11","name":"GET Relationship Types","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/relationship_types?fields=all","host":["{{host}}"],"path":["v1","relationship_types"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"bcbbb447b34d967fc04f193ac5ef4018\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a3e89335-33ec-4b2b-ae8e-5b251aeddba2"},{"key":"X-Runtime","value":"0.243949"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"3\",\n            \"type\": \"relationship_type\",\n            \"attributes\": {\n                \"name\": \"Child\",\n                \"is_repeatable\": true\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"relationship_type\",\n            \"attributes\": {\n                \"name\": \"Brother\",\n                \"is_repeatable\": true\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"relationship_type\",\n            \"attributes\": {\n                \"name\": \"Spouse\",\n                \"is_repeatable\": false\n            },\n            \"relationships\": {\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 3\n    },\n    \"links\": {\n        \"self\": \"/v1/relationship_types?page=1\"\n    }\n}"}],"_postman_id":"80f32c1c-f64c-4d19-87c0-ec6232181a2a"},{"name":"Create Relationship Type","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_relationship_type_id\", jsonData.data.id);","}"],"type":"text/javascript"}}],"id":"bc0c2f5e-7d5e-4659-a0ed-57292307900a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Spouse 50ab070b-1d45-4016-94c6-f0525c01724d\",\n\t\"is_repeatable\": false\n}"},"url":"{{host}}/v1/relationship_types","description":"<p>Create a new <strong>Relationship Type</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Emergency Contact\"</code></td>\n<td>Unique per firm (case-insensitive). A duplicate name returns a 422 with a different error shape than most other endpoints</td>\n</tr>\n<tr>\n<td><code>is_repeatable</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>(send the key to enable)</td>\n<td>Note: Not cast as a real boolean — the value is only checked for presence, so <code>true</code>, <code>false</code>, <code>\"false\"</code>, and <code>0</code> are <em>all</em> treated as \"enable it\". To leave it disabled, omit the key entirely rather than sending <code>false</code></td>\n</tr>\n<tr>\n<td><code>sync_email</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>(send the key to enable)</td>\n<td>Note: Same presence-check trap as <code>is_repeatable</code> — any non-blank value enables it, <code>false</code> included. On top of that: the column's database default is <code>true</code>, but this endpoint always writes an explicit value, so <strong>omitting this field creates the record with <code>sync_email: false</code></strong> — the opposite of the schema default. Send the key with any non-blank value to get <code>true</code></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Creating a Relationship Type automatically creates a backing lookup Custom Field of the same name (visible via the Custom Fields API). Renaming the Relationship Type later renames that Custom Field too.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationship_types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"40d0162d-3e2a-43c3-9a9f-7039ff0203de","name":"POST Create Relationship Type","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Aunties\",\n\t\"is_repeatable\": true\n}"},"url":"{{host}}/v1/relationship_types"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"cd3a34a9e5f2d0440daec254f5040cc4\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a1c7ac87-8486-42ff-8842-38496e835086"},{"key":"X-Runtime","value":"0.472323"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"relationship_type\",\n        \"attributes\": {\n            \"name\": \"Aunties\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"bc0c2f5e-7d5e-4659-a0ed-57292307900a"},{"name":"Update Relationship Type","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/relationship_types`, function (err, response) {","   pm.globals.set(\"relationship_type_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"f75d816e-8a46-43c9-bdf4-a46800f28a4c","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Sister\"\n}"},"url":"{{host}}/v1/relationship_types/:relationship_type_id","description":"<p>Update Relationship</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","relationship_types",":relationship_type_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{relationship_type_id}}","key":"relationship_type_id"}]}},"response":[{"id":"00f4ab05-d580-4460-8d41-afcb4908a86d","name":"PUT Update Relationship Type","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Changed Relationship Type\"\n}"},"url":{"raw":"{{host}}/v1/relationship_types/:relationship_type_id","host":["{{host}}"],"path":["v1","relationship_types",":relationship_type_id"],"variable":[{"key":"relationship_type_id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"689ec6fc841337059d07433e9192b37c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1b3e87c4-ed1f-426a-ab30-c474cff6621a"},{"key":"X-Runtime","value":"0.039713"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2\",\n        \"type\": \"relationship_type\",\n        \"attributes\": {\n            \"name\": \"Changed Relationship Type\",\n            \"is_repeatable\": true,\n            \"created_at\": \"2021-10-31T16:22:05.472-07:00\",\n            \"updated_at\": \"2022-08-08T17:53:27.925-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"f75d816e-8a46-43c9-bdf4-a46800f28a4c"}],"id":"97c9e059-4e9e-4529-a264-89d28ba2ebab","description":"<p>These are configured in Matter Settings.</p>\n","_postman_id":"97c9e059-4e9e-4529-a264-89d28ba2ebab","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Matter Sub Statuses","item":[{"name":"Sub Status","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/sub_statuses`, function (err, response) {","   pm.globals.set(\"sub_status_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"352fcf92-36b1-4b41-85aa-96ead41f2f39","request":{"method":"GET","header":[],"url":"{{host}}/v1/sub_statuses/:status_id","description":"<p>A specific Sub Status by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","sub_statuses",":status_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{sub_status_id}}","key":"status_id"}]}},"response":[{"id":"55e4ee58-67e0-4d17-bb31-840181163ee8","name":"GET Sub Status","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/sub_statuses/:status_id?fields=prospects","host":["{{host}}"],"path":["v1","sub_statuses",":status_id"],"query":[{"key":"fields","value":"prospects"}],"variable":[{"key":"status_id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"a2183cf78617091ce702ef60ef570c23\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"fd9b9b77-0842-4cc1-9383-579b349f4d03"},{"key":"X-Runtime","value":"0.154208"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"3\",\n        \"type\": \"sub_status\",\n        \"attributes\": {},\n        \"relationships\": {\n            \"prospects\": {\n                \"data\": [\n                    {\n                        \"id\": \"116\",\n                        \"type\": \"prospect\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"352fcf92-36b1-4b41-85aa-96ead41f2f39"},{"name":"Sub Statuses","id":"1b4864f4-c31b-4409-8cbe-d782f8254738","request":{"method":"GET","header":[],"url":"{{host}}/v1/sub_statuses","description":"<p>A <strong>paginated</strong> list of all Sub Statuses in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>integer</td>\n<td>Raw integer only — see note below</td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>status</code> accepts human-readable labels (e.g. <code>\"Hired\"</code>) when creating or updating a Sub Status, but filtering does not support labels. Only the raw integer value works. Use <code>hired = 0</code>, <code>pnc = 1</code>, <code>lost = 2</code>.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","sub_statuses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"f73ccbb6-b1fb-4a9b-aa78-53794a4840dc","name":"GET Sub Statuses","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v1/sub_statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"ea599f1b32f2ebe449053a3fc432c211\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"592473e4-d8cc-4944-9f6b-53b1d4d0ed24"},{"key":"X-Runtime","value":"0.042752"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"3\",\n            \"type\": \"sub_status\",\n            \"attributes\": {\n                \"name\": \"Divorced\",\n                \"status\": \"hired\",\n                \"created_at\": \"2022-02-14T11:49:44.857-08:00\",\n                \"updated_at\": \"2022-02-14T11:49:44.857-08:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"sub_status\",\n            \"attributes\": {\n                \"name\": \"Tickled\",\n                \"status\": \"pnc\",\n                \"created_at\": \"2022-02-14T11:49:06.326-08:00\",\n                \"updated_at\": \"2022-02-14T11:49:06.326-08:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"sub_status\",\n            \"attributes\": {\n                \"name\": \"Slapped\",\n                \"status\": \"lost\",\n                \"created_at\": \"2022-02-14T11:48:54.191-08:00\",\n                \"updated_at\": \"2022-02-14T11:48:54.191-08:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 3\n    },\n    \"links\": {\n        \"self\": \"/v1/sub_statuses?page=1\"\n    }\n}"}],"_postman_id":"1b4864f4-c31b-4409-8cbe-d782f8254738"},{"name":"Create Sub Status","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_sub_status_id\", jsonData.data.id);","}"],"type":"text/javascript"}}],"id":"bac341fe-e5cb-4a4e-a38a-24400b387eb8","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Deal Closed 33f7072e-a7f4-4cab-aa55-e0bcfae16a5d\",\n    \"status\": \"hired\"\n}"},"url":"{{host}}/v1/sub_statuses","description":"<p>Create a new <strong>Matter Sub Status</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Awaiting Documents\"</code></td>\n<td>No uniqueness validation — duplicate names within a firm are allowed (unlike Practice Areas/Relationship Types/Custom Contact Types, which do enforce it)</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"pnc\"</code></td>\n<td>One of <code>hired</code>, <code>pnc</code>, <code>lost</code> (case-insensitive). Defaults to <code>pnc</code>. Note: An invalid value here returns a 500, not a 422</td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td>Defaults to the API token's user</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","sub_statuses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"3eb1597c-59e3-4cbf-beb2-17f873d8018f","name":"POST Create Sub Status","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Deal Closed\",\n    \"status\": \"Hired\"\n}"},"url":{"raw":"{{host}}/v1/sub_statuses?fields=all","host":["{{host}}"],"path":["v1","sub_statuses"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"111d1c032f51a25cd302467862657a32\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dbc71dde-6f53-4c1d-9bac-4552c2a2c3a2"},{"key":"X-Runtime","value":"0.040766"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"280"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"8\",\n        \"type\": \"prospect_sub_status\",\n        \"attributes\": {\n            \"name\": \"Deal Closed\",\n            \"status\": \"hired\",\n            \"created_at\": \"2023-09-27T14:35:12.604-07:00\",\n            \"updated_at\": \"2023-09-27T14:35:12.604-07:00\"\n        },\n        \"relationships\": {\n            \"prospects\": {\n                \"data\": []\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"bac341fe-e5cb-4a4e-a38a-24400b387eb8"},{"name":"Update Sub Status","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/sub_statuses`, function (err, response) {","   pm.globals.set(\"sub_status_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"94ed180b-2b77-4ed0-adf4-ba01f40e1b95","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Hired\"\n}"},"url":"{{host}}/v1/sub_statuses/:sub_status_id","description":"<p>Update an existing <strong>Matter Sub Status</strong> by ID</p>\n<p>Valid <code>status</code>values: 'hired', 'pnc', 'lost' (default 'pnc')</p>\n<p>Accepts <code>created_by_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","sub_statuses",":sub_status_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{sub_status_id}}","key":"sub_status_id"}]}},"response":[{"id":"38b6b9d8-c140-4d25-9ae7-d95ba65e1331","name":"PUT Update Sub Status","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Hired\"\n}"},"url":{"raw":"{{host}}/v1/sub_statuses/:sub_status_id","host":["{{host}}"],"path":["v1","sub_statuses",":sub_status_id"],"variable":[{"key":"sub_status_id","value":"{{created_sub_status_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4c77325a07f28107126ac6daa594bf29\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8ddecd14-7d77-46c4-9c4d-bd417d52aefb"},{"key":"X-Runtime","value":"0.041843"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"209"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"12\",\n        \"type\": \"prospect_sub_status\",\n        \"attributes\": {\n            \"name\": \"New Hired\",\n            \"status\": \"hired\",\n            \"created_at\": \"2023-09-27T14:43:01.169-07:00\",\n            \"updated_at\": \"2023-09-27T14:43:27.373-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"94ed180b-2b77-4ed0-adf4-ba01f40e1b95"},{"name":"Delete Sub Status","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/sub_statuses`, function (err, response) {","   pm.globals.set(\"sub_status_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"7ef1ca07-0bab-4045-a1e3-2abdfc59bfbf","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{host}}/v1/sub_statuses/:sub_status_id","description":"<p>Delete an existing <strong>Matter Sub Status</strong> by ID.</p>\n<p>Warning: This is irreversible!</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","sub_statuses",":sub_status_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{sub_status_id}}","key":"sub_status_id"}]}},"response":[{"id":"e3a8413b-7f06-48f1-b161-a1ee73d8df85","name":"DEL Delete Sub Status","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{host}}/v1/sub_statuses/:sub_status_id","host":["{{host}}"],"path":["v1","sub_statuses",":sub_status_id"],"variable":[{"key":"sub_status_id","value":"{{created_sub_status_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"0c0ec4903c2fbd76219d14164cc2d607\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"4cd9dd99-dc9c-4f0f-b354-c40af362e738"},{"key":"X-Runtime","value":"0.198740"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"211"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"13\",\n        \"type\": \"prospect_sub_status\",\n        \"attributes\": {\n            \"name\": \"Deal Closed\",\n            \"status\": \"hired\",\n            \"created_at\": \"2023-09-27T14:43:55.410-07:00\",\n            \"updated_at\": \"2023-09-27T14:43:55.410-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"7ef1ca07-0bab-4045-a1e3-2abdfc59bfbf"}],"id":"20442878-bb2e-4709-80be-0cc235605578","description":"<p>A <strong>Sub Status</strong> is a user defined sub category of the three main statuses (pnc, hired, lost) that a <em>Matter</em> can be in.</p>\n","_postman_id":"20442878-bb2e-4709-80be-0cc235605578","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Create Matter","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_pnc_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/sub_statuses`, function (err, response) {","   pm.globals.set(\"sub_status_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/practice_areas`, function (err, response) {","   pm.globals.set(\"practice_area_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"489e6a6d-afa2-43ef-a4ea-829168b22f1f","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"Example\",\n\t\"email\": \"roey@lawmatics.com\",\n\t\"phone\": \"123-123-1234\",\n\t\"practice_area_id\": {{practice_area_id}},\n    \"sub_status_id\": {{sub_status_id}},\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Example Note\",\n\t\t\t\"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\"\n\t\t}\n\t],\n    \"tags\": [\"Tag 1\", \"Tag 2\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/prospects","description":"<p>Create a new <strong>Matter</strong>. A Matter always needs a linked <strong>Contact</strong> or <strong>Company</strong> — see <strong>Establishing the Contact/Company</strong> below.</p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>case_title</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Smith v. Jones\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>case_number</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"2024-CV-001\"</code></td>\n<td>Must be unique per firm, if provided</td>\n</tr>\n<tr>\n<td><code>case_blurb</code></td>\n<td>text</td>\n<td>No</td>\n<td><code>\"Personal injury case\"</code></td>\n<td>Also called Case Description / Matter Description</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>1</code></td>\n<td>Raw integer only: <code>hired</code>=0, <code>pnc</code>=1, <code>lost</code>=2. Defaults to <code>pnc</code>. Overwritten if <code>sub_status_id</code> is set — see note</td>\n</tr>\n<tr>\n<td><code>sub_status_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>3</code></td>\n<td>Setting this overwrites <code>status</code> to match the sub status's status</td>\n</tr>\n<tr>\n<td><code>type_of_billing</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>1</code></td>\n<td>Raw integer only: <code>flat_fee</code>=0, <code>hourly</code>=1, <code>contingency</code>=2</td>\n</tr>\n<tr>\n<td><code>actual_value_cents</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>500000</code></td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>estimated_value_cents</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>750000</code></td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>lead_cost_cents</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>10000</code></td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>converted_date</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-15T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>source_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>5</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>campaign_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>7</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>practice_area_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>stage_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>1</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>owned_by_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>3</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>originating_attorney_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>4</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>lead_attorney_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>4</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>salesperson_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>6</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>assigned_staff_ids</code></td>\n<td>array of ids</td>\n<td>No</td>\n<td><code>[3, 4]</code></td>\n<td>Assigned after the Matter is created</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td>array of strings</td>\n<td>No</td>\n<td><code>[\"Urgent\"]</code></td>\n<td>Tag names</td>\n</tr>\n<tr>\n<td><code>custom_fields</code></td>\n<td>array of objects</td>\n<td>No</td>\n<td><code>[{ \"id\": \"1027\", \"value\": \"An important case\" }]</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>notes</code></td>\n<td>array of objects</td>\n<td>No</td>\n<td><code>[{ \"name\": \"Intake\", \"body\": \"Initial consultation notes\" }]</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td>Allows attributing creation to another user</td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601. Allows backdating</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Establishing the Contact/Company</strong></p>\n<p>Pass <strong>one</strong> of the following to determine who the Matter is for:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>contact_id</code></td>\n<td>id</td>\n<td>One of these</td>\n<td><code>\"12345\"</code></td>\n<td>Link to an existing Contact</td>\n</tr>\n<tr>\n<td><code>company_id</code></td>\n<td>id</td>\n<td>One of these</td>\n<td><code>\"6789\"</code></td>\n<td>Link to an existing Company</td>\n</tr>\n<tr>\n<td><code>company_name</code></td>\n<td>string</td>\n<td>One of these</td>\n<td><code>\"Acme Legal\"</code></td>\n<td>Creates a new Company</td>\n</tr>\n<tr>\n<td><code>match_contact_by</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"email\"</code></td>\n<td>One of <code>email</code>, <code>name</code>, <code>phone</code> — a hint for which lookup to use below, not a requirement in itself</td>\n</tr>\n</tbody>\n</table>\n</div><p>...or none of the above, but <code>first_name</code> (plus any other Contact fields, like <code>last_name</code>/<code>email</code>/etc.) — creates a new Contact inline; or an <code>email</code>/<code>email_address</code> that matches an existing Contact (only if your firm has email-matching enabled), or a <code>phone</code>/<code>phone_number</code> that matches an existing one.</p>\n<p>If a Company ends up linked, any Contact fields you passed are applied to that Company's primary Contact instead.</p>\n<blockquote>\n<p><strong>Note:</strong> <code>referrer_id</code> is accepted by this endpoint but currently has no effect on the created Matter — don't rely on it.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> If you don't pass a <code>fields</code> query param, the response only includes the fields you submitted, not the full default field set.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> An invalid date value returns <code>409</code>, not <code>422</code>.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"244d4b9e-4a1e-47e6-9547-6ac53e130fde","name":"POST Create Matter","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"Example\",\n\t\"email\": \"roey@lawmatics.com\",\n\t\"phone\": \"123-123-1234\",\n\t\"practice_area_id\": 986,\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Example Note\",\n\t\t\t\"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\"\n\t\t}\n\t],\n\t\"custom_fields\": [\n\t\t{\n\t\t\t\"id\": \"6433\",\n\t\t\t\"value\": true\n\t\t},\n\t\t{\n\t\t\t\"id\": \"6435\",\n\t\t\t\"value\": \"1\"\n\t\t},\n\t\t{\n\t\t\t\"id\": \"6434\",\n\t\t\t\"value\": \"Contact String\"\n\t\t},\n        {\n            \"id\": \"6470\",\n            \"value\": \"06/28/1991\"\n        },\n        {\n            \"id\": \"4\",\n            \"value\": \"2023-12-31T00:00:00+00:00\"\n        }\n\t],\n    \"tags\": [\"Tag 1\", \"Tag 2\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/prospects"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 24 Sep 2023 00:09:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3451"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=JvxkolQ+aDjzspJo00XZzSa/jQyZqqgKOlG5aUONYxppbCcwX654Nf9WLly7YxxTO5JWQmtLtwbg5mo3o6eHT88ghBtlvEf9/j7m1nEoizrrGCz6i2Mp2x13ghew; Expires=Sun, 01 Oct 2023 00:09:01 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=JvxkolQ+aDjzspJo00XZzSa/jQyZqqgKOlG5aUONYxppbCcwX654Nf9WLly7YxxTO5JWQmtLtwbg5mo3o6eHT88ghBtlvEf9/j7m1nEoizrrGCz6i2Mp2x13ghew; Expires=Sun, 01 Oct 2023 00:09:01 GMT; Path=/; SameSite=None; Secure"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"a03b5d93e2f5bd4994f6838fe42b64dc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f6f3b024-f5c7-4271-9db4-7854ef9d16f0"},{"key":"X-Runtime","value":"0.471083"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"6446448\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Lawmatics\",\n            \"last_name\": \"Example\",\n            \"case_title\": null,\n            \"case_number\": null,\n            \"case_blurb\": null,\n            \"status\": \"pnc\",\n            \"type_of_billing\": null,\n            \"email\": \"roey@lawmatics.com\",\n            \"phone\": \"123-123-1234\",\n            \"phone_number\": \"123-123-1234\",\n            \"email_address\": \"roey@lawmatics.com\",\n            \"address\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Pnc\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": \"bio field\",\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 0,\n            \"actual_value_cents\": 0,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": \"2023-02-03T15:25:51.843-08:00\",\n            \"days_since_last_contact\": 232,\n            \"converted_date\": null,\n            \"statute_of_limitations\": null,\n            \"utm_source\": null,\n            \"utm_campaign\": null,\n            \"utm_medium\": null,\n            \"utm_term\": null,\n            \"street\": null,\n            \"street2\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"full_street\": null,\n            \"city_state_zip\": null,\n            \"full_address\": null,\n            \"photo_url\": null,\n            \"custom_fields\": [\n                {\n                    \"id\": \"6433\",\n                    \"name\": \"API TEST BOOLEAN (dont delete me)\",\n                    \"field_type\": \"boolean\",\n                    \"value\": true,\n                    \"formatted_value\": \"Yes\"\n                },\n                {\n                    \"id\": \"6435\",\n                    \"name\": \"API TEST PICKLIST (dont delete me)\",\n                    \"field_type\": \"list\",\n                    \"value\": \"3240\",\n                    \"formatted_value\": \"1\"\n                },\n                {\n                    \"id\": \"6434\",\n                    \"name\": \"API TEST STRING (dont delete me)\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Contact String\",\n                    \"formatted_value\": \"Contact String\"\n                },\n                {\n                    \"id\": \"6470\",\n                    \"name\": \"Date Unsubscribed\",\n                    \"field_type\": \"date\",\n                    \"value\": \"1991-06-28\",\n                    \"formatted_value\": \"June 28, 1991\"\n                },\n                {\n                    \"id\": \"4\",\n                    \"name\": \"Date of Accident\",\n                    \"field_type\": \"datetime\",\n                    \"value\": \"2023-12-30T16:00:00.000-08:00\",\n                    \"formatted_value\": \"December 30, 2023 at 4:00pm PST\"\n                }\n            ],\n            \"custom_field_values\": {\n                \"4\": {\n                    \"id\": \"4\",\n                    \"name\": \"Date of Accident\",\n                    \"field_type\": \"datetime\",\n                    \"value\": \"2023-12-30T16:00:00.000-08:00\",\n                    \"formatted_value\": \"December 30, 2023 at 4:00pm PST\"\n                },\n                \"6433\": {\n                    \"id\": \"6433\",\n                    \"name\": \"API TEST BOOLEAN (dont delete me)\",\n                    \"field_type\": \"boolean\",\n                    \"value\": true,\n                    \"formatted_value\": \"Yes\"\n                },\n                \"6434\": {\n                    \"id\": \"6434\",\n                    \"name\": \"API TEST STRING (dont delete me)\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Contact String\",\n                    \"formatted_value\": \"Contact String\"\n                },\n                \"6435\": {\n                    \"id\": \"6435\",\n                    \"name\": \"API TEST PICKLIST (dont delete me)\",\n                    \"field_type\": \"list\",\n                    \"value\": \"3240\",\n                    \"formatted_value\": \"1\"\n                },\n                \"6470\": {\n                    \"id\": \"6470\",\n                    \"name\": \"Date Unsubscribed\",\n                    \"field_type\": \"date\",\n                    \"value\": \"1991-06-28\",\n                    \"formatted_value\": \"June 28, 1991\"\n                }\n            },\n            \"created_at\": \"2023-09-23T17:09:01.232-07:00\",\n            \"updated_at\": \"2023-09-23T17:09:01.360-07:00\",\n            \"last_contacted_date\": \"2023-02-03T15:25:51.843-08:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": null\n            },\n            \"stage\": {\n                \"data\": null\n            },\n            \"campaign\": {\n                \"data\": null\n            },\n            \"practice_area\": {\n                \"data\": {\n                    \"id\": \"986\",\n                    \"type\": \"practice_area\"\n                }\n            },\n            \"salesperson\": {\n                \"data\": null\n            },\n            \"lead_attorney\": {\n                \"data\": null\n            },\n            \"originating_attorney\": {\n                \"data\": null\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"17\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contact\": {\n                \"data\": {\n                    \"id\": \"3546976\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"company\": {\n                \"data\": null\n            },\n            \"assigned_staff\": {\n                \"data\": []\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"file_requests\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": [\n                    {\n                        \"id\": \"6726504\",\n                        \"type\": \"note\"\n                    }\n                ]\n            },\n            \"tasks\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": [\n                    {\n                        \"id\": \"4503447\",\n                        \"type\": \"email_address\"\n                    }\n                ]\n            },\n            \"phone_numbers\": {\n                \"data\": [\n                    {\n                        \"id\": \"4503448\",\n                        \"type\": \"phone_number\"\n                    }\n                ]\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"tags\": {\n                \"data\": [\n                    {\n                        \"id\": \"17506\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"17507\",\n                        \"type\": \"tag\"\n                    }\n                ]\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"489e6a6d-afa2-43ef-a4ea-829168b22f1f"},{"name":"Create Matter From Contact (By ID)","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"contact_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"a46114ef-fbd9-402f-abbe-cea7b4dae3eb","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"case_title\": \"New Matter\",\n    \"first_name\": \"Existing\",\n    \"last_name\": \"Contact\",\n    \"contact_id\": {{contact_id}},\n    \"email\": \"roey+changed@lawmatics.com\"\n}"},"url":"{{host}}/v1/prospects?=","description":"<p>Create a new Matter from an existing Contact.</p>\n<p>Passing <code>contact_id</code> to the request body will use the found Contact to create the new Matter, instead of creating a new Contact.</p>\n<p><em>Note:</em>\nAny passed contact fields will be updated on the matched Contact. You can find the Contact id via one of our Contact Finders endpoints.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[{"key":"","value":""}],"variable":[]}},"response":[{"id":"fd3485bd-35b9-44b5-b15c-d4668615372c","name":"POST Create Matter From Contact (By ID)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"case_title\": \"New Matter\",\n    \"first_name\": \"Existing\",\n    \"last_name\": \"Contact\",\n    \"contact_id\": 76864,\n    \"email\": \"roey+changed@lawmatics.com\",\n    \"custom_fields\": [\n        {\n            \"id\": \"4664\",\n            \"value\": \"06/28/1991\"\n        }\n    ]\n}"},"url":{"raw":"{{host}}/v1/prospects?","host":["{{host}}"],"path":["v1","prospects"],"query":[{"key":null,"value":null}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"9ae7448c5667a23a98c77ba4ae9e6db9\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0933835f-40f0-41b0-811d-a1065f8e541f"},{"key":"X-Runtime","value":"0.373210"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"54895\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Existing\",\n            \"last_name\": \"Contact\",\n            \"case_title\": \"New Matter\",\n            \"case_blurb\": null,\n            \"status\": \"pnc\",\n            \"email\": \"roey+changed@lawmatics.com\",\n            \"phone\": null,\n            \"phone_number\": null,\n            \"email_address\": \"roey+changed@lawmatics.com\",\n            \"address\": null,\n            \"photo_url\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Pnc\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 0,\n            \"actual_value_cents\": 0,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": \"2019-03-28T21:29:16.623-07:00\",\n            \"days_since_last_contact\": 0,\n            \"utm_source\": null,\n            \"utm_campaign\": null,\n            \"utm_medium\": null,\n            \"utm_term\": null,\n            \"street\": null,\n            \"street2\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"full_address\": null,\n            \"full_street\": null,\n            \"city_state_zip\": null,\n            \"custom_fields\": [\n                {\n                    \"id\": 4664,\n                    \"name\": \"Date 1\",\n                    \"field_type\": \"date\",\n                    \"value\": \"1991-06-28\",\n                    \"formatted_value\": \"June 28th, 1991\"\n                }\n            ],\n            \"created_at\": \"2019-03-28T21:29:16.623-07:00\",\n            \"updated_at\": \"2019-03-28T21:29:16.623-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": null\n            },\n            \"stage\": {\n                \"data\": {\n                    \"id\": \"6\",\n                    \"type\": \"stage\"\n                }\n            },\n            \"campaign\": {\n                \"data\": null\n            },\n            \"practice_area\": {\n                \"data\": null\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contact\": {\n                \"data\": {\n                    \"id\": \"76864\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"company\": {\n                \"data\": null\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"file_requests\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": []\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": [\n                    {\n                        \"id\": \"106756\",\n                        \"type\": \"email\"\n                    }\n                ]\n            },\n            \"phone_numbers\": {\n                \"data\": []\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"a46114ef-fbd9-402f-abbe-cea7b4dae3eb"},{"name":"Create Matter From Contact (Matched By Field)","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/contacts`, function (err, response) {","   pm.globals.set(\"email\", response.json().data[0].attributes.email);","});"],"type":"text/javascript"}}],"id":"1dcc8290-0858-43e3-b64e-b88ccc646037","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"case_title\": \"New Matter\",\n\t\"first_name\": \"Matched\",\n\t\"last_name\": \"Contact\",\n\t\"match_contact_by\": \"email\",\n\t\"email\": \"{{email}}\",\n\t\"phone\": \"555-126-1235\"\n}"},"url":"{{host}}/v1/prospects?=","description":"<p>Create a new Matter from existing Contact by matching on data.</p>\n<p>This is the same Create Matter endpoint, but matches an existing Contact based on the field passed to <code>match_contact_by</code> in the request body.</p>\n<ul>\n<li>If <strong>a</strong> Contact match is found, a new Matter for the matched Contact will be created.</li>\n<li>If <strong>more than one</strong> match is found, return the first Contact created in Lawmatics.</li>\n<li>If <strong>no</strong> match is found, a new Contact for the Matter will be created.</li>\n</ul>\n<p>Valid values for the <code>match_contact_by</code> param are: <code>email</code>, <code>name</code>, and <code>phone</code>.</p>\n<p><em>Note:</em></p>\n<p>Passed <code>contact_id</code> takes precedence, and will cause <code>match_contact_by</code> param to be ignored.</p>\n<p><code>match_contact_by</code> <code>name</code> will try to match on <code>first_name</code>, both <code>first_name</code> and <code>last_name</code>, or <code>name</code> params, depending on what is passed.</p>\n<p>If you don't pass the fields to match on, it will ignore the <code>match_contact_by</code> param and create a new Contact.</p>\n<p>The matched Contact will also be updated with any passed Contact fields.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[{"key":"","value":""}],"variable":[]}},"response":[{"id":"d3d25d30-b20a-4a19-91fa-0e1833a9f2ef","name":"POST Create Matter From Contact (Matched By Field)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"case_title\": \"New Matter\",\n\t\"first_name\": \"Matched\",\n\t\"last_name\": \"Contact\",\n\t\"match_contact_by\": \"email\",\n\t\"email\": \"test@lawmatics.com\",\n\t\"phone\": \"555-126-1235\"\n}"},"url":{"raw":"{{host}}/v1/prospects?","host":["{{host}}"],"path":["v1","prospects"],"query":[{"key":null,"value":null}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b46afb55b40c3db988a50102bd3d7673\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"2d1cae82-1bd2-4cd0-998a-fd45bcf551f2"},{"key":"X-Runtime","value":"0.395030"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"54896\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Matched\",\n            \"last_name\": \"Contact\",\n            \"case_title\": \"New Matter\",\n            \"case_blurb\": null,\n            \"status\": \"pnc\",\n            \"email\": \"test@lawmatics.com\",\n            \"phone\": \"555-126-1235\",\n            \"phone_number\": \"555-126-1235\",\n            \"email_address\": \"test@lawmatics.com\",\n            \"address\": null,\n            \"photo_url\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Pnc\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 0,\n            \"actual_value_cents\": 0,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": \"2019-03-28T21:30:30.977-07:00\",\n            \"days_since_last_contact\": 0,\n            \"utm_source\": null,\n            \"utm_campaign\": null,\n            \"utm_medium\": null,\n            \"utm_term\": null,\n            \"street\": null,\n            \"street2\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"full_address\": null,\n            \"full_street\": null,\n            \"city_state_zip\": null,\n            \"custom_fields\": [],\n            \"created_at\": \"2019-03-28T21:30:30.977-07:00\",\n            \"updated_at\": \"2019-03-28T21:30:30.977-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": null\n            },\n            \"stage\": {\n                \"data\": {\n                    \"id\": \"6\",\n                    \"type\": \"stage\"\n                }\n            },\n            \"campaign\": {\n                \"data\": null\n            },\n            \"practice_area\": {\n                \"data\": null\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contact\": {\n                \"data\": {\n                    \"id\": \"76884\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"company\": {\n                \"data\": null\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"file_requests\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": []\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": [\n                    {\n                        \"id\": \"106787\",\n                        \"type\": \"email\"\n                    }\n                ]\n            },\n            \"phone_numbers\": {\n                \"data\": [\n                    {\n                        \"id\": \"106788\",\n                        \"type\": \"phone_number\"\n                    }\n                ]\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"1dcc8290-0858-43e3-b64e-b88ccc646037"},{"name":"Create Matter From Company (By ID)","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"company_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"322dcf30-67c3-4b75-a02e-ea836d08f108","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"case_title\": \"Company Matter\",\n    \"first_name\": \"Bob\",\n    \"last_name\": \"Owner\",\n    \"company_id\": {{company_id}},\n    \"email\": \"roey+poc@lawmatics.com\",\n    \"phone\": \"555-555-5555\"\n}"},"url":"{{host}}/v1/prospects","description":"<p>Create a new Matter from an existing Contact.</p>\n<p>Passing <code>contact_id</code> to the request body will use the found Contact to create the new Matter, instead of creating a new Contact.</p>\n<p><em>Note:</em>\nAny passed contact fields will be updated on the matched Contact. You can find the Contact id via one of our Contact Finders endpoints.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b4d09b1d-2f5d-4020-8158-c96ffee10199","name":"POST Create Matter From Company (By ID)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"case_title\": \"Company Matter\",\n    \"first_name\": \"Bob\",\n    \"last_name\": \"Owner\",\n    \"company_id\": 2,\n    \"email\": \"roey+poc@lawmatics.com\",\n    \"phone\": \"555-555-5555\"\n}"},"url":"{{host}}/v1/prospects"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"db85751e18316852105eec2f130acf8c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"23710838-a837-4b17-8870-944302ffe2d7"},{"key":"X-Runtime","value":"0.201944"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"282\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Bob\",\n            \"last_name\": \"Owner\",\n            \"case_title\": \"Company Matter\",\n            \"case_blurb\": null,\n            \"status\": \"pnc\",\n            \"email\": \"roey+poc@lawmatics.com\",\n            \"phone\": \"555-555-5555\",\n            \"phone_number\": \"555-555-5555\",\n            \"email_address\": null,\n            \"address\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Pnc\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 0,\n            \"actual_value_cents\": 0,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": null,\n            \"days_since_last_contact\": 1,\n            \"converted_date\": null,\n            \"statute_of_limitations\": null,\n            \"utm_source\": null,\n            \"utm_campaign\": null,\n            \"utm_medium\": null,\n            \"utm_term\": null,\n            \"street\": null,\n            \"street2\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"full_street\": null,\n            \"city_state_zip\": null,\n            \"full_address\": null,\n            \"photo_url\": null,\n            \"custom_fields\": [],\n            \"custom_field_values\": {},\n            \"created_at\": \"2022-10-04T17:45:15.090-07:00\",\n            \"updated_at\": \"2022-10-04T17:45:15.090-07:00\",\n            \"last_contacted_date\": \"2022-10-03T15:53:56.446-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": null\n            },\n            \"stage\": {\n                \"data\": null\n            },\n            \"campaign\": {\n                \"data\": null\n            },\n            \"practice_area\": {\n                \"data\": null\n            },\n            \"salesperson\": {\n                \"data\": null\n            },\n            \"lead_attorney\": {\n                \"data\": null\n            },\n            \"originating_attorney\": {\n                \"data\": null\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"5\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contact\": {\n                \"data\": {\n                    \"id\": \"302\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"company\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"company\"\n                }\n            },\n            \"assigned_staff\": {\n                \"data\": []\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"file_requests\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": []\n            },\n            \"phone_numbers\": {\n                \"data\": []\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"tags\": {\n                \"data\": []\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"322dcf30-67c3-4b75-a02e-ea836d08f108"},{"name":"Create Matter From Company (By Name)","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/companies`, function (err, response) {","   pm.globals.set(\"company_name\", response.json().data[0].attributes.name);","});"],"type":"text/javascript"}}],"id":"1278cf7a-0950-4b8d-b521-d20e6f45f041","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"case_title\": \"Company Matter\",\n    \"first_name\": \"Bob\",\n    \"last_name\": \"Owner\",\n    \"company_name\": \"{{company_name}}\",\n    \"email\": \"roey+poc@lawmatics.com\",\n    \"phone\": \"555-555-5555\"\n}"},"url":"{{host}}/v1/prospects","description":"<p>Create a new Matter from an existing Contact.</p>\n<p>Passing <code>contact_id</code> to the request body will use the found Contact to create the new Matter, instead of creating a new Contact.</p>\n<p><em>Note:</em>\nAny passed contact fields will be updated on the matched Contact. You can find the Contact id via one of our Contact Finders endpoints.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"23bd9e47-854d-4f16-a19e-ca7b13227d03","name":"POST Create Matter From Company (By ID)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"case_title\": \"Company Matter\",\n    \"first_name\": \"Bob\",\n    \"last_name\": \"Owner\",\n    \"company_name\": \"Pringles\",\n    \"email\": \"roey+poc@lawmatics.com\",\n    \"phone\": \"555-555-5555\"\n}"},"url":"{{host}}/v1/prospects"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"45df64f98d9e357f22cb40d50e7a8838\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5096510b-ee68-4609-a9d2-c4ad414ababd"},{"key":"X-Runtime","value":"1.235876"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"281\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Bob\",\n            \"last_name\": \"Owner\",\n            \"case_title\": \"Company Matter\",\n            \"case_blurb\": null,\n            \"status\": \"pnc\",\n            \"email\": \"roey+poc@lawmatics.com\",\n            \"phone\": \"555-555-5555\",\n            \"phone_number\": \"555-555-5555\",\n            \"email_address\": null,\n            \"address\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Pnc\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 0,\n            \"actual_value_cents\": 0,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": null,\n            \"days_since_last_contact\": 1,\n            \"converted_date\": null,\n            \"statute_of_limitations\": null,\n            \"utm_source\": null,\n            \"utm_campaign\": null,\n            \"utm_medium\": null,\n            \"utm_term\": null,\n            \"street\": null,\n            \"street2\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"full_street\": null,\n            \"city_state_zip\": null,\n            \"full_address\": null,\n            \"photo_url\": null,\n            \"custom_fields\": [],\n            \"custom_field_values\": {},\n            \"created_at\": \"2022-10-04T17:43:59.061-07:00\",\n            \"updated_at\": \"2022-10-04T17:43:59.061-07:00\",\n            \"last_contacted_date\": \"2022-10-03T15:53:56.446-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": null\n            },\n            \"stage\": {\n                \"data\": null\n            },\n            \"campaign\": {\n                \"data\": null\n            },\n            \"practice_area\": {\n                \"data\": null\n            },\n            \"salesperson\": {\n                \"data\": null\n            },\n            \"lead_attorney\": {\n                \"data\": null\n            },\n            \"originating_attorney\": {\n                \"data\": null\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"5\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contact\": {\n                \"data\": {\n                    \"id\": \"302\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"company\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"company\"\n                }\n            },\n            \"assigned_staff\": {\n                \"data\": []\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"file_requests\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": []\n            },\n            \"phone_numbers\": {\n                \"data\": []\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"tags\": {\n                \"data\": []\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"1278cf7a-0950-4b8d-b521-d20e6f45f041"},{"name":"Matter","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"5c554bdf-4bfa-4891-92d3-393ab0ddeaf0","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects/:prospect_id","description":"<p>Return one Matter by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects",":prospect_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{prospect_id}}","key":"prospect_id"}]}},"response":[{"id":"ba4870dc-6f19-410e-89cd-d626f0390c42","name":"GET Matter","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/prospects/25?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","prospects","25"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"981fbb5344d67b80186114ea12f7db21\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"ae9ba399-7d8b-48a8-bc85-64c6eb82de8c","description":"Custom header"},{"key":"X-Runtime","value":"0.018461","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"25\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Tyrion\",\n            \"last_name\": \"Lannister\",\n            \"case_title\": \"Drank bad wine\",\n            \"case_blurb\": \"Client drank a glass of wine and it made him sick\",\n            \"status\": \"active\",\n            \"email\": \"tyrion@small.com\",\n            \"phone\": null,\n            \"phone_number\": null,\n            \"email_address\": \"tyrion@small.com\",\n            \"address\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Active\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 250000,\n            \"actual_value_cents\": 500000,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": \"2018-03-07T13:51:38.789-08:00\",\n            \"days_since_last_contact\": 223,\n            \"photo_url\": \"https://lm.lawmatics.com/attachments/421159fc72cbab9106329e36635b4939b8a1ad93/store/14da96fb7824ad411b34313189f4aaaba4192b6d7b0624f7948f218225e7/photo\",\n            \"custom_fields\": [],\n            \"created_at\": \"2018-03-07T13:51:38.789-08:00\",\n            \"updated_at\": \"2018-10-16T14:43:25.697-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": {\n                    \"id\": \"6\",\n                    \"type\": \"source\"\n                }\n            },\n            \"stage\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"stage\"\n                }\n            },\n            \"campaign\": {\n                \"data\": {\n                    \"id\": \"7\",\n                    \"type\": \"campaign\"\n                }\n            },\n            \"practice_area\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"practice_area\"\n                }\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"15\",\n                    \"type\": \"user\"\n                }\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": [\n                    {\n                        \"id\": \"51\",\n                        \"type\": \"task\"\n                    }\n                ]\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": [\n                    {\n                        \"id\": \"29\",\n                        \"type\": \"email\"\n                    }\n                ]\n            },\n            \"phone_numbers\": {\n                \"data\": []\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"5c554bdf-4bfa-4891-92d3-393ab0ddeaf0"},{"name":"Matter With All Fields","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"5ba52d4c-9b0b-4284-9535-f1821789b54e","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects/:prospect_id?fields=all","description":"<p>Return one Matter by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects",":prospect_id"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[{"type":"any","value":"{{prospect_id}}","key":"prospect_id"}]}},"response":[{"id":"b1ad910d-5a1a-4ac5-9b86-03bfb1ef26c6","name":"GET Matter","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/prospects/25?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","prospects","25"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"981fbb5344d67b80186114ea12f7db21\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"ae9ba399-7d8b-48a8-bc85-64c6eb82de8c","description":"Custom header"},{"key":"X-Runtime","value":"0.018461","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"25\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Tyrion\",\n            \"last_name\": \"Lannister\",\n            \"case_title\": \"Drank bad wine\",\n            \"case_blurb\": \"Client drank a glass of wine and it made him sick\",\n            \"status\": \"active\",\n            \"email\": \"tyrion@small.com\",\n            \"phone\": null,\n            \"phone_number\": null,\n            \"email_address\": \"tyrion@small.com\",\n            \"address\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Active\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 250000,\n            \"actual_value_cents\": 500000,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": \"2018-03-07T13:51:38.789-08:00\",\n            \"days_since_last_contact\": 223,\n            \"photo_url\": \"https://lm.lawmatics.com/attachments/421159fc72cbab9106329e36635b4939b8a1ad93/store/14da96fb7824ad411b34313189f4aaaba4192b6d7b0624f7948f218225e7/photo\",\n            \"custom_fields\": [],\n            \"created_at\": \"2018-03-07T13:51:38.789-08:00\",\n            \"updated_at\": \"2018-10-16T14:43:25.697-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": {\n                    \"id\": \"6\",\n                    \"type\": \"source\"\n                }\n            },\n            \"stage\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"stage\"\n                }\n            },\n            \"campaign\": {\n                \"data\": {\n                    \"id\": \"7\",\n                    \"type\": \"campaign\"\n                }\n            },\n            \"practice_area\": {\n                \"data\": {\n                    \"id\": \"3\",\n                    \"type\": \"practice_area\"\n                }\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"15\",\n                    \"type\": \"user\"\n                }\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": [\n                    {\n                        \"id\": \"51\",\n                        \"type\": \"task\"\n                    }\n                ]\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": [\n                    {\n                        \"id\": \"29\",\n                        \"type\": \"email\"\n                    }\n                ]\n            },\n            \"phone_numbers\": {\n                \"data\": []\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"5ba52d4c-9b0b-4284-9535-f1821789b54e"},{"name":"Matters","id":"46e01f71-ea14-43f8-8c3a-c9facdcbba50","request":{"method":"GET","header":[],"url":"{{host}}/v1/prospects?fields=all","description":"<p>A <strong>paginated</strong> list of all Matters in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<p>Matters can also be filtered/sorted by the linked Contact's fields. See the <a href=\"https://docs.lawmatics.com/#555909b6-ebb0-4b8b-9e56-1dceb1abb7b7\">Contacts endpoint</a> for that field list.</p>\n<blockquote>\n<p><strong>Note</strong>: <code>created_by_id</code> exists on both Matters and Contacts, so it can't be reliably filtered or sorted on this joined endpoint. </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>case_title</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>case_number</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>case_blurb</code></td>\n<td>text</td>\n<td>Referred to as Case Description, Matter Description, and Case Blurb in app</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>enum</td>\n<td>Accepts only the label (<code>hired</code>, <code>pnc</code>, <code>lost</code>)</td>\n</tr>\n<tr>\n<td><code>type_of_billing</code></td>\n<td>integer</td>\n<td>Raw integer only:  <br /><code>flat_fee = 0</code>  <br /><code>hourly = 1</code>  <br /><code>contingency = 2</code></td>\n</tr>\n<tr>\n<td><code>converted_date</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>statute_of_limitations</code></td>\n<td>date</td>\n<td></td>\n</tr>\n<tr>\n<td><code>referring_url</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>actual_value_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>estimated_value_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>lead_cost_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>total_uninvoiced_amount_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>enable_mail_sync</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>default_non_billable_entries</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>source_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>campaign_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>contact_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>company_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>practice_area_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>stage_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>prospect_sub_status_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>owned_by_id</code></td>\n<td>id</td>\n<td>User ID</td>\n</tr>\n<tr>\n<td><code>salesperson_id</code></td>\n<td>id</td>\n<td>User ID</td>\n</tr>\n<tr>\n<td><code>lead_attorney_id</code></td>\n<td>id</td>\n<td>User ID</td>\n</tr>\n<tr>\n<td><code>originating_attorney_id</code></td>\n<td>id</td>\n<td>User ID</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"574ce935-b3c7-4e73-bdc7-00df18024a2d","name":"GET Matters","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/prospects?page=1&sort_order=asc","protocol":"https","host":["api","lawmatics","com"],"path":["v1","prospects"],"query":[{"key":"page","value":"1"},{"key":"sort_order","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 01:11:24 GMT","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"4d02eedc7416d66fd351180fb85e31bd\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Set-Cookie","value":"AWSALB=n5ciJoiZyBtDr5V8bfRiBlxwTbKcu2RF9udRGgC+EbXWjcZgCkljgvcmZuFLAtOEJcXXqtS4D7Z0m8B63VYDuZu3SHV87N9aCk6cVx4WIlRa1zaL52l6ElbjPLhK; Expires=Wed, 24 Oct 2018 01:11:24 GMT; Path=/","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"aefd1389-84dc-4186-89ab-a54cee689313","description":"Custom header"},{"key":"X-Runtime","value":"0.084050","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"1\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Roey\",\n                \"last_name\": \"Chasman\",\n                \"email\": \"roey+pnc@lawmatics.com\",\n                \"created_at\": \"2018-01-05T17:18:09.735-08:00\",\n                \"updated_at\": \"2018-09-17T11:22:58.324-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Saul\",\n                \"last_name\": \"Goodman\",\n                \"email\": \"matt+saul@lawmatics.com\",\n                \"created_at\": \"2018-01-06T10:04:29.517-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.427-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Adam\",\n                \"last_name\": \"Tester\",\n                \"email\": \"adam@tester.com\",\n                \"created_at\": \"2018-01-08T02:30:27.925-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.092-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"4\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Kim\",\n                \"last_name\": \"Tester\",\n                \"email\": \"testergel@gmail.com\",\n                \"created_at\": \"2018-01-08T10:10:03.043-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.357-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"5\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Hunter\",\n                \"last_name\": \"Tester\",\n                \"email\": \"test@smokeball.com\",\n                \"created_at\": \"2018-01-08T13:42:36.375-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.495-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Tester\",\n                \"email\": \"tester@gmail.com\",\n                \"created_at\": \"2018-01-08T13:43:15.135-08:00\",\n                \"updated_at\": \"2018-09-21T13:27:24.267-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"7\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Jason\",\n                \"last_name\": \"Tester\",\n                \"email\": \"tester@gmail.com\",\n                \"created_at\": \"2018-01-11T13:54:29.469-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.378-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"8\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Mike\",\n                \"last_name\": \"Snow\",\n                \"email\": \"testerl@gmail.com\",\n                \"created_at\": \"2018-01-23T14:56:18.406-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.388-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"James\",\n                \"last_name\": \"Tester\",\n                \"email\": \"test@gmail.com\",\n                \"created_at\": \"2018-01-23T17:11:09.145-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.408-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"10\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Gyi\",\n                \"last_name\": \"Tester\",\n                \"email\": \"test@lawmatics.com\",\n                \"created_at\": \"2018-01-24T10:50:59.490-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.511-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"15\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Joe\",\n                \"last_name\": \"Test\",\n                \"email\": \"tester@lawmatics.com\",\n                \"created_at\": \"2018-02-05T16:47:54.276-08:00\",\n                \"updated_at\": \"2018-08-14T10:05:34.844-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"16\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Jeff\",\n                \"last_name\": \"Tester\",\n                \"email\": \"tester@lawmatics.com\",\n                \"created_at\": \"2018-02-06T19:38:40.814-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.603-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"17\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Sarah\",\n                \"last_name\": \"Tester\",\n                \"email\": \"sarah@lawmatics.com\",\n                \"created_at\": \"2018-02-09T15:14:46.629-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.461-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"18\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Snow\",\n                \"email\": \"john@westeros.com\",\n                \"created_at\": \"2018-03-06T06:09:22.068-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.230-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"19\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Daenerys\",\n                \"last_name\": \"Targaryen\",\n                \"email\": \"motherofdragons@daenerys.com\",\n                \"created_at\": \"2018-03-07T13:29:08.119-08:00\",\n                \"updated_at\": \"2018-03-26T12:28:22.505-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"20\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Snow\",\n                \"email\": \"johnsnow@nightswatch.com\",\n                \"created_at\": \"2018-03-07T13:32:00.708-08:00\",\n                \"updated_at\": \"2018-03-30T12:38:00.155-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"21\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Gregor\",\n                \"last_name\": \"Clegane\",\n                \"email\": \"gregor@clegane.com\",\n                \"created_at\": \"2018-03-07T13:38:58.311-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.690-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"25\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Tyrion\",\n                \"last_name\": \"Lannister\",\n                \"email\": \"tyrion@small.com\",\n                \"created_at\": \"2018-03-07T13:51:38.789-08:00\",\n                \"updated_at\": \"2018-10-16T14:43:25.697-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"26\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Arya\",\n                \"last_name\": \"Stark\",\n                \"email\": \"arya@littlesword.com\",\n                \"created_at\": \"2018-03-07T13:58:24.673-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.588-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"27\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Sansa\",\n                \"last_name\": \"Stark\",\n                \"email\": \"matt.spiegel@gmail.com\",\n                \"created_at\": \"2018-03-07T13:59:57.315-08:00\",\n                \"updated_at\": \"2018-06-18T14:51:36.116-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"28\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Khal\",\n                \"last_name\": \"Drogo\",\n                \"email\": \"khal@getripped.com\",\n                \"created_at\": \"2018-03-07T14:04:11.582-08:00\",\n                \"updated_at\": \"2018-10-16T14:43:26.055-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"29\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Eddard\",\n                \"last_name\": \"Stark\",\n                \"email\": \"eddard@north.com\",\n                \"created_at\": \"2018-03-08T06:04:52.771-08:00\",\n                \"updated_at\": \"2018-10-16T16:32:20.312-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"30\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Joffrey\",\n                \"last_name\": \"Baratheon\",\n                \"email\": \"joffrey@nobodylikesme.com\",\n                \"created_at\": \"2018-03-08T06:10:41.420-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.318-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"31\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Petyr\",\n                \"last_name\": \"Baelish\",\n                \"email\": \"littlefinger@backstabber.com\",\n                \"created_at\": \"2018-03-08T06:11:58.640-08:00\",\n                \"updated_at\": \"2018-03-20T07:00:28.328-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"32\",\n            \"type\": \"prospect\",\n            \"attributes\": {\n                \"first_name\": \"Jaime\",\n                \"last_name\": \"Lannister\",\n                \"email\": \"jaime@ishegoodorbad.com\",\n                \"created_at\": \"2018-03-08T06:43:07.974-08:00\",\n                \"updated_at\": \"2018-10-16T14:43:25.814-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 11,\n        \"limit_per_page\": 25,\n        \"total_entries\": 265\n    },\n    \"links\": {\n        \"self\": \"/v1/prospect?page=1\",\n        \"next\": \"/v1/prospect?page=2\"\n    }\n}"}],"_postman_id":"46e01f71-ea14-43f8-8c3a-c9facdcbba50"},{"name":"Update Matter","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript","packages":{}}}],"id":"99c55980-f89d-49f5-9d1c-9d81b5963db6","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"ExampleChanged\",\n\t\"email\": \"carlo99@example.com\",\n    \"phone\": \"123-123-1234\",\n    \"assigned_staff_ids\": [],\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Cool Note\",\n\t\t\t\"body\": \"This is a long form sweet new note\"\n\t\t}\n\t],\n    \"tags\": [\"Tag 1\", \"Tag 2\"]\n}"},"url":"{{host}}/v1/prospects/:prospect_id","description":"<p>Update an existing Matter by ID.</p>\n<p>Passing Custom Field id and value, will set the custom field value on the Matter, and overwrite any existing value. Passing null as the value will clear it out.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects",":prospect_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{prospect_id}}","key":"prospect_id"}]}},"response":[{"id":"c819f810-45f7-4fc2-8eae-769d1b0262a0","name":"PUT/PATCH Update Matter","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Lawmatics\",\n\t\"last_name\": \"ExampleChanged\",\n\t\"email\": \"roey+changed@lawmatics.com\",\n    \"phone\": \"123-123-1234\",\n    \"assigned_staff_ids\": [],\n\t\"notes\": [\n\t\t{\n\t\t\t\"name\": \"Cool Note\",\n\t\t\t\"body\": \"This is a long form sweet new note\"\n\t\t}\n\t],\n\t\"custom_fields\": [\n\t\t{\n\t\t\t\"id\": \"6433\",\n\t\t\t\"value\": false\n\t\t},\n\t\t{\n\t\t\t\"id\": \"6435\",\n\t\t\t\"value\": \"2\"\n\t\t},\n        {\n            \"id\": \"6470\",\n            \"value\": null\n        }\n\t],\n    \"tags\": [\"Tag 1\", \"Tag 2\"]\n}"},"url":{"raw":"{{host}}/v1/prospects/2309744?fields=first_name,last_name,email,custom_fields","host":["{{host}}"],"path":["v1","prospects","2309744"],"query":[{"key":"fields","value":"first_name,last_name,email,custom_fields"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 18:18:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=6knFgBMV86V55Wdl2QWjNsgGje8o44JhMoVHTlFYgXZ288/PIAenC6kOq7zL7XRltCubL0sx9QXfWwuW2v5c+GRcTeilqx2AopWgL/LSpdmfObQXAI0HUGdJdJBq; Expires=Thu, 16 Jun 2022 18:18:05 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=6knFgBMV86V55Wdl2QWjNsgGje8o44JhMoVHTlFYgXZ288/PIAenC6kOq7zL7XRltCubL0sx9QXfWwuW2v5c+GRcTeilqx2AopWgL/LSpdmfObQXAI0HUGdJdJBq; Expires=Thu, 16 Jun 2022 18:18:05 GMT; Path=/; SameSite=None; Secure"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"4b5a6c2c08c4d887321e0ce9e5b0ef3d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e53fa1e1-a82d-487b-935b-9db3c0fb9323"},{"key":"X-Runtime","value":"0.139870"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"2309744\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"Lawmatics\",\n            \"last_name\": \"ExampleChanged\",\n            \"email\": \"roey+changed@lawmatics.com\",\n            \"custom_fields\": [\n                {\n                    \"id\": 6434,\n                    \"name\": \"API TEST STRING (dont delete me)\",\n                    \"field_type\": \"string\",\n                    \"value\": \"Contact String\",\n                    \"formatted_value\": \"Contact String\"\n                },\n                {\n                    \"id\": 6435,\n                    \"name\": \"API TEST PICKLIST (dont delete me)\",\n                    \"field_type\": \"list\",\n                    \"value\": \"3241\",\n                    \"formatted_value\": \"2\"\n                },\n                {\n                    \"id\": 6433,\n                    \"name\": \"API TEST BOOLEAN (dont delete me)\",\n                    \"field_type\": \"boolean\",\n                    \"value\": false,\n                    \"formatted_value\": \"No\"\n                }\n            ]\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"99c55980-f89d-49f5-9d1c-9d81b5963db6"},{"name":"Delete Matter","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"68722f42-98b3-4e61-9e0c-4fb885c768e4","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{host}}/v1/prospects/:prospect_id","description":"<p>Deletes the Matter. It will no longer appear in any future GET responses.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","prospects",":prospect_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{prospect_id}}","key":"prospect_id"}]}},"response":[{"id":"162deb36-b5d4-4471-a0aa-bf45b00595d1","name":"DELETE Matter","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{host}}/v1/prospects/41835"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"f176259b16806403898933b3d32c788c\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"7b8ad7a7-0bd1-4018-9af9-8386add942b3","description":"Custom header"},{"key":"X-Runtime","value":"0.167211","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"41835\",\"type\":\"prospect\",\"attributes\":{\"first_name\":\"Lawmatics\",\"last_name\":\"Example\",\"email\":null,\"created_at\":\"2018-10-15T15:26:09.927-07:00\",\"updated_at\":\"2018-10-15T15:26:09.927-07:00\"},\"relationships\":{}}}"}],"_postman_id":"68722f42-98b3-4e61-9e0c-4fb885c768e4"}],"id":"c6a7e267-98f7-4b8b-8a00-393cef014d28","description":"<p>A <strong>Matter</strong> is a legal case, and the primary object in Lawmatics.</p>\n<p>NOTE: You may see <strong>Matters</strong> referenced as \"Prospects\" or \"PNCs\". This is for legacy reasons, and we are working to migrate away from these names internally.</p>\n<p>When creating a new <strong>Matter</strong> it will be in status <em>PNC</em>. This stands for Potential New Case or Potential New Client. It means the Matter has not yet closed.</p>\n<p>The other statuses for a <strong>Matter</strong> are 'Hired', and 'Lost'. You can also create sub statuses for each of these main statuses in the app if you need more granular categories for your <strong>Matters</strong>.</p>\n<p>A <strong>Matter</strong> wraps a <strong>Contact</strong> object, and if you create a new <strong>Matter</strong>, it will create a <strong>Contact</strong> for that <strong>Matter</strong> to hold its contact information.</p>\n<blockquote>\n<p>Note - Matters used to be called Prospects, we changed it to make it more clear that the <strong>Matter</strong> is about case information, and a <strong>Contact</strong> is about a person. One <strong>Contact</strong> can have many <strong>Matters.</strong> And a <strong>Contact</strong> with at least one Hired <strong>Matter</strong> is considered a \"<strong>Client</strong>\" Contact Type. </p>\n</blockquote>\n","_postman_id":"c6a7e267-98f7-4b8b-8a00-393cef014d28","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Notes","item":[{"name":"Note","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/notes`, function (err, response) {","   pm.globals.set(\"note_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"bc91d50f-7fda-4b45-97bf-e6677c16035d","request":{"method":"GET","header":[],"url":"{{host}}/v1/notes/:note_id","description":"<p>A specific <strong>Note</strong> by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","notes",":note_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{note_id}}","key":"note_id"}]}},"response":[{"id":"09cec363-84ea-4ec8-8e2f-adf8498fd553","name":"GET Note","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/notes/27430?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","notes","27430"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"3142b87185b7c3f304ece5cb9386ec01\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"c87a9388-878c-46c6-a4a9-d119dc7cf892","description":"Custom header"},{"key":"X-Runtime","value":"0.018671","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"27430\",\"type\":\"note\",\"attributes\":{\"name\":\"Example Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\"created_at\":\"2018-10-17T18:17:15.722-07:00\",\"updated_at\":\"2018-10-17T18:17:15.722-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"41874\",\"type\":\"prospect\"}}}}}"}],"_postman_id":"bc91d50f-7fda-4b45-97bf-e6677c16035d"},{"name":"Notes","id":"b1ba8ed9-8470-420c-8a59-a29612cf795a","request":{"method":"GET","header":[],"url":"{{host}}/v1/notes","description":"<p>A <strong>paginated</strong> list of all Notes in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>body</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>notable_type</code></td>\n<td>string</td>\n<td>Polymorphic type: <code>Prospect</code>, <code>Contact</code>, or <code>Company</code></td>\n</tr>\n<tr>\n<td><code>notable_id</code></td>\n<td>id</td>\n<td>Polymorphic id of <code>notable_type</code></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Valid Shortcuts:</strong> <code>matter_id</code>, <code>prospect_id</code>, <code>contact_id</code>, <code>company_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","notes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bb73586c-dfd0-4075-9a15-6dea2324e3ee","name":"GET Notes","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/notes?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","notes"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"ETag","value":"W/\"036d1ad0cbc7de8863c89af41623a036\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"9f0889d9-f1f8-446b-87aa-79be6528728e","description":"Custom header"},{"key":"X-Runtime","value":"0.149630","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":[{\"id\":\"27430\",\"type\":\"note\",\"attributes\":{\"name\":\"Example Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\"created_at\":\"2018-10-17T18:17:15.722-07:00\",\"updated_at\":\"2018-10-17T18:17:15.722-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"41874\",\"type\":\"prospect\"}}}},{\"id\":\"25231\",\"type\":\"note\",\"attributes\":{\"name\":\"sed\",\"body\":\"ipsa\",\"created_at\":\"2018-10-10T17:39:54.279-07:00\",\"updated_at\":\"2018-10-10T17:39:54.279-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"14\",\"type\":\"prospect\"}}}},{\"id\":\"8825\",\"type\":\"note\",\"attributes\":{\"name\":\"explicabo\",\"body\":\"voluptas\",\"created_at\":\"2018-09-24T15:27:47.155-07:00\",\"updated_at\":\"2018-09-24T15:27:47.155-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"14\",\"type\":\"prospect\"}}}},{\"id\":\"8823\",\"type\":\"note\",\"attributes\":{\"name\":\"voluptatibus\",\"body\":\"occaecati\",\"created_at\":\"2018-09-20T17:38:11.886-07:00\",\"updated_at\":\"2018-09-20T17:38:11.886-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"25\",\"type\":\"prospect\"}}}},{\"id\":\"8822\",\"type\":\"note\",\"attributes\":{\"name\":\"asd\",\"body\":\"asd\",\"created_at\":\"2018-09-19T18:27:06.917-07:00\",\"updated_at\":\"2018-09-19T18:27:06.917-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"35\",\"type\":\"prospect\"}}}},{\"id\":\"8821\",\"type\":\"note\",\"attributes\":{\"name\":\"sfd\",\"body\":\"sdfsdf\",\"created_at\":\"2018-09-19T14:11:22.278-07:00\",\"updated_at\":\"2018-09-19T14:11:22.278-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"17877\",\"type\":\"prospect\"}}}},{\"id\":\"8820\",\"type\":\"note\",\"attributes\":{\"name\":\"quia\",\"body\":\"dolores\",\"created_at\":\"2018-09-11T11:49:06.517-07:00\",\"updated_at\":\"2018-09-11T11:49:06.517-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"14\",\"type\":\"prospect\"}}}},{\"id\":\"8819\",\"type\":\"note\",\"attributes\":{\"name\":\"eius\",\"body\":\"ea\",\"created_at\":\"2018-09-11T11:46:04.109-07:00\",\"updated_at\":\"2018-09-11T11:46:04.109-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"14\",\"type\":\"prospect\"}}}},{\"id\":\"8818\",\"type\":\"note\",\"attributes\":{\"name\":\"pariatur\",\"body\":\"rerum\",\"created_at\":\"2018-09-05T13:58:04.430-07:00\",\"updated_at\":\"2018-09-05T13:58:04.430-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"25\",\"type\":\"prospect\"}}}},{\"id\":\"8817\",\"type\":\"note\",\"attributes\":{\"name\":\"ratione\",\"body\":\"nemo\",\"created_at\":\"2018-09-05T13:36:02.560-07:00\",\"updated_at\":\"2018-09-05T13:36:02.560-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"14\",\"type\":\"prospect\"}}}},{\"id\":\"8816\",\"type\":\"note\",\"attributes\":{\"name\":\"est\",\"body\":\"in\",\"created_at\":\"2018-08-24T16:47:01.463-07:00\",\"updated_at\":\"2018-08-24T16:47:01.463-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"1\",\"type\":\"prospect\"}}}},{\"id\":\"2446\",\"type\":\"note\",\"attributes\":{\"name\":null,\"body\":null,\"created_at\":\"2018-07-21T00:00:00.000-07:00\",\"updated_at\":\"2018-07-22T21:12:22.210-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"1\",\"type\":\"prospect\"}}}},{\"id\":\"101\",\"type\":\"note\",\"attributes\":{\"name\":\"test\",\"body\":\"test\",\"created_at\":\"2018-07-16T16:46:45.548-07:00\",\"updated_at\":\"2018-07-16T16:46:45.548-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"1\",\"type\":\"company\"}}}},{\"id\":\"100\",\"type\":\"note\",\"attributes\":{\"name\":\"Joseph Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:55.439-07:00\",\"updated_at\":\"2018-07-16T15:12:55.439-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"100\",\"type\":\"prospect\"}}}},{\"id\":\"99\",\"type\":\"note\",\"attributes\":{\"name\":\"Karen Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:55.323-07:00\",\"updated_at\":\"2018-07-16T15:12:55.323-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"99\",\"type\":\"prospect\"}}}},{\"id\":\"98\",\"type\":\"note\",\"attributes\":{\"name\":\"Barbara Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:55.081-07:00\",\"updated_at\":\"2018-07-16T15:12:55.081-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"98\",\"type\":\"prospect\"}}}},{\"id\":\"97\",\"type\":\"note\",\"attributes\":{\"name\":\"Sarah Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:54.860-07:00\",\"updated_at\":\"2018-07-16T15:12:54.860-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"97\",\"type\":\"prospect\"}}}},{\"id\":\"96\",\"type\":\"note\",\"attributes\":{\"name\":\"Thomas Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:54.740-07:00\",\"updated_at\":\"2018-07-16T15:12:54.740-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"96\",\"type\":\"prospect\"}}}},{\"id\":\"95\",\"type\":\"note\",\"attributes\":{\"name\":\"William Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:54.488-07:00\",\"updated_at\":\"2018-07-16T15:12:54.488-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"95\",\"type\":\"prospect\"}}}},{\"id\":\"94\",\"type\":\"note\",\"attributes\":{\"name\":\"Karen Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:54.360-07:00\",\"updated_at\":\"2018-07-16T15:12:54.360-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"94\",\"type\":\"prospect\"}}}},{\"id\":\"93\",\"type\":\"note\",\"attributes\":{\"name\":\"Maria Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:54.131-07:00\",\"updated_at\":\"2018-07-16T15:12:54.131-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"93\",\"type\":\"prospect\"}}}},{\"id\":\"92\",\"type\":\"note\",\"attributes\":{\"name\":\"Maria Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:54.018-07:00\",\"updated_at\":\"2018-07-16T15:12:54.018-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"92\",\"type\":\"prospect\"}}}},{\"id\":\"91\",\"type\":\"note\",\"attributes\":{\"name\":\"Jennifer Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:53.780-07:00\",\"updated_at\":\"2018-07-16T15:12:53.780-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"91\",\"type\":\"prospect\"}}}},{\"id\":\"90\",\"type\":\"note\",\"attributes\":{\"name\":\"Richard Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:53.527-07:00\",\"updated_at\":\"2018-07-16T15:12:53.527-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"90\",\"type\":\"prospect\"}}}},{\"id\":\"89\",\"type\":\"note\",\"attributes\":{\"name\":\"Jennifer Note\",\"body\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\"created_at\":\"2018-07-16T15:12:53.403-07:00\",\"updated_at\":\"2018-07-16T15:12:53.403-07:00\"},\"relationships\":{\"notable\":{\"data\":{\"id\":\"89\",\"type\":\"prospect\"}}}}],\"meta\":{\"total_pages\":5,\"limit_per_page\":25,\"total_entries\":110},\"links\":{\"self\":\"/v1/note?page=1\",\"next\":\"/v1/note?page=2\"}}"}],"_postman_id":"b1ba8ed9-8470-420c-8a59-a29612cf795a"},{"name":"Create Note","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_note_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"a28bcb69-797f-4363-bd2b-9c0d022f5258","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Note\",\n\t\"body\": \"An important thing to remember\",\n    \"notable_type\": \"Prospect\",\n    \"notable_id\": {{prospect_id}}\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/notes","description":"<p>Create a new <strong>Note</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Intake Note\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>body</code></td>\n<td>text</td>\n<td>Yes</td>\n<td><code>\"Met at conference, interested in estate planning services.\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>notable_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Prospect</code>, <code>Contact</code>, <code>Client</code>, <code>Company</code> (case-insensitive; <code>matter</code> also accepted)</td>\n</tr>\n<tr>\n<td><code>notable_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td>If the id doesn't resolve to a user on the firm, the Note is silently attributed to the API token's user instead — no error either way</td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601. Allows backdating</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>name</code>/<code>body</code> only check for <code>nil</code>, not blank — an empty string for either will still create the Note.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","notes"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e0e213c8-395e-43bf-b44c-f2e4fb330a64","name":"POST Create Note","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Note\",\n\t\"body\": \"An important thing to remember\",\n    \"notable_type\": \"Prospect\",\n    \"notable_id\": 113\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/notes"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"ae3551323a240d30e130a4b4fc956163\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"696649b0-1fd6-4da4-adaf-cd546fb6e4ec"},{"key":"X-Runtime","value":"1.176969"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"109\",\n        \"type\": \"note\",\n        \"attributes\": {\n            \"name\": \"New Note\",\n            \"body\": \"An important thing to remember\",\n            \"created_at\": \"2022-05-26T13:48:20.485-07:00\",\n            \"updated_at\": \"2022-05-26T13:48:20.485-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"a28bcb69-797f-4363-bd2b-9c0d022f5258"},{"name":"Update Note","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/notes`, function (err, response) {","   pm.globals.set(\"note_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"9184dc77-16bb-44e3-ad4d-478b95101792","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Updated Note\",\n    \"body\": \"I just updated this\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/notes/:note_id","description":"<p>Update an existing <strong>Note</strong></p>\n<p>Accepts the same fields as Create Note (<code>name</code>, <code>body</code>, <code>notable_type</code>, <code>notable_id</code>, <code>created_by_id</code>, <code>created_at</code>/<code>updated_at</code>), but none are required on Update — you can update just one field without resending the others.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","notes",":note_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{note_id}}","key":"note_id"}]}},"response":[{"id":"e10549ab-2b02-4d88-8c0e-d8d76e415023","name":"PUT Update Note","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Updated Note\",\n    \"body\": \"I just updated this\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/notes/:note_id","host":["{{host}}"],"path":["v1","notes",":note_id"],"variable":[{"key":"note_id","value":"108"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"ae17f730c4249becb90757d33e512af4\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a32137e7-e0d9-413d-9b6c-678ac6bd8d5d"},{"key":"X-Runtime","value":"0.244479"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"108\",\n        \"type\": \"note\",\n        \"attributes\": {\n            \"name\": \"Updated Note\",\n            \"body\": \"I just updated this\",\n            \"created_at\": \"2022-05-26T13:23:11.485-07:00\",\n            \"updated_at\": \"2022-05-26T13:23:19.697-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"9184dc77-16bb-44e3-ad4d-478b95101792"},{"name":"Delete Note","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/notes`, function (err, response) {","   pm.globals.set(\"note_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"23da3273-2ed5-4365-8c7b-5bb27764dff7","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/notes/:note_id","description":"<p>Deletes the Note. It will no longer appear in any future GET responses.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","notes",":note_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{note_id}}","key":"note_id"}]}},"response":[{"id":"2fdf6bcf-5c1c-4f2e-bd63-033081b59702","name":"DELETE Delete Note","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/notes/:note_id","host":["{{host}}"],"path":["v1","notes",":note_id"],"variable":[{"key":"note_id","value":"108"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5cbdc1b63f1ab8f35d7ec4606d15f5df\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"905c732d-5796-45c1-81fa-1f64a3f00a5d"},{"key":"X-Runtime","value":"0.158103"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"108\",\n        \"type\": \"note\",\n        \"attributes\": {\n            \"name\": \"Updated Note\",\n            \"body\": \"I just updated this\",\n            \"created_at\": \"2022-05-26T13:23:11.485-07:00\",\n            \"updated_at\": \"2022-05-26T13:23:26.462-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"23da3273-2ed5-4365-8c7b-5bb27764dff7"}],"id":"e792b830-dbe9-4e19-98ab-a89b14264ab1","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Response time is less than 2000ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(2000);","});"]}}],"_postman_id":"e792b830-dbe9-4e19-98ab-a89b14264ab1","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Payment Invoices","item":[{"name":"Invoice","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/invoices`, function (err, response) {","    console.log(response)","   pm.globals.set(\"invoice_id\", response.json().data[0].id);","});","",""],"type":"text/javascript"}}],"id":"833de335-a5fb-4d3d-8339-232b14359415","request":{"method":"GET","header":[],"url":"{{host}}/v1/invoices/:invoice_id","description":"<p>A specific Invoice in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","invoices",":invoice_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{invoice_id}}","key":"invoice_id"}]}},"response":[{"id":"683b571f-5370-41f6-bedb-e0e30b45e40d","name":"GET Invoice","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/invoices/1?fields=all","host":["{{host}}"],"path":["v1","invoices","1"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"e6d1c3b73e2d26e5c69f1b6d6c3d91dd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9820363e-3472-4b65-a961-3b19e44ba00b"},{"key":"X-Runtime","value":"0.034883"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"invoice\",\n        \"attributes\": {\n            \"number\": 1,\n            \"status\": \"sent\",\n            \"target_account_type\": \"operating\",\n            \"payment_terms\": \"due_date\",\n            \"include_balance_forward\": false,\n            \"enable_online_payment\": false,\n            \"include_statement_of_accounts\": false,\n            \"invoiced_at\": \"2021-11-02\",\n            \"due_at\": \"2021-11-02\",\n            \"voided_at\": null,\n            \"contactable_address\": null,\n            \"contactable_name\": \"Roey Tester\",\n            \"note\": \"hey zsolt this is a specific invoice note\\n\\nhere \\nis\\na \\nbunch\\n\\nof (two)\\nnewlines\",\n            \"amount_cents\": 0,\n            \"amount_paid_cents\": 0,\n            \"outstanding_amount_cents\": 0,\n            \"pdf_url\": \"http://localhost:3000/attachments/80623eb43ae0fa961d5a32b8d169fd54a0249de1/store/511432f743969f1e7b9cc636c1a9c7b4ca1a4d5dd902ef0a1ba405ff89f7/Invoice+%231.pdf\",\n            \"created_at\": \"2021-11-02T10:28:40.535-07:00\",\n            \"updated_at\": \"2022-01-10T19:43:47.382-08:00\"\n        },\n        \"relationships\": {\n            \"invoice_type\": {\n                \"data\": null\n            },\n            \"prospect\": {\n                \"data\": {\n                    \"id\": \"101\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"5\",\n                    \"type\": \"created_by\"\n                }\n            },\n            \"forwarded_to\": {\n                \"data\": null\n            },\n            \"time_entries\": {\n                \"data\": [\n                    {\n                        \"id\": \"8\",\n                        \"type\": \"time_entry\"\n                    }\n                ]\n            },\n            \"expenses\": {\n                \"data\": []\n            },\n            \"invoice_adjustments\": {\n                \"data\": []\n            },\n            \"transactions\": {\n                \"data\": []\n            },\n            \"forwarded_from\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"833de335-a5fb-4d3d-8339-232b14359415"},{"name":"Invoices","id":"c6e95563-84c5-4ae6-b8b1-fcd0b06aae72","request":{"method":"GET","header":[],"url":"{{host}}/v1/invoices","description":"<p>A <strong>paginated</strong> list of all Invoices in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<blockquote>\n</blockquote>\n<p><strong>Note:</strong> <code>outstanding_amount_cents</code> appears in every Invoice response, but it's a calculated value, not a real filterable field. <code>filter_by=outstanding_amount_cents</code> will return a 422.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>number</code></td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string enum</td>\n<td>Accepts label directly: <code>draft</code>, <code>sending</code>, <code>sent</code>, <code>paid</code>, <code>partially_paid</code>, <code>past_due</code>, <code>forwarded</code>, <code>processing</code></td>\n</tr>\n<tr>\n<td><code>payment_terms</code></td>\n<td>string enum</td>\n<td>Accepts label directly: <code>due_date</code>, <code>due_on_receipt</code>, <code>net15</code>, <code>net30</code>, <code>net60</code>, <code>installment</code></td>\n</tr>\n<tr>\n<td><code>target_account_type</code></td>\n<td>integer</td>\n<td>Raw integer only: <code>operating = 0</code>, <code>trust = 1</code></td>\n</tr>\n<tr>\n<td><code>prospect_id</code></td>\n<td>id</td>\n<td>Matter id</td>\n</tr>\n<tr>\n<td><code>invoice_type_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n<tr>\n<td><code>forwarded_to_id</code></td>\n<td>id</td>\n<td>Invoice id</td>\n</tr>\n<tr>\n<td><code>invoiced_at</code></td>\n<td>date</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>due_at</code></td>\n<td>date</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>voided_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>written_off_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>contactable_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>contactable_address</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>is_lm_pay</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>enable_online_payment</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>enable_ach_payment</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>enable_cards_payment</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>enable_surcharge</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>send_trust_receipt</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>apply_account_trust_balance</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>apply_matter_trust_balance</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>include_balance_forward</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>include_statement_of_accounts</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>send_from</code></td>\n<td>string</td>\n<td>Specific options include:  <br /><code>firm_default_invoice_email</code>  <br /><code>User-</code> (e.g. \"User-4821\")  <br /><code>custom_field_values-</code> (e.g. \"custom_field_values-77\")  <br /><code>created_by</code>  <br /><code>owned_by</code>  <br /><code>salesperson</code>  <br /><code>lead_attorney</code>  <br /><code>originating_attorney</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","invoices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a2cb9ffa-2d65-46e0-9681-4d93ec6e3088","name":"GET Invoices","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/invoices?fields=all","host":["{{host}}"],"path":["v1","invoices"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"1\",\n            \"type\": \"invoice\",\n            \"attributes\": {\n                \"number\": 1,\n                \"status\": \"sent\",\n                \"target_account_type\": \"operating\",\n                \"payment_terms\": \"due_date\",\n                \"include_balance_forward\": false,\n                \"enable_online_payment\": false,\n                \"include_statement_of_accounts\": false,\n                \"invoiced_at\": \"2021-11-02\",\n                \"due_at\": \"2021-11-02\",\n                \"voided_at\": null,\n                \"contactable_address\": null,\n                \"contactable_name\": \"Roey Tester\",\n                \"note\": \"hey zsolt this is a specific invoice note\\n\\nhere \\nis\\na \\nbunch\\n\\nof (two)\\nnewlines\",\n                \"amount_cents\": 0,\n                \"amount_paid_cents\": 0,\n                \"outstanding_amount_cents\": 0,\n                \"pdf_url\": \"http://localhost:3000/attachments/80623eb43ae0fa961d5a32b8d169fd54a0249de1/store/511432f743969f1e7b9cc636c1a9c7b4ca1a4d5dd902ef0a1ba405ff89f7/Invoice+%231.pdf\",\n                \"created_at\": \"2021-11-02T10:28:40.535-07:00\",\n                \"updated_at\": \"2022-01-10T19:43:47.382-08:00\"\n            },\n            \"relationships\": {\n                \"invoice_type\": {\n                    \"data\": null\n                },\n                \"prospect\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"created_by\"\n                    }\n                },\n                \"forwarded_to\": {\n                    \"data\": null\n                },\n                \"time_entries\": {\n                    \"data\": [\n                        {\n                            \"id\": \"8\",\n                            \"type\": \"time_entry\"\n                        }\n                    ]\n                },\n                \"expenses\": {\n                    \"data\": []\n                },\n                \"invoice_adjustments\": {\n                    \"data\": []\n                },\n                \"transactions\": {\n                    \"data\": []\n                },\n                \"forwarded_from\": {\n                    \"data\": []\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 1\n    },\n    \"links\": {\n        \"self\": \"/v1/invoices?page=1\"\n    }\n}"}],"_postman_id":"c6e95563-84c5-4ae6-b8b1-fcd0b06aae72"}],"id":"1e6cdb9a-8552-4b78-b32a-1567c0c07b53","_postman_id":"1e6cdb9a-8552-4b78-b32a-1567c0c07b53","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Payment Expenses","item":[{"name":"Expenses","id":"0f86773b-4c0d-4997-a70b-164ca45840c6","request":{"method":"GET","header":[{"key":"","value":""}],"url":"{{host}}/v1/expenses?fields=all","description":"<p>A <strong>paginated</strong> list of all Expenses in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<blockquote>\n<p><strong>Note:</strong> <code>contactable_type</code> is stored as <code>\"Prospect\"</code>. When creating an Expense, <code>\"Matter\"</code> is automatically converted to <code>\"Prospect\"</code>, but filtering does not do this conversion, so you must filter using <code>filter_on=Prospect</code>, not <code>Matter</code>. </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>expensed_at</code></td>\n<td>date</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>billable</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>cost_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td>float</td>\n<td></td>\n</tr>\n<tr>\n<td><code>total_amount_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>contactable_type</code></td>\n<td>string</td>\n<td>Polymorphic type, see note above</td>\n</tr>\n<tr>\n<td><code>contactable_id</code></td>\n<td>id</td>\n<td>Polymorphic id of <code>contactable_type</code></td>\n</tr>\n<tr>\n<td><code>billing_expense_type_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_id</code></td>\n<td>id</td>\n<td>Which invoice this expense was billed on, if any</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","expenses"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"c609c019-2dda-40fa-9a08-5ac993173fa0","name":"GET Expenses","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/time_entries?fields=all","host":["{{host}}"],"path":["v1","time_entries"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4dadb10ef3f4b807466fa70e9df74426\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6397f783-40e4-4152-a767-07d6132f3775"},{"key":"X-Runtime","value":"0.699193"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"4834"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"39\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": \"Phone Call\",\n                \"duration\": 0.1,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2022-12-26T16:19:51.917-08:00\",\n                \"completed_at\": \"2022-12-26T16:25:51.917-08:00\",\n                \"created_at\": \"2022-12-26T16:20:24.936-08:00\",\n                \"updated_at\": \"2022-12-26T16:23:49.489-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": true,\n                \"rate\": {\n                    \"cents\": 123000,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"invoice\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"37\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0,\n                \"duration_rounded\": 0,\n                \"started_at\": \"2022-07-05T13:01:52.086-07:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2022-07-05T13:01:52.089-07:00\",\n                \"updated_at\": \"2022-07-05T13:01:52.089-07:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"11\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"11\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": null\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"36\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0.004429444444444444,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2022-03-14T12:02:44.172-07:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2022-03-14T12:02:44.355-07:00\",\n                \"updated_at\": \"2023-01-10T15:15:46.748-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 123000,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"16\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0,\n                \"duration_rounded\": 0,\n                \"started_at\": \"2022-01-27T16:13:29.750-08:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2022-01-27T16:13:29.752-08:00\",\n                \"updated_at\": \"2022-01-27T16:13:29.752-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": null\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"11\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0.006879166666666667,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-11-04T18:15:11.498-07:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2021-11-04T18:15:11.500-07:00\",\n                \"updated_at\": \"2022-01-05T16:40:11.136-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"10\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": \"\",\n                \"duration\": 0,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-11-04T18:15:03.000-07:00\",\n                \"completed_at\": \"2021-11-04T18:15:11.299-07:00\",\n                \"created_at\": \"2021-11-04T18:15:03.154-07:00\",\n                \"updated_at\": \"2022-03-22T11:23:51.773-07:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 123123,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"19\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": \"\",\n                \"duration\": 0.003985277777777779,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-11-02T10:27:10.000-07:00\",\n                \"completed_at\": \"2021-11-04T18:15:03.033-07:00\",\n                \"created_at\": \"2021-11-02T10:27:10.168-07:00\",\n                \"updated_at\": \"2021-11-04T18:15:03.080-07:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"14\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"8\",\n            \"type\": \"expense\",\n            \"attributes\": {\n                \"description\": \"Test\",\n                \"duration\": 0.003545555555555556,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-10-26T16:32:57.000-07:00\",\n                \"completed_at\": \"2021-10-26T16:33:09.764-07:00\",\n                \"created_at\": \"2021-10-26T16:32:57.553-07:00\",\n                \"updated_at\": \"2022-12-26T16:22:52.245-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"invoice\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 8\n    },\n    \"links\": {\n        \"self\": \"/v1/expenses?page=1\"\n    }\n}"}],"_postman_id":"0f86773b-4c0d-4997-a70b-164ca45840c6"},{"name":"Expense","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest({","   url: `${pm.environment.get('host')}/v1/expenses`,","   method: 'GET',","   header: {","       'Authorization': `Bearer ${pm.environment.get('access_token')}`,","   }","}, function (err, response) {","   pm.globals.set(\"expense_id\", response.json().data[0].id);","});",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}}],"id":"276a77ec-61bb-4fbe-a53b-17d736ce7e43","request":{"method":"GET","header":[],"url":"{{host}}/v1/expenses/:expense_id","description":"<p>A specific Expense in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","expenses",":expense_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{expense_id}}","key":"expense_id"}]}},"response":[{"id":"e28741b7-1fa5-4bfc-99d2-bbf22c9f25e3","name":"GET Expense","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/time_entries/:time_entry_id","host":["{{host}}"],"path":["v1","time_entries",":time_entry_id"],"variable":[{"key":"time_entry_id","value":"9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4eb11c065cc6f7f39d0cb45261244238\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"83ef91f7-cd05-4f8f-90ae-161e16e3ddd1"},{"key":"X-Runtime","value":"0.069189"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"269"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"time_entry\",\n        \"attributes\": {\n            \"description\": null,\n            \"duration\": 0,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": null\n            },\n            \"activity_type\": {\n                \"data\": null\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"276a77ec-61bb-4fbe-a53b-17d736ce7e43"},{"name":"Create Expense","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});","pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}}],"id":"fb2e8bed-5e41-49fe-adec-5e720a8ae708","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"true","description":"<p>Boolean - Whenther hte expense is billable</p>\n","type":"text"},{"key":"contactable_type","value":"Matter","description":"<p>Matter | Contact | Prospect - record type associated with expense</p>\n","type":"text"},{"key":"contactable_id","value":"{{prospect_id}}","description":"<p>ID - id for record associated with the expense</p>\n","type":"text"},{"key":"cost_cents","value":"50000","description":"<p>Int - Amount in cents the Expense costs</p>\n","type":"text"},{"key":"description","value":"Research","description":"<p>String</p>\n","type":"text"},{"key":"billing_expense_type_id","value":"1","description":"<p>ID - id for associated Billing Expense Type</p>\n","type":"text","disabled":true},{"key":"created_by_id","value":"{{user_id}}","description":"<p>ID - id for User who created the expese</p>\n","type":"text"},{"key":"invoice_id","value":"125","description":"<p>ID - id for the invoice associated with the Expense</p>\n","type":"text","disabled":true},{"key":"user_id","value":"{{user_id}}","description":"<p>ID - id for User Associated with the expense</p>\n","type":"text"},{"key":"expensed_at","value":"03/14/2024","description":"<p>String | Int - ISO ISO8601 Date or Unix timestamp</p>\n","type":"text"}]},"url":"{{host}}/v1/expenses/","description":"<p>Create a new <strong>Expense</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>billable</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>true</code></td>\n<td>Defaults to <code>true</code></td>\n</tr>\n<tr>\n<td><code>cost_cents</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>5000</code></td>\n<td>In cents. Defaults to <code>0</code></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Filing fee\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>expensed_at</code></td>\n<td>date</td>\n<td>Yes</td>\n<td><code>\"2024-01-15\"</code></td>\n<td>Omitting this returns a generic error rather than a clear one, but it's still required</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td>float</td>\n<td>No</td>\n<td><code>1.0</code></td>\n<td>Defaults to <code>0.0</code>. The column supports decimals, but the app's own Expense form only ever sends whole numbers — decimals are only reachable by calling the API directly</td>\n</tr>\n<tr>\n<td><code>billing_expense_type_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>3</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>contactable_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Prospect\"</code></td>\n<td>Must be <code>Prospect</code> (or <code>Matter</code>, which is converted automatically) — Expenses can only be attached to a Matter in the app today, even though other values are technically accepted by the API. Case-sensitive in an unusual way: lowercase (<code>prospect</code>) or TitleCase (<code>Prospect</code>) both work, but ALL CAPS (<code>PROSPECT</code>) does not and causes a 500</td>\n</tr>\n<tr>\n<td><code>contactable_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td>The Matter's id</td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>2</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>3</code></td>\n<td>The User this Expense is attributed to</td>\n</tr>\n<tr>\n<td><code>invoice_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>45</code></td>\n<td>Must reference a <code>draft</code> invoice on this firm, or returns a 409</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","expenses",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"ad4a9f8a-6247-4872-94d5-68108aa77955","name":"Create Expense","originalRequest":{"method":"POST","header":[{"key":"","value":"","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"true","description":"Boolean - Whether or not the time was billable","type":"text"},{"key":"completed_at","value":"1709670661","description":"Int - Unix timestamp for when the Time Entry was completed","type":"text"},{"key":"contactable_type","value":"Matter","description":"Matter | Prospect | Contact type of record associated with the Time Entry ","type":"text"},{"key":"contactable_id","value":"12","description":"ID - id for the record associated with the Time Entry\n","type":"text"},{"key":"description","value":"Postage","description":"String","type":"text"},{"key":"duration","value":"61.0","description":"Float - Total time elapsed for the Time Entry","type":"text"},{"key":"rate_cents","value":"12000","description":"Int - Hourly rate in cents ","type":"text"},{"key":"rate_flat_fee","value":"","description":"Int - Rate in cents if Time Entry is a flat fee","type":"text","disabled":true},{"key":"show_flat_fee_duration","value":"false","description":"Boolean - whether to show the client the duration for the Time Entry","type":"text","disabled":true},{"key":"started_at","value":"1709560622","description":"Int - Unix Timestamp for when the Time Entry was started","type":"text"},{"key":"billing_activity_type_id","value":"1","description":"ID - Billing Activity Type associated with the Time Entry","type":"text"},{"key":"created_by_id","value":"1","description":"ID - id for the User who created the Time Entry","type":"text"},{"key":"invoice_id","value":"35","description":"ID - Invoice associated with the Time Entry","type":"text","disabled":true},{"key":"user_id","value":"2","description":"ID - id for the User who performed the Time Entry","type":"text"}]},"url":"{{host}}/v1/time_entries/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"344"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"9fd313ff72534f7b5a67a525d0593c50\""},{"key":"Ngrok-Trace-Id","value":"223cf8647e89ee44b97f68188659adda"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Rack-Cors","value":"miss; no-origin"},{"key":"X-Request-Id","value":"9a52b6e6-79cf-4d58-b42a-5d2e7174804f"},{"key":"X-Runtime","value":"10.444937"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 07 Mar 2024 00:00:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"34\",\n        \"type\": \"expense\",\n        \"attributes\": {\n            \"description\": \"Postage\",\n            \"duration\": 61,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": {\n                    \"id\": \"12\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"activity_type\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"activity_type\"\n                }\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"fb2e8bed-5e41-49fe-adec-5e720a8ae708"},{"name":"Update Expense","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest({","   url: `${pm.environment.get('host')}/v1/expenses`,","   method: 'GET',","   header: {","       'Authorization': `Bearer ${pm.environment.get('access_token')}`,","   }","}, function (err, response) {","   pm.globals.set(\"expense_id\", response.json().data[0].id);","});"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}}],"id":"bc4111ed-339b-455e-8d72-91f195027be3","request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"false","description":"<p>Boolean - Whether or not the time was billable</p>\n","type":"text"},{"key":"description","value":"Updated Description","description":"<p>String</p>\n","type":"text"},{"key":"contactable_type","value":"Matter","type":"text"},{"key":"contactable_id","value":"{{prospect_id}}","type":"text"}]},"url":"{{host}}/v1/expenses/:expense_id","description":"<p>A specific Expense in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","expenses",":expense_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{expense_id}}","key":"expense_id"}]}},"response":[{"id":"fcd934ac-bdd0-4a5a-93ee-e19e7922be25","name":"Update Expense","originalRequest":{"method":"PUT","header":[{"key":"","value":"","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"description","value":"Research Hours Billed","description":"String","type":"text"},{"key":"duration","value":"200.0","description":"Float - Total time elapsed for the Time Entry","type":"text"},{"key":"id","value":"{{time_entry_id}}","type":"text"}]},"url":"{{host}}/v1/expenses/{{expense_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"320"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"675d78d95d36b2542d729a48015a2403\""},{"key":"Ngrok-Trace-Id","value":"26fd966a10d7c8700212abba87269978"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Rack-Cors","value":"miss; no-origin"},{"key":"X-Request-Id","value":"7d6cc824-b8cd-4e58-8e3b-42b810714a19"},{"key":"X-Runtime","value":"0.027928"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 07 Mar 2024 00:15:22 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"35\",\n        \"type\": \"expense\",\n        \"attributes\": {\n            \"description\": \"Postage\",\n            \"duration\": 200,\n            \"is_billable\": false,\n            \"is_flat_fee\": true\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": null\n            },\n            \"activity_type\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"activity_type\"\n                }\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"bc4111ed-339b-455e-8d72-91f195027be3"},{"name":"Expense","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest({","   url: `${pm.environment.get('host')}/v1/expenses`,","   method: 'GET',","   header: {","       'Authorization': `Bearer ${pm.environment.get('access_token')}`,","   }","}, function (err, response) {","   pm.globals.set(\"expense_id\", response.json().data.find(({relationships}) => relationships.invoice.data === null).id);","});"],"type":"text/javascript","packages":{}}}],"id":"9f915b7d-4ad4-4ed0-a2f9-591ff9717834","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/expenses/:expense_id","description":"<p>A specific Expense in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","expenses",":expense_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{expense_id}}","key":"expense_id"}]}},"response":[{"id":"fbf10451-bfb7-4fea-acf1-4ac09595dd87","name":"DELETE Expense","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/time_entries/:expense_id","host":["{{host}}"],"path":["v1","time_entries",":expense_id"],"variable":[{"key":"expense_id","value":"{{expense_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4eb11c065cc6f7f39d0cb45261244238\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"07c9597b-7de1-46e9-b974-f4b1d34d7304"},{"key":"X-Runtime","value":"0.764959"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"269"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"expense\",\n        \"attributes\": {\n            \"description\": null,\n            \"duration\": 0,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": null\n            },\n            \"activity_type\": {\n                \"data\": null\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"9f915b7d-4ad4-4ed0-a2f9-591ff9717834"}],"id":"42d94b83-e178-4ed1-bc72-a8315a913a0c","_postman_id":"42d94b83-e178-4ed1-bc72-a8315a913a0c","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Payment Time Entries","item":[{"name":"Time Entries","id":"69014fa5-799c-46c9-8db1-adf3954f859b","request":{"method":"GET","header":[{"key":"","value":""}],"url":"{{host}}/v1/time_entries?fields=all","description":"<p>A <strong>paginated</strong> list of all <strong>Time Entries</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<blockquote>\n<p><strong>Note:</strong> <code>contactable_type</code> is stored as <code>\"Prospect\"</code>. When creating a Time Entry, <code>\"Matter\"</code> is automatically converted to <code>\"Prospect\"</code>, but filtering does not do this conversion, so you must filter using <code>filter_on=Prospect</code>, not <code>Matter</code>. </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>float</td>\n<td></td>\n</tr>\n<tr>\n<td><code>billable</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>rate_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>rate_flat_fee</code></td>\n<td>boolean</td>\n<td>Whether this entry bills at a flat fee instead of rate × duration</td>\n</tr>\n<tr>\n<td><code>show_flat_fee_duration</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>total_amount_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>started_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>completed_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>running_since</code></td>\n<td>datetime</td>\n<td>Best used with presence checks: <code>filter_with=present</code>/<code>null</code></td>\n</tr>\n<tr>\n<td><code>contactable_type</code></td>\n<td>string</td>\n<td>Polymorphic type, see note above</td>\n</tr>\n<tr>\n<td><code>contactable_id</code></td>\n<td>id</td>\n<td>Polymorphic id of <code>contactable_type</code></td>\n</tr>\n<tr>\n<td><code>billing_activity_type_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","time_entries"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"55122994-4140-4ba8-925d-768c478d88f3","name":"GET Time Entries","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/time_entries?fields=all","host":["{{host}}"],"path":["v1","time_entries"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4dadb10ef3f4b807466fa70e9df74426\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6397f783-40e4-4152-a767-07d6132f3775"},{"key":"X-Runtime","value":"0.699193"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"4834"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"39\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": \"Phone Call\",\n                \"duration\": 0.1,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2022-12-26T16:19:51.917-08:00\",\n                \"completed_at\": \"2022-12-26T16:25:51.917-08:00\",\n                \"created_at\": \"2022-12-26T16:20:24.936-08:00\",\n                \"updated_at\": \"2022-12-26T16:23:49.489-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": true,\n                \"rate\": {\n                    \"cents\": 123000,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"invoice\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"37\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0,\n                \"duration_rounded\": 0,\n                \"started_at\": \"2022-07-05T13:01:52.086-07:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2022-07-05T13:01:52.089-07:00\",\n                \"updated_at\": \"2022-07-05T13:01:52.089-07:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"11\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"11\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": null\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"36\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0.004429444444444444,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2022-03-14T12:02:44.172-07:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2022-03-14T12:02:44.355-07:00\",\n                \"updated_at\": \"2023-01-10T15:15:46.748-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 123000,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"16\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0,\n                \"duration_rounded\": 0,\n                \"started_at\": \"2022-01-27T16:13:29.750-08:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2022-01-27T16:13:29.752-08:00\",\n                \"updated_at\": \"2022-01-27T16:13:29.752-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": null\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"11\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": null,\n                \"duration\": 0.006879166666666667,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-11-04T18:15:11.498-07:00\",\n                \"completed_at\": null,\n                \"created_at\": \"2021-11-04T18:15:11.500-07:00\",\n                \"updated_at\": \"2022-01-05T16:40:11.136-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"10\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": \"\",\n                \"duration\": 0,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-11-04T18:15:03.000-07:00\",\n                \"completed_at\": \"2021-11-04T18:15:11.299-07:00\",\n                \"created_at\": \"2021-11-04T18:15:03.154-07:00\",\n                \"updated_at\": \"2022-03-22T11:23:51.773-07:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 123123,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"19\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": \"\",\n                \"duration\": 0.003985277777777779,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-11-02T10:27:10.000-07:00\",\n                \"completed_at\": \"2021-11-04T18:15:03.033-07:00\",\n                \"created_at\": \"2021-11-02T10:27:10.168-07:00\",\n                \"updated_at\": \"2021-11-04T18:15:03.080-07:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"14\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"8\",\n            \"type\": \"time_entry\",\n            \"attributes\": {\n                \"description\": \"Test\",\n                \"duration\": 0.003545555555555556,\n                \"duration_rounded\": 0.1,\n                \"started_at\": \"2021-10-26T16:32:57.000-07:00\",\n                \"completed_at\": \"2021-10-26T16:33:09.764-07:00\",\n                \"created_at\": \"2021-10-26T16:32:57.553-07:00\",\n                \"updated_at\": \"2022-12-26T16:22:52.245-08:00\",\n                \"billable\": true,\n                \"rate_flat_fee\": false,\n                \"rate\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"USD\"\n                }\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"created_by\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"activity_type\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"activity_type\"\n                    }\n                },\n                \"contactable\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"invoice\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 8\n    },\n    \"links\": {\n        \"self\": \"/v1/time_entries?page=1\"\n    }\n}"}],"_postman_id":"69014fa5-799c-46c9-8db1-adf3954f859b"},{"name":"Time Entry","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest({","   url: `${pm.environment.get('host')}/v1/time_entries`,","   method: 'GET',","   header: {","       'Authorization': `Bearer ${pm.environment.get('access_token')}`,","   }","}, function (err, response) {","   pm.globals.set(\"time_entry_id\", response.json().data[0].id);","});",""],"type":"text/javascript"}},{"listen":"test","script":{"exec":[""],"type":"text/javascript"}}],"id":"231cee84-edd9-4deb-86e0-4632584347be","request":{"method":"GET","header":[],"url":"{{host}}/v1/time_entries/:time_entry_id","description":"<p>A specific <strong>Time Entry</strong> in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","time_entries",":time_entry_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{time_entry_id}}","key":"time_entry_id"}]}},"response":[{"id":"c9bf8edc-5679-4f31-abb4-874168bdbd1e","name":"GET Time Entry","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/time_entries/:time_entry_id","host":["{{host}}"],"path":["v1","time_entries",":time_entry_id"],"variable":[{"key":"time_entry_id","value":"{{time_entry_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4eb11c065cc6f7f39d0cb45261244238\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"83ef91f7-cd05-4f8f-90ae-161e16e3ddd1"},{"key":"X-Runtime","value":"0.069189"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"269"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"time_entry\",\n        \"attributes\": {\n            \"description\": null,\n            \"duration\": 0,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": null\n            },\n            \"activity_type\": {\n                \"data\": null\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"231cee84-edd9-4deb-86e0-4632584347be"},{"name":"Create Time Entry","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest({","   url: `${pm.environment.get('host')}/v1/users`,","   method: 'GET',","   header: {","       'Authorization': `Bearer ${pm.environment.get('access_token')}`,","   }","}, function (err, response) {","    pm.globals.set(\"user_id\", response.json().data[0].id);","});","pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}}],"id":"678e1aa9-0dba-46b8-91be-205a40bf760c","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"true","description":"<p>Boolean - Whether or not the time was billable</p>\n","type":"text"},{"key":"completed_at","value":"1709670661","description":"<p>String | Int - ISO ISO8601 Date or Unix Timestamp for when the Time Entry was completed. Note: only completed time entries (i.e. when completed_at is not null) can be added to invoices. Incomplete time entries can only be seen in the app's timer</p>\n","type":"text"},{"key":"contactable_type","value":"Matter","description":"<p>Matter | Prospect | Contact type of record associated with the Time Entry </p>\n","type":"text"},{"key":"contactable_id","value":"{{prospect_id}}","description":"<p>ID - id for the record associated with the Time Entry</p>\n","type":"text"},{"key":"description","value":"Research Hours Billed","description":"<p>String</p>\n","type":"text"},{"key":"duration","value":"61.0","description":"<p>Float - Total time elapsed for the Time Entry</p>\n","type":"text"},{"key":"rate_cents","value":"12000","description":"<p>Int - Hourly rate in cents </p>\n","type":"text"},{"key":"rate_flat_fee","value":"","description":"<p>Boolean - whether Time Entry is a flat fee. Note completed_at is automatically set for flat fee items, if not given</p>\n","type":"text","disabled":true},{"key":"show_flat_fee_duration","value":"false","description":"<p>Boolean - whether to show the client the duration for the Time Entry</p>\n","type":"text","disabled":true},{"key":"started_at","value":"1709560622","description":"<p>String | Int - ISO ISO8601 Date or Unix Timestamp</p>\n","type":"text"},{"key":"billing_activity_type_id","value":"1","description":"<p>ID - Billing Activity Type associated with the Time Entry</p>\n","type":"text","disabled":true},{"key":"created_by_id","value":"{{user_id}}","description":"<p>ID - id for the User who created the Time Entry</p>\n","type":"text"},{"key":"invoice_id","value":"35","description":"<p>ID - Invoice associated with the Time Entry</p>\n","type":"text","disabled":true},{"key":"user_id","value":"{{user_id}}","description":"<p>ID - id for the User who performed the Time Entry</p>\n","type":"text"}]},"url":"{{host}}/v1/time_entries/","description":"<p>Create a new <strong>Time Entry</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>billable</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>true</code></td>\n<td>Defaults to <code>true</code></td>\n</tr>\n<tr>\n<td><code>started_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-15T09:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>completed_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-15T10:30:00.000-08:00\"</code></td>\n<td>ISO 8601. If both <code>started_at</code> and <code>completed_at</code> are sent, <code>completed_at</code> is recalculated from <code>started_at</code> + <code>duration</code> and your submitted value is overwritten</td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>float</td>\n<td>No</td>\n<td><code>1.5</code></td>\n<td>In hours</td>\n</tr>\n<tr>\n<td><code>rate_cents</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>15000</code></td>\n<td>In cents. If omitted or <code>0</code>, the assigned User's default billing rate is applied instead — if that User has no default rate configured either, this just stays <code>0</code> (unbilled), no error</td>\n</tr>\n<tr>\n<td><code>rate_flat_fee</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>false</code></td>\n<td>If <code>true</code> and <code>completed_at</code> isn't set, <code>completed_at</code> is automatically set to the current time</td>\n</tr>\n<tr>\n<td><code>show_flat_fee_duration</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>true</code></td>\n<td>Defaults to <code>true</code></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Drafted motion\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>billing_activity_type_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>contactable_type</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td><code>\"Prospect\"</code></td>\n<td>Must be <code>Prospect</code> (or <code>Matter</code>, which is converted automatically) — Time Entries can only be attached to a Matter in the app today, even though other values are technically accepted by the API. Required only if the Time Entry ends up marked complete (<code>completed_at</code> set, directly or via the <code>rate_flat_fee</code> auto-set above) — since most Time Entries do end up completed, treat this as required in practice</td>\n</tr>\n<tr>\n<td><code>contactable_id</code></td>\n<td>id</td>\n<td>Conditional</td>\n<td><code>\"12345\"</code></td>\n<td>The Matter's id. Same conditional requirement as <code>contactable_type</code></td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>3</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>2</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>45</code></td>\n<td>Must reference a <code>draft</code> invoice on this firm, or returns a 409</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","time_entries",""],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"dffe6a2c-2b29-46d0-b2af-2636f9250f11","name":"Create Time Entry","originalRequest":{"method":"POST","header":[{"key":"","value":"","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"true","description":"Boolean - Whether or not the time was billable","type":"text"},{"key":"completed_at","value":"1709670661","description":"String | Int - ISO ISO8601 Date or Unix Timestamp for when the Time Entry was completed. Note: only completed time entries (i.e. when completed_at is not null) can be added to invoices. Incomplete time entries can only be seen in the app's timer","type":"text"},{"key":"contactable_type","value":"Matter","description":"Matter | Prospect | Contact type of record associated with the Time Entry ","type":"text"},{"key":"contactable_id","value":"12","description":"ID - id for the record associated with the Time Entry\n","type":"text"},{"key":"description","value":"Research Hours Billed","description":"String","type":"text"},{"key":"duration","value":"61.0","description":"Float - Total time elapsed for the Time Entry","type":"text"},{"key":"rate_cents","value":"12000","description":"Int - Hourly rate in cents ","type":"text"},{"key":"rate_flat_fee","value":"","description":"Boolean - whether Time Entry is a flat fee. Note completed_at is automatically set for flat fee items, if not given","type":"text","disabled":true},{"key":"show_flat_fee_duration","value":"false","description":"Boolean - whether to show the client the duration for the Time Entry","type":"text","disabled":true},{"key":"started_at","value":"1709560622","description":"Int - Unix Timestamp for when the Time Entry was started","type":"text"},{"key":"billing_activity_type_id","value":"1","description":"ID - Billing Activity Type associated with the Time Entry","type":"text"},{"key":"created_by_id","value":"1","description":"ID - id for the User who created the Time Entry","type":"text"},{"key":"invoice_id","value":"35","description":"ID - Invoice associated with the Time Entry","type":"text","disabled":true},{"key":"user_id","value":"2","description":"ID - id for the User who performed the Time Entry","type":"text"}]},"url":"{{host}}/v1/time_entries/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"344"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"9fd313ff72534f7b5a67a525d0593c50\""},{"key":"Ngrok-Trace-Id","value":"223cf8647e89ee44b97f68188659adda"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Rack-Cors","value":"miss; no-origin"},{"key":"X-Request-Id","value":"9a52b6e6-79cf-4d58-b42a-5d2e7174804f"},{"key":"X-Runtime","value":"10.444937"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 07 Mar 2024 00:00:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"34\",\n        \"type\": \"time_entry\",\n        \"attributes\": {\n            \"description\": \"Research Hours Billed\",\n            \"duration\": 61,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": {\n                    \"id\": \"12\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"activity_type\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"activity_type\"\n                }\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"},{"id":"4200f90a-36ee-4ed8-84fe-4666548b394a","name":"Create Flat Fee Time Entry","originalRequest":{"method":"POST","header":[{"key":"","value":"","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"true","description":"Boolean - Whether or not the time was billable","type":"text"},{"key":"completed_at","value":"1709670661","description":"String | Int - ISO ISO8601 Date or Unix Timestamp for when the Time Entry was completed. Note: only completed time entries (i.e. when completed_at is not null) can be added to invoices. Incomplete time entries can only be seen in the app's timer","type":"text"},{"key":"contactable_type","value":"Matter","description":"Matter | Prospect | Contact type of record associated with the Time Entry ","type":"text"},{"key":"contactable_id","value":"12","description":"ID - id for the record associated with the Time Entry\n","type":"text"},{"key":"description","value":"Research Hours Billed","description":"String","type":"text"},{"key":"duration","value":"61.0","description":"Float - Total time elapsed for the Time Entry","type":"text"},{"key":"rate_cents","value":"12000","description":"Int - Hourly rate in cents ","type":"text"},{"key":"rate_flat_fee","value":"","description":"Boolean - whether Time Entry is a flat fee. Note completed_at is automatically set for flat fee items, if not given","type":"text","disabled":true},{"key":"show_flat_fee_duration","value":"false","description":"Boolean - whether to show the client the duration for the Time Entry","type":"text","disabled":true},{"key":"started_at","value":"1709560622","description":"Int - Unix Timestamp for when the Time Entry was started","type":"text"},{"key":"billing_activity_type_id","value":"1","description":"ID - Billing Activity Type associated with the Time Entry","type":"text"},{"key":"created_by_id","value":"1","description":"ID - id for the User who created the Time Entry","type":"text"},{"key":"invoice_id","value":"35","description":"ID - Invoice associated with the Time Entry","type":"text","disabled":true},{"key":"user_id","value":"2","description":"ID - id for the User who performed the Time Entry","type":"text"}]},"url":"{{host}}/v1/time_entries/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"344"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"9fd313ff72534f7b5a67a525d0593c50\""},{"key":"Ngrok-Trace-Id","value":"223cf8647e89ee44b97f68188659adda"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Rack-Cors","value":"miss; no-origin"},{"key":"X-Request-Id","value":"9a52b6e6-79cf-4d58-b42a-5d2e7174804f"},{"key":"X-Runtime","value":"10.444937"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 07 Mar 2024 00:00:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"34\",\n        \"type\": \"time_entry\",\n        \"attributes\": {\n            \"description\": \"Research Hours Billed\",\n            \"duration\": 61,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": {\n                    \"id\": \"12\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"activity_type\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"activity_type\"\n                }\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"},{"id":"baaa67c0-a815-4c18-a5f3-f34863c73fb5","name":"Create Time Entry For Invoice","originalRequest":{"method":"POST","header":[{"key":"","value":"","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"true","description":"Boolean - Whether or not the time was billable","type":"text"},{"key":"completed_at","value":"1709670661","description":"Int - Unix timestamp for when the Time Entry was completed","type":"text"},{"key":"contactable_type","value":"Matter","description":"Matter | Prospect | Contact type of record associated with the Time Entry ","type":"text"},{"key":"contactable_id","value":"12","description":"ID - id for the record associated with the Time Entry\n","type":"text"},{"key":"description","value":"Research Hours Billed","description":"String","type":"text"},{"key":"duration","value":"61.0","description":"Float - Total time elapsed for the Time Entry","type":"text"},{"key":"rate_cents","value":"12000","description":"Int - Hourly rate in cents","type":"text"},{"key":"started_at","value":"1709560622","description":"Int - Unix Timestamp for when the Time Entry was started","type":"text"},{"key":"billing_activity_type_id","value":"1","description":"ID - Billing Activity Type associated with the Time Entry","type":"text"},{"key":"created_by_id","value":"1","description":"ID - id for the User who created the Time Entry","type":"text"},{"key":"invoice_id","value":"{{invoice_id}}","description":"ID - Invoice associated with the Time Entry","type":"text"},{"key":"user_id","value":"2","description":"ID - id for the User who performed the Time Entry","type":"text"}]},"url":"{{host}}/v1/time_entries/"},"status":"OK","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"344"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"9fd313ff72534f7b5a67a525d0593c50\""},{"key":"Ngrok-Trace-Id","value":"223cf8647e89ee44b97f68188659adda"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Rack-Cors","value":"miss; no-origin"},{"key":"X-Request-Id","value":"9a52b6e6-79cf-4d58-b42a-5d2e7174804f"},{"key":"X-Runtime","value":"10.444937"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 07 Mar 2024 00:00:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"34\",\n        \"type\": \"time_entry\",\n        \"attributes\": {\n            \"description\": \"Research Hours Billed\",\n            \"duration\": 61,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": {\n                    \"id\": \"12\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"activity_type\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"activity_type\"\n                }\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"678e1aa9-0dba-46b8-91be-205a40bf760c"},{"name":"Update Time Entry","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest({","   url: `${pm.environment.get('host')}/v1/time_entries`,","   method: 'GET',","   header: {","       'Authorization': `Bearer ${pm.environment.get('access_token')}`,","   }","}, function (err, response) {","   pm.globals.set(\"time_entry_id\", response.json().data[0].id);","});"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}}],"id":"47939623-0d76-46ff-9ab9-28c0e490ee9b","request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"billable","value":"false","description":"<p>Boolean - Whether or not the time was billable</p>\n","type":"text"},{"key":"completed_at","value":"1709670661","description":"<p>Int - Unix timestamp for when the Time Entry was completed</p>\n","type":"text","disabled":true},{"key":"contactable_type","value":"Matter","description":"<p>Matter | Prospect | Contact type of record associated with the Time Entry </p>\n","type":"text","disabled":true},{"key":"contactable_id","value":"12","description":"<p>ID - id for the record associated with the Time Entry</p>\n","type":"text","disabled":true},{"key":"description","value":"Updated Description","description":"<p>String</p>\n","type":"text"},{"key":"duration","value":"61.0","description":"<p>Float - Total time elapsed for the Time Entry</p>\n","type":"text","disabled":true},{"key":"rate_cents","value":"12000","description":"<p>Int - Hourly rate in cents </p>\n","type":"text","disabled":true},{"key":"rate_flat_fee","value":"","description":"<p>Int - Rate in cents if Time Entry is a flat fee</p>\n","type":"text","disabled":true},{"key":"show_flat_fee_duration","value":"false","description":"<p>Boolean - whether to show the client the duration for the Time Entry</p>\n","type":"text","disabled":true},{"key":"started_at","value":"1709560622","description":"<p>Int - Unix Timestamp for when the Time Entry was started</p>\n","type":"text","disabled":true},{"key":"billing_activity_type_id","value":"1","description":"<p>ID - Billing Activity Type associated with the Time Entry</p>\n","type":"text","disabled":true},{"key":"created_by_id","value":"1","description":"<p>ID - id for the User who created the Time Entry</p>\n","type":"text","disabled":true},{"key":"invoice_id","value":"35","description":"<p>ID - Invoice associated with the Time Entry</p>\n","type":"text","disabled":true},{"key":"user_id","value":"2","description":"<p>ID - id for the User who performed the Time Entry</p>\n","type":"text","disabled":true}]},"url":"{{host}}/v1/time_entries/{{time_entry_id}}","description":"<p>A specific <strong>Time Entry</strong> in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","time_entries","{{time_entry_id}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"098419d8-5822-4f60-a44a-0be036c3a1a8","name":"Update Time Entry","originalRequest":{"method":"PUT","header":[{"key":"","value":"","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"description","value":"Research Hours Billed","description":"String","type":"text"},{"key":"duration","value":"200.0","description":"Float - Total time elapsed for the Time Entry","type":"text"},{"key":"id","value":"{{time_entry_id}}","type":"text"}]},"url":"{{host}}/v1/time_entries/{{time_entry_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"320"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"675d78d95d36b2542d729a48015a2403\""},{"key":"Ngrok-Trace-Id","value":"26fd966a10d7c8700212abba87269978"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Rack-Cors","value":"miss; no-origin"},{"key":"X-Request-Id","value":"7d6cc824-b8cd-4e58-8e3b-42b810714a19"},{"key":"X-Runtime","value":"0.027928"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 07 Mar 2024 00:15:22 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"35\",\n        \"type\": \"time_entry\",\n        \"attributes\": {\n            \"description\": \"Research Hours Billed\",\n            \"duration\": 200,\n            \"is_billable\": false,\n            \"is_flat_fee\": true\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": null\n            },\n            \"activity_type\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"activity_type\"\n                }\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"47939623-0d76-46ff-9ab9-28c0e490ee9b"},{"name":"Time Entry","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/time_entries?fields=invoice`, function (err, response) {","    // Delete uninvoiced time entry","   pm.globals.set(\"time_entry_id\", response.json().data.find(({relationships}) => relationships.invoice.data === null).id);","});"],"type":"text/javascript"}}],"id":"96e2ad69-202c-436f-b858-96223ebd9d77","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/time_entries/:time_entry_id","description":"<p>A specific <strong>Time Entry</strong> in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","time_entries",":time_entry_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{time_entry_id}}","key":"time_entry_id"}]}},"response":[{"id":"b74d363d-654f-4606-98b3-502c4d872875","name":"DELETE Time Entry","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/time_entries/:time_entry_id","host":["{{host}}"],"path":["v1","time_entries",":time_entry_id"],"variable":[{"key":"time_entry_id","value":"9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4eb11c065cc6f7f39d0cb45261244238\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"07c9597b-7de1-46e9-b974-f4b1d34d7304"},{"key":"X-Runtime","value":"0.764959"},{"key":"vary","value":"Accept, Origin"},{"key":"x-rack-cors","value":"miss; no-origin"},{"key":"Content-Length","value":"269"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"9\",\n        \"type\": \"time_entry\",\n        \"attributes\": {\n            \"description\": null,\n            \"duration\": 0,\n            \"is_billable\": true,\n            \"is_flat_fee\": false\n        },\n        \"relationships\": {\n            \"staff\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contactable\": {\n                \"data\": null\n            },\n            \"activity_type\": {\n                \"data\": null\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"96e2ad69-202c-436f-b858-96223ebd9d77"}],"id":"328994af-c16c-4008-8a6a-3e63794ba41a","_postman_id":"328994af-c16c-4008-8a6a-3e63794ba41a","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Payment Transactions","item":[{"name":"Transaction","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/transactions`, function (err, response) {","   pm.globals.set(\"transaction_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"0d711243-4afd-44c9-aa63-3b3f0ee15596","request":{"method":"GET","header":[],"url":"{{host}}/v1/transactions/:transaction_id","description":"<p>A specific <strong>Transaction</strong> in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","transactions",":transaction_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{transaction_id}}","key":"transaction_id"}]}},"response":[{"id":"e6c926ca-8bd3-4024-a81d-8786821bb0d7","name":"GET Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/transactions/1?fields=all","host":["{{host}}"],"path":["v1","transactions","1"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"9ab6babc6ca237006ff4a3c845070117\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"008e7496-ece0-43db-a894-0fd85568e617"},{"key":"X-Runtime","value":"0.116451"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"transaction\",\n        \"attributes\": {\n            \"account_type\": \"Contact\",\n            \"bank_account_type\": \"trust\",\n            \"status\": \"processed\",\n            \"payment_method\": \"venmo\",\n            \"transaction_type\": \"credit\",\n            \"amount_cents\": 12323,\n            \"amount_currency\": \"USD\",\n            \"account_id\": 101,\n            \"created_by_id\": 5,\n            \"firm_id\": 2,\n            \"external_id\": null,\n            \"invoice_id\": null,\n            \"prospect_id\": 101,\n            \"created_at\": \"2021-12-26T14:52:44.808-08:00\",\n            \"updated_at\": \"2021-12-26T14:52:44.808-08:00\",\n            \"note\": \"Such a goo payment\"\n        },\n        \"relationships\": {\n            \"account\": {\n                \"data\": {\n                    \"id\": \"101\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"prospect\": {\n                \"data\": {\n                    \"id\": \"101\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"invoice\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"0d711243-4afd-44c9-aa63-3b3f0ee15596"},{"name":"Transactions","id":"23f55303-6921-4af4-8cd0-a991644811f4","request":{"method":"GET","header":[],"url":"{{host}}/v1/transactions?fields=all","description":"<p>A <strong>paginated</strong> list of all <strong>Transactions</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>transaction_type</code></td>\n<td>integer</td>\n<td>Raw integer only: <code>debit</code>=0, <code>credit</code>=1</td>\n</tr>\n<tr>\n<td><code>bank_account_type</code></td>\n<td>integer</td>\n<td>Raw integer only: <code>operating</code>=0, <code>trust</code>=1</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>integer</td>\n<td>Raw integer only: <code>processing</code>=0, <code>processed</code>=1, <code>failed</code>=2</td>\n</tr>\n<tr>\n<td><code>payment_method</code></td>\n<td>integer</td>\n<td>Raw integer only: <code>credit_card</code>=0, <code>check</code>=1, <code>cash</code>=2, <code>paypal</code>=3, <code>venmo</code>=4, <code>other</code>=5, <code>debit_card</code>=7, <code>ach</code>=8, <code>invoice_refund</code>=9, <code>trust_balance_transfer</code>=10, <code>trust_fund_request_refund</code>=11, <code>allocated_trust_payment</code>=12, <code>unallocated_trust_payment</code>=13, <code>withdrawal</code>=14, <code>surcharge_refund</code>=15 (6 is deprecated)</td>\n</tr>\n<tr>\n<td><code>amount_cents</code></td>\n<td>integer</td>\n<td>In cents</td>\n</tr>\n<tr>\n<td><code>executed_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>settled_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>is_lm_pay</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>transactionable_type</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>transactions</code> also has its own <code>prospect_id</code> column, but the <code>prospect_id</code> shortcut below is checked first and takes priority — there's currently no way to filter on that raw column value directly.</p>\n</blockquote>\n<p><strong>Valid Shortcuts:</strong> <code>matter_id</code>, <code>prospect_id</code>, <code>contact_id</code>, <code>company_id</code> — polymorphic, maps to <code>transactionable_type</code>/<code>transactionable_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","transactions"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"7a258315-2550-4c1a-a438-e0419327be40","name":"GET Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/transactions?fields=all","host":["{{host}}"],"path":["v1","transactions"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"583936222e944de5dde1006f10b8dce9\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"fa31ce2d-89be-4cf0-ae99-9bc49b7d3f6d"},{"key":"X-Runtime","value":"0.165715"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"6\",\n            \"type\": \"transaction\",\n            \"attributes\": {\n                \"account_type\": \"Contact\",\n                \"bank_account_type\": \"trust\",\n                \"status\": \"processed\",\n                \"payment_method\": \"other\",\n                \"transaction_type\": \"credit\",\n                \"amount_cents\": 12300,\n                \"amount_currency\": \"USD\",\n                \"account_id\": 3,\n                \"created_by_id\": 5,\n                \"firm_id\": 2,\n                \"external_id\": null,\n                \"invoice_id\": null,\n                \"prospect_id\": null,\n                \"created_at\": \"2022-04-21T00:17:38.437-07:00\",\n                \"updated_at\": \"2022-04-21T00:17:38.437-07:00\",\n                \"note\": \"asdasd\"\n            },\n            \"relationships\": {\n                \"account\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"prospect\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"5\",\n            \"type\": \"transaction\",\n            \"attributes\": {\n                \"account_type\": \"Contact\",\n                \"bank_account_type\": \"trust\",\n                \"status\": \"processed\",\n                \"payment_method\": \"credit_card\",\n                \"transaction_type\": \"credit\",\n                \"amount_cents\": 1230,\n                \"amount_currency\": \"USD\",\n                \"account_id\": 3,\n                \"created_by_id\": 5,\n                \"firm_id\": 2,\n                \"external_id\": null,\n                \"invoice_id\": null,\n                \"prospect_id\": 3,\n                \"created_at\": \"2022-04-20T22:37:22.982-07:00\",\n                \"updated_at\": \"2022-04-20T22:37:22.982-07:00\",\n                \"note\": \"asdasdas\"\n            },\n            \"relationships\": {\n                \"account\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"prospect\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"4\",\n            \"type\": \"transaction\",\n            \"attributes\": {\n                \"account_type\": \"Contact\",\n                \"bank_account_type\": \"trust\",\n                \"status\": \"processed\",\n                \"payment_method\": \"credit_card\",\n                \"transaction_type\": \"credit\",\n                \"amount_cents\": 1230,\n                \"amount_currency\": \"USD\",\n                \"account_id\": 9,\n                \"created_by_id\": 5,\n                \"firm_id\": 2,\n                \"external_id\": null,\n                \"invoice_id\": null,\n                \"prospect_id\": null,\n                \"created_at\": \"2022-04-20T16:47:22.562-07:00\",\n                \"updated_at\": \"2022-04-20T16:47:22.562-07:00\",\n                \"note\": \"asdasdasd\"\n            },\n            \"relationships\": {\n                \"account\": {\n                    \"data\": {\n                        \"id\": \"9\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"prospect\": {\n                    \"data\": null\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"transaction\",\n            \"attributes\": {\n                \"account_type\": \"Contact\",\n                \"bank_account_type\": \"trust\",\n                \"status\": \"processed\",\n                \"payment_method\": \"credit_card\",\n                \"transaction_type\": \"credit\",\n                \"amount_cents\": 12300,\n                \"amount_currency\": \"USD\",\n                \"account_id\": 3,\n                \"created_by_id\": 5,\n                \"firm_id\": 2,\n                \"external_id\": null,\n                \"invoice_id\": null,\n                \"prospect_id\": 3,\n                \"created_at\": \"2022-04-20T16:47:07.893-07:00\",\n                \"updated_at\": \"2022-04-20T16:47:07.893-07:00\",\n                \"note\": \"test\"\n            },\n            \"relationships\": {\n                \"account\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"prospect\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"transaction\",\n            \"attributes\": {\n                \"account_type\": \"Contact\",\n                \"bank_account_type\": \"trust\",\n                \"status\": \"processed\",\n                \"payment_method\": \"credit_card\",\n                \"transaction_type\": \"credit\",\n                \"amount_cents\": 123123,\n                \"amount_currency\": \"USD\",\n                \"account_id\": 101,\n                \"created_by_id\": 5,\n                \"firm_id\": 2,\n                \"external_id\": null,\n                \"invoice_id\": null,\n                \"prospect_id\": 101,\n                \"created_at\": \"2022-01-10T20:05:03.839-08:00\",\n                \"updated_at\": \"2022-01-10T20:05:03.839-08:00\",\n                \"note\": \"Tester\"\n            },\n            \"relationships\": {\n                \"account\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"prospect\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"transaction\",\n            \"attributes\": {\n                \"account_type\": \"Contact\",\n                \"bank_account_type\": \"trust\",\n                \"status\": \"processed\",\n                \"payment_method\": \"venmo\",\n                \"transaction_type\": \"credit\",\n                \"amount_cents\": 12323,\n                \"amount_currency\": \"USD\",\n                \"account_id\": 101,\n                \"created_by_id\": 5,\n                \"firm_id\": 2,\n                \"external_id\": null,\n                \"invoice_id\": null,\n                \"prospect_id\": 101,\n                \"created_at\": \"2021-12-26T14:52:44.808-08:00\",\n                \"updated_at\": \"2021-12-26T14:52:44.808-08:00\",\n                \"note\": \"Such a goo payment\"\n            },\n            \"relationships\": {\n                \"account\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"contact\"\n                    }\n                },\n                \"prospect\": {\n                    \"data\": {\n                        \"id\": \"101\",\n                        \"type\": \"prospect\"\n                    }\n                },\n                \"invoice\": {\n                    \"data\": null\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 6\n    },\n    \"links\": {\n        \"self\": \"/v1/transactions?page=1\"\n    }\n}"}],"_postman_id":"23f55303-6921-4af4-8cd0-a991644811f4"},{"name":"Create Transaction","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/invoices`, function (err, response) {","   pm.globals.set(\"invoice_id\", response.json().data.find(invoice => invoice.attributes.outstanding_amount_cents > 0).id)","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"11e08754-5d64-4bae-8a46-2b53e52d9b00","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"invoice_number\": {{invoice_id}},\n    \"transaction_type\" : \"credit\",\n    \"bank_account_type\": \"operating\",\n    \"payment_method\": \"credit_card\",\n    \"executed_at\": \"2022-04-19 12:00:00.000\",\n    \"amount_cents\": 5000,\n    \"note\": \"\",\n    \"transactable_id\": {{prospect_id}},\n    \"transactable_type\": \"Prospect\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/transactions?fields=all","description":"<p>Create a new <strong>Transaction</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>transactable_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Contact</code>, <code>Company</code> (case-insensitive) — Transactions are billed to a person or company, not a Matter, so <code>Prospect</code>/<code>Matter</code> isn't a real option in the app. (The API will technically accept <code>Prospect</code>, but not the more common <code>Matter</code> alias — sending <code>\"Matter\"</code> causes a 500. Stick to <code>Contact</code>/<code>Company</code> to match how the app actually uses this field.)</td>\n</tr>\n<tr>\n<td><code>transactable_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>transaction_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"debit\"</code></td>\n<td>One of <code>debit</code>, <code>credit</code></td>\n</tr>\n<tr>\n<td><code>bank_account_type</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"operating\"</code></td>\n<td>One of <code>operating</code>, <code>trust</code></td>\n</tr>\n<tr>\n<td><code>payment_method</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"credit_card\"</code></td>\n<td>One of <code>credit_card</code>, <code>check</code>, <code>cash</code>, <code>paypal</code>, <code>venmo</code>, <code>other</code>, <code>debit_card</code>, <code>ach</code>, <code>invoice_refund</code>, <code>trust_balance_transfer</code>, <code>trust_fund_request_refund</code>, <code>allocated_trust_payment</code>, <code>unallocated_trust_payment</code>, <code>withdrawal</code>, <code>surcharge_refund</code>. Automatically overridden to <code>invoice_refund</code> if <code>transaction_type</code> is <code>debit</code> — see note below</td>\n</tr>\n<tr>\n<td><code>executed_at</code></td>\n<td>datetime</td>\n<td>Yes</td>\n<td><code>\"2024-01-15T00:00:00.000-08:00\"</code></td>\n<td>Omitting this returns a generic error rather than a clear one, but it's still required</td>\n</tr>\n<tr>\n<td><code>amount_cents</code></td>\n<td>integer</td>\n<td>Yes</td>\n<td><code>50000</code></td>\n<td>In cents. Omitting this returns a generic error rather than a clear one, but it's still required</td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Retainer payment\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoice_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>45</code></td>\n<td>If set (or resolved via <code>invoice_number</code>), the Matter/Contact/Company you passed via <code>transactable_type</code>/<code>transactable_id</code> is discarded and re-derived from the invoice instead. The two fields are still required to pass initial validation even though their values may not end up used</td>\n</tr>\n<tr>\n<td><code>invoice_number</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"INV-1001\"</code></td>\n<td>Alternative to <code>invoice_id</code> — send only one</td>\n</tr>\n<tr>\n<td><code>refunded_transaction_id</code></td>\n<td>id</td>\n<td>Conditional</td>\n<td><code>\"789\"</code></td>\n<td>Required if <code>transaction_type</code> is <code>debit</code> (must reference an existing <code>credit</code> transaction on the same invoice). Ignored/cleared if <code>transaction_type</code> is <code>credit</code></td>\n</tr>\n<tr>\n<td><code>send_receipt</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>true</code></td>\n<td>Defaults to <code>true</code> if omitted</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> You can't set which Matter a Transaction is linked to directly — it comes from the linked invoice (if any). The <code>prospect_id</code> field shown as filterable on GET always stays empty on records created through this endpoint.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> <code>created_at</code>/<code>updated_at</code> are accepted but have no effect — this endpoint always uses the actual creation time.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","transactions"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[]}},"response":[{"id":"49d3ce5f-7003-48b3-9d8c-636b564da34a","name":"POST Create Refund Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"invoice_number\": 1,\n    \"transaction_type\" : \"debit\",\n    \"bank_account_type\": \"operating\",\n    \"payment_method\": \"credit_card\",\n    \"executed_at\": \"2022-04-19 12:00:00.000\",\n    \"amount_cents\": 5000,\n    \"note\": \"\",\n    \"transactable_id\": 113,\n    \"transactable_type\": \"Prospect\",\n    \"refunded_transaction_id\": 30\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/transactions?fields=all","host":["{{host}}"],"path":["v1","transactions"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"cff04c250b91d9a8ae2cf90e671d2ca2\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f6999c91-198c-4ee0-8865-6d074eaf59ee"},{"key":"X-Runtime","value":"5.897455"},{"key":"Content-Length","value":"666"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"38\",\n        \"type\": \"transaction\",\n        \"attributes\": {\n            \"account_type\": \"Contact\",\n            \"bank_account_type\": \"operating\",\n            \"payment_method\": \"invoice_refund\",\n            \"transaction_type\": \"debit\",\n            \"amount_cents\": 5000,\n            \"amount_currency\": \"USD\",\n            \"account_id\": 112,\n            \"external_id\": null,\n            \"created_at\": \"2022-12-27T13:15:25.890-08:00\",\n            \"updated_at\": \"2022-12-27T13:15:25.890-08:00\",\n            \"note\": \"\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"5\",\n                    \"type\": \"user\"\n                }\n            },\n            \"account\": {\n                \"data\": {\n                    \"id\": \"112\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"prospect\": {\n                \"data\": {\n                    \"id\": \"113\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"invoice\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"invoice\"\n                }\n            },\n            \"trust_fund_request\": {\n                \"data\": null\n            },\n            \"refunded_transaction\": {\n                \"data\": {\n                    \"id\": \"30\",\n                    \"type\": \"transaction\"\n                }\n            }\n        }\n    }\n}"},{"id":"8a2349f6-cb52-43b9-9cb1-636e95610b5d","name":"POST Create Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"invoice_number\": 1,\n    \"transaction_type\" : \"credit\",\n    \"bank_account_type\": \"operating\",\n    \"payment_method\": \"credit_card\",\n    \"executed_at\": \"2022-04-19 12:00:00.000\",\n    \"amount_cents\": 5000,\n    \"note\": \"\",\n    \"transactable_id\": 113,\n    \"transactable_type\": \"Prospect\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/transactions?fields=all","host":["{{host}}"],"path":["v1","transactions"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"3581b6804347f12ac78945138e5e3637\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7f099c1e-2ccf-4f30-b794-a7f78b7f309b"},{"key":"X-Runtime","value":"6.980391"},{"key":"Content-Length","value":"599"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"36\",\n        \"type\": \"transaction\",\n        \"attributes\": {\n            \"account_type\": \"Contact\",\n            \"bank_account_type\": \"operating\",\n            \"payment_method\": \"credit_card\",\n            \"transaction_type\": \"credit\",\n            \"amount_cents\": 5000,\n            \"amount_currency\": \"USD\",\n            \"account_id\": 112,\n            \"external_id\": null,\n            \"created_at\": \"2022-12-27T13:09:52.790-08:00\",\n            \"updated_at\": \"2022-12-27T13:09:52.790-08:00\",\n            \"note\": \"\"\n        },\n        \"relationships\": {\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"5\",\n                    \"type\": \"user\"\n                }\n            },\n            \"account\": {\n                \"data\": {\n                    \"id\": \"112\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"prospect\": {\n                \"data\": {\n                    \"id\": \"113\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"invoice\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"invoice\"\n                }\n            },\n            \"trust_fund_request\": {\n                \"data\": null\n            }\n        }\n    }\n}"}],"_postman_id":"11e08754-5d64-4bae-8a46-2b53e52d9b00"}],"id":"04fb0030-a8fe-48b3-b811-d18159325106","_postman_id":"04fb0030-a8fe-48b3-b811-d18159325106","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Phone Numbers","item":[{"name":"Phone Number","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/phone_numbers`, function (err, response) {","   pm.globals.set(\"phone_number_id\", response.json().data[0].id);","});","pm.globals.get(\"variable_key\");"],"type":"text/javascript","packages":{}}}],"id":"be7bf4e8-1a37-4ae7-b118-b331b24404a9","request":{"method":"GET","header":[],"url":"{{host}}/v1/phone_numbers/:phone_number_id","description":"<p>A specific <strong>Phone Number</strong> by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","phone_numbers",":phone_number_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{phone_number_id}}","key":"phone_number_id"}]}},"response":[{"id":"9f9e9cd8-8909-401f-a035-5470750f64f4","name":"GET Phone Number","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/phone_numbers/:phone_number_id","host":["{{host}}"],"path":["v1","phone_numbers",":phone_number_id"],"variable":[{"key":"phone_number_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"023420c04dcd3571464273ca50735bf3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b0a05a6a-501e-42a7-8913-85ba28f4962e"},{"key":"X-Runtime","value":"0.035958"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"514\",\n        \"type\": \"phone_number\",\n        \"attributes\": {\n            \"label\": \"Primary\",\n            \"info\": \"9989888888\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"520\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"be7bf4e8-1a37-4ae7-b118-b331b24404a9"},{"name":"Phone Numbers","id":"7e6442ff-56a7-4fb9-9664-ea8cfeb877fa","request":{"method":"GET","header":[],"url":"{{host}}/v1/phone_numbers","description":"<p>A <strong>paginated</strong> list of all <strong>Phone Numbers</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>label</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>info</code></td>\n<td>string</td>\n<td>The actual phone number value</td>\n</tr>\n<tr>\n<td><code>is_valid</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>informationable_type</code></td>\n<td>string</td>\n<td>One of <code>Prospect</code>, <code>Contact</code>, <code>Company</code>, <code>Firm</code></td>\n</tr>\n<tr>\n<td><code>informationable_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","phone_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b79e992a-10c5-4d45-94ce-388124a6260e","name":"GET Phone Numbers","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/phone_numbers?fields=all","host":["{{host}}"],"path":["v1","phone_numbers"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"0a0f4ad0870405d6fe1372cb5833b19d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5518c191-a0f5-4017-b5f1-feda9343b800"},{"key":"X-Runtime","value":"0.077484"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"514\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"9989888888\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"520\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"512\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"9989888888\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"519\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"503\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"58\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"502\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Other\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"58\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"499\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"800-555-1234\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"58\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"497\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"123-123-1234\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"534\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"495\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"800-987-6543\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"57\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"493\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"55\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"492\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Other\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"55\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"489\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"800-555-1234\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"55\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"487\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"54\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"486\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Other\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"54\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"483\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"800-555-1234\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"54\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"481\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"53\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"480\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Other\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"53\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"477\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"800-555-1234\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"53\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"475\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"52\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"474\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"52\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"471\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"51\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"470\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"51\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"467\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"50\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"466\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"50\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"463\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Home\",\n                \"info\": \"916-234-5677\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"49\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"462\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"916-235-5678\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"49\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"459\",\n            \"type\": \"phone_number\",\n            \"attributes\": {\n                \"label\": \"Primary\",\n                \"info\": \"800-555-1234\"\n            },\n            \"relationships\": {\n                \"informationable\": {\n                    \"data\": {\n                        \"id\": \"49\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 6,\n        \"limit_per_page\": 25,\n        \"total_entries\": 143\n    },\n    \"links\": {\n        \"self\": \"/v1/phone_numbers?page=1\",\n        \"next\": \"/v1/phone_numbers?page=2\"\n    }\n}"}],"_postman_id":"7e6442ff-56a7-4fb9-9664-ea8cfeb877fa"},{"name":"Create Phone Number","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_phone_number_id\", jsonData.data.id);","}"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});",""],"type":"text/javascript","packages":{}}}],"id":"18077166-b48a-44ee-801d-980e74f45ce2","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"label","value":"Test","type":"text"},{"key":"info","value":"123-123-1234","type":"text"},{"key":"informationable_type","value":"Prospect","type":"text"},{"key":"informationable_id","value":"{{prospect_id}}","type":"text"}]},"url":"{{host}}/v1/phone_numbers","description":"<p>Create a new <strong>Phone Number</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>label</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Mobile\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>info</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"123-456-7890\"</code></td>\n<td>Digits, <code>+</code>, and <code>-</code> only — any letters are rejected with a 422</td>\n</tr>\n<tr>\n<td><code>informationable_type</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Prospect</code>, <code>Contact</code>, <code>Company</code>, <code>Firm</code> (case-insensitive; <code>matter</code> also accepted). Required unless <code>Firm</code></td>\n</tr>\n<tr>\n<td><code>informationable_id</code></td>\n<td>id</td>\n<td>Conditional</td>\n<td><code>\"12345\"</code></td>\n<td>Required for all <code>informationable_type</code> values except <code>Firm</code></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Setting the Phone Number on a <code>Prospect</code> (Matter) sets it on the Matter's linked <strong>Contact</strong>/<strong>Company</strong>, not the Matter itself.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> Only one <code>label: \"Primary\"</code> Phone Number is allowed per owner — a second one returns a 422.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","phone_numbers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"29e5be14-a0c9-4755-8c5b-15e04e6fc238","name":"Create Phone Number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"label\": \"Primary\",\n    \"info\": \"123-123-1234\",\n    \"informationable_type\": \"Prospect\",\n    \"informationable_id\": {{prospect_id}}\n}"},"url":"{{host}}/v1/phone_numbers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"0bb9bf7e364b85cb5d9874c337c65015\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5f2e9650-9cea-4d1d-8797-e1b2882d907e"},{"key":"X-Runtime","value":"0.658682"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"514\",\n        \"type\": \"phone_number\",\n        \"attributes\": {\n            \"label\": \"Primary\",\n            \"info\": \"9989888888\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"520\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"18077166-b48a-44ee-801d-980e74f45ce2"},{"name":"Update Phone Number","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/phone_numbers`, function (err, response) {","   pm.globals.set(\"phone_number_id\", response.json().data[0].id);","});","",""],"type":"text/javascript","packages":{}}}],"id":"f4e19df2-0963-4009-b76a-608b5782b3eb","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"info\": \"123-123-5555\",\n    \"informationable_type\": \"Prospect\",\n    \"informationable_id\": {{prospect_id}}\n}"},"url":"{{host}}/v1/phone_numbers/:phone_number_id","description":"<p>Updates a <strong>Phone Number</strong> by id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","phone_numbers",":phone_number_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{phone_number_id}}","key":"phone_number_id"}]}},"response":[{"id":"f135baac-e5ff-456e-87a9-f51f5f676ab6","name":"PUT Update Phone Number","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"info\": \"123-123-5555\",\n    \"informationable_type\": \"Prospect\",\n    \"informationable_id\": {{prospect_id}}\n}"},"url":{"raw":"{{host}}/v1/phone_numbers/:phone_number_id","host":["{{host}}"],"path":["v1","phone_numbers",":phone_number_id"],"variable":[{"key":"phone_number_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"70eacefabeb03bb05747a5f81bb9e037\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1d4bbe14-2d41-4d98-80b5-9064fe7c7fac"},{"key":"X-Runtime","value":"0.023382"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"514\",\n        \"type\": \"phone_number\",\n        \"attributes\": {\n            \"label\": \"Primary\",\n            \"info\": \"9989888888\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"520\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"f4e19df2-0963-4009-b76a-608b5782b3eb"},{"name":"Delete Phone Number","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/phone_numbers`, function (err, response) {","   pm.globals.set(\"phone_number_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"2be8aa76-1e40-4e97-a495-9530805df0c1","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/phone_numbers/:phone_number_id","description":"<p>Delete a <strong>Phone Number</strong></p>\n<p><strong>phone_number_id</strong>: ID of the <strong>Phone Number</strong> to delete</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","phone_numbers",":phone_number_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{phone_number_id}}","key":"phone_number_id"}]}},"response":[{"id":"63d6f770-0689-4f02-b745-2f90d0678513","name":"DEL Delete Phone Number","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/phone_numbers/:phone_number_id","host":["{{host}}"],"path":["v1","phone_numbers",":phone_number_id"],"variable":[{"key":"phone_number_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"0bb9bf7e364b85cb5d9874c337c65015\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"158d9cf4-821a-4658-b19c-21d1162be334"},{"key":"X-Runtime","value":"0.116284"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"514\",\n        \"type\": \"phone_number\",\n        \"attributes\": {\n            \"label\": \"Primary\",\n            \"info\": \"9989888888\"\n        },\n        \"relationships\": {\n            \"informationable\": {\n                \"data\": {\n                    \"id\": \"520\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"2be8aa76-1e40-4e97-a495-9530805df0c1"}],"id":"482aa1ca-2aa0-483e-919e-cd0b1e91b3b1","description":"<p>A <strong>Phone Number</strong> is contact information that belongs to a <strong>Firm</strong>, <strong>Contact</strong>, or <strong>Company.</strong></p>\n","_postman_id":"482aa1ca-2aa0-483e-919e-cd0b1e91b3b1","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Tags","item":[{"name":"Tag","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tags`, function (err, response) {","   pm.globals.set(\"tag_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"36a1dfd1-e464-40b2-93a3-d3c2cc5f3a1a","request":{"method":"GET","header":[],"url":"{{host}}/v1/tags/:tag_id","description":"<p>A specific Tag in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tags",":tag_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{tag_id}}","key":"tag_id"}]}},"response":[{"id":"231cab66-cae2-439c-9bf6-3f613883a4e2","name":"GET Tag","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tags/1?fields=all","host":["{{host}}"],"path":["v1","tags","1"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"e6d1c3b73e2d26e5c69f1b6d6c3d91dd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9820363e-3472-4b65-a961-3b19e44ba00b"},{"key":"X-Runtime","value":"0.034883"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"tag\",\n        \"attributes\": {\n            \"name\": \"test\",\n            \"description\": null,\n            \"color\": null,\n            \"created_at\": \"2022-03-07T09:49:33.433-08:00\",\n            \"updated_at\": \"2022-03-07T09:49:33.433-08:00\"\n        }\n    }\n}"}],"_postman_id":"36a1dfd1-e464-40b2-93a3-d3c2cc5f3a1a"},{"name":"Tags","id":"f750f66f-c54c-4de7-9100-497258c29a91","request":{"method":"GET","header":[],"url":"{{host}}/v1/tags","description":"<p>A <strong>paginated</strong> list of all Tags in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>key</code></td>\n<td>string</td>\n<td>Filterable, but never returned in the response (not even with <code>fields=all</code>) — it is derived from <code>name</code> and not part of the serialized output</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Valid Shortcuts:</strong> <code>matter_id</code>, <code>prospect_id</code>, <code>contact_id</code>, <code>company_id</code>, <code>task_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tags"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"e6612b1d-476b-4648-b51c-16f3ec656bc2","name":"GET Tags","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tags?fields=all","host":["{{host}}"],"path":["v1","tags"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"4\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"name\": \"aeee\",\n                \"description\": null,\n                \"color\": \"#7997c9\",\n                \"created_at\": \"2022-03-08T04:56:46.862-08:00\",\n                \"updated_at\": \"2022-03-15T11:19:10.106-07:00\"\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test 3\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-08T04:56:42.595-08:00\",\n                \"updated_at\": \"2022-03-08T04:56:42.595-08:00\"\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test2\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:38.432-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:38.432-08:00\"\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:33.433-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:33.433-08:00\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 4\n    },\n    \"links\": {\n        \"self\": \"/v1/tags?page=1\"\n    }\n}"},{"id":"79b723fe-6d01-4dda-af6c-8ad6dcece737","name":"GET Tags by Matter","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tags?filter_by=matter_id&filter_on=17","host":["{{host}}"],"path":["v1","tags"],"query":[{"key":"filter_by","value":"matter_id"},{"key":"filter_on","value":"17"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"4\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"name\": \"aeee\",\n                \"description\": null,\n                \"color\": \"#7997c9\",\n                \"created_at\": \"2022-03-08T04:56:46.862-08:00\",\n                \"updated_at\": \"2022-03-15T11:19:10.106-07:00\"\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test 3\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-08T04:56:42.595-08:00\",\n                \"updated_at\": \"2022-03-08T04:56:42.595-08:00\"\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test2\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:38.432-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:38.432-08:00\"\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:33.433-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:33.433-08:00\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 4\n    },\n    \"links\": {\n        \"self\": \"/v1/tags?page=1\"\n    }\n}"},{"id":"0cb72bf6-37bf-47c3-a3ca-13494015806b","name":"GET Tags by Contact","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tags?filter_by=contact_id&filter_on=17","host":["{{host}}"],"path":["v1","tags"],"query":[{"key":"filter_by","value":"contact_id"},{"key":"filter_on","value":"17"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"4\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"name\": \"aeee\",\n                \"description\": null,\n                \"color\": \"#7997c9\",\n                \"created_at\": \"2022-03-08T04:56:46.862-08:00\",\n                \"updated_at\": \"2022-03-15T11:19:10.106-07:00\"\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test 3\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-08T04:56:42.595-08:00\",\n                \"updated_at\": \"2022-03-08T04:56:42.595-08:00\"\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test2\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:38.432-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:38.432-08:00\"\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:33.433-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:33.433-08:00\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 4\n    },\n    \"links\": {\n        \"self\": \"/v1/tags?page=1\"\n    }\n}"},{"id":"a42f18c3-81c0-4309-add8-ae93d094be19","name":"GET Tags by Company","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tags?filter_by=company_id&filter_on=17","host":["{{host}}"],"path":["v1","tags"],"query":[{"key":"filter_by","value":"company_id"},{"key":"filter_on","value":"17"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"4\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"name\": \"aeee\",\n                \"description\": null,\n                \"color\": \"#7997c9\",\n                \"created_at\": \"2022-03-08T04:56:46.862-08:00\",\n                \"updated_at\": \"2022-03-15T11:19:10.106-07:00\"\n            }\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test 3\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-08T04:56:42.595-08:00\",\n                \"updated_at\": \"2022-03-08T04:56:42.595-08:00\"\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test2\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:38.432-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:38.432-08:00\"\n            }\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"tag\",\n            \"attributes\": {\n                \"title\": \"test\",\n                \"description\": null,\n                \"color\": null,\n                \"created_at\": \"2022-03-07T09:49:33.433-08:00\",\n                \"updated_at\": \"2022-03-07T09:49:33.433-08:00\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 4\n    },\n    \"links\": {\n        \"self\": \"/v1/tags?page=1\"\n    }\n}"}],"_postman_id":"f750f66f-c54c-4de7-9100-497258c29a91"},{"name":"Update Tag","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tags`, function (err, response) {","   pm.globals.set(\"tag_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"08d17bc2-1e5f-497a-a4e5-096c68501fd2","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Updated Tag 8a4077f2-9ecb-45e2-b299-42e8776b38b8\",\n    \"color\": \"#554433\",\n\t\"description\": \"One tag to rule them all\"\n}"},"url":"{{host}}/v1/tags/:tag_id","description":"<p>Update an existing <strong>Tag</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"VIP\"</td>\n<td></td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"#8fc1d8\"</td>\n<td>Rendered directly as a raw CSS <code>background-color</code> value — any valid CSS color string works via this API (hex, <code>rgb()</code>, named colors, etc.), not just hex. The app's own UI sets this through a <em>separate</em> color picker (click the colored dot on a tag chip, not the create form), restricted to a fixed 21-color preset palette: <code>#FF8800</code>, <code>#FFB980</code>, <code>#C23D3D</code>, <code>#CE6464</code>, <code>#FFC017</code>, <code>#E3A500</code>, <code>#4397BE</code>, <code>#8FC1D8</code>, <code>#C72575</code>, <code>#E46EA9</code>, <code>#9E4487</code>, <code>#757F8F</code>, <code>#7997C9</code>, <code>#6519FA</code>, <code>#70B08B</code>, <code>#A8CA45</code>, <code>#EDBE30</code>, <code>#A7783B</code>, <code>#DE5E1C</code>, <code>#80231C</code>, <code>#F70303</code>. Use one of these to visually match the app</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>No</td>\n<td>\"High priority clients\"</td>\n<td>Accepted by the API, but not currently surfaced anywhere in the app's own Tag UI</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tags",":tag_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{tag_id}}","key":"tag_id"}]}},"response":[{"id":"9b4bbc7f-ba03-4ef1-a448-5607626d90d2","name":"PUT Update Task","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Updated Tag\",\n    \"color\": \"#554433\",\n\t\"description\": \"A tag to rule them all\"\n}"},"url":{"raw":"{{host}}/v1/tags/1?fields=all","host":["{{host}}"],"path":["v1","tags","1"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"tag\",\n        \"attributes\": {\n            \"name\": \"Updated Tag\",\n            \"color\": \"#554433\"\n        }\n    }\n}"}],"_postman_id":"08d17bc2-1e5f-497a-a4e5-096c68501fd2"},{"name":"Delete Tag","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tags`, function (err, response) {","   pm.globals.set(\"tag_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"f9ee731a-410e-4eb4-bf9c-f7a9f1795015","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/tags/:tag_id","description":"<p>Delete a Tag</p>\n<p><strong>tag_id</strong>: ID of the tag to delete</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tags",":tag_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{tag_id}}","key":"tag_id"}]}},"response":[{"id":"a2ab8b66-4fd3-4022-ad5e-7bb19373a97a","name":"DELETE Delete Tag","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/tags/:tag_id?fields=all","host":["{{host}}"],"path":["v1","tags",":tag_id"],"query":[{"key":"fields","value":"all"}],"variable":[{"key":"tag_id","value":null}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"tag\",\n        \"attributes\": {\n            \"name\": \"Updated Tag\",\n            \"color\": \"#554433\"\n        }\n    }\n}"}],"_postman_id":"f9ee731a-410e-4eb4-bf9c-f7a9f1795015"},{"name":"Create Tag","id":"a941096f-b2e4-4815-b5c5-304a66b31421","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Tag c559a9c3-1f3d-4597-90ef-722eae8adb02\",\n    \"color\": \"#554433\",\n\t\"description\": \"A tag to rule them all\"\n}"},"url":"{{host}}/v1/tags","description":"<p>Create a new <strong>Tag</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"VIP\"</code></td>\n<td>Whitespace is squished on save. Uniqueness is case-insensitive on the normalized value — <code>\"VIP\"</code> and <code>\"vip\"</code> collide</td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"#8fc1d8\"</code></td>\n<td>Rendered directly as a raw CSS <code>background-color</code> value, so any valid CSS color string works via this API (hex, <code>rgb()</code>, named colors, etc.) — not just hex. The app's own UI sets this through a <em>separate</em> color picker (click the colored dot on a tag chip, not the create form), restricted to a fixed 21-color preset palette: <code>#FF8800</code>, <code>#FFB980</code>, <code>#C23D3D</code>, <code>#CE6464</code>, <code>#FFC017</code>, <code>#E3A500</code>, <code>#4397BE</code>, <code>#8FC1D8</code>, <code>#C72575</code>, <code>#E46EA9</code>, <code>#9E4487</code>, <code>#757F8F</code>, <code>#7997C9</code>, <code>#6519FA</code>, <code>#70B08B</code>, <code>#A8CA45</code>, <code>#EDBE30</code>, <code>#A7783B</code>, <code>#DE5E1C</code>, <code>#80231C</code>, <code>#F70303</code>. Use one of these to visually match the app</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"High priority clients\"</code></td>\n<td>Accepted by the API, but not currently surfaced anywhere in the app's own Tag UI</td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tags"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"5c66e93b-e1b7-438f-a1af-b59918a54ef8","name":"POST Create Tag","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"New Tag\",\n    \"color\": \"#554433\",\n\t\"description\": \"A tag to rule them all\"\n}"},"url":{"raw":"{{host}}/v1/tags?fields=all","host":["{{host}}"],"path":["v1","tags"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"5\",\n        \"type\": \"tag\",\n        \"attributes\": {\n            \"name\": \"New Tag\",\n            \"color\": \"#554433\"\n        }\n    }\n}"}],"_postman_id":"a941096f-b2e4-4815-b5c5-304a66b31421"},{"name":"Attach Tag","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"fdae40a6-ecb0-49ba-addd-4e1b225bbc3f","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"matter_id\": {{prospect_id}},\n    \"tags\": [\"Existing Tag\", \"Tag to Create\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tags/attach","description":"<p>Attaches tags to a <strong>Matter</strong>, <strong>Contact</strong>, <strong>Company</strong>, or <strong>Task</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>matter_id</code> / <code>contact_id</code> / <code>company_id</code> / <code>task_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td>The ID of the entity to attach tags to. Pass exactly one of these</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td>array of strings</td>\n<td>Yes</td>\n<td><code>[\"VIP\", \"Referral\"]</code></td>\n<td>Tag names to attach. If a tag doesn't exist, it's created</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tags","attach"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"6199c0cb-16ff-4d43-a1bd-9165040713aa","name":"POST Attach Tag","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"matter_id\": 290,\n    \"tags\": [\"Existing Tag\", \"Tag to Create\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tags/attach"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"290\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"John\",\n            \"last_name\": \"Hancock\",\n            \"case_title\": null,\n            \"case_blurb\": null,\n            \"status\": \"pnc\",\n            \"email\": null,\n            \"phone\": null,\n            \"phone_number\": null,\n            \"email_address\": null,\n            \"address\": null,\n            \"photo_url\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Pnc\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 0,\n            \"actual_value_cents\": 0,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": \"2022-05-09T07:16:04.329-07:00\",\n            \"days_since_last_contact\": 22,\n            \"converted_date\": null,\n            \"statute_of_limitations\": null,\n            \"utm_source\": null,\n            \"utm_campaign\": null,\n            \"utm_medium\": null,\n            \"utm_term\": null,\n            \"street\": null,\n            \"street2\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"full_address\": null,\n            \"full_street\": null,\n            \"city_state_zip\": null,\n            \"custom_fields\": [],\n            \"custom_field_values\": {},\n            \"created_at\": \"2022-05-09T07:16:04.203-07:00\",\n            \"updated_at\": \"2022-05-31T16:40:25.234-07:00\",\n            \"last_contacted_date\": \"2022-05-09T07:16:04.329-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": null\n            },\n            \"stage\": {\n                \"data\": null\n            },\n            \"campaign\": {\n                \"data\": null\n            },\n            \"practice_area\": {\n                \"data\": {\n                    \"id\": \"6\",\n                    \"type\": \"practice_area\"\n                }\n            },\n            \"salesperson\": {\n                \"data\": null\n            },\n            \"lead_attorney\": {\n                \"data\": null\n            },\n            \"originating_attorney\": {\n                \"data\": null\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contact\": {\n                \"data\": {\n                    \"id\": \"306\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"company\": {\n                \"data\": null\n            },\n            \"assigned_staff\": {\n                \"data\": []\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"file_requests\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": []\n            },\n            \"phone_numbers\": {\n                \"data\": []\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"tags\": {\n                \"data\": [\n                    {\n                        \"id\": \"4\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"1\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"6\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"8\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"9\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"10\",\n                        \"type\": \"tag\"\n                    }\n                ]\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"fdae40a6-ecb0-49ba-addd-4e1b225bbc3f"},{"name":"Detach Tag","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"f1139685-b1c7-4a9c-bf4f-cab32f255aa4","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"matter_id\": {{prospect_id}},\n    \"tags\": [\"Tag to detach\", \"Another tag to detach\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tags/detach","description":"<p>Detaches tags from a <strong>Matter</strong>, <strong>Contact</strong>, <strong>Company</strong>, or <strong>Task</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>matter_id</code> / <code>contact_id</code> / <code>company_id</code> / <code>task_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>\"12345\"</code></td>\n<td>The ID of the entity to detach tags from. Pass exactly one of these</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td>array of strings</td>\n<td>Yes</td>\n<td><code>[\"VIP\"]</code></td>\n<td>Tag names to detach. If a tag doesn't exist, it's ignored</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tags","detach"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a5ba8ec3-66c7-4b3a-bd1c-a04755f1d7c1","name":"POST Detach Tag","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"matter_id\": 290,\n    \"tags\": [\"Tag to detach\", \"Another tag to detach\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tags/detach"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"290\",\n        \"type\": \"prospect\",\n        \"attributes\": {\n            \"first_name\": \"John\",\n            \"last_name\": \"Hancock\",\n            \"case_title\": null,\n            \"case_blurb\": null,\n            \"status\": \"pnc\",\n            \"email\": null,\n            \"phone\": null,\n            \"phone_number\": null,\n            \"email_address\": null,\n            \"address\": null,\n            \"photo_url\": null,\n            \"birthdate\": null,\n            \"name_prefix\": null,\n            \"middle_name\": null,\n            \"name_suffix\": null,\n            \"sub_status\": \"Pnc\",\n            \"informal_name\": null,\n            \"employer\": null,\n            \"occupation\": null,\n            \"citizenship\": null,\n            \"bio\": null,\n            \"title\": null,\n            \"hobbies\": null,\n            \"social_security\": null,\n            \"age\": null,\n            \"referring_url\": null,\n            \"driver_license\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"timezone\": null,\n            \"estimated_value_cents\": 0,\n            \"actual_value_cents\": 0,\n            \"lead_cost_cents\": 0,\n            \"date_of_last_contact\": \"2022-05-09T07:16:04.329-07:00\",\n            \"days_since_last_contact\": 22,\n            \"converted_date\": null,\n            \"statute_of_limitations\": null,\n            \"utm_source\": null,\n            \"utm_campaign\": null,\n            \"utm_medium\": null,\n            \"utm_term\": null,\n            \"street\": null,\n            \"street2\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zipcode\": null,\n            \"country\": null,\n            \"full_address\": null,\n            \"full_street\": null,\n            \"city_state_zip\": null,\n            \"custom_fields\": [],\n            \"custom_field_values\": {},\n            \"created_at\": \"2022-05-09T07:16:04.203-07:00\",\n            \"updated_at\": \"2022-05-31T16:40:25.234-07:00\",\n            \"last_contacted_date\": \"2022-05-09T07:16:04.329-07:00\"\n        },\n        \"relationships\": {\n            \"source\": {\n                \"data\": null\n            },\n            \"stage\": {\n                \"data\": null\n            },\n            \"campaign\": {\n                \"data\": null\n            },\n            \"practice_area\": {\n                \"data\": {\n                    \"id\": \"6\",\n                    \"type\": \"practice_area\"\n                }\n            },\n            \"salesperson\": {\n                \"data\": null\n            },\n            \"lead_attorney\": {\n                \"data\": null\n            },\n            \"originating_attorney\": {\n                \"data\": null\n            },\n            \"owned_by\": {\n                \"data\": null\n            },\n            \"created_by\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"contact\": {\n                \"data\": {\n                    \"id\": \"306\",\n                    \"type\": \"contact\"\n                }\n            },\n            \"company\": {\n                \"data\": null\n            },\n            \"assigned_staff\": {\n                \"data\": []\n            },\n            \"events\": {\n                \"data\": []\n            },\n            \"file_requests\": {\n                \"data\": []\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"notes\": {\n                \"data\": []\n            },\n            \"tasks\": {\n                \"data\": []\n            },\n            \"emails\": {\n                \"data\": []\n            },\n            \"phone_numbers\": {\n                \"data\": []\n            },\n            \"addresses\": {\n                \"data\": []\n            },\n            \"invoices\": {\n                \"data\": []\n            },\n            \"tags\": {\n                \"data\": [\n                    {\n                        \"id\": \"4\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"1\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"6\",\n                        \"type\": \"tag\"\n                    },\n                    {\n                        \"id\": \"8\",\n                        \"type\": \"tag\"\n                    }\n                ]\n            },\n            \"relationships\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"f1139685-b1c7-4a9c-bf4f-cab32f255aa4"}],"id":"3c6e833f-ae89-442a-a95a-be04f123191d","_postman_id":"3c6e833f-ae89-442a-a95a-be04f123191d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Tasks","item":[{"name":"Task","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","   pm.globals.set(\"task_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"f4c8dea6-3ffd-40aa-bd99-3c0de81b6f37","request":{"method":"GET","header":[],"url":"{{host}}/v1/tasks/:task_id","description":"<p>A specific <strong>Task</strong> in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"}]}},"response":[{"id":"225d2ad9-0880-44e3-9b85-ce780e8e0fac","name":"GET Task","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks/2?fields=all","host":["{{host}}"],"path":["v1","tasks","2"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"e6d1c3b73e2d26e5c69f1b6d6c3d91dd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9820363e-3472-4b65-a961-3b19e44ba00b"},{"key":"X-Runtime","value":"0.034883"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"117\",\n        \"type\": \"task\",\n        \"attributes\": {\n            \"name\": \"Brand new updated task\",\n            \"description\": \"The updated new description\",\n            \"due_date\": \"2023-08-25T00:00:00.000-07:00\",\n            \"done\": false,\n            \"status\": \"No Status\",\n            \"priority\": \"high\",\n            \"tags\": [\n                {\n                    \"id\": 2,\n                    \"firm_id\": 1,\n                    \"name\": \"nevermindd\",\n                    \"key\": \"nevermindd\",\n                    \"description\": null,\n                    \"color\": null,\n                    \"created_at\": \"2023-04-24T16:11:25.082-07:00\",\n                    \"updated_at\": \"2023-04-24T21:48:51.112-07:00\"\n                }\n            ],\n            \"assigned_by_id\": 2,\n            \"recurrence_rule\": {\n                \"type\": \"weekly\",\n                \"end_date\": \"08/30/2023\",\n                \"wednesday\": true\n            },\n            \"created_at\": \"2023-07-05T10:49:06.424-07:00\",\n            \"updated_at\": \"2023-07-05T10:51:40.650-07:00\"\n        },\n        \"relationships\": {\n            \"users\": {\n                \"data\": [\n                    {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                ]\n            },\n            \"taskable\": {\n                \"data\": {\n                    \"id\": \"471\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"f4c8dea6-3ffd-40aa-bd99-3c0de81b6f37"},{"name":"Tasks","id":"d32b0393-936d-4773-ad5c-0c7781d14c48","request":{"method":"GET","header":[],"url":"{{host}}/v1/tasks","description":"<p>A <strong>paginated</strong> list of all <strong>Tasks</strong> in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>text</td>\n<td></td>\n</tr>\n<tr>\n<td><code>done</code></td>\n<td>boolean</td>\n<td></td>\n</tr>\n<tr>\n<td><code>due_date</code></td>\n<td>datetime</td>\n<td></td>\n</tr>\n<tr>\n<td><code>priority</code></td>\n<td>integer</td>\n<td>Raw integer only: <code>low</code>=0, <code>medium</code>=1, <code>high</code>=2</td>\n</tr>\n<tr>\n<td><code>task_status_id</code></td>\n<td>id</td>\n<td></td>\n</tr>\n<tr>\n<td><code>assigned_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n<tr>\n<td><code>created_by_id</code></td>\n<td>id</td>\n<td>User id</td>\n</tr>\n<tr>\n<td><code>taskable_type</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>status</code> is not a filterable field (returns a 422) — use <code>task_status_id</code> instead. </p>\n</blockquote>\n<p><strong>Valid Shortcuts:</strong> <code>user_id</code>, <code>matter_id</code>, <code>prospect_id</code>, <code>contact_id</code>, <code>company_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"feb812d7-b854-4a51-96ea-898166aed5c9","name":"GET Tasks","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks?fields=all","host":["{{host}}"],"path":["v1","tasks"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"3\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"Pinky\",\n                \"description\": \"Think of a plan\",\n                \"due_date\": \"2022-06-28T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [\n                    {\n                        \"id\": 2,\n                        \"firm_id\": 2,\n                        \"name\": \"test\",\n                        \"key\": \"test\",\n                        \"description\": null,\n                        \"color\": \"#8fc1d8\",\n                        \"created_at\": \"2022-06-07T14:28:31.081-07:00\",\n                        \"updated_at\": \"2022-06-07T14:47:13.127-07:00\"\n                    }\n                ],\n                \"created_at\": \"2022-06-17T18:05:05.702-07:00\",\n                \"updated_at\": \"2022-06-17T18:05:49.602-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": null\n                }\n            }\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"The Brain\",\n                \"description\": \"Take over the world\",\n                \"due_date\": \"2022-06-30T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T17:26:45.659-07:00\",\n                \"updated_at\": \"2022-06-17T18:01:56.394-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"9\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/tasks?page=1\"\n    }\n}"},{"id":"608e9a2a-0603-4c79-af30-607920dac32d","name":"GET Tasks by Matter","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks?filter_by=matter_id&filter_on=68","host":["{{host}}"],"path":["v1","tasks"],"query":[{"key":"filter_by","value":"matter_id"},{"key":"filter_on","value":"68"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"5\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"another task\",\n                \"description\": \"last one\",\n                \"due_date\": \"2022-07-02T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T18:14:03.977-07:00\",\n                \"updated_at\": \"2022-06-17T18:14:04.022-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"68\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"4\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"test\",\n                \"description\": \"test task for matter\",\n                \"due_date\": \"2022-06-27T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T18:12:44.753-07:00\",\n                \"updated_at\": \"2022-06-17T18:12:44.781-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"68\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/tasks?page=1\"\n    }\n}"},{"id":"bbca8d25-9988-4175-9e45-8cf43f4067e8","name":"GET Tasks by Contact","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks?filter_by=contact_id&filter_on=100","host":["{{host}}"],"path":["v1","tasks"],"query":[{"key":"filter_by","value":"contact_id"},{"key":"filter_on","value":"100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"7\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"Fundraiser\",\n                \"description\": \"\",\n                \"due_date\": \"2022-07-14T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T18:18:34.852-07:00\",\n                \"updated_at\": \"2022-06-17T18:18:34.881-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"100\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"Bake Sale\",\n                \"description\": \"Bake cookies\",\n                \"due_date\": \"2022-07-09T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T18:17:25.939-07:00\",\n                \"updated_at\": \"2022-06-17T18:17:25.966-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"100\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/tasks?page=1\"\n    }\n}"},{"id":"6728ec66-fb2a-456d-9a1d-a50f6c2e7fd4","name":"GET Tasks by Client","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks?filter_by=client_id&filter_on=12","host":["{{host}}"],"path":["v1","tasks"],"query":[{"key":"filter_by","value":"client_id"},{"key":"filter_on","value":"12"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"8\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"Test\",\n                \"description\": \"\",\n                \"due_date\": \"2022-07-14T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T18:18:34.852-07:00\",\n                \"updated_at\": \"2022-06-17T18:18:34.881-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"client\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"Test task\",\n                \"description\": \"Task description\",\n                \"due_date\": \"2022-07-09T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T18:17:25.939-07:00\",\n                \"updated_at\": \"2022-06-17T18:17:25.966-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"12\",\n                        \"type\": \"client\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/tasks?page=1\"\n    }\n}"},{"id":"ae2d14e6-531d-4e5e-9321-77f6ea2b95ff","name":"GET Tasks by Company","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks?filter_by=company_id&filter_on=1","host":["{{host}}"],"path":["v1","tasks"],"query":[{"key":"filter_by","value":"company_id"},{"key":"filter_on","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"10\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"New Task\",\n                \"description\": \"An important piece of work to be made until it's due date\",\n                \"due_date\": \"2022-05-30T00:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"created_at\": \"2022-06-17T18:23:22.428-07:00\",\n                \"updated_at\": \"2022-06-17T18:23:22.428-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                },\n                \"taskable\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"company\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 1\n    },\n    \"links\": {\n        \"self\": \"/v1/tasks?page=1\"\n    }\n}"},{"id":"264ea558-252a-422c-991b-5def937fdc2f","name":"GET Tasks by User","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks?filter_by=user_id&filter_on=17","host":["{{host}}"],"path":["v1","tasks"],"query":[{"key":"filter_by","value":"user_id"},{"key":"filter_on","value":"17"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5103620a7c52c48c5c4b4171c40368f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f5274ef-b4ac-4875-87be-84a6cc0eee17"},{"key":"X-Runtime","value":"0.107811"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"209\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"Task 1\",\n                \"description\": \"\",\n                \"due_date\": \"2022-05-11T20:00:00.000-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"taskable_type\": \"User\",\n                \"taskable_id\": 17,\n                \"created_at\": \"2022-05-06T12:00:57.968-07:00\",\n                \"updated_at\": \"2022-05-06T12:38:17.337-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"2\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                }\n            }\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"task\",\n            \"attributes\": {\n                \"name\": \"Task 2\",\n                \"description\": null,\n                \"due_date\": \"2022-05-03T08:02:14.045-07:00\",\n                \"done\": false,\n                \"priority\": \"low\",\n                \"tags\": [],\n                \"taskable_type\": \"User\",\n                \"taskable_id\": 17,\n                \"created_at\": \"2022-05-03T08:02:14.076-07:00\",\n                \"updated_at\": \"2022-05-03T08:02:14.076-07:00\"\n            },\n            \"relationships\": {\n                \"users\": {\n                    \"data\": [\n                        {\n                            \"id\": \"3\",\n                            \"type\": \"user\"\n                        }\n                    ]\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 2\n    },\n    \"links\": {\n        \"self\": \"/v1/tasks?page=1\"\n    }\n}"}],"_postman_id":"d32b0393-936d-4773-ad5c-0c7781d14c48"},{"name":"Subtask","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","    task_id = response.json().data[0].id","    pm.globals.set(\"task_id\", task_id);","    pm.sendRequest({url: `${pm.environment.get('host')}/v1/tasks/${task_id}/subtasks`, method: 'POST', body: {body: \"task\", done: false}}, function (err, response) {","        pm.globals.set(\"subtask_id\", response.json().data.id);","    })","    }",");"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{}}}],"id":"7f8636ce-7701-403c-8a30-4cc57ca0a041","request":{"method":"GET","header":[],"url":"{{host}}/v1/tasks/:task_id/subtasks/:subtask_id","description":"<p>A specific <strong>subtask</strong> in tasks in Lawmatics.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","subtasks",":subtask_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"},{"type":"any","value":"{{subtask_id}}","key":"subtask_id"}]}},"response":[{"id":"3620ffbb-9231-4f1b-b1fb-1e4babb6b61f","name":"Subtask","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks/:task_id/subtasks/:subtask_id","host":["{{host}}"],"path":["v1","tasks",":task_id","subtasks",":subtask_id"],"variable":[{"key":"task_id","value":"47"},{"key":"subtask_id","value":"10"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 10,\n    \"body\": \"kab?\",\n    \"order\": 0,\n    \"done\": false,\n    \"task_id\": 47,\n    \"created_at\": \"2023-02-09T14:34:02.173-08:00\",\n    \"updated_at\": \"2023-02-09T14:34:02.173-08:00\",\n    \"deleted_at\": null\n}"}],"_postman_id":"7f8636ce-7701-403c-8a30-4cc57ca0a041"},{"name":"Subtasks","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","   pm.globals.set(\"task_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"362b3b7e-a67d-4c92-8c6c-7b52f57e620e","request":{"method":"GET","header":[],"url":"{{host}}/v1/tasks/:task_id/subtasks","description":"<p>All the <strong>subtasks</strong> that belong to a task in Lawmatics.</p>\n<blockquote>\n<p><strong>Note:</strong> Filtering doesn't reliably work on this endpoint right now — it's likely to return errors instead of results, due to a backend bug. Avoid using <code>filter_by</code> here until it's fixed.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","subtasks"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"}]}},"response":[{"id":"754299df-4d5e-469e-a89b-01a1174cb0c5","name":"GET Subtasks","originalRequest":{"method":"GET","header":[],"url":"{{host}}/tasks/task_id/subtasks"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 10,\n        \"body\": \"kab?\",\n        \"order\": 0,\n        \"done\": false,\n        \"task_id\": 47,\n        \"created_at\": \"2023-02-09T14:34:02.173-08:00\",\n        \"updated_at\": \"2023-02-09T14:34:02.173-08:00\",\n        \"deleted_at\": null\n    },\n    {\n        \"id\": 11,\n        \"body\": \"schi nu\",\n        \"order\": 1,\n        \"done\": false,\n        \"task_id\": 47,\n        \"created_at\": \"2023-06-28T16:04:39.451-07:00\",\n        \"updated_at\": \"2023-06-28T16:04:39.451-07:00\",\n        \"deleted_at\": null\n    }\n]"}],"_postman_id":"362b3b7e-a67d-4c92-8c6c-7b52f57e620e"},{"name":"Comment","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   user_id =  response.json().data[0].id","   pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","    task_id = response.json().data[0].id","    pm.globals.set(\"task_id\", task_id);","    pm.sendRequest({url: `${pm.environment.get('host')}/v1/tasks/${task_id}/comments`, method: 'POST', body: JSON.stringify({ body: \"comment\", \"user_id\": user_id, mentioned_user_ids: [user_id] }), header: {'Content-Type': 'application/json'}})","    pm.sendRequest(`${pm.environment.get('host')}/v1/tasks/${task_id}/comments`, function (err, response) {","        pm.globals.set(\"comment_id\", response.json().data[0].id);","    })","})","})",""],"type":"text/javascript"}}],"id":"b49e21ac-b90c-4ec0-a42c-dd85836c0d28","request":{"method":"GET","header":[],"url":"{{host}}/v1/tasks/:task_id/comments/:comment_id","description":"<p>A specific <strong>comment</strong> on a task in Lawmatics.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","comments",":comment_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"},{"type":"any","value":"{{comment_id}}","key":"comment_id"}]}},"response":[{"id":"8267e202-3df2-4c34-8e31-e78dbf8d03c2","name":"Comment","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks/:task_id/comments/:comment_id","host":["{{host}}"],"path":["v1","tasks",":task_id","comments",":comment_id"],"variable":[{"key":"task_id","value":"45"},{"key":"comment_id","value":"1"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"comment\",\n        \"attributes\": {\n            \"body\": \"<p>eda fer <span class=\\\"mention\\\" style=\\\"font-weight:bold;\\\" data-mention=\\\"@Westeros User\\\" data-user-id=\\\"1\\\">@Westeros User</span>&nbsp;</p>\",\n            \"commentable_type\": \"Task\",\n            \"commentable_id\": 45,\n            \"mentioned_user_ids\": [],\n            \"created_at\": \"2023-02-13T18:07:02.962-08:00\",\n            \"updated_at\": \"2023-06-30T10:36:03.283-07:00\"\n        },\n        \"relationships\": {\n            \"commentable\": {\n                \"data\": {\n                    \"id\": \"45\",\n                    \"type\": \"task\"\n                }\n            },\n            \"comment_mentions\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"b49e21ac-b90c-4ec0-a42c-dd85836c0d28"},{"name":"Comments","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","   pm.globals.set(\"task_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"7e69c1fe-72b9-49be-be13-b2f7594bcd6d","request":{"method":"GET","header":[],"url":"{{host}}/v1/tasks/:task_id/comments","description":"<p>Retrieves all the <strong>comments</strong> on a task in Lawmatics.</p>\n<blockquote>\n<p><strong>Note:</strong> Filtering doesn't reliably work on this endpoint right now — it's likely to return errors instead of results, due to a backend bug. Avoid using <code>filter_by</code> here until it's fixed.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","comments"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"}]}},"response":[{"id":"f8c50016-e2a2-484f-a581-19c589e6921e","name":"Comments","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/tasks/:task_id/comments","host":["{{host}}"],"path":["v1","tasks",":task_id","comments"],"variable":[{"key":"task_id","value":"45"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"42\",\n            \"type\": \"comment\",\n            \"attributes\": {\n                \"body\": \"hello love\",\n                \"commentable_type\": \"Task\",\n                \"commentable_id\": 45,\n                \"mentioned_user_ids\": [\n                    1\n                ],\n                \"created_at\": \"2023-06-30T15:32:37.617-07:00\",\n                \"updated_at\": \"2023-06-30T15:32:37.617-07:00\"\n            },\n            \"relationships\": {\n                \"commentable\": {\n                    \"data\": {\n                        \"id\": \"45\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"comment_mentions\": {\n                    \"data\": [\n                        {\n                            \"id\": \"6\",\n                            \"type\": \"comment_mention\"\n                        }\n                    ]\n                }\n            }\n        },\n        {\n            \"id\": \"41\",\n            \"type\": \"comment\",\n            \"attributes\": {\n                \"body\": \"hello love\",\n                \"commentable_type\": \"Task\",\n                \"commentable_id\": 45,\n                \"mentioned_user_ids\": [\n                    5\n                ],\n                \"created_at\": \"2023-06-30T15:23:53.113-07:00\",\n                \"updated_at\": \"2023-06-30T15:23:53.113-07:00\"\n            },\n            \"relationships\": {\n                \"commentable\": {\n                    \"data\": {\n                        \"id\": \"45\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"comment_mentions\": {\n                    \"data\": [\n                        {\n                            \"id\": \"5\",\n                            \"type\": \"comment_mention\"\n                        }\n                    ]\n                }\n            }\n        },\n        {\n            \"id\": \"40\",\n            \"type\": \"comment\",\n            \"attributes\": {\n                \"body\": \"hello love\",\n                \"commentable_type\": \"Task\",\n                \"commentable_id\": 45,\n                \"mentioned_user_ids\": [\n                    5\n                ],\n                \"created_at\": \"2023-06-30T15:23:27.911-07:00\",\n                \"updated_at\": \"2023-06-30T15:23:27.911-07:00\"\n            },\n            \"relationships\": {\n                \"commentable\": {\n                    \"data\": {\n                        \"id\": \"45\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"comment_mentions\": {\n                    \"data\": [\n                        {\n                            \"id\": \"4\",\n                            \"type\": \"comment_mention\"\n                        }\n                    ]\n                }\n            }\n        },\n        {\n            \"id\": \"39\",\n            \"type\": \"comment\",\n            \"attributes\": {\n                \"body\": \"hello love\",\n                \"commentable_type\": \"Task\",\n                \"commentable_id\": 45,\n                \"mentioned_user_ids\": [],\n                \"created_at\": \"2023-06-30T15:22:11.096-07:00\",\n                \"updated_at\": \"2023-06-30T15:22:11.096-07:00\"\n            },\n            \"relationships\": {\n                \"commentable\": {\n                    \"data\": {\n                        \"id\": \"45\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"comment_mentions\": {\n                    \"data\": []\n                }\n            }\n        },\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 4\n    },\n    \"links\": {\n        \"self\": \"/v1/tasks?page=1\"\n    }\n}}"}],"_postman_id":"7e69c1fe-72b9-49be-be13-b2f7594bcd6d"},{"name":"Create Task","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_task_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/tags`, function (err, response) {","   pm.globals.set(\"tag_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"25271951-24f9-483f-b7c3-ee74dc42e378","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"A brand new task\",\n\t\"description\": \"An important piece of work to be made until it's due date\",\n\t\"due_date\": \"07/30/2023\",\n\t\"user_ids\": [{{user_id}}],\n\t\"priority\": \"low\",\n    \"taskable_id\": {{prospect_id}},\n    \"taskable_type\": \"Prospect\",\n\t\"done\": false,\n    \"tag_ids\": [{{tag_id}}],\n    \"assigned_by_id\": {{user_id}},\n    \"recurrence_rule\": {\n        \"type\": \"daily\",\n        \"frequency\": 2,\n        \"endDate\": \"08/15/2023\"\n    }\n}"},"url":"{{host}}/v1/tasks","description":"<p>Create a new <strong>Task</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Follow up with client\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>due_date</code></td>\n<td>datetime</td>\n<td>Yes</td>\n<td><code>\"2024-01-20T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601. Required by this endpoint even though the column itself allows <code>null</code></td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>text</td>\n<td>No</td>\n<td><code>\"Check on document status\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>priority</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"medium\"</code></td>\n<td>One of <code>low</code> (default), <code>medium</code>, <code>high</code>. Note: An invalid value returns a 500, not a 422</td>\n</tr>\n<tr>\n<td><code>done</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>false</code></td>\n<td>Defaults to <code>false</code></td>\n</tr>\n<tr>\n<td><code>task_status_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>3</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>taskable_type</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Contact\"</code></td>\n<td>One of <code>Prospect</code>/<code>Matter</code>, <code>Contact</code>, <code>Client</code>, <code>Company</code> (case-insensitive) — all four are real, selectable options in the app's own \"Associated With\" picker</td>\n</tr>\n<tr>\n<td><code>taskable_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>\"12345\"</code></td>\n<td>Required if <code>taskable_type</code> is set. Both can be left out entirely — the app itself supports creating a Task with nothing attached</td>\n</tr>\n<tr>\n<td><code>assigned_by_id</code></td>\n<td>id</td>\n<td>No</td>\n<td><code>2</code></td>\n<td>Not validated against your firm — an id from anywhere will be accepted</td>\n</tr>\n<tr>\n<td><code>user_ids</code></td>\n<td>array of ids</td>\n<td>No</td>\n<td><code>[2, 3]</code></td>\n<td>The Users assigned to this Task. Unknown/foreign ids are silently ignored, not an error</td>\n</tr>\n<tr>\n<td><code>tag_ids</code></td>\n<td>array of ids</td>\n<td>No</td>\n<td><code>[5, 8]</code></td>\n<td>Same silent-ignore behavior as <code>user_ids</code> for unknown ids</td>\n</tr>\n<tr>\n<td><code>recurrence_rule</code></td>\n<td>object</td>\n<td>No</td>\n<td><code>{ \"type\": \"weekly\", \"monday\": true, \"friday\": true }</code></td>\n<td>Follows the shape below</td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong><code>recurrence_rule</code> shape</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>One of <code>daily</code>, <code>weekly</code>, <code>monthly</code>, <code>yearly</code></td>\n</tr>\n<tr>\n<td><code>endOption</code></td>\n<td>boolean</td>\n</tr>\n<tr>\n<td><code>endDate</code></td>\n<td>date</td>\n</tr>\n<tr>\n<td><code>frequency</code></td>\n<td>number — used when <code>type</code> is <code>daily</code></td>\n</tr>\n<tr>\n<td><code>sunday</code> / <code>monday</code> / <code>tuesday</code> / <code>wednesday</code> / <code>thursday</code> / <code>friday</code> / <code>saturday</code></td>\n<td>boolean — used when <code>type</code> is <code>weekly</code></td>\n</tr>\n<tr>\n<td><code>monthlyFrequency</code></td>\n<td>number — used when <code>type</code> is <code>monthly</code></td>\n</tr>\n<tr>\n<td><code>dayOfMonth</code></td>\n<td>number — used when <code>type</code> is <code>monthly</code></td>\n</tr>\n<tr>\n<td><code>month</code></td>\n<td>string — used when <code>type</code> is <code>yearly</code></td>\n</tr>\n<tr>\n<td><code>dayOfMonthYear</code></td>\n<td>number — used when <code>type</code> is <code>yearly</code></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>user_id</code> (singular) is not accepted on create — use <code>user_ids</code> (an array) instead, even for a single assignee.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> <code>subtasks</code> is not usable here, despite occasionally appearing as a permitted parameter internally — subtasks can only be created via the separate <code>POST /v1/tasks/:id/subtasks</code> endpoint.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"b962701e-9608-44c2-86ad-6257ab0fc720","name":"POST Create Task","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"A brand new task\",\n\t\"description\": \"An important piece of work to be made until it's due date\",\n\t\"due_date\": \"07/30/2023\",\n\t\"user_ids\": [2],\n\t\"priority\": \"low\",\n    \"taskable_id\": 471,\n    \"taskable_type\": \"Prospect\",\n\t\"done\": false,\n    \"tag_ids\": [1],\n    \"assigned_by_id\": 1,\n    \"recurrence_rule\": {\n        \"type\": \"daily\",\n        \"frequency\": 2,\n        \"endDate\": \"08/15/2023\"\n    }\n}"},"url":"{{host}}/v1/tasks"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"001a367c218ab7d3a938f11a4a896153\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"09bbaf1e-4455-4573-8be2-86d712c9262d"},{"key":"X-Runtime","value":"1.092267"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"117\",\n        \"type\": \"task\",\n        \"attributes\": {\n            \"name\": \"A brand new task\",\n            \"description\": \"An important piece of work to be made until it's due date\",\n            \"due_date\": \"2023-07-30T00:00:00.000-07:00\",\n            \"done\": false,\n            \"status\": \"No Status\",\n            \"priority\": \"low\",\n            \"tags\": [\n                {\n                    \"id\": 1,\n                    \"firm_id\": 1,\n                    \"name\": \"mytag\",\n                    \"key\": \"mytag\",\n                    \"description\": null,\n                    \"color\": null,\n                    \"created_at\": \"2023-04-24T15:51:53.352-07:00\",\n                    \"updated_at\": \"2023-04-24T15:51:53.352-07:00\"\n                }\n            ],\n            \"assigned_by_id\": 1,\n            \"recurrence_rule\": {\n                \"type\": \"daily\",\n                \"frequency\": 2,\n                \"endDate\": \"08/15/2023\"\n            },\n            \"created_at\": \"2023-07-05T10:49:06.424-07:00\",\n            \"updated_at\": \"2023-07-05T10:49:06.450-07:00\"\n        },\n        \"relationships\": {\n            \"users\": {\n                \"data\": []\n            },\n            \"taskable\": {\n                \"data\": {\n                    \"id\": \"471\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"25271951-24f9-483f-b7c3-ee74dc42e378"},{"name":"Create Subtask","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_subtask_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","   pm.globals.set(\"task_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"cda6f01a-1083-43b9-9867-645fe012aba3","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"body\": \"first one\",\n\t\"done\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tasks/:task_id/subtasks","description":"<p>Creates a new <strong>subtask</strong> on a task.</p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>body</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Draft initial paperwork\"</code></td>\n<td>Not enforced by the API — you can technically omit it and get a blank subtask — but treat it as required, since a subtask without a description isn't useful</td>\n</tr>\n<tr>\n<td><code>done</code></td>\n<td>boolean</td>\n<td>No</td>\n<td><code>false</code></td>\n<td>Defaults to <code>false</code></td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Position in the subtask list can't be set directly — new subtasks are automatically appended to the end.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","subtasks"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"}]}},"response":[{"id":"831efe13-d4bc-46cf-a00f-4ae052af4913","name":"Create Subtask","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"body\": \"first one\",\n\t\"done\": false\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/tasks/:task_id/subtasks","host":["{{host}}"],"path":["v1","tasks",":task_id","subtasks"],"variable":[{"key":"task_id","value":"50"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"35\",\n        \"type\": \"subtask\",\n        \"attributes\": {\n            \"body\": \"first one\",\n            \"done\": false,\n            \"order\": 0,\n            \"created_at\": \"2023-06-29T15:11:07.442-07:00\",\n            \"updated_at\": \"2023-06-29T15:11:07.442-07:00\"\n        },\n        \"relationships\": {\n            \"task\": {\n                \"data\": {\n                    \"id\": \"50\",\n                    \"type\": \"task\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"cda6f01a-1083-43b9-9867-645fe012aba3"},{"name":"Create Comment","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_comment_id\", jsonData.data.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","   pm.globals.set(\"task_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"6cce59f5-b8ad-4cf4-8a60-2572b2a3fb75","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"body\": \"A new comment on task\",\n    \"user_id\": {{user_id}},\n    \"mentioned_user_ids\": [{{user_id}}]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tasks/:task_id/comments","description":"<p>Creates a <strong>comment</strong> on a task in Lawmatics.</p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>body</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"Called client to confirm hearing date.\"</code></td>\n<td>Supports basic HTML tags for formatting (e.g. <code>&lt;b&gt;</code>, <code>&lt;i&gt;</code>)</td>\n</tr>\n<tr>\n<td><code>user_id</code></td>\n<td>id</td>\n<td>Yes</td>\n<td><code>2</code></td>\n<td>The User the comment is attributed to</td>\n</tr>\n<tr>\n<td><code>mentioned_user_ids</code></td>\n<td>array of ids</td>\n<td>No</td>\n<td><code>[3, 4]</code></td>\n<td>Notifies these Users via an @mention. Unlike Tasks' <code>user_ids</code>/<code>tag_ids</code>, an invalid id here returns a clear 404 rather than being silently ignored</td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","comments"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"}]}},"response":[{"id":"e4673189-f4bb-4126-8bd2-3348d4862680","name":"Create Comment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"body\": \"A new comment on task\",\n    \"user_id\": 2,\n    \"mentioned_user_ids\": [1]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/tasks/:task_id/comments","host":["{{host}}"],"path":["v1","tasks",":task_id","comments"],"variable":[{"key":"task_id","value":"45"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"45\",\n        \"type\": \"comment\",\n        \"attributes\": {\n            \"body\": \"A new comment on task\",\n            \"commentable_type\": \"Task\",\n            \"commentable_id\": 45,\n            \"mentioned_user_ids\": [\n                1\n            ],\n            \"created_at\": \"2023-07-05T11:14:44.974-07:00\",\n            \"updated_at\": \"2023-07-05T11:14:44.974-07:00\"\n        },\n        \"relationships\": {\n            \"commentable\": {\n                \"data\": {\n                    \"id\": \"45\",\n                    \"type\": \"task\"\n                }\n            },\n            \"comment_mentions\": {\n                \"data\": [\n                    {\n                        \"id\": \"11\",\n                        \"type\": \"comment_mention\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"6cce59f5-b8ad-4cf4-8a60-2572b2a3fb75"},{"name":"Update Task","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","   pm.globals.set(\"task_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/tags`, function (err, response) {","   pm.globals.set(\"tag_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"ec8d4a12-fccb-44c3-b041-8674fe124013","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Brand new updated task\",\n\t\"description\": \"The updated new description\",\n\t\"priority\": \"high\",\n    \"due_date\": \"08/25/2023\",\n\t\"done\": false,\n    \"assigned_by_id\": {{user_id}},\n    \"user_ids\": [{{user_id}}],\n    \"tag_ids\": [{{tag_id}}],\n    \"recurrence_rule\": {\n        \"type\": \"weekly\",\n        \"wednesday\": true,\n        \"end_date\": \"08/30/2023\"\n    }\n}"},"url":"{{host}}/v1/tasks/:task_id?fields=all","description":"<p>Updates a <strong>Task</strong></p>\n<p>Accepts the same fields as Create Task (<code>name</code>, <code>due_date</code>, <code>description</code>, <code>priority</code>, <code>done</code>, <code>task_status_id</code>, <code>taskable_type</code>, <code>taskable_id</code>, <code>assigned_by_id</code>, <code>user_ids</code>, <code>tag_ids</code>, <code>recurrence_rule</code>), but none are required on Update.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id"],"host":["{{host}}"],"query":[{"key":"fields","value":"all"}],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"}]}},"response":[{"id":"ffa30841-ccd0-428e-b674-0dc25fb0a38c","name":"PUT Update Task","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Brand new updated task\",\n\t\"description\": \"The updated new description\",\n\t\"priority\": \"high\",\n    \"due_date\": \"08/25/2023\",\n\t\"done\": false,\n    \"assigned_by_id\": 2,\n    \"user_ids\": [2],\n    \"tag_ids\": [2],\n    \"recurrence_rule\": {\n        \"type\": \"weekly\",\n        \"wednesday\": true,\n        \"end_date\": \"08/30/2023\"\n    }\n}"},"url":{"raw":"{{host}}/v1/tasks/1?fields=all","host":["{{host}}"],"path":["v1","tasks","1"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"117\",\n        \"type\": \"task\",\n        \"attributes\": {\n            \"name\": \"Brand new updated task\",\n            \"description\": \"The updated new description\",\n            \"due_date\": \"2023-08-25T00:00:00.000-07:00\",\n            \"done\": false,\n            \"priority\": \"high\",\n            \"status\": \"No Status\",\n            \"tags\": [\n                {\n                    \"id\": 2,\n                    \"firm_id\": 1,\n                    \"name\": \"nevermindd\",\n                    \"key\": \"nevermindd\",\n                    \"description\": null,\n                    \"color\": null,\n                    \"created_at\": \"2023-04-24T16:11:25.082-07:00\",\n                    \"updated_at\": \"2023-04-24T21:48:51.112-07:00\"\n                }\n            ],\n            \"recurrence_rule\": {\n                \"type\": \"weekly\",\n                \"wednesday\": true,\n                \"end_date\": \"08/30/2023\"\n            },\n            \"assigned_by_id\": 2,\n            \"created_at\": \"2023-07-05T10:49:06.424-07:00\",\n            \"updated_at\": \"2023-07-05T10:51:40.650-07:00\"\n        },\n        \"relationships\": {\n            \"users\": {\n                \"data\": [\n                    {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                ]\n            },\n            \"documents\": {\n                \"data\": []\n            },\n            \"taskable\": {\n                \"data\": {\n                    \"id\": \"471\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"subtasks\": {\n                \"data\": []\n            },\n            \"comments\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"ec8d4a12-fccb-44c3-b041-8674fe124013"},{"name":"Update Subtask","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","    pm.globals.set(\"task_id\", response.json().data[0].id);","    pm.sendRequest(`${pm.environment.get('host')}/v1/tasks/${response.json().data[0].id}/subtasks`, function (err, response) {","        pm.globals.set(\"subtask_id\", response.json().data[0].id);","    })","});"],"type":"text/javascript"}}],"id":"f00e7569-b1ac-4c8f-ae2c-7de3fd480360","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"body\": \"you are awesome number 1\",\n    \"done\": \"false\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tasks/:task_id/subtasks/:subtask_id","description":"<p>Updates a <strong>subtask</strong> on a task.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","subtasks",":subtask_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"},{"type":"any","value":"{{subtask_id}}","key":"subtask_id"}]}},"response":[{"id":"9b9b7976-dbf9-4c8a-89f9-1a3274ab2ea8","name":"Update Subtask","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"body\": \"you are awesome number 1\",\n    \"done\": \"false\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/tasks/:task_id/subtasks/:subtask_id","host":["{{host}}"],"path":["v1","tasks",":task_id","subtasks",":subtask_id"],"variable":[{"key":"task_id","value":"46"},{"key":"subtask_id","value":"26"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"26\",\n        \"type\": \"subtask\",\n        \"attributes\": {\n            \"body\": \"you are awesome number 1\",\n            \"done\": false,\n            \"order\": 1,\n            \"created_at\": \"2023-06-29T12:11:42.971-07:00\",\n            \"updated_at\": \"2023-06-29T15:37:15.140-07:00\"\n        },\n        \"relationships\": {\n            \"task\": {\n                \"data\": {\n                    \"id\": \"46\",\n                    \"type\": \"task\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"f00e7569-b1ac-4c8f-ae2c-7de3fd480360"},{"name":"Update Comment","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","    pm.globals.set(\"task_id\", response.json().data[0].id);","    pm.sendRequest(`${pm.environment.get('host')}/v1/tasks/${response.json().data[0].id}/comments`, function (err, response) {","        pm.globals.set(\"comment_id\", response.json().data[0].id);","    })","});","","pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"9155c026-a4b9-454a-91e1-a3e7f318e1bf","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"body\": \"A new comment on task updated\",\n    \"user_id\": {{user_id}},\n    \"mentioned_user_ids\": [{{user_id}}]\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/tasks/:task_id/comments/:comment_id","description":"<p>Updates a <strong>specific comment</strong> on a task in Lawmatics.</p>\n<p><strong>optional field:</strong> mentioned_user_ids</p>\n<p>mentioned_user_ids: list of user ids.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","comments",":comment_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"},{"type":"any","value":"{{comment_id}}","key":"comment_id"}]}},"response":[{"id":"e746551b-81b3-4717-8d67-6f62c0b52166","name":"Update Comment","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"body\": \"A new comment on task updated\",\n    \"user_id\": 1,\n    \"mentioned_user_ids\": [1,5,6]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/tasks/:task_id/comments/:comment_id","host":["{{host}}"],"path":["v1","tasks",":task_id","comments",":comment_id"],"variable":[{"key":"task_id","value":"45"},{"key":"comment_id","value":"45"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"45\",\n        \"type\": \"comment\",\n        \"attributes\": {\n            \"body\": \"A new comment on task updated\",\n            \"commentable_type\": \"Task\",\n            \"commentable_id\": 45,\n            \"mentioned_user_ids\": [\n                1,\n                5,\n                6\n            ],\n            \"created_at\": \"2023-07-05T11:14:44.974-07:00\",\n            \"updated_at\": \"2023-07-05T11:15:58.840-07:00\"\n        },\n        \"relationships\": {\n            \"commentable\": {\n                \"data\": {\n                    \"id\": \"45\",\n                    \"type\": \"task\"\n                }\n            },\n            \"comment_mentions\": {\n                \"data\": [\n                    {\n                        \"id\": \"11\",\n                        \"type\": \"comment_mention\"\n                    },\n                    {\n                        \"id\": \"12\",\n                        \"type\": \"comment_mention\"\n                    },\n                    {\n                        \"id\": \"13\",\n                        \"type\": \"comment_mention\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"9155c026-a4b9-454a-91e1-a3e7f318e1bf"},{"name":"Delete Task","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","   pm.globals.set(\"task_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"ca037dfa-45e4-493a-93bd-60d5eb01d96a","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/v1/tasks/:task_id","description":"<p>Delete a <strong>Task</strong></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"}]}},"response":[{"id":"6c3783ac-7af7-4f94-a7c0-da3576db5265","name":"DELETE Delete Task","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{host}}/v1/tasks/13?fields=all","host":["{{host}}"],"path":["v1","tasks","13"],"query":[{"key":"fields","value":"all"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Aug 2019 20:48:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=A8F6zBQgbkSA5Fz7WD2Fgmp27ZDzjC2gEc/ltVZU2II31+LnLIWobcdISVCBGzMpJecTpXc8h1HT50kjrHjETL+5IbZmsANsq0AQBVMqHIhWnGufsphme/JJh47W; Expires=Wed, 04 Sep 2019 20:48:10 GMT; Path=/"},{"key":"ETag","value":"W/\"7a02c95c1fc42a7738270cb26d1b8dd5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"46074845-17f0-4946-9b59-fc8528e50f7a"},{"key":"X-Runtime","value":"0.095035"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"13\",\n        \"type\": \"task\",\n        \"attributes\": {\n            \"name\": \"Updated Task\",\n            \"description\": \"The updated tag description\",\n            \"due_date\": \"2022-06-30T00:00:00.000-07:00\",\n            \"done\": false,\n            \"priority\": \"high\",\n            \"tags\": [],\n            \"created_at\": \"2022-06-21T12:53:05.939-07:00\",\n            \"updated_at\": \"2022-06-21T12:57:27.416-07:00\"\n        },\n        \"relationships\": {\n            \"users\": {\n                \"data\": [\n                    {\n                        \"id\": \"2\",\n                        \"type\": \"user\"\n                    }\n                ]\n            },\n            \"taskable\": {\n                \"data\": {\n                    \"id\": \"37\",\n                    \"type\": \"contact\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"ca037dfa-45e4-493a-93bd-60d5eb01d96a"},{"name":"Delete Subtask","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","    pm.globals.set(\"task_id\", response.json().data[0].id);","    pm.sendRequest(`${pm.environment.get('host')}/v1/tasks/${response.json().data[0].id}/subtasks`, function (err, response) {","        pm.globals.set(\"subtask_id\", response.json().data[0].id);","    })","});"],"type":"text/javascript"}}],"id":"aa0e6d56-717a-4f99-9d7e-289361782d8a","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/tasks/:task_id/subtasks/:subtask_id","description":"<p>Deletes a <strong>subtask</strong> from a task.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","subtasks",":subtask_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"},{"type":"any","value":"{{subtask_id}}","key":"subtask_id"}]}},"response":[{"id":"5863edd5-500e-44c3-9550-26fbf4aa270b","name":"Delete Subtask","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/tasks/:task_id/subtasks/:subtask_id","host":["{{host}}"],"path":["v1","tasks",":task_id","subtasks",":subtask_id"],"variable":[{"key":"task_id","value":"46"},{"key":"subtask_id","value":"46"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"46\",\n        \"type\": \"subtask\",\n        \"attributes\": {\n            \"body\": \"hamne\",\n            \"done\": true,\n            \"order\": 0,\n            \"created_at\": \"2023-02-09T14:31:31.631-08:00\",\n            \"updated_at\": \"2023-06-29T14:12:37.048-07:00\"\n        },\n        \"relationships\": {\n            \"task\": {\n                \"data\": {\n                    \"id\": \"46\",\n                    \"type\": \"task\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"aa0e6d56-717a-4f99-9d7e-289361782d8a"},{"name":"Delete Comment","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/tasks`, function (err, response) {","    pm.globals.set(\"task_id\", response.json().data[0].id);","    pm.sendRequest(`${pm.environment.get('host')}/v1/tasks/${response.json().data[0].id}/comments`, function (err, response) {","        pm.globals.set(\"comment_id\", response.json().data[0].id);","    })","});"],"type":"text/javascript"}}],"id":"cdc47455-e260-40b5-a564-60f57e98834e","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/tasks/:task_id/comments/:comment_id","description":"<p>Deletes a <strong>specific comment</strong> on a task in Lawmatics.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","tasks",":task_id","comments",":comment_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_id}}","key":"task_id"},{"type":"any","value":"{{comment_id}}","key":"comment_id"}]}},"response":[{"id":"644cd3f4-5e05-4c6a-880a-065e0a1808c6","name":"Delete Comment","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/tasks/:task_id/comments/:comment_id","host":["{{host}}"],"path":["v1","tasks",":task_id","comments",":comment_id"],"variable":[{"key":"task_id","value":"45"},{"key":"comment_id","value":"31"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"31\",\n        \"type\": \"comment\",\n        \"attributes\": {\n            \"body\": \"hello love\",\n            \"commentable_type\": \"Task\",\n            \"commentable_id\": 45,\n            \"created_at\": \"2023-06-30T12:53:17.586-07:00\",\n            \"updated_at\": \"2023-06-30T13:10:40.829-07:00\"\n        },\n        \"relationships\": {\n            \"commentable\": {\n                \"data\": {\n                    \"id\": \"45\",\n                    \"type\": \"task\"\n                }\n            },\n            \"comment_mentions\": {\n                \"data\": []\n            }\n        }\n    }\n}"}],"_postman_id":"cdc47455-e260-40b5-a564-60f57e98834e"}],"id":"e8d34d10-67b9-4a22-bf04-13be91217adc","_postman_id":"e8d34d10-67b9-4a22-bf04-13be91217adc","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Task Statuses","item":[{"name":"Task Status","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/task_statuses`, function (err, response) {","   pm.globals.set(\"task_status_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"1512fb05-6101-485f-87c9-a40950c8df81","request":{"method":"GET","header":[],"url":"{{host}}/v1/task_statuses/:task_status_id","description":"<p>A <strong>specific task status</strong> in Lawmatics.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","task_statuses",":task_status_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_status_id}}","key":"task_status_id"}]}},"response":[{"id":"501810b4-983f-4f17-887f-07a9f52d75c0","name":"GET Task Status","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/task_statuses/:task_status_id","host":["{{host}}"],"path":["v1","task_statuses",":task_status_id"],"variable":[{"key":"task_status_id","value":"3"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"3\",\n        \"type\": \"task_status\",\n        \"attributes\": {\n            \"name\": \"Waiting for Client\",\n            \"color\": \"#A7783B\",\n            \"created_at\": \"2022-12-27T10:08:45.708-08:00\",\n            \"updated_at\": \"2022-12-27T10:08:45.708-08:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"1512fb05-6101-485f-87c9-a40950c8df81"},{"name":"Task Statuses","id":"ad828aad-266e-42b1-b068-36396974ae17","request":{"method":"GET","header":[],"url":"{{host}}/v1/task_statuses","description":"<p>Gets all the task statuses in Lawmatics.</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","task_statuses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"232e2fd1-e2d5-426e-9e74-3e2bc01cf981","name":"GET Task Statuses","originalRequest":{"method":"GET","header":[],"url":"localhost:3001/v1/task_statuses"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"11\",\n            \"type\": \"task_status\",\n            \"attributes\": {\n                \"name\": \"dolare\",\n                \"color\": \"#FFFFFF\",\n                \"created_at\": \"2023-07-03T09:51:58.461-07:00\",\n                \"updated_at\": \"2023-07-03T10:02:21.859-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"9\",\n            \"type\": \"task_status\",\n            \"attributes\": {\n                \"name\": \"hello\",\n                \"color\": \"#000000\",\n                \"created_at\": \"2023-04-24T15:42:34.296-07:00\",\n                \"updated_at\": \"2023-04-24T15:42:34.296-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"4\",\n            \"type\": \"task_status\",\n            \"attributes\": {\n                \"name\": \"In Progress\",\n                \"color\": \"#DE5E1C\",\n                \"created_at\": \"2022-12-27T10:08:45.712-08:00\",\n                \"updated_at\": \"2022-12-27T10:08:45.712-08:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"3\",\n            \"type\": \"task_status\",\n            \"attributes\": {\n                \"name\": \"Waiting for Client\",\n                \"color\": \"#A7783B\",\n                \"created_at\": \"2022-12-27T10:08:45.708-08:00\",\n                \"updated_at\": \"2022-12-27T10:08:45.708-08:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"2\",\n            \"type\": \"task_status\",\n            \"attributes\": {\n                \"name\": \"Waiting for Attorney\",\n                \"color\": \"#EDBE30\",\n                \"created_at\": \"2022-12-27T10:08:45.704-08:00\",\n                \"updated_at\": \"2022-12-27T10:08:45.704-08:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"task_status\",\n            \"attributes\": {\n                \"name\": \"Not Started\",\n                \"color\": \"#6519FA\",\n                \"created_at\": \"2022-12-27T10:08:45.699-08:00\",\n                \"updated_at\": \"2023-04-24T15:42:47.077-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 6\n    },\n    \"links\": {\n        \"self\": \"/v1/task_statuses?page=1\"\n    }\n}"}],"_postman_id":"ad828aad-266e-42b1-b068-36396974ae17"},{"name":"Create Task Status","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_task_status_id\", jsonData.data.id);","}",""],"type":"text/javascript"}}],"id":"9c40ae34-de5a-47da-8287-fe44589d79dc","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"new task status by jasmine\",\n    \"color\": \"#000000\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/task_statuses","description":"<p>Create a new <strong>Task Status</strong></p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"In Progress\"</code></td>\n<td>No validation on this model — technically optional, though a blank name isn't useful</td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"#8fc1d8\"</code></td>\n<td>No format validation at the API level, but the app's own color picker only offers a fixed palette: <code>#000000</code>, <code>#757F8F</code>, <code>#7997C9</code>, <code>#6519FA</code>, <code>#1D196E</code>, <code>#70B08B</code>, <code>#A8CA45</code>, <code>#EDBE30</code>, <code>#A7783B</code>, <code>#DE5E1C</code>, <code>#80231C</code>, <code>#F70303</code>, <code>#9E4487</code>, <code>#DC438F</code>, <code>#5EB575</code>, <code>#27AE60</code>, <code>#E74C3C</code>, <code>#8E44AD</code>, <code>#16A085</code>, <code>#1F344C</code>. Use one of these to match what the UI can produce</td>\n</tr>\n<tr>\n<td><code>created_at</code> / <code>updated_at</code></td>\n<td>datetime</td>\n<td>No</td>\n<td><code>\"2024-01-01T00:00:00.000-08:00\"</code></td>\n<td>ISO 8601</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> Position in the Task Status list can't be set directly — new statuses are automatically appended to the end of the firm's list.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","task_statuses"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"a9a99e68-89b7-44cb-8161-f6991f82aff9","name":"CREATE Task Status","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"new task status by jasmine\",\n    \"color\": \"#000000\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/task_statuses"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"12\",\n        \"type\": \"task_status\",\n        \"attributes\": {\n            \"name\": \"new task status by jasmine\",\n            \"color\": \"#000000\",\n            \"created_at\": \"2023-07-03T10:10:26.384-07:00\",\n            \"updated_at\": \"2023-07-03T10:10:26.384-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"9c40ae34-de5a-47da-8287-fe44589d79dc"},{"name":"Update Task Status","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/task_statuses`, function (err, response) {","   pm.globals.set(\"task_status_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"e8a865b2-ba26-4dc1-82fb-e7f2caae631f","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"i am changing task status id 11\",\n    \"color\": \"#000000\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/task_statuses/:task_status_id","description":"<p>Updates a <strong>task status</strong> in Lawmatics.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","task_statuses",":task_status_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_status_id}}","key":"task_status_id"}]}},"response":[{"id":"56c16b29-c87a-458f-accc-31128128999c","name":"UPDATE Task Status","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"i am changing task status id 11\",\n    \"color\": \"#000000\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"localhost:3001/v1/task_statuses/:task_status_id","host":["localhost"],"port":"3001","path":["v1","task_statuses",":task_status_id"],"variable":[{"key":"task_status_id","value":"11"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"11\",\n        \"type\": \"task_status\",\n        \"attributes\": {\n            \"name\": \"i am changing task status id 11\",\n            \"color\": \"#000000\",\n            \"created_at\": \"2023-07-03T09:51:58.461-07:00\",\n            \"updated_at\": \"2023-07-03T10:12:16.345-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"e8a865b2-ba26-4dc1-82fb-e7f2caae631f"},{"name":"Delete Task Status","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/task_statuses`, function (err, response) {","   pm.globals.set(\"task_status_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"3b2d635f-1aa4-496f-83d8-fc9813e6a096","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/task_statuses/:task_status_id","description":"<p>Deletes a <strong>task status</strong> in Lawmatics.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","task_statuses",":task_status_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{task_status_id}}","key":"task_status_id"}]}},"response":[{"id":"afc7548b-e420-4c00-86a9-7a4c1243ea14","name":"DELETE Task Status","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v1/task_statuses/:task_status_id","host":["{{host}}"],"path":["v1","task_statuses",":task_status_id"],"variable":[{"key":"task_status_id","value":"10"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"10\",\n        \"type\": \"task_status\",\n        \"attributes\": {\n            \"name\": \"lmao\",\n            \"color\": \"#000000\",\n            \"created_at\": \"2023-07-03T09:49:50.880-07:00\",\n            \"updated_at\": \"2023-07-03T09:50:01.235-07:00\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"3b2d635f-1aa4-496f-83d8-fc9813e6a096"}],"id":"d8c15c2b-b08c-4a0b-902e-74f33ad2237c","_postman_id":"d8c15c2b-b08c-4a0b-902e-74f33ad2237c","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Timeline Activities","item":[{"name":"Activity","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/activities`, function (err, response) {","   pm.globals.set(\"activity_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"244fc6db-0746-41de-be7e-aa61a129fadb","request":{"method":"GET","header":[],"url":"{{host}}/v1/activities/:activity_id","description":"<p>A specific <strong>Activity</strong> in Lawmatics</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","activities",":activity_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{activity_id}}","key":"activity_id"}]}},"response":[{"id":"f3c2f611-1e05-4edd-a4ad-a3ccd6dbd58b","name":"GET Activity","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/activities/:activity_id","host":["{{host}}"],"path":["v1","activities",":activity_id"],"variable":[{"key":"activity_id","value":"101"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"265c5b9cfa48a0c3cc87be0d8fd87b46\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"fb4b2d9d-ef6e-4edb-bf06-c7b18f397cc3"},{"key":"X-Runtime","value":"0.445795"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"101\",\n        \"type\": \"timeline_activity\",\n        \"attributes\": {\n            \"key\": \"prospect.update\",\n            \"type\": \"TimelineActivity::Prospect\",\n            \"detail_keys\": [\n                {\n                    \"emails\": [\n                        {\n                            \"id\": 187,\n                            \"info\": [\n                                \"richard93@example.com\",\n                                \"ricardo+1@lawmatics.com\"\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"parent_id\": null\n        },\n        \"relationships\": {\n            \"owner\": {\n                \"data\": {\n                    \"id\": \"2\",\n                    \"type\": \"user\"\n                }\n            },\n            \"tracked\": {\n                \"data\": {\n                    \"id\": \"94\",\n                    \"type\": \"prospect\"\n                }\n            },\n            \"recipient\": {\n                \"data\": {\n                    \"id\": \"94\",\n                    \"type\": \"prospect\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"244fc6db-0746-41de-be7e-aa61a129fadb"},{"name":"Activities","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/prospects`, function (err, response) {","   pm.globals.set(\"prospect_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"da7339ea-c6a5-44c7-b595-05052f9de915","request":{"method":"GET","header":[],"url":"{{host}}/v1/activities?filter_by=matter_id&filter_on={{prospect_id}}","description":"<p>A <strong>paginated</strong> list of Activities in Lawmatics</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>key</code></td>\n<td>string</td>\n<td>Aliased as <code>event</code> — <code>filter_by=event</code> also works</td>\n</tr>\n<tr>\n<td><code>tracked_type</code></td>\n<td>string</td>\n<td>Aliased as <code>type</code>; value is auto-capitalized (e.g. <code>filter_on=prospect</code> → <code>Prospect</code>)</td>\n</tr>\n<tr>\n<td><code>parent_id</code></td>\n<td>integer</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> The default filter operator here is always exact match (<code>=</code>), even for <code>key</code> — pass <code>filter_with=ilike</code> explicitly for partial matches.</p>\n</blockquote>\n<p><strong>Valid Shortcuts:</strong> <code>matter_id</code>, <code>contact_id</code></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","activities"],"host":["{{host}}"],"query":[{"description":{"content":"<p>matter_id, contact_id, type or event</p>\n","type":"text/plain"},"key":"filter_by","value":"matter_id"},{"key":"filter_on","value":"{{prospect_id}}"},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"44aaa69a-6f40-4018-8a56-ffd4b7b5adf3","name":"Matter Activities","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/activities?filter_by=matter_id&filter_on=1","host":["{{host}}"],"path":["v1","activities"],"query":[{"key":"filter_by","value":"matter_id"},{"key":"filter_on","value":"1"},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"1cfcd7d10df464f0e8eb4673c13c207f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a7850c56-3f5a-4ce3-8ec1-eba174389551"},{"key":"X-Runtime","value":"0.077330"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"1\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Mary Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 1\n    },\n    \"links\": {\n        \"self\": \"/v1/timeline_activities?page=1\"\n    }\n}"},{"id":"946f8fd5-47a3-485e-9381-290f6559d766","name":"Contact Activities","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/activities?filter_by=contact_id&filter_on=3","host":["{{host}}"],"path":["v1","activities"],"query":[{"key":"filter_by","value":"contact_id"},{"key":"filter_on","value":"3"},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"1d7303a10d11423a6223cb61bb9b6f47\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f83765f9-d351-4143-beb5-c6ff172dc88a"},{"key":"X-Runtime","value":"0.025535"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"3\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Michael Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 1\n    },\n    \"links\": {\n        \"self\": \"/v1/timeline_activities?page=1\"\n    }\n}"},{"id":"c98c2241-da46-475e-bb77-80b775fa78e6","name":"Activities By Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/activities?filter_by=type&filter_on=note","host":["{{host}}"],"path":["v1","activities"],"query":[{"key":"filter_by","value":"type"},{"key":"filter_on","value":"note"},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5aa98ae9ed7962cef60001dfb1926d1f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a796e39b-ed9f-4637-b37a-2b0f42e9d937"},{"key":"X-Runtime","value":"0.196473"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"100\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Lisa Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"100\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"100\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"99\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"David Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"99\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"99\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"98\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Patricia Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"98\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"98\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"97\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Michael Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"97\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"97\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"96\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Karen Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"96\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"96\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"95\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"James Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"95\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"95\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"94\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Richard Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"94\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"94\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"93\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"93\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"93\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"92\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"James Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"92\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"92\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"91\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"91\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"91\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"90\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Barbara Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"90\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"90\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"89\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"89\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"89\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"88\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Maria Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"88\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"88\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"87\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Karen Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"87\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"87\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"86\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"William Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"85\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"85\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"85\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"84\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Susan Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"84\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"84\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"83\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"William Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"83\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"83\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"82\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Michael Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"82\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"82\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"81\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Charles Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"81\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"81\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"80\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Michael Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"80\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"80\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"79\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Joseph Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"79\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"79\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"78\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Barbara Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"78\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"78\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"77\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"William Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"77\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"77\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"76\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Susan Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"76\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"76\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 4,\n        \"limit_per_page\": 25,\n        \"total_entries\": 100\n    },\n    \"links\": {\n        \"self\": \"/v1/timeline_activities?page=1\",\n        \"next\": \"/v1/timeline_activities?page=2\"\n    }\n}"},{"id":"02cea6da-6091-4071-a6b3-d2df171c0282","name":"Activities By Event","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/activities?filter_by=event&filter_on=note.create","host":["{{host}}"],"path":["v1","activities"],"query":[{"key":"filter_by","value":"event"},{"key":"filter_on","value":"note.create"},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"5aa98ae9ed7962cef60001dfb1926d1f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"771e52a3-aee1-4d5b-a272-2c2c6a993a10"},{"key":"X-Runtime","value":"0.200711"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"100\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Lisa Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"100\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"100\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"99\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"David Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"99\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"99\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"98\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Patricia Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"98\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"98\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"97\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Michael Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"97\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"97\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"96\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Karen Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"96\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"96\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"95\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"James Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"95\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"95\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"94\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Richard Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"94\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"94\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"93\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"93\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"93\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"92\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"James Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"92\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"92\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"91\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"91\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"91\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"90\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Barbara Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"90\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"90\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"89\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"89\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"89\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"88\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Maria Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"88\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"88\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"87\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Karen Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"87\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"87\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"86\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"William Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"86\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"85\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Jennifer Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"85\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"85\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"84\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Susan Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"84\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"84\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"83\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"William Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"83\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"83\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"82\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Michael Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"82\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"82\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"81\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Charles Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"81\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"81\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"80\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Michael Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"80\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"80\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"79\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Joseph Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"79\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"79\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"78\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Barbara Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"78\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"78\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"77\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"William Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"77\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"77\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"76\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n                    \"name\": \"Susan Note\"\n                },\n                \"parent_id\": null\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"firm\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"76\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"76\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 4,\n        \"limit_per_page\": 25,\n        \"total_entries\": 100\n    },\n    \"links\": {\n        \"self\": \"/v1/timeline_activities?page=1\",\n        \"next\": \"/v1/timeline_activities?page=2\"\n    }\n}"},{"id":"8f6218e9-e36b-45b3-a069-5219e974db42","name":"Activities After a Date","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/activities?filter_by=created_at&filter_on=2022-07-25&filter_operator=>","host":["{{host}}"],"path":["v1","activities"],"query":[{"key":"filter_by","value":"created_at","description":"matter_id, contact_id, type or event"},{"key":"filter_on","value":"2022-07-25"},{"key":"filter_operator","value":">"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"4ed93b5003bb101d414af99f6414e302\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1304042b-8cea-451a-9ccc-b10763af87a1"},{"key":"X-Runtime","value":"0.224130"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"683\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n                    \"name\": \"Example Note\"\n                },\n                \"created_at\": \"2022-07-25T12:34:17.177-07:00\",\n                \"updated_at\": \"2022-07-25T12:34:17.177-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"application\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"180\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"220\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"682\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n                    \"name\": \"Example Note\"\n                },\n                \"created_at\": \"2022-07-25T12:34:10.224-07:00\",\n                \"updated_at\": \"2022-07-25T12:34:10.224-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"application\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"179\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"219\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"681\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n                    \"name\": \"Example Note\"\n                },\n                \"created_at\": \"2022-07-25T12:33:53.903-07:00\",\n                \"updated_at\": \"2022-07-25T12:33:53.903-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"application\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"178\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"218\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"680\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n                    \"name\": \"Example Note\"\n                },\n                \"created_at\": \"2022-07-25T12:31:37.738-07:00\",\n                \"updated_at\": \"2022-07-25T12:31:37.738-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"application\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"177\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"217\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"679\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n                    \"name\": \"Example Note\"\n                },\n                \"created_at\": \"2022-07-25T12:31:32.040-07:00\",\n                \"updated_at\": \"2022-07-25T12:31:32.040-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"application\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"176\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"216\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"678\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"task.complete\",\n                \"type\": \"task\",\n                \"detail_keys\": {\n                    \"done\": true,\n                    \"name\": \"Updated Task\",\n                    \"due_date\": \"2022-06-25T00:00:00.000-07:00\",\n                    \"priority\": \"high\",\n                    \"description\": \"The updated tag description\"\n                },\n                \"created_at\": \"2022-07-25T10:51:13.545-07:00\",\n                \"updated_at\": \"2022-07-25T10:51:13.545-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"28\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"677\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"task.create\",\n                \"type\": \"task\",\n                \"detail_keys\": {\n                    \"name\": \"New Task\",\n                    \"due_date\": \"2022-06-30T00:00:00.000-07:00\",\n                    \"description\": \"An important piece of work to be made until it's due date\"\n                },\n                \"created_at\": \"2022-07-25T10:51:13.454-07:00\",\n                \"updated_at\": \"2022-07-25T10:51:13.560-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"28\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"676\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"An important thing to remember\",\n                    \"name\": \"New Note\"\n                },\n                \"created_at\": \"2022-07-25T10:51:09.092-07:00\",\n                \"updated_at\": \"2022-07-25T10:51:09.092-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"175\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"113\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"671\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"task.create\",\n                \"type\": \"task\",\n                \"detail_keys\": {\n                    \"name\": \"New Task\",\n                    \"due_date\": \"2022-06-30T00:00:00.000-07:00\",\n                    \"description\": \"An important piece of work to be made until it's due date\"\n                },\n                \"created_at\": \"2022-07-25T10:45:02.163-07:00\",\n                \"updated_at\": \"2022-07-25T10:45:02.163-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"27\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"670\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"An important thing to remember\",\n                    \"name\": \"New Note\"\n                },\n                \"created_at\": \"2022-07-25T10:42:16.795-07:00\",\n                \"updated_at\": \"2022-07-25T10:42:16.795-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"174\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"113\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"669\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"An important thing to remember\",\n                    \"name\": \"New Note\"\n                },\n                \"created_at\": \"2022-07-25T10:41:32.986-07:00\",\n                \"updated_at\": \"2022-07-25T10:41:32.986-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"173\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"113\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"668\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"An important thing to remember\",\n                    \"name\": \"New Note\"\n                },\n                \"created_at\": \"2022-07-25T10:41:17.434-07:00\",\n                \"updated_at\": \"2022-07-25T10:41:17.434-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"172\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"113\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"667\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"task.complete\",\n                \"type\": \"task\",\n                \"detail_keys\": {\n                    \"done\": true,\n                    \"name\": \"Updated Task\",\n                    \"due_date\": \"2022-06-25T00:00:00.000-07:00\",\n                    \"priority\": \"high\",\n                    \"description\": \"The updated tag description\"\n                },\n                \"created_at\": \"2022-07-25T10:30:10.867-07:00\",\n                \"updated_at\": \"2022-07-25T10:30:10.867-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"26\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"666\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"task.create\",\n                \"type\": \"task\",\n                \"detail_keys\": {\n                    \"name\": \"New Task\",\n                    \"due_date\": \"2022-06-30T00:00:00.000-07:00\",\n                    \"description\": \"An important piece of work to be made until it's due date\"\n                },\n                \"created_at\": \"2022-07-25T10:30:10.124-07:00\",\n                \"updated_at\": \"2022-07-25T10:30:10.913-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"26\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"665\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"An important thing to remember\",\n                    \"name\": \"New Note\"\n                },\n                \"created_at\": \"2022-07-25T10:30:05.869-07:00\",\n                \"updated_at\": \"2022-07-25T10:30:05.869-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"171\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"113\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"664\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"event.delete\",\n                \"type\": \"event\",\n                \"detail_keys\": {},\n                \"created_at\": \"2022-07-25T10:29:56.258-07:00\",\n                \"updated_at\": \"2022-07-25T10:29:56.258-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": null\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"3\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"663\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"task.complete\",\n                \"type\": \"task\",\n                \"detail_keys\": {\n                    \"done\": true,\n                    \"name\": \"Updated Task\",\n                    \"due_date\": \"2022-06-25T00:00:00.000-07:00\",\n                    \"priority\": \"high\",\n                    \"description\": \"The updated tag description\"\n                },\n                \"created_at\": \"2022-07-25T10:28:11.657-07:00\",\n                \"updated_at\": \"2022-07-25T10:28:11.657-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"25\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"662\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"task.create\",\n                \"type\": \"task\",\n                \"detail_keys\": {\n                    \"name\": \"New Task\",\n                    \"due_date\": \"2022-06-30T00:00:00.000-07:00\",\n                    \"description\": \"An important piece of work to be made until it's due date\"\n                },\n                \"created_at\": \"2022-07-25T10:28:10.960-07:00\",\n                \"updated_at\": \"2022-07-25T10:28:11.719-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"25\",\n                        \"type\": \"task\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"661\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.delete\",\n                \"type\": \"note\",\n                \"detail_keys\": {},\n                \"created_at\": \"2022-07-25T10:28:07.111-07:00\",\n                \"updated_at\": \"2022-07-25T10:28:07.111-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": null\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"136\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"660\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.update\",\n                \"type\": \"note\",\n                \"detail_keys\": {},\n                \"created_at\": \"2022-07-25T10:28:06.674-07:00\",\n                \"updated_at\": \"2022-07-25T10:28:06.674-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": null\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"136\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"659\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"An important thing to remember\",\n                    \"name\": \"New Note\"\n                },\n                \"created_at\": \"2022-07-25T10:28:05.625-07:00\",\n                \"updated_at\": \"2022-07-25T10:28:05.625-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"170\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"113\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"657\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"event.delete\",\n                \"type\": \"event\",\n                \"detail_keys\": {},\n                \"created_at\": \"2022-07-25T10:27:36.564-07:00\",\n                \"updated_at\": \"2022-07-25T10:27:36.564-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"5\",\n                        \"type\": \"user\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": null\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"2\",\n                        \"type\": \"contact\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"653\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n                    \"name\": \"Example Note\"\n                },\n                \"created_at\": \"2022-07-24T17:28:47.160-07:00\",\n                \"updated_at\": \"2022-07-24T17:28:47.160-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"application\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"169\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"172\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"652\",\n            \"type\": \"timeline_activity\",\n            \"attributes\": {\n                \"key\": \"note.create\",\n                \"type\": \"note\",\n                \"detail_keys\": {\n                    \"body\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n                    \"name\": \"Example Note\"\n                },\n                \"created_at\": \"2022-07-24T17:28:19.069-07:00\",\n                \"updated_at\": \"2022-07-24T17:28:19.069-07:00\"\n            },\n            \"relationships\": {\n                \"owner\": {\n                    \"data\": {\n                        \"id\": \"1\",\n                        \"type\": \"application\"\n                    }\n                },\n                \"tracked\": {\n                    \"data\": {\n                        \"id\": \"168\",\n                        \"type\": \"note\"\n                    }\n                },\n                \"recipient\": {\n                    \"data\": {\n                        \"id\": \"171\",\n                        \"type\": \"prospect\"\n                    }\n                }\n            }\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 24\n    },\n    \"links\": {\n        \"self\": \"/v1/timeline_activities?page=1\"\n    }\n}"},{"id":"6c8c5f3a-5200-429d-ade7-9d091b354342","name":"Invalid Parameter","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v1/activities?filter_by=firm_id&filter_on=1","host":["{{host}}"],"path":["v1","activities"],"query":[{"key":"filter_by","value":"firm_id"},{"key":"filter_on","value":"1"},{"key":"","value":"","disabled":true}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"feafd5f3-96e8-4a78-ad11-decdc8965049"},{"key":"X-Runtime","value":"0.239633"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"status\": 422,\n            \"title\": \"Filter By Parameter Not Available\",\n            \"detail\": \"When applying filters, a valid 'filter_by' parameter is required.\"\n        }\n    ]\n}"}],"_postman_id":"da7339ea-c6a5-44c7-b595-05052f9de915"}],"id":"4bf969bd-04fc-48ad-91e9-53483e9ac734","_postman_id":"4bf969bd-04fc-48ad-91e9-53483e9ac734","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Users","item":[{"name":"User","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"1ea44c34-8926-42a0-8397-daf6dbde930a","request":{"method":"GET","header":[],"url":"{{host}}/v1/users/:user_id","description":"<p>Return a specific User by ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","users",":user_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{user_id}}","key":"user_id"}]}},"response":[{"id":"54a40781-e53c-4a7f-855a-f379373a67af","name":"GET User","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.lawmatics.com/v1/users/17?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","users","17"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 01:00:33 GMT","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"10ad7636fc8bbe5b872ae42128743faf\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Set-Cookie","value":"AWSALB=37yuqkONiO6Xt1S8/ex8tBar2TSV5pbJjM2MNl7rO/uuVwAswXLZAibxzYJKH0DE8NIJMCEcGYGCOlm2dmkZlf7UKC6A31nYNi+EFO0biqCELV4MFni8VK053Gt9; Expires=Wed, 24 Oct 2018 01:00:33 GMT; Path=/","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"8e723f5b-39bb-4399-a8b7-fceee1951982","description":"Custom header"},{"key":"X-Runtime","value":"0.013752","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"17\",\"type\":\"user\",\"attributes\":{\"name\":\"Roey Chasman\",\"email\":\"roey@lawmatics.com\",\"role\":\"admin\",\"sign_in_count\":80,\"profile_pic_url\":\"https://lm.lawmatics.com/attachments/bb05ebb95548440709cfee67eaa47ad9477901f7/store/7a1dfa6208de277097e5fd94cef73878adce3ec6010ef99611a30a209607/photo.gif\",\"created_at\":\"2018-01-05T17:19:17.216-08:00\",\"updated_at\":\"2018-10-16T10:11:52.023-07:00\"},\"relationships\":{\"firms\":{\"data\":[{\"id\":\"15\",\"type\":\"firm\"},{\"id\":\"24\",\"type\":\"firm\"}]},\"current_firm\":{\"data\":{\"id\":\"15\",\"type\":\"firm\"}},\"invited_by\":{\"data\":{\"id\":\"15\",\"type\":\"user\"}}}}}"}],"_postman_id":"1ea44c34-8926-42a0-8397-daf6dbde930a"},{"name":"Users","id":"80af8981-b510-4ca3-8afa-9648f4328ba3","request":{"method":"GET","header":[],"url":"{{host}}/v1/users","description":"<p>Return a <strong>paginated</strong> list of all users in the firm</p>\n<p><strong>Filter Options</strong> (<a href=\"https://docs.lawmatics.com/#7f995af9-0042-49dd-a34f-2b1a1b6e2e7c\">See our Filtering params</a>)</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>first_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>phone_number</code></td>\n<td>string</td>\n<td></td>\n</tr>\n<tr>\n<td><code>confirmed_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>last_sign_in_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>deactivated_at</code></td>\n<td>datetime</td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>sign_in_count</code></td>\n<td>integer</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>role</code> is not a filterable field (returns a 422) — it lives on a join table, not directly on <code>users</code>.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","users"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"d873b975-fab2-48c0-b683-92118713b50a","name":"GET Users","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 01:01:24 GMT","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"668c76b5d8dd32ba58a74931dba1c3c2\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Set-Cookie","value":"AWSALB=ve5B3gpHjGDgcr8UmITMz9Ds0+oPgjPH9GJ7fSuQrmlXMubBlGjHIoasmFZkJ2HXtSY17thmka6jfiQ9DtpKT9lTHf/39bO7d/1ZhgM+vXKb+5C/pq+tUT22eHEZ; Expires=Wed, 24 Oct 2018 01:01:24 GMT; Path=/","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"bba1cd5c-db15-43d6-9408-a04f5706e786","description":"Custom header"},{"key":"X-Runtime","value":"0.017804","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"219\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Bobby Orozco\",\n                \"email\": \"bobby@lawmatics.com\",\n                \"created_at\": \"2018-09-10T14:54:02.100-07:00\",\n                \"updated_at\": \"2018-10-15T16:03:57.819-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"192\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Anna Gasperlin\",\n                \"email\": \"anna@lawmatics.com\",\n                \"created_at\": \"2018-08-27T12:41:56.353-07:00\",\n                \"updated_at\": \"2018-10-16T16:19:21.578-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"66\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Jasper Forest\",\n                \"email\": \"jasper@lawmatics.com\",\n                \"created_at\": \"2018-06-18T10:26:37.122-07:00\",\n                \"updated_at\": \"2018-10-02T19:56:32.119-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"24\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Fred Assuncao\",\n                \"email\": \"fred@lawmatics.com\",\n                \"created_at\": \"2018-03-08T07:33:41.086-08:00\",\n                \"updated_at\": \"2018-10-16T12:58:29.738-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"23\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Sarah Bottorff\",\n                \"email\": \"sarah.bottorff@gmail.com\",\n                \"created_at\": \"2018-03-06T06:21:09.994-08:00\",\n                \"updated_at\": \"2018-04-26T15:16:25.524-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"21\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Zsolt Már\",\n                \"email\": \"zsolt@lawmatics.com\",\n                \"created_at\": \"2018-02-02T15:17:22.830-08:00\",\n                \"updated_at\": \"2018-10-12T17:36:54.846-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"17\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Roey Chasman\",\n                \"email\": \"roey@lawmatics.com\",\n                \"created_at\": \"2018-01-05T17:19:17.216-08:00\",\n                \"updated_at\": \"2018-10-16T10:11:52.023-07:00\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"15\",\n            \"type\": \"user\",\n            \"attributes\": {\n                \"name\": \"Matt Spiegel\",\n                \"email\": \"matt@lawmatics.com\",\n                \"created_at\": \"2018-01-05T09:20:40.371-08:00\",\n                \"updated_at\": \"2018-10-16T16:29:25.480-07:00\"\n            },\n            \"relationships\": {}\n        }\n    ],\n    \"meta\": {\n        \"total_pages\": 1,\n        \"limit_per_page\": 25,\n        \"total_entries\": 8\n    },\n    \"links\": {\n        \"self\": \"/v1/user?page=1\"\n    }\n}"}],"_postman_id":"80af8981-b510-4ca3-8afa-9648f4328ba3"},{"name":"Me","id":"a3b37e34-d7a7-41a7-8c32-a36eb54a3b3b","request":{"method":"GET","header":[],"url":"{{host}}/v1/users/me","description":"<p>Return the authenticated user</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","users","me"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"bebba68b-33a5-4697-938b-e465f5b91163","name":"GET Me","originalRequest":{"method":"GET","header":[],"url":"https://api.lawmatics.com/v1/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 01:03:33 GMT","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"1c2b12f9d9177e83f1c639ce0522ae3b\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Set-Cookie","value":"AWSALB=kW8Q5MaZXkE7BBcZxdK/PEpmzT5rx0RBXels/jM/VFT/ztwL2x3EsIMeXrAP1/2cBoDoV9ue1K/vEtI2K7eN/re6ioHVlRDyjpr4Ykb3f62Ocs7JuiGjhUp0PJM2; Expires=Wed, 24 Oct 2018 01:03:33 GMT; Path=/","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"48282023-d663-4146-adc6-0d3615f79370","description":"Custom header"},{"key":"X-Runtime","value":"0.010836","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"17\",\"type\":\"user\",\"attributes\":{\"name\":\"Roey Chasman\",\"email\":\"roey@lawmatics.com\",\"created_at\":\"2018-01-05T17:19:17.216-08:00\",\"updated_at\":\"2018-10-16T10:11:52.023-07:00\"},\"relationships\":{}}}"}],"_postman_id":"a3b37e34-d7a7-41a7-8c32-a36eb54a3b3b"},{"name":"Create User","event":[{"listen":"test","script":{"exec":["var jsonData = pm.response.json();","if (jsonData.data) {","  pm.globals.set(\"created_user_id\", jsonData.data.id);","}"],"type":"text/javascript"}}],"id":"7718cb55-9a1a-4c06-ad8a-4041284c2f17","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"peter@oscorp.com\",\n    \"role\": \"Admin\",\n    \"password\": \"spiderman\",\n    \"first_name\": \"Peter\",\n    \"last_name\": \"Parker\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/users","description":"<p>Creates a user, or assigns an existing user to your firm if the email already belongs to one.</p>\n<p><strong>Request Body Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Example</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"newuser@lawfirm.com\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>first_name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Jane\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Doe\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>phone_number</code></td>\n<td>string</td>\n<td>No</td>\n<td><code>\"123-456-7890\"</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>password</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"...\"</code></td>\n<td>6–128 characters. Sets the new user's initial password directly, rather than the invitee choosing it themselves via the invitation email flow</td>\n</tr>\n<tr>\n<td><code>role</code></td>\n<td>string</td>\n<td>Yes</td>\n<td><code>\"Attorney\"</code></td>\n<td>Matched by exact name against your firm's existing Roles (e.g. <code>Admin</code>, <code>Attorney</code>, <code>Non-Active</code>). A firm admin-scoped API token can create users with the <code>Admin</code> role</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> If the <code>email</code> you submit already belongs to an existing user (at your firm or elsewhere), this endpoint attaches that existing user to your firm instead of creating a new one, and may send them an invitation email — same behavior as inviting an existing user from the app.</p>\n</blockquote>\n<blockquote>\n<p><strong>Note:</strong> If your firm is on seat-based billing with no available seats, this returns a 402, not a 422 or 201.</p>\n</blockquote>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","users"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"df80989b-519f-45c1-8722-d9dc553de3b9","name":"POST Create User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"peter@oscorp.com\",\n    \"role\": \"Admin\",\n    \"password\": \"spiderman\",\n    \"first_name\": \"Peter\",\n    \"last_name\": \"Parker\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/users/"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"28\",\n        \"type\": \"user\",\n        \"attributes\": {\n            \"first_name\": \"Peter\",\n            \"last_name\": \"Parker\",\n            \"email\": \"peter@oscorp.com\",\n            \"created_at\": \"2022-10-31T16:11:06.048-07:00\",\n            \"updated_at\": \"2022-10-31T16:11:06.048-07:00\",\n            \"confirmed_at\": null,\n            \"current_sign_in_at\": null,\n            \"invitation_sent_at\": null,\n            \"invitation_accepted_at\": null,\n            \"role\": \"Admin\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"7718cb55-9a1a-4c06-ad8a-4041284c2f17"},{"name":"Update User","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"15afeeae-98f6-453f-b6c9-f48f05bc2910","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Bruce\",\n    \"last_name\": \"Banner\",\n    \"email\": \"thebat.e01b0583-e362-40ae-89ff-7158e8df28b3@gothan.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v1/users/:user_id","description":"<p>Updates a user</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","users",":user_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{user_id}}","key":"user_id"}]}},"response":[{"id":"909c477e-4b08-4388-8cd8-0a84dfe7be52","name":"PUT Update User","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Bruce\",\n    \"last_name\": \"Banner\",\n    \"email\": \"thebat@gothan.com\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v1/users/:user_id","host":["{{host}}"],"path":["v1","users",":user_id"],"variable":[{"key":"user_id","value":"25"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"28\",\n        \"type\": \"user\",\n        \"attributes\": {\n            \"first_name\": \"Bruce\",\n            \"last_name\": \"Banner\",\n            \"email\": \"thebat@gothan.com\",\n            \"created_at\": \"2022-10-31T16:11:06.048-07:00\",\n            \"updated_at\": \"2022-10-31T16:15:17.930-07:00\",\n            \"confirmed_at\": null,\n            \"current_sign_in_at\": null,\n            \"invitation_sent_at\": null,\n            \"invitation_accepted_at\": null,\n            \"role\": \"Admin\"\n        },\n        \"relationships\": {}\n    }\n}"}],"_postman_id":"15afeeae-98f6-453f-b6c9-f48f05bc2910"},{"name":"Delete User","event":[{"listen":"prerequest","script":{"exec":["pm.sendRequest(`${pm.environment.get('host')}/v1/users`, function (err, response) {","   pm.globals.set(\"user_id\", response.json().data[0].id);","});"],"type":"text/javascript"}}],"id":"90a9b32c-c74f-485e-941f-7ebd34d97eaa","request":{"method":"DELETE","header":[],"url":"{{host}}/v1/users/:user_id","description":"<p>Dissociates a user from a firm, in practice this is the same as deleting the user as it won't have access to the system anymore.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}},"urlObject":{"path":["v1","users",":user_id"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"{{created_user_id}}","key":"user_id"}]}},"response":[{"id":"1603d8cf-5736-4c59-b9ed-10fbe5adbb72","name":"DELETE Delete User","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.lawmatics.com/v1/users/17?fields=all","protocol":"https","host":["api","lawmatics","com"],"path":["v1","users","17"],"query":[{"key":"fields","value":"all"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 01:00:33 GMT","description":"The date and time that the message was sent"},{"key":"ETag","value":"W/\"10ad7636fc8bbe5b872ae42128743faf\"","description":"An identifier for a specific version of a resource, often a message digest"},{"key":"Set-Cookie","value":"AWSALB=37yuqkONiO6Xt1S8/ex8tBar2TSV5pbJjM2MNl7rO/uuVwAswXLZAibxzYJKH0DE8NIJMCEcGYGCOlm2dmkZlf7UKC6A31nYNi+EFO0biqCELV4MFni8VK053Gt9; Expires=Wed, 24 Oct 2018 01:00:33 GMT; Path=/","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Origin","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Request-Id","value":"8e723f5b-39bb-4399-a8b7-fceee1951982","description":"Custom header"},{"key":"X-Runtime","value":"0.013752","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":\"17\",\"type\":\"user\",\"attributes\":{\"name\":\"Roey Chasman\",\"email\":\"roey@lawmatics.com\",\"role\":\"admin\",\"sign_in_count\":80,\"profile_pic_url\":\"https://lm.lawmatics.com/attachments/bb05ebb95548440709cfee67eaa47ad9477901f7/store/7a1dfa6208de277097e5fd94cef73878adce3ec6010ef99611a30a209607/photo.gif\",\"created_at\":\"2018-01-05T17:19:17.216-08:00\",\"updated_at\":\"2018-10-16T10:11:52.023-07:00\"},\"relationships\":{\"firms\":{\"data\":[{\"id\":\"15\",\"type\":\"firm\"},{\"id\":\"24\",\"type\":\"firm\"}]},\"current_firm\":{\"data\":{\"id\":\"15\",\"type\":\"firm\"}},\"invited_by\":{\"data\":{\"id\":\"15\",\"type\":\"user\"}}}}}"}],"_postman_id":"90a9b32c-c74f-485e-941f-7ebd34d97eaa"}],"id":"63a0b8ac-d834-4bf0-bc29-7ef6d37d5769","_postman_id":"63a0b8ac-d834-4bf0-bc29-7ef6d37d5769","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Webhooks","item":[{"name":"Overview & Setup","item":[],"id":"db1af5a6-6005-4c57-957e-3defb7bfe3c4","description":"<h2 id=\"overview\">Overview</h2>\n<p>Webhooks are outbound - Lawmatics pushes events to your server. There is no REST endpoint to call; you expose your own HTTPS URL and Lawmatics delivers events to it.</p>\n<h2 id=\"setup\">Setup</h2>\n<p>A firm administrator registers the endpoint in the Lawmatics dashboard under <strong>Settings &gt; Webhooks</strong>, where they provide your HTTPS endpoint URL.</p>\n<p>The subscription is automatically subscribed to the <code>matter.converted</code> event. More event types are coming; today <code>matter.converted</code> is the only event delivered.</p>\n<p>Upon creation, a signing secret (<code>whsec_...</code>) is shown once with a copy button. The administrator must share it with you securely. If it is lost, a new one can be regenerated from the webhook's action menu. Store it in your environment:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>LAWMATICS_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n</code></pre><p><strong>Requirements:</strong></p>\n<ul>\n<li><p>Endpoint URL must use HTTPS</p>\n</li>\n<li><p>Limit of two webhooks per endpoint per firm (v1)</p>\n</li>\n</ul>\n<p>Full setup walkthrough and code examples: <a href=\"https://help.lawmatics.com/en/articles/15438485-outbound-webhooks\">Lawmatics Outbound Webhooks - Developer Guide</a></p>\n","_postman_id":"db1af5a6-6005-4c57-957e-3defb7bfe3c4","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}},{"name":"Signature Verification","item":[],"id":"f0bd5d77-c80a-46b5-ad24-08444a146f9a","description":"<h2 id=\"verifying-webhook-signatures\">Verifying Webhook Signatures</h2>\n<p>Every request from Lawmatics includes these headers:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>X-Lawmatics-Signature</code></td>\n<td><code>sha256=</code> + HMAC-SHA256 hex digest</td>\n</tr>\n<tr>\n<td><code>X-Lawmatics-Timestamp</code></td>\n<td>Unix timestamp (seconds)</td>\n</tr>\n<tr>\n<td><code>X-Lawmatics-Event-Id</code></td>\n<td>Unique event ID (<code>evt_</code>) for idempotency</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>How to verify:</strong></p>\n<ol>\n<li><p>Concatenate the timestamp and raw request body: <code>\".\"</code></p>\n</li>\n<li><p>Compute <code>HMAC-SHA256</code> of that string using your subscription secret</p>\n</li>\n<li><p>Prefix the hex digest with <code>sha256=</code></p>\n</li>\n<li><p>Compare to the <code>X-Lawmatics-Signature</code> header using a constant-time comparison</p>\n</li>\n</ol>\n<blockquote>\n<p>Always use a constant-time comparison to prevent timing attacks.<br />Reject requests with a timestamp older than 5 minutes to prevent replay attacks. </p>\n</blockquote>\n<p>Code examples in Node.js, Ruby, and Python: <a href=\"https://help.lawmatics.com/en/articles/15438485-outbound-webhooks\">Lawmatics Outbound Webhooks - Developer Guide</a></p>\n","_postman_id":"f0bd5d77-c80a-46b5-ad24-08444a146f9a","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}}],"id":"87c2958b-3c42-4a4d-88d9-08dbce5f18cf","description":"<p>Lawmatics webhooks let your server receive real-time notifications when events occur - no polling required.</p>\n<p>When a subscribed event fires (currently <code>matter.converted</code>), Lawmatics sends a signed HTTP POST to the firm's registered HTTPS endpoint.</p>\n<p><strong>Note:</strong> Webhooks are not part of the REST API. Subscriptions are created and managed by a firm administrator in the Lawmatics dashboard (<strong>Settings &gt; Webhooks</strong>); the sections in this folder are reference documentation only and make no HTTP call.</p>\n<p><strong>Key facts:</strong></p>\n<ul>\n<li><p>Limit of two webhooks per endpoint per firm (v1)</p>\n</li>\n<li><p>Requests are signed with HMAC-SHA256</p>\n</li>\n<li><p>Delivery is retried up to 7 total attempts on failure (1 initial + 6 retries)</p>\n</li>\n</ul>\n<p>Full developer guide: <a href=\"https://help.lawmatics.com/en/articles/15438485-outbound-webhooks\">Lawmatics Outbound Webhooks - Developer Guide</a></p>\n","_postman_id":"87c2958b-3c42-4a4d-88d9-08dbce5f18cf","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","id":"e2baf2ff-2068-4586-8a21-dacdeb82a8e5","name":"Lawmatics OAuth API v1.22.0","type":"collection"}}}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenName","value":"<token-name>"},{"key":"useBrowser","value":"<use-browser>"},{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"{{client_secret}}"},{"key":"clientId","value":"{{client_id}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"tokenType","value":"<token-type>"},{"key":"grant_type","value":"<grant_type>"}]}},"event":[{"listen":"prerequest","script":{"id":"bdefb3d0-d0fe-40c0-9274-8678f04bbc8d","type":"text/javascript","requests":{},"exec":["pm.request.headers.add({ ","    key: \"Authorization\",","    value: `Bearer ${pm.environment.get('access_token')}`","});"]}},{"listen":"test","script":{"id":"64e073df-8d92-41fa-bae6-95ee9ed7c9bb","type":"text/javascript","requests":{},"exec":["pm.test(\"Response should not have errors\", function () { ","    pm.response.to.not.be.error;","    pm.response.to.not.have.jsonBody(\"error\");","});","","if (!pm.request.url.toString().includes('download')) {","    pm.test(\"Data should be present\", function () {","        pm.expect(pm.response.json().data).to.not.be.empty;","    });","}","","if (pm.request.method === \"POST\") {","    pm.test(\"Status code is 201\", function () {","        pm.response.to.have.status(201);","    })","}","","if (['GET', 'PUT', 'PATCH', 'DELETE'].includes(pm.request.method)) {","    pm.test(\"Status code is 200\", function () {","        pm.response.to.have.status(200);","    })","}"]}}],"variable":[{"key":"host","value":"localhost:3001","disabled":true},{"key":"client_id","value":"","disabled":true},{"key":"client_secret","value":"","disabled":true},{"key":"super_,matter_id","value":"super_matter_id"},{"key":"super_matter_id","value":"5678"}]}