One call can create many records. This example creates two:
- a contact, Emma Harper, who is the Client in matter
100245-0001 - the key dates of matter
100245-0001
POST /v1/clients/Records
{
"dataSource": "elite3e",
"records": [
{
"name": "Emma Harper",
"externalId": "C-88231",
"aliases": [
{ "alias": "client_full_name", "value": "{\"first\":\"Emma\",\"last\":\"Harper\"}" },
{ "alias": "client_email", "value": "[email protected]" },
{ "alias": "client_phone", "value": "+44 20 7946 0000" },
{ "alias": "client_address", "value": "{\"address\":\"12 Mill Lane\",\"city\":\"Leeds\",\"zip\":\"LS1 4AB\",\"country\":\"United Kingdom\"}" }
],
"types": [
{ "externalMatterId": "100245-0001", "apiIdentifier": "client" }
]
},
{
"name": "100245-0001 key dates",
"externalId": "100245-0001-dates",
"aliases": [
{ "alias": "completion_date", "value": "2026-03-14", "readOnly": true }
],
"types": [
{ "externalMatterId": "100245-0001", "apiIdentifier": "key_dates" }
]
}
]
}The response is a list of the new record IDs, in the same order as the request. Store each ID with the record in your system, or look it up later by external ID.
How to read one record:
| Property | Meaning |
|---|---|
name | What the form filler sees when choosing a record. |
externalId | The ID of the contact or data set in your external system. Optional, but needed to find the record again later. |
aliases | The values. Each one names a field alias you created. |
types | The links to matters. Each one names a matter and a record type you created. |
Rules:
- A Role record can have many entries in
types, one per matter. typescan be left out. The record then exists without a matter, and you can link it later (see Keeping Data in Sync).- A record can have only one Matter Details record type. That record belongs to that one matter, and its record types cannot be changed afterwards.
- Every value is sent as a string. Names and addresses are JSON written as a string, as in the example. See Value Formats for each field type.
- Set
readOnlytotruewhen form fillers must not change a value. See Set record field aliases to read-only.
Rename or deactivate a record
The name of a record can be updated with Update a record by ID. The external ID cannot be changed.
A record that is no longer used can be deactivated with Deactivate a record by ID. It can then not be used in new matters and is not visible when form filling. A deactivated record cannot be updated until it is reactivated.
To change the values of a record, or the matters it is linked to, see Keeping Data in Sync.
For more information, see the Records full list of APIs.
Set record field aliases to read-only
When you push matter record data into Smarter Drafter via the API, your own system is the source of truth. By default, once that data populates a form, drafters can edit it, which can create a silent mismatch between the value in the generated document and the value in your system of record.
The readOnly property value lets you lock individual field alias values on a record. A read-only value still auto-populates onto forms as normal, but the drafter cannot change it. The property can only be set via the public API - there is no in-app toggle - so enforcement stays with your system.
Setting read-only when creating a record
- Call Add a new records (POST /v1/clients/Records).
- In each object in the
aliasesarray, include the optionalreadOnlyproperty belowvalue. It defaults tofalseif omitted.
Setting read-only on an existing record
- Call Update the aliases associate to a record (PATCH /v1/clients/Records/{id}/Aliases).
- In the
addAliasesarray, update an existing field alias or add a new one withreadOnly: true.
Checking whether a value is read-only
Retrieve the record through any of the Records GET endpoints (Get a record by ID, Get a record by external ID, or Search for records). Each field alias value in the response includes its readOnly state.
COMMON QUESTIONS
Q: What happens if the source value changes after a drafter opens the form?
A: Read-only values refresh to the latest database value. The drafter sees the update on form refresh, or after exiting and re-entering. Once submitted, values are frozen and no longer update.
Q: Can a drafter override a read-only value in the app?
A: No. The field is locked in the form, and the record value's edit button is disabled during record assignment. Hovering over the disabled button shows "Record set to read-only cannot be edited".
Q: Does this affect record values created inside a Smarter Drafter form?
A: No. Values created from within a form default to readOnly: false. Only API calls can set the property to true.
Q: Will this change behaviour for my existing API integration?
A: No. Existing values default to readOnly: false and are unaffected unless you explicitly update them via the API.