Custom Records · 2 min read
Overview
Send custom records such as orders, subscriptions or bookings from your system to Lemu AI
Custom records hold data about your contacts that doesn't fit on the contact itself, such as orders, subscriptions, bookings or policies. You define each record type and its fields in the dashboard under Records. See Custom Records for how to set one up and how journeys, segments and messages use records.
The records API keeps those records in step with your own system:
| Method | Endpoint | Purpose |
|---|---|---|
PUT | /objects/{api_name}/records/{key} | Create or update one record |
POST | /objects/{api_name}/records/batch | Create or update up to 1,000 records in one request |
Creating record types, changing their fields, importing CSV files and deleting records are done in the dashboard.
Key ideas#
| Term | Meaning |
|---|---|
api_name | The record type's API name, for example subscription. It is made from the record type's name when you create it, in lower case with underscores. |
| Record key | The value that identifies a record within its type, for example a subscription id. Sending the same key again updates that record instead of creating a new one. |
| Owner | The contact a record belongs to. Every record of a normal record type has one owner. A catalog (such as products) has no owner. |
data | The record's fields, as an object of field name and value. Only fields defined on the record type are accepted. |
How updates work#
Records are merged, not replaced:
- fields you send replace the stored value;
- fields you don't send keep their stored value;
- a field sent as
nullor an empty string is cleared.
Each change records an object_created or object_updated event on the owner's timeline (source records), so journeys and segments can react to it. Personal fields aren't copied into the event.
Field values#
| Field type | Send |
|---|---|
| Text | A string, up to 2,000 characters. |
| Number | A number, or a string that is a number. |
| True or false | true or false (also "yes", "no", "1", "0"). |
| Date | A date, for example "2026-11-30". |
| Date and time | An ISO 8601 date and time, for example "2026-11-30T18:00:00Z". |
| Choice | One of the field's options. Upper and lower case are ignored. |
| Link | An http or https link, up to 2,000 characters. |
A record can be at most 16 KB once saved. Fields marked as required must have a value.
Fields marked as personal are partly hidden (•••) in the dashboard for team members without permission to view personal data. API keys always see the full values.
Plan limits#
Your plan sets how many record types and records your organization can store. A request that would create more records than your plan allows returns 402.
Was this page helpful?
Docs