Matter Record APIs

The Matter Record in Smarter Drafter Pro allows you to capture data once and reuse it automatically across multiple forms related to matters. When set up correctly, it eliminates double-entry and ensures clean, consistent data across all automations. Data (structured as a Record) can be created or updated when filling in a form, which then allows the latest data to be used next time.

📘

Pre-requisite

A subscription to Data-Driven Automation is required as part of a plan to access APIs with Smarter Drafter Pro. This will enable the ability to access Data-Driven Automation page in Smarter Drafter Pro to generate and manage API keys.


How it works

The first time a form is filled for a matter, there may not be any data yet, so the form filler may need to add the information manually.

The next form for the same matter automatically assigns the records created from previous submissions, and auto-populates any of the data relevant for the form.

When your own system pushes matters and records through the API, the data is there before the first form starts, so even the first form is filled.


APIs for Matter Record

APIs for Matter Record enable external data sources to be supported, and bring in data to fill forms in Smarter Drafter Pro. This allows source systems where the trusted data lives to be re-used. Any data changed or created in Smarter Drafter Pro can then be updated in the source system, helping maintain data integrity across all systems.

With the Matter Record APIs, the core concepts revolve around:

  • Matters: Relate to the matters in the external system and act as the top-level grouping of data.
  • Records: The individual data entities that live inside a Matter. These are the payloads of information - such as a specific person (Contact), a business entity (Company), or Matter Information (Matter Data) - that are used to pre-fill the form. A Record holds the actual field aliases and values (e.g., "John Smith") that will populate the final document.
  • Record Types: Categorisation of Records as Roles (e.g., "Client", "Vendor"), or Matter Details (e.g., "Trial Information"), helping define how the Record relates to the matter.
  • Field Alias: The unique identifier that is stored within a Record and holds the answer value that goes into the field in a form. Builders assign these aliases to specific questions or logic in the Word Add-in (e.g., client_full_name). When you push data via the API, you must target these aliases so the system knows exactly which field in the form to populate.

Forms that are automated in Smarter Drafter Pro need to have field aliases and record types mapped. This determines the record types and field aliases that the document requires.


Pushing data from your external system

A form filler starts a form and selects a matter. Smarter Drafter then finds the records linked to that matter and fills the form fields from them. Your integration puts those matters and records there before the form starts.

Each thing in your external system has one place in Smarter Drafter:

In your external systemIn Smarter DrafterExample
The system itselfCustom data sourceelite3e
A matterMatter100245-0001
A contact (person or company)RecordEmma Harper
The part a contact plays in a matterRecord type, category RoleClient, Other Party
Data that belongs to one matterRecord with a record type, category Matter DetailsKey dates
One field on a contact or matterField alias, with a value on the recordclient_email

Two rules explain most of the API:

  • A record holds the values. Each value is stored against a field alias, for example client_email = [email protected].
  • A record type links a record to a matter. The same contact can be the Client in one matter and the Other Party in another. The values are stored once and used in both.

Build your integration

Follow the pages in this order. Each step needs the one before it: a record cannot use a field alias, record type or matter that does not exist yet.

StepWhat you doHow oftenPage
1Create an API key and a custom data sourceOnce, in the appGetting Started with Matter Record
2Create field aliasesOnce per fieldDefining Data Structure: Field Aliases
3Create record typesOnce per role or matter data typeDefining Data Structure: Record Types
4Create matters and set who can see themEach new matterMatter Integration and Access Control
5Create recordsEach new contact or matter data setManaging Your Data: Records
6Send changes, handle errorsEach change in your systemKeeping Data in Sync
7Check the result in a formOnce, to testComplete Integration Workflow and Next Steps

Steps 2 and 3 set up the structure and are usually run once. Steps 4 to 6 are the part your integration runs every day.

The examples on these pages use a custom data source named "Elite 3E" with the API identifier elite3e. Replace it with your own.