Skip to content

Support conversations

Conversations with customers: who they're with and where they stand, what was said, triage and notes for the team. 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 conversation object

A support conversation with a customer, by email or the Messenger on your website: who it's with, where it stands, who on the team has it, and its tags. Its messages are read with its own endpoint.

objectstring

Always conversation.

idstring
numberinteger

Its number in the workspace, as in #1042.

subjectstring

In the customer's words; may be empty.

statusstring

open; waiting on the customer; snoozed until snoozed_until; or closed.

priorityboolean

Marked as a priority.

channelstring

How the customer wrote: email, or the Messenger on your website.

One of email, messenger.

customerobject

Who it's with.

namestring

As they gave it, or their contact's name.

emailstringor null

The address they wrote from; null for a Messenger visitor who hasn't given one we could confirm.

contact{id, name}or null

Who they are in the directory; null for people who can't see it.

company{id, name}or null

Their company, in the directory.

assignee{id, name}or null

Who on the team has it; null when nobody does.

inbox{id, name}or null
address{id, name}or null

The support address an email came to, its name the address itself; null for the Messenger.

tagsarray of {id, name}or null

Its tags (see GET /tags?record_type=conversation).

snoozed_untiltimeor null

When a snoozed one opens again.

closed_attimeor null
last_message_attimeor null

When the customer or the team last wrote in it, notes included.

urlstring
created_attime
The conversation object
{
"object": "conversation",
"id": "cnv_01jd2g7c3n6r0v4y8b1e5h9k2m",
"number": 1042,
"subject": "Can we move Friday's delivery?",
"status": "open",
"priority": false,
"channel": "email",
"customer": {
"name": "Priya Shah",
"email": "priya@honeybeebakery.co.uk",
"contact": {
"id": "ctc_01jc1rnj47e65gh2bh8vgs9zm5",
"name": "Priya Shah"
},
"company": {
"id": "cmp_01jc7ag3bckkdjwbhp1g201cyf",
"name": "Honeybee Bakery"
}
},
"assignee": {
"id": "mem_01jc3e28jt97kb6cq643dzvmxx",
"name": "Wren Abbott"
},
"inbox": {
"id": "ibx_01jcb2v7m4q9x3t6r8p1w5y0zk",
"name": "Hello"
},
"address": {
"id": "adr_01jcb2v9h3k6n0q4t7w1z5c8fm",
"name": "hello@kettleandkite.co.uk"
},
"tags": [
{
"id": "tag_01jcz8m2p5r9t3w7y1b4d6f0hj",
"name": "Deliveries"
}
],
"snoozed_until": null,
"closed_at": null,
"last_message_at": "2026-11-12T09:12:40Z",
"url": "https://app.mavatu.com/kettle-kite/support/cnv_01jd2g7c3n6r0v4y8b1e5h9k2m",
"created_at": "2026-11-12T08:47:03Z"
}

List conversations

GET/conversations

Support conversations with customers, the newest first: every status unless you say, without those in Spam or merged into another. Filter by status, assignee, inbox, contact, company or tag.

Filters and paging

statusstring

Those that stand there: open, waiting (on the customer), snoozed or closed. Every status unless you say.

assignee_idstring

Those a member has: their ID, me, or none for those nobody has.

inbox_idstring
contact_idstring

Those with a contact, in the directory.

company_idstring

Those with someone at a company, in the directory.

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.

Returns

A list of conversations.

GET /conversations
curl "https://app.mavatu.com/api/v1/conversations?status=open&assignee_id=me" \
-H "Authorization: Bearer $MAVATU_API_KEY"

Get a conversation

GET/conversations/{id}

One support conversation: who it's with, where it stands, who has it and its tags. GET /conversations/{id}/messages reads what was said.

Path

idstringrequired

The conversation's ID.

Returns

The conversation.

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

Update a conversation

PATCH/conversations/{id}

Triage a conversation: its status, who has it, its inbox, whether it's a priority, and its tags. Changes only the fields you send; null clears one. It never writes to the customer.

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

Path

idstringrequired

The conversation's ID.

Body

statusstringor null

open, waiting (on the customer) or closed.

assignee_idstringor null

A member of the team, me, or null for nobody.

inbox_idstringor null

Move it to another inbox, which leaves it with nobody unless assignee_id is sent too.

prioritybooleanor null

Mark it as a priority, or not (null is not).

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.

Returns

The conversation.

PATCH /conversations/{id}
curl -X PATCH https://app.mavatu.com/api/v1/conversations/cnv_01jd2g7c3n6r0v4y8b1e5h9k2m \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "waiting",
"assignee_id": "mem_01jc3e28jt97kb6cq643dzvmxx",
"tags": {
"add": [
"Deliveries"
]
}
}'

The conversation message object

Something said in a support conversation: what the customer wrote (plain text, as they wrote it), the team's replies, and the team's internal notes, which the customer never sees.

objectstring

Always conversation_message.

idstring
conversation_idstring
kindstring

customer: what the customer wrote; reply: the team's answer to them; note: the team's internal note, which the customer never sees.

author{id, name}or null

Who on the team wrote a reply or note; null for the customer's.

fromobjector null

Who wrote a customer's message; null for the team's.

namestring

As they gave it.

emailstringor null

The address they wrote from; null in the Messenger.

contact{id, name}or null

Who they are in the directory; null for people who can't see it.

bodystring

The team's replies and notes are Markdown, with mentions as @[Name](mem_…). A customer's message is plain text, as they wrote it (see format).

formatstring

markdown for the team's; text for the customer's, never to be read as Markdown.

deliverystringor null

A reply's: queued to send (it can still be undone), held for its author to look at again, sent, or failed. Null for the rest.

urlstring
created_attime
edited_attimeor null

When a note was last changed.

The conversation message object
{
"object": "conversation_message",
"id": "prt_01jd2h5r8m1q4t7w0y3b6e9g2k",
"conversation_id": "cnv_01jd2g7c3n6r0v4y8b1e5h9k2m",
"kind": "note",
"author": {
"id": "mem_01jc3e28jt97kb6cq643dzvmxx",
"name": "Wren Abbott"
},
"from": null,
"body": "@[Imogen Hale](mem_01jcm9s346q3d25vt4f5v37e3s) the van's booked for Thursday instead. Shall I tell her?",
"format": "markdown",
"delivery": null,
"url": "https://app.mavatu.com/kettle-kite/support/cnv_01jd2g7c3n6r0v4y8b1e5h9k2m?part=prt_01jd2h5r8m1q4t7w0y3b6e9g2k",
"created_at": "2026-11-12T09:12:40Z",
"edited_at": null
}

List a conversation's messages

GET/conversations/{id}/messages

What was said in a conversation, the newest first (order=asc reads it from the start): the customer's messages, the team's replies and the team's internal notes.

Path

idstringrequired

The conversation message's ID.

Filters and paging

orderstring

desc (the default: newest first) or asc (from the start).

limitinteger

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

cursorstring

next_cursor from the previous page.

Returns

A list of conversation messages.

GET /conversations/{id}/messages
curl "https://app.mavatu.com/api/v1/conversations/prt_01jd2h5r8m1q4t7w0y3b6e9g2k/messages?order=asc" \
-H "Authorization: Bearer $MAVATU_API_KEY"

Add a note

POST/conversations/{id}/notes

Add an internal note to a conversation, as the key's person: only the team sees it, never the customer. Mention a teammate with @[Their Name](mem_…) and they're told. There's no endpoint that replies to the customer: draft replies with the AI tools, for a person to check and send.

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

Path

idstringrequired

The conversation message's ID.

Body

idstring

Your own ID for it (prt_…), or leave it out. Sending the same ID again returns the first note.

bodystringrequired

The note, in Markdown. Mention a teammate with @[Their Name](mem_…) and they're told.

Returns

The conversation message, with 201 Created.

POST /conversations/{id}/notes
curl -X POST https://app.mavatu.com/api/v1/conversations/prt_01jd2h5r8m1q4t7w0y3b6e9g2k/notes \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "@[Imogen Hale](mem_01jcm9s346q3d25vt4f5v37e3s) the van'\''s booked for Thursday instead. Shall I tell her?"
}'