Skip to content

The Mavatu API

The Mavatu API lets other tools read and change your work: add a contact and a lead when someone fills in your website’s form, post in Slack when a deal is won, tick off a task from a spreadsheet, or pull this month’s deals into a report.

It works with Zapier, Make, n8n and anything else that can send a web request. If you’re writing code, it’ll feel familiar: JSON, predictable addresses, and an OpenAPI file you can open in Postman or Insomnia.

  1. Go to Settings › API keys and choose New key.
  2. Give it a name that says what it’s for, like Zapier or Invoice sync.
  3. Choose what it can do: Read and change, or Read only for reports and sheets.
  4. Choose when it expires. We’ll email you a week before it does.
  5. Copy the key and paste it into the tool you’re connecting. It’s only shown once.

A key acts as you, in the workspace you made it in, with your permissions. It can see only what you can see, and change only what you can change. Changes made with it show in history as made by you, via API.

Keep keys secret, like a password. If one might have leaked, revoke it in Settings › API keys: it stops working straight away. Workspace admins see everyone’s keys there and can revoke any of them.

Keys also stop working when you leave the workspace, when your role no longer allows using the API, when you change or reset your password, or when you choose Sign out everywhere.

Every request goes to https://app.mavatu.com/api/v1, with your key in the Authorization header:

Terminal window
curl https://app.mavatu.com/api/v1/me \
-H "Authorization: Bearer mavatu_…"

That answers with who the key acts for and which workspace it’s in: a good way to check a key works. Keys only ever go in that header, never in the address.

To change something, send JSON:

Terminal window
curl https://app.mavatu.com/api/v1/tasks \
-H "Authorization: Bearer mavatu_…" \
-H "Content-Type: application/json" \
-d '{"project_id": "prj_…", "title": "Send the moodboard to Wren", "assignee_id": "me", "due_on": "2026-11-13"}'

The API reference has every endpoint, with its fields, filters and an example to copy:

Me, members and teams Who a key acts for, and the people and teams to assign work to and mention.
Projects Projects, and the templates they start from.
Tasks Find tasks, add them, move them along and tick them off.
Comments On tasks, projects, deals, contacts and companies.
Contacts and companies Your directory: find or add people and organisations.
Tags and custom fields Your workspace’s own, and their IDs.
Deals and pipelines Leads and deals: add them, move them through stages, win and lose them.
Activities Calls, meetings and the rest: plan them and log them.
Bookings Meetings people have booked with you: who, when, where and their answers.
Time off Who’s away when, booking, approving and cancelling time off, balances, and who’s on call on a rota.
Agreements Proposals, quotes, contracts and more: where each stands, who it’s with, what it comes to, and the signed PDF.
Support conversations Conversations with customers and what was said: triage them, and add notes for the team.
Discuss channels Channels and their messages, and posting in them as yourself.
HR People’s jobs and dates, joiners and leavers, changes from a date and reviews, to open and close accounts in other tools. Never personal details, and pay only for keys of people who see it.
Search Anything by name, across every app.
Webhooks Have what happens sent to your tool as it happens.

The same is in the OpenAPI file, for Postman, Insomnia and code generators. Nothing in your workspace can be deleted through the API: the one thing you can delete is a webhook, which is a setting of your tool’s, not your work. Nor can the API write to your customers: a reply sent from a script is too easy to get wrong, so draft replies with Claude or ChatGPT instead, and check and send them in Support.

Names and IDs. Everything has an ID that starts with what it is: tsk_… for a task, ctc_… for a contact. You send IDs (assignee_id, project_id), and you get back names too: "assignee": {"id": "mem_…", "name": "Imogen Hale"}, so a Zap can say who without looking it up. Wherever a person is asked for, me means you. Every record has a url that opens it in Mavatu.

Dates, times and money. Dates are days like 2026-11-13, in your workspace’s time zone. Times are like 2026-11-07T09:30:00Z, in UTC. Money is a whole number of the smallest unit with its currency: {"amount": 1250000, "currency": "GBP"} is £12,500.00.

Text that people format, like descriptions and comments, is Markdown. Mention someone with @[Imogen Hale](mem_…): they’re notified, as in the app.

Lists come newest first (or oldest first, with order=asc), a page at a time:

{ "object": "list", "data": [ … ], "has_more": true, "next_cursor": "eyJ…" }

Ask for up to 100 at once with limit, and pass next_cursor back as cursor for the next page. Filters that take a person take their ID, me, or none for nobody.

Finding what’s new or changed. Lists of things that change take sort=updated_at (latest change first) and updated_since. To check for changes every few minutes, as Zapier does:

  1. Ask for sort=updated_at&updated_since= the time you last asked, minus a couple of minutes, and page through.
  2. Remember the newest updated_at you saw, for next time.
  3. Skip what you’ve already handled: the same id with the same updated_at.

Going back a couple of minutes catches changes that were still being saved when you last asked. Something changed while you page through moves to the front, and you’ll see it next time.

Copying everything that changed, to keep a sheet or another system in step: ask for sort=updated_at&order=asc (oldest change first) with updated_since, and page to the end. Something changed while you page through comes again at the end, so nothing is missed, and if you stop halfway you can carry on from the last updated_at you saw.

Records that are deleted, or merged into another, leave the lists without a trace.

To hear about something the moment it happens instead of asking every few minutes, use a webhook.

Changes. POST makes something and answers with it. PATCH changes only the fields you send; send null to clear one. Unknown fields and filters are refused, so a typo doesn’t pass unnoticed.

Trying again safely. If a request might not have got through, send it again with the same Idempotency-Key header (any unique text you choose per change): if the first one worked, you get its answer back instead of making two. The key belongs to that exact request: to send something different, use a new key.

Money comes whole: a value is always its amount and its currency together, both, never one alone.

Find or create. Adding a contact with an email another contact already has (or a company with another’s domain) answers 409 with code duplicate and the existing_id. Send "on_duplicate": "return" instead, and you get the one that’s there (200) rather than an error: one step for “find or create”.

Tags, custom fields, lanes and stages are the workspace’s own. Look up their IDs with GET /tags, GET /fields, a project’s lanes, GET /pipelines, GET /activity_types and GET /lost_reasons.

Tags and custom fields work the same on contacts, companies, deals, projects and tasks (Support conversations have tags, and no custom fields). A record shows its tags and its fields, keyed by field ID. To change them, send "tags": {"add": [...], "remove": [...]}, by ID or by name (a name you haven’t used yet makes a new tag), and "fields": {...}, keyed by field ID or name, where null clears one. You only ever see, and can set, the fields and tags you’d see in Mavatu: a field used in a project or pipeline you can’t open isn’t there for you, and guests never see tags. Tags used to be called labels: labels, label_ids and GET /labels still work.

Filtering by tags and custom fields. The lists of contacts, companies, deals, projects and tasks take the same filters:

  • tag=VIP lists those with that tag, by ID or name. Give several (tag=VIP&tag=Partner, or tag=VIP,Partner, up to 50) and they need all of them; add tag_mode=any for at least one, or tag_mode=none for none of them. A tag that isn’t used on that kind of record is refused.
  • field[Phase]=Design lists those whose field has that value, with the field by ID or name. An option is its ID or name; a person their ID, me, email or name; a contact their ID, email or name; and a company its ID, domain or name. Several values separated by commas (up to 50) match any of them. A checkbox is true or false, and text matches when it contains what you give, ignoring case.
  • field[Budget][from]=500000&field[Budget][to]=1000000 is a range, including both ends, of numbers, dates (2026-11-13) or amounts. Amounts are in your workspace’s currency, in its smallest unit like every amount in the API (500000 is £5,000.00), and amounts in other currencies are converted at today’s rate.
  • field[Phase]=none lists those with no value, and field[Phase]=any those with one.

Every filter you give must match. Filters see what you’d see in Mavatu, so a field or tag you can’t see is refused, just like one that doesn’t exist. Commas always separate values, so give a tag, option or name that has a comma in it by its ID: IDs always work. If you use curl, add -g so it leaves the square brackets alone.

A webhook sends what happens in Mavatu to your tool as it happens: a deal won, a meeting booked, a document signed. Zapier, Make and n8n set them up for you when you turn on an instant trigger. In your own code, ask for one with your key:

Terminal window
curl https://app.mavatu.com/api/v1/webhooks \
-H "Authorization: Bearer mavatu_…" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/mavatu", "events": ["crm.deal_won", "sign.signed"]}'

The answer has the webhook’s id and its signing secret. Keep the secret: it’s only shown then. Any key can make a webhook, including one that only reads, since a webhook only sends what you can see. To stop it, delete it with DELETE /webhooks/{id}, as Zapier does when you turn a Zap off.

What’s sent. Each event is a POST of JSON to your address:

{
"id": "evt_01jd…",
"object": "event",
"type": "crm.deal_won",
"created_at": "2026-11-12T10:04:31Z",
"webhook_id": "whk_01jd…",
"data": { "object": { "object": "deal", "id": "deal_01jd…", "title": "Honeybee Bakery rebrand", "status": "won" } }
}

data.object is the record the event is about, exactly as the API shows it to you when the event is sent: the same fields as GET /deals/{id}, GET /bookings/{id} and the rest. The same event can arrive more than once, so skip an id you’ve already handled.

Events you can ask for:

Event When
crm.deal_created, crm.lead_created A deal or a lead is added.
crm.deal_stage A deal moves to another stage.
crm.deal_won, crm.deal_lost A deal is won or lost.
directory.contact_created A contact is added.
fields.tagged A contact, company, deal, project, task or Support conversation is tagged.
projects.project_started, projects.project_completed A project starts, or is completed.
projects.task_assigned, projects.task_done A task is assigned, or done.
meet.booked, meet.rescheduled, meet.cancelled, meet.no_show A meeting is booked, moved or cancelled, or someone doesn’t come.
sign.sent, sign.signed, sign.declined A document is sent, signed by everyone, or declined.
sign.changes_requested, sign.withdrawn, sign.expired Changes are asked for, or a document is withdrawn or expires unsigned.
sign.opened, sign.read Someone opens a version of a document sent to them for the first time, or finishes reading it. For documents with people who work with you, only sign.opened is sent, without how long anything was read.
sign.reader_added Someone it was sent to shares a document with a colleague, or your team adds a viewer to one that’s out.
support.created, support.replied, support.closed A Support conversation comes in, its customer writes again, or it’s closed.
core.member_joined Someone joins the team.

You’re only sent what you can see. If you can’t see a record when its event is sent (it’s in a private project, say), that event isn’t sent to you.

Checking it’s from us. Every event has a Mavatu-Signature header like t=1762941871,v1=5257a8…. To check it, take t, a dot and the raw body (1762941871.{"id":…}), make its HMAC-SHA256 with your webhook’s secret, and compare it in hex with v1. Refuse events whose t is more than five minutes old.

import crypto from "node:crypto";
function fromMavatu(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

Answering. Answer with any 2xx within 10 seconds, and do the slow work afterwards. If your address doesn’t answer, takes longer, or answers 408, 429 or 5xx, we try again after 1, 5, 15, 30 and 60 minutes, then every hour, for a day. Other answers aren’t tried again. Answer 410 and the webhook is turned off for good. Addresses must be https, and we don’t follow redirects.

When it keeps failing. If nothing we send to a webhook works for a day, we switch it off and email you. Once it’s fixed, turn it on again in Settings › API keys, where you can see your webhooks, where each sends and how its last event went. Events from while it was off aren’t sent. A webhook also stops when the key that made it is revoked or expires, or when you leave the workspace. Workspace admins see everyone’s webhooks there and can turn any of them off.

Without writing any code. Admins can also send what happens to Slack, Zapier or Make with Automate: add the Send to Slack, Zapier or Make step to an automation, paste the link your tool gives you, and choose exactly what goes, and when.

Errors say what happened in words you can show people, and which field it’s about:

{ "error": { "code": "invalid", "message": "Use a day like 2026-11-06.", "field": "due_on", "request_id": "c2fe088508095565" } }
Status When
400 Something in the request is wrong: field says what.
401 No key, or it’s wrong, revoked or expired.
402 The workspace is paused: it can be read, but not changed.
403 You can’t do this, the key only reads, or the workspace asks for two-step verification and you haven’t turned it on.
404 It doesn’t exist, or you can’t see it.
405 That address doesn’t take this method: the Allow header says which it does.
409 It clashes with what’s there, or it’s a duplicate.
413, 415 The body is over 1 MB, or isn’t JSON.
422 That Idempotency-Key was used for a different request.
429 Too many requests: wait as long as Retry-After says.

If you need to ask us about a request, include its request_id.

Each person can make 300 requests a minute across their keys, 60 of them changes, and a workspace 1,200 a minute in all. Every answer says where you stand in its RateLimit-Remaining and RateLimit-Reset headers. Zapier, Make and n8n slow down on their own when they need to.

We only add to this version of the API: new fields, filters and endpoints. Nothing you use is renamed or taken away. If we ever need to, it’ll be a new version beside this one, announced in the changelog well ahead.