LemuAIDocs

Contacts · 2 min read

Overview

Keep your Lemu AI contacts and contact lists in sync with your CRM

Open in ChatGPTOpen in ClaudeMarkdown

A contact is a person you call or message. Contacts are grouped into contact lists, which campaigns and journeys use as their audience. One contact can be in several lists.

The contacts API is for keeping Lemu AI in step with your own system (a CRM, a spreadsheet, a signup form):

MethodEndpointPurpose
POST/contacts/upsertAdd or update one contact and put it in a list
POST/contacts/bulk-upsertAdd or update up to 5,000 contacts in one list
GET/contactsList and search contacts
GET/contacts/{contact_id}Get one contact and the lists it is in
GET/contacts/listsList your contact lists
GET/contacts/lists/{list_id}/contactsList the contacts in one list
GET/contacts/{contact_id}/consentsGet a contact's consent for each channel
PUT/contacts/{contact_id}/consents/{channel}Record an opt-in or opt-out
GET/contacts/{contact_id}/activityGet a contact's activity from every source
GET/contacts/{contact_id}/messagesList a contact's messages and calls

Editing lists, deleting contacts, and importing from Google Sheets are done in the dashboard under Contacts.

Contact fields#

FieldTypeDescription
idintegerThe contact's id in Lemu AI.
organization_idintegerYour organization's id.
phonestring or nullPhone number in international format, for example +919876543210. Used to match existing contacts when upserting.
phone_last4string or nullThe last four digits of the phone number.
phone_maskedbooleantrue if phone is partly hidden (see below).
external_idstring or nullYour own id for this person, for example the CRM record id. Must be unique in your organization.
emailstring or nullEmail address.
first_name, last_namestring or nullName.
companystring or nullCompany name.
titlestring or nullJob title.
tagsarray of strings or nullLabels for grouping and filtering.
custom_fieldsobjectAny other values you store on the contact, as key-value pairs. Agents can use them as template variables when calling the contact.
created_at, updated_atstringTimestamps (ISO 8601, UTC).

Hidden phone numbers#

Phone numbers are personal data. If the person who created the API key isn't allowed to view personal data in your organization, responses show the number partly hidden (for example •••• 3210) and set phone_masked to true. Organization owners and admins, and team members with permission to view personal data, see full numbers.

Plan limits#

Your plan sets how many contacts your organization can store. Requests that would go over the limit return 402.