Skip to content

Contacts

The people your workspace works with, in its directory. Every request needs an API key; the examples read it from $MAVATU_API_KEY. How lists, dates, money and errors work is in the API guide.

The contact object

A person in the workspace's directory: a client, a lead, a supplier. Contacts are shared by every app, so the same Priya is on the deal, the project and the meeting.

objectstring

Always contact.

idstring
namestring

How they're shown: first and last name, unless given another.

first_namestring
last_namestring
emailstringor null

Their main email address (the first of emails), or null.

phonestringor null

Their main phone number (the first of phones), or null.

emailsarray of objector null

The first is the main one. Labels: work, home or other.

valuestring
labelstring
phonesarray of objector null

The first is the main one. Labels: work, home, mobile or other.

valuestring
labelstring
job_titlestring
company{id, name}or null
owner{id, name}or null

Who looks after the relationship.

aboutstring

Markdown.

tagsarray of {id, name}or null

Its tags, in order (see GET /tags?record_type=contact).

labelsarray of {id, name}or null

The same as tags, under their old name.

fieldsobject

Custom field values the key's person can see, keyed by field ID (see GET /fields?record_type=contact).

do_not_contactboolean
consentstring

Marketing: unknown, subscribed or unsubscribed.

urlstring
created_attime
updated_attime
The contact object
{
"object": "contact",
"id": "ctc_01jc1rnj47e65gh2bh8vgs9zm5",
"name": "Priya Shah",
"first_name": "Priya",
"last_name": "Shah",
"email": "priya@honeybeebakery.co.uk",
"phone": "+44 20 7946 0321",
"emails": [
{
"value": "priya@honeybeebakery.co.uk",
"label": "work"
},
{
"value": "priya.shah@example.com",
"label": "home"
}
],
"phones": [
{
"value": "+44 20 7946 0321",
"label": "work"
}
],
"job_title": "Head of marketing",
"company": {
"id": "cmp_01jc7ag3bckkdjwbhp1g201cyf",
"name": "Honeybee Bakery"
},
"owner": {
"id": "mem_01jcm9s346q3d25vt4f5v37e3s",
"name": "Imogen Hale"
},
"about": "Met at Brighton Design Week. Prefers a call to email.",
"tags": [
{
"id": "tag_01jcw6vzskdenc8sp3804gva35",
"name": "Retainer"
}
],
"labels": [
{
"id": "tag_01jcw6vzskdenc8sp3804gva35",
"name": "Retainer"
}
],
"fields": {
"fld_01jcnr5yhcf05g59s2s1kke59r": "opt_01jcmz9j92v81e5128q6rw31fz"
},
"do_not_contact": false,
"consent": "subscribed",
"url": "https://app.mavatu.com/kettle-kite/directory/contacts/ctc_01jc1rnj47e65gh2bh8vgs9zm5",
"created_at": "2025-04-17T14:20:03Z",
"updated_at": "2026-11-04T12:31:55Z"
}

List contacts

GET/contacts

People outside the workspace (customers, leads, suppliers), newest first. Find one by email with email=, or by part of a name or email with q=.

Filters and paging

qstring

Part of a name or email.

emailstring

An email address, exactly (any case): any of the contact's.

company_idstring

Only people at this company.

owner_idstring

Only those a member looks after: a member's ID, me, or none for nobody's.

tagarray of strings

Only those with these tags, by ID or name (GET /tags lists them): repeat it, or separate them with commas, up to 50. tag_mode says whether they need all of them, any or none. A tag not used on this kind of record is refused.

tag_modestring

With tag: all (the default) for those with every one of the tags, any for those with at least one, none for those with none of them.

fieldobject

Only those whose custom field matches, with the field by ID or name (GET /fields lists them), e.g. field[Phase]=Design. Options are by ID or name, people by ID, me, email or name, contacts by ID, email or name, and companies by ID, domain or name: up to 50, repeated or comma-separated, match any of them. Commas always separate values, so give one with a comma in its name by ID. A checkbox is true or false. Text matches when it contains the value, ignoring case. A number, amount or date matches exactly, and field[…][from] and field[…][to] give an inclusive range. Dates are YYYY-MM-DD; amounts are in the workspace's currency, in its smallest unit (500000 is 5,000.00), with other currencies converted at today's rate. none matches those with no value, any those with one. Every filter must match.

limitinteger

How many to return, 1 to 100. Default 25.

cursorstring

next_cursor from the previous page.

sortstring

created_at (the default: in the order they were made) or updated_at (by when they last changed).

orderstring

desc (the default: newest first) or asc (oldest first). To sync everything that changed, use sort=updated_at&order=asc with updated_since: what changes while you page through comes again at the end.

updated_sincetime

Only what changed at or after this time (RFC 3339, e.g. 2026-11-06T09:00:00Z): for polling.

Returns

A list of contacts.

GET /contacts
curl "https://app.mavatu.com/api/v1/contacts?email=priya@honeybeebakery.co.uk" \
-H "Authorization: Bearer $MAVATU_API_KEY"

Get a contact

GET/contacts/{id}

One contact, with their emails, phones, company, owner and custom fields.

Path

idstringrequired

The contact's ID.

Returns

The contact.

GET /contacts/{id}
curl https://app.mavatu.com/api/v1/contacts/ctc_01jc1rnj47e65gh2bh8vgs9zm5 \
-H "Authorization: Bearer $MAVATU_API_KEY"

Create a contact

POST/contacts

Add a person to the directory: a name, a first and last name, or an email (the name is taken from it). An email another contact has is a 409 duplicate with existing_id, unless allow_duplicate; with on_duplicate return, that contact comes back instead (200), for find-or-create in one step.

Needs a key that can read and change. Send an Idempotency-Key to try it again safely.

Body

idstring

Your own ID for it (ctc_…), or leave it out.

namestring

How they're shown. Default: first and last name, or taken from the email.

first_namestring
last_namestring
emailstring

Their email address: the main one. Or send emails, for several.

phonestring

Their phone number: the main one. Or send phones, for several.

emailsarray of object

The first is the main one: {value, label}, or just the address. Labels: work (the default), home or other.

valuestringrequired
labelstringrequired
phonesarray of object

{value, label}, or just the number. Labels: work (the default), home, mobile or other.

valuestringrequired
labelstringrequired
job_titlestring
company_idstring
owner_idstring

Who looks after the relationship: a member, or me.

aboutstring

Markdown.

tagsobject

Tags to give it: {add: [IDs or names]}.

addarray of strings

Tags to add, by ID or name (see GET /tags): a new name makes a tag.

removearray of strings

Tags to take off, by ID or name.

label_idsarray of strings

Its tags, by ID (the old way: see tags).

fieldsobject

Custom field values, keyed by field ID or name (see GET /fields?record_type=contact).

do_not_contactboolean
consentstring

Marketing: unknown (the default), subscribed or unsubscribed.

allow_duplicateboolean

Create it even when another contact has one of its emails.

on_duplicatestring

What a duplicate does: error (the default) answers 409 with existing_id; return answers 200 with the record that's already there.

Returns

The contact, with 201 Created.

POST /contacts
curl -X POST https://app.mavatu.com/api/v1/contacts \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Priya",
"last_name": "Shah",
"email": "priya@honeybeebakery.co.uk",
"job_title": "Head of marketing",
"company_id": "cmp_01jc7ag3bckkdjwbhp1g201cyf",
"owner_id": "me",
"tags": {
"add": [
"Retainer"
]
},
"on_duplicate": "return"
}'

Update a contact

PATCH/contacts/{id}

Change a contact. Only the fields you send change; null clears one. emails, phones and label_ids replace the whole list; fields merge, and a null value clears that field.

Needs a key that can read and change. Send an Idempotency-Key to try it again safely.

Path

idstringrequired

The contact's ID.

Body

namestringor null
first_namestringor null
last_namestringor null
emailsarray of objector null

Replaces them all; the first is the main one.

valuestringrequired
labelstringrequired
phonesarray of objector null

Replaces them all.

valuestringrequired
labelstringrequired
job_titlestringor null
company_idstringor null

A company, or null.

owner_idstringor null

A member, me, or null.

aboutstringor null

Markdown.

tagsobjector null

Tags to add and take off: {add, remove}, by ID or name.

addarray of stringsor null

Tags to add, by ID or name (see GET /tags): a new name makes a tag.

removearray of stringsor null

Tags to take off, by ID or name.

label_idsarray of stringsor null

Its tags, by ID: replaces them all (the old way: see tags).

fieldsobjector null

Merged, keyed by field ID or name: a null value clears that field.

do_not_contactbooleanor null
consentstringor null

unknown, subscribed or unsubscribed.

Returns

The contact.

PATCH /contacts/{id}
curl -X PATCH https://app.mavatu.com/api/v1/contacts/ctc_01jc1rnj47e65gh2bh8vgs9zm5 \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_title": "Marketing director",
"fields": {
"fld_01jcnr5yhcf05g59s2s1kke59r": "opt_01jcmz9j92v81e5128q6rw31fz"
}
}'