Skip to content

Companies

The organisations your contacts work at, 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 company object

An organisation in the workspace's directory. Contacts work at companies, and deals and projects are for them.

objectstring

Always company.

idstring
namestring
domainstring

e.g. acme.com: new contacts with emails at it are suggested to join it.

websitestring
phonestring
addressstring
citystring
postcodestring
countrystring
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=company).

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=company).

urlstring
created_attime
updated_attime
The company object
{
"object": "company",
"id": "cmp_01jc7ag3bckkdjwbhp1g201cyf",
"name": "Honeybee Bakery",
"domain": "honeybeebakery.co.uk",
"website": "https://honeybeebakery.co.uk",
"phone": "+44 20 7946 0300",
"address": "14 Market Row",
"city": "Brighton",
"postcode": "BN1 1HD",
"country": "United Kingdom",
"owner": {
"id": "mem_01jcm9s346q3d25vt4f5v37e3s",
"name": "Imogen Hale"
},
"about": "Six bakeries across Sussex, opening a seventh in March.",
"tags": [
{
"id": "tag_01jcw6vzskdenc8sp3804gva35",
"name": "Retainer"
}
],
"labels": [
{
"id": "tag_01jcw6vzskdenc8sp3804gva35",
"name": "Retainer"
}
],
"fields": {},
"url": "https://app.mavatu.com/kettle-kite/directory/companies/cmp_01jc7ag3bckkdjwbhp1g201cyf",
"created_at": "2025-04-17T14:18:40Z",
"updated_at": "2026-10-30T09:05:12Z"
}

List companies

GET/companies

Organisations in the directory, newest first. Find one by its domain with domain=, or by part of a name or domain with q=.

Filters and paging

qstring

Part of a name or domain.

domainstring

A domain, exactly, e.g. acme.com (a website's address works too).

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 companies.

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

Get a company

GET/companies/{id}

One company, with its website, address, owner and custom fields.

Path

idstringrequired

The company's ID.

Returns

The company.

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

Create a company

POST/companies

Add an organisation to the directory; its domain is taken from the website when not given. A domain another company has is a 409 duplicate with existing_id, unless allow_duplicate; with on_duplicate return, that company comes back instead (200).

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

Body

idstring

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

namestringrequired
websitestring
domainstring

Default: taken from the website.

phonestring
addressstring
citystring
postcodestring
countrystring
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=company).

allow_duplicateboolean

Create it even when another company has its domain.

on_duplicatestring

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

Returns

The company, with 201 Created.

POST /companies
curl -X POST https://app.mavatu.com/api/v1/companies \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Honeybee Bakery",
"website": "https://honeybeebakery.co.uk",
"city": "Brighton",
"country": "United Kingdom",
"on_duplicate": "return"
}'

Update a company

PATCH/companies/{id}

Change a company. Only the fields you send change; null clears one. 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 company's ID.

Body

namestringor null
websitestringor null
domainstringor null
phonestringor null
addressstringor null
citystringor null
postcodestringor null
countrystringor 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.

Returns

The company.

PATCH /companies/{id}
curl -X PATCH https://app.mavatu.com/api/v1/companies/cmp_01jc7ag3bckkdjwbhp1g201cyf \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "+44 20 7946 0300",
"owner_id": "me"
}'