Konvo API reference
Every tool is POST https://api.k2.konvoai.com/v1/<tool> with its arguments as a JSON object and Authorization: Bearer konvo_sk_…. The answer is the tool's result as JSON. See Getting started for keys, errors and limits. Machine-readable: GET /v1/openapi.json.
| Tool | Access |
|---|---|
add_internal_note | Write |
answer_agent_question | Write |
assign_conversation | Write |
create_ai_agent | Write |
create_conversation | Write |
delete_ai_agent | Write |
find_conversation | Read |
get_agent_reply | Read |
get_ai_agent | Read |
get_conversation | Read |
list_ai_agents | Read |
list_analytics_conversations | Read |
list_analytics_metrics | Read |
list_channels | Read |
list_conversations | Read |
list_csat_responses | Read |
list_members | Read |
list_organizations | Read |
message_ai_agent | Write |
pin_conversation | Write |
publish_ai_agent | Write |
query_analytics | Read |
rename_ai_agent | Write |
respond_to_conversation | Write |
set_agent_channels | Write |
set_conversation_property | Write |
set_conversation_status | Write |
snooze_conversation | Write |
tag_conversation | Write |
unpublish_ai_agent | Write |
add_internal_note
Add internal note · write: needs a read-and-write key
Leave an internal note on a conversation: seen by the team, never sent to the customer. Pass an idempotencyKey so a retry after a timeout cannot leave it twice.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
body | string | yes | The note's text |
idempotencyKey | string | no | Optional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result. |
answer_agent_question
Answer AI agent question · write: needs a read-and-write key
Answer the questions the AI agent's configurator left on its latest reply (reply.pendingQuestions from get_agent_reply). One answer per question, keyed by the question's header: selectedLabels for a select question, text for an open one, or later: true (with empty selectedLabels and text) to leave that question for later. The configurator never waits on its questions: its turn is over and each question is already open on the agent's Brain. Answering starts its next turn, which reads the answers; poll get_agent_reply for that reply (a reply with more questions than one card holds shows the next card's pendingQuestions first, and the turn starts once the last is answered). Omit answers to put the questions away: no turn starts (one running in this session is stopped), the questions stay open on the Brain, and this session does not ask them again.
| Argument | Type | Required | Description |
|---|---|---|---|
sessionId | string | yes | Chat session id returned by message_ai_agent |
messageId | string | yes | Assistant message id carrying the pending questions (reply.messageId from get_agent_reply) |
answers | object | no | Answers keyed by question header. Omit entirely to put the questions away without starting a turn. |
assign_conversation
Assign conversation · write: needs a read-and-write key
Assign a conversation to a teammate, or clear the assignment with null for both assigneeKind and assigneeId. Use list_members to find user ids. Conversations cannot be assigned to an AI agent by hand: AI agents pick them up only through the organization's routing rules.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
assigneeKind | user | null | yes | |
assigneeId | string | null | yes |
create_ai_agent
Create AI agent · write: needs a read-and-write key
Create a new AI agent in the organization. It starts unpublished with no channels — configure it via message_ai_agent, assign channels with set_agent_channels, then publish_ai_agent to go live. Plan limits on agent count apply. Pass an idempotencyKey so a retry after a timeout cannot create a second agent.
| Argument | Type | Required | Description |
|---|---|---|---|
name | string | yes | Agent display name |
idempotencyKey | string | no | Optional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result. |
create_conversation
Create conversation · write: needs a read-and-write key
Create a conversation as an email from a customer to one of the organization's mailboxes (the default one unless channelId names another email channel). It enters the inbox like any email, so the organization's rules run on it. externalId is your own id for it (an order number, a ticket id): unique in the organization, it finds the conversation later (get_conversation) and makes a retry safe — a call with an externalId already used creates nothing and answers with that conversation (created: false). The answer waits a few seconds for the email to be in; streamId is null while it isn't yet, so ask find_conversation with the externalId a moment later. Then tag it (tag_conversation), set its properties (set_conversation_property) or leave a note (add_internal_note).
| Argument | Type | Required | Description |
|---|---|---|---|
externalId | string | yes | Your own id for the conversation, unique in the organization |
customer | object | yes | Who the email is from |
customer.email | string | yes | The customer the email is from |
customer.name | string | no | |
subject | string | yes | |
body | string | yes | The email as plain text; with html, the version for clients that don't show HTML |
html | string | no | |
channelId | string | no | The email channel it arrives on; the organization's default mailbox when left out |
delete_ai_agent
Delete AI agent · write: needs a read-and-write key
Permanently delete an AI agent, its configuration, and its assignment rules. Conversations it was handling are unassigned. This cannot be undone.
| Argument | Type | Required | Description |
|---|---|---|---|
agentId | string | yes | AI agent id from list_ai_agents or get_ai_agent |
find_conversation
Find conversation by external id · read
Find the conversation a create_conversation call made, by the externalId it was given. Returns { externalId, streamId, pending }: pending is true while the email is still on its way into the inbox (streamId null). Then use the streamId with get_conversation and the write tools.
| Argument | Type | Required | Description |
|---|---|---|---|
externalId | string | yes | The externalId create_conversation was called with |
get_agent_reply
Get AI agent reply · read
Poll an AI agent chat session for the latest reply. status is in_progress while the agent is thinking or using tools (reply.content shows the partial text so far) and idle once the reply is terminal (reply.status complete or error). When reply.pendingQuestions is set, the reply ended with questions for the merchant: answer them with answer_agent_question. When reply.content asks whether to publish or to send a reply to a customer, answer yes with message_ai_agent in the same session.
| Argument | Type | Required | Description |
|---|---|---|---|
sessionId | string | yes | Chat session id returned by message_ai_agent |
get_ai_agent
Get AI agent · read
Fetch one AI agent's details: name, model overrides, live status, assigned channels and schedule, and any staged (unpublished) channel/schedule edit.
| Argument | Type | Required | Description |
|---|---|---|---|
agentId | string | yes | AI agent id from list_ai_agents or get_ai_agent |
get_conversation
Get conversation · read
Fetch one conversation's metadata and full message timeline by stream id. Use this before replying so you have context. csat is the customer satisfaction survey: null when none was sent, otherwise answered with the rating (1-5) and comment, or answered false while it waits for an answer. contact is the customer as the inbox knows them: their name and the emails, phones and Instagram handles on file (verified ones marked), for finding them in another system. A customer's message names them in source.email when their address is known, and each stored file in payload.attachments has a url that works for an hour. No organization id is required.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
list_ai_agents
List AI agents · read
List the organization's AI agents: id, name, whether setup is complete, whether the agent is live (answering on at least one channel), the channels it covers, its schedule, and whether a channel/schedule edit is staged but not yet published.
No arguments.
list_analytics_conversations
List the conversations behind an analytics figure · read
The conversations that make up a figure in the automatically scoped organization (for members who can see Analytics: owners, admins and managers), as clicking it in Analytics lists them: pass the same range and filters as query_analytics, plus metricId (a drillable metric — its conversations add up to its value), and/or segment (one row of a breakdown, e.g. {dimension: "topic", key: "returns"} or {dimension: "csat_rating", key: "1"}), outcome (a disposition) or funnelNode (a funnel step). Returns { conversations, nextCursor }: stream id, channel, created and closed dates, outcome, topics, response and resolution times, and the customer. Open one with get_conversation. Paginated — follow nextCursor until it is null.
| Argument | Type | Required | Description |
|---|---|---|---|
from | string | yes | Start: a day (2026-10-01, midnight in the organization's timezone) or an ISO 8601 instant with offset |
to | string | yes | End: a day, included in full (2026-10-31 covers all of October 31), or an exact instant, excluded |
filters | object | no | The Analytics screen's filters, values from list_analytics_metrics. Several values in one filter match any of them; several filters must all match. agent takes user ids plus ai (any AI agent) and human (any person) |
filters.channelType | string[] | no | |
filters.topic | string[] | no | |
filters.tag | string[] | no | |
filters.agent | string[] | no | |
filters.aiAgent | string[] | no | |
filters.sentiment | (positive | neutral | negative)[] | no | |
filters.priority | (low | normal | high | urgent)[] | no | |
filters.language | string[] | no | |
metricId | string | no | A metric with drillable: true in list_analytics_metrics |
segment | object | no | Only the conversations behind one row or segment of a breakdown |
segment.dimension | topic | tag | channel | agent | sentiment | priority | language | contact_form | resolution_kind | article | category | help_center | csat_rating | csat_closer | attribution_level | helped_by | origin | store | yes | |
segment.key | string | null | yes | A key from a grouped result; null for its unclassified row. csat_rating keys are 1-5, csat_closer keys ai_agent or user |
outcome | resolved | escalated | constrained | still_automated | human_handled | no | Only conversations with this outcome |
funnelNode | new_conversations | ai_replied | ai_no_reply | straight_to_human | closed_by_ai | escalated | constrained | pending | closed_by_human | no | Only conversations counted in this funnel step |
limit | integer | no | Page size, 1-100 (default 50) |
cursor | string | no | Opaque nextCursor from the previous page — omit for the first page |
list_analytics_metrics
List analytics metrics · read
What can be asked of Konvo's Analytics for the automatically scoped organization (for members who can see Analytics: owners, admins and managers): every metric with its name, definition (as the Analytics screen explains it), unit, the shapes it can be read in (scalar, series, grouped, series_grouped, funnel) with the dimensions each breakdown accepts, which filters it applies, and whether its conversations can be listed (drillable). Also returns this organization's own filter values — channels, topics, tags, team members, AI agents — and its timezone. Call this before query_analytics so you ask with real metric ids and filter values instead of guessing.
No arguments.
list_channels
List channels · read
List the organization's channels (email inboxes, WhatsApp numbers, live chat widgets, …) with id, name and type. Use the ids with set_agent_channels to choose where an AI agent answers.
No arguments.
list_conversations
List conversations · read
List the conversations (support tickets) you can see in the automatically scoped organization — the same ones the web app shows you — newest first. Returns { conversations, nextCursor }: stream ids, subjects, status, assignee, and channel type per row. Paginated — when nextCursor is non-null, pass it as cursor to fetch the next page until it is null. Pass participant to find every conversation involving an email domain or address, or orderNumber to find the ones where the customer mentioned an order number, or createdFrom/createdTo for the ones created in a date range, instead of paging through all of them. Typical flow: list open conversations, then get_conversation for details.
| Argument | Type | Required | Description |
|---|---|---|---|
status | open | pending | on_hold | closed | resolved | no | Optional filter — omit to list all statuses. pending = waiting for the customer, on_hold = waiting on someone else |
participant | string | no | Only conversations where any message has this email domain (example.com) or full address (jane@example.com) in From, To or Cc. Case-insensitive; a domain matches exactly, not its subdomains. |
orderNumber | string | no | Only conversations where the customer mentioned this order number in a message (#1234, 1234 and PW-1234 forms). Case-insensitive; a leading # is ignored. Matches the number as the customer wrote it, not the store's order name. |
createdFrom | string | no | Only conversations created on or after this day (2026-10-01, midnight in the organization's timezone) or instant (ISO 8601 with offset) |
createdTo | string | no | Only conversations created up to and including this day, or before this instant. With createdFrom, "this month's conversations" is one filtered list |
limit | integer | no | Page size, 1-250 (default 100) |
cursor | string | no | Opaque nextCursor from the previous page — omit for the first page |
list_csat_responses
List CSAT responses · read
The satisfaction survey answers received in a date range in the automatically scoped organization (for members who can see Analytics: owners, admins and managers), newest first — the individual responses behind the CSAT figures. Each one: rating (1-5, null when the customer only left a comment), comment, closedBy (whether the AI or a person closed the conversation, with their name), channel, sentAt, respondedAt, and the conversation's streamId (null if the conversation was deleted) to open with get_conversation. Narrow with minRating/maxRating (e.g. maxRating 2 for the negative ones; a bound leaves out comment-only answers) and closedBy. Returns { responses, nextCursor } — follow nextCursor until it is null.
| Argument | Type | Required | Description |
|---|---|---|---|
from | string | yes | Start: a day (2026-10-01, midnight in the organization's timezone) or an ISO 8601 instant with offset |
to | string | yes | End: a day, included in full (2026-10-31 covers all of October 31), or an exact instant, excluded |
minRating | integer | no | Lowest rating to include, 1-5 |
maxRating | integer | no | Highest rating to include, 1-5 |
closedBy | ai | human | no | Only surveys on conversations the AI (ai) or a person (human) closed |
limit | integer | no | Page size, 1-250 (default 100) |
cursor | string | no | Opaque nextCursor from the previous page — omit for the first page |
list_members
List organization members · read
List members of the automatically scoped organization. Useful when assigning a conversation to a teammate (assign_conversation).
No arguments.
list_organizations
List organizations · read
List the organization(s) available for this MCP session. The active organization is chosen automatically during authorization — you never need to ask the user for an organization id.
No arguments.
message_ai_agent
Message AI agent · write: needs a read-and-write key
Send a message to an AI agent's configurator chat — the same chat admins use in the web app to talk to the agent, teach it knowledge, and change its behavior (edits land on the agent's draft config; publish_ai_agent makes them live). It can also answer questions about the organization, its team and the app, read a web page, work out dates, times and figures, find, read and update the team's tickets as you see them, draft a reply to a customer, and create and run simulations of the draft (their transcripts are on the agent's Simulation page, not in the reply). Publishing and sending a reply to a customer are only ever previewed: the reply asks for confirmation, and only your next message in the same session, a plain yes and nothing else, carries it out. The reply is produced asynchronously: this returns ids immediately, then poll get_agent_reply until its status is no longer in_progress. A session runs one turn at a time: a message sent while the previous reply is in_progress is refused. Omit sessionId to start a new session; pass it back to continue one. Pass an idempotencyKey so a retry after a timeout cannot send the message twice.
| Argument | Type | Required | Description |
|---|---|---|---|
agentId | string | yes | AI agent id from list_ai_agents or get_ai_agent |
message | string | yes | Plain-text message for the agent |
sessionId | string | no | Existing chat session to continue — omit to start a new one |
idempotencyKey | string | no | Optional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result. |
pin_conversation
Pin conversation · write: needs a read-and-write key
Pin or unpin a conversation in the inbox for quick access.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
pinned | boolean | yes |
publish_ai_agent
Publish AI agent · write: needs a read-and-write key
Publish the agent's whole draft — what message_ai_agent changed (knowledge, processes, settings, tool decisions), tool permissions and integrations switched on or off, and any staged channel/schedule edit — making it what customers get, the same as the Publish button in the web app. With channels assigned this puts the agent on the air on them, including an agent that was unpublished. Refused while the agent is still answering a message_ai_agent turn: poll get_agent_reply until it is idle first. Returns storeChanges: the files of the agent's knowledge and behavior that changed for customers (null when there was nothing to publish there).
| Argument | Type | Required | Description |
|---|---|---|---|
agentId | string | yes | AI agent id from list_ai_agents or get_ai_agent |
query_analytics
Query analytics · read
Read up to 20 metrics for a date range from the automatically scoped organization (for members who can see Analytics: owners, admins and managers), computed by the same engine as Konvo's Analytics screen, so they match it for the same range and filters. Each metric can be read as one number (scalar), over time (series, by day/week/month), broken down by a dimension (grouped, e.g. by channel or topic), or both (series_grouped). comparePrevious adds the same figure for the equal-length period right before (previous on scalar results; previousRange says which dates). Each metric comes back with its unit (percent is 0-100, seconds are a duration, currency is euro cents, rating is 1-5) and, when a filter doesn't apply to it, ignoredFilters. Grouped keys are raw values: agent keys are user ids (or ai), topic and tag keys are the values list_analytics_metrics labels. A metric that can't be read as asked returns an error without failing the others.
| Argument | Type | Required | Description |
|---|---|---|---|
from | string | yes | Start: a day (2026-10-01, midnight in the organization's timezone) or an ISO 8601 instant with offset |
to | string | yes | End: a day, included in full (2026-10-31 covers all of October 31), or an exact instant, excluded |
metrics | object[] | yes | |
metrics[].metricId | string | yes | A metric id from list_analytics_metrics |
metrics[].shape | scalar | series | series_grouped | grouped | funnel | no | Defaults to scalar, or to the metric's first shape |
metrics[].granularity | day | week | month | no | For series and series_grouped; defaults to day |
metrics[].groupBy | topic | tag | channel | agent | sentiment | priority | language | contact_form | resolution_kind | article | category | help_center | csat_rating | csat_closer | attribution_level | helped_by | origin | store | no | For grouped and series_grouped; defaults to the metric's defaultGroupBy |
filters | object | no | The Analytics screen's filters, values from list_analytics_metrics. Several values in one filter match any of them; several filters must all match. agent takes user ids plus ai (any AI agent) and human (any person) |
filters.channelType | string[] | no | |
filters.topic | string[] | no | |
filters.tag | string[] | no | |
filters.agent | string[] | no | |
filters.aiAgent | string[] | no | |
filters.sentiment | (positive | neutral | negative)[] | no | |
filters.priority | (low | normal | high | urgent)[] | no | |
filters.language | string[] | no | |
comparePrevious | boolean | no | Also return each scalar for the previous period of the same length |
rename_ai_agent
Rename AI agent · write: needs a read-and-write key
Rename an AI agent.
| Argument | Type | Required | Description |
|---|---|---|---|
agentId | string | yes | AI agent id from list_ai_agents or get_ai_agent |
name | string | yes | New display name |
respond_to_conversation
Respond to conversation · write: needs a read-and-write key
Send a reply to the customer on an existing conversation. The stream id and plain-text body are enough: the server handles email from/subject, reply-all recipients and threading for email and Gmail tickets. Add html for formatting, with images in place by URL or by cid: pointing at an attachment's contentId; it shows on email, Gmail and ticketing page conversations, and other channels send the body. Pass to and cc to choose who an email reply goes to: each list given replaces that list whole, and one left out stays as reply-all has it. A ticketing page reply always goes to its customer and takes only cc, whose people get an email copy without the customer's sign-in link. Pass an idempotencyKey so a retry after a timeout cannot send the reply twice.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
body | string | yes | Plain-text reply to send to the customer; with html, the version for clients that don't show HTML |
html | string | no | The reply as HTML. Images go in place: <img src="https://..."> or <img src="cid:<contentId>"> for an attachment |
to | string[] | no | Email replies: everyone in To, replacing reply-all's |
cc | string[] | no | Email replies: everyone in Cc, replacing reply-all's (empty for nobody). Ticketing page replies: who gets an email copy |
attachments | object[] | no | Files to send with the reply |
attachments[].filename | string | yes | |
attachments[].contentType | string | yes | The file's type, e.g. image/png or application/pdf |
attachments[].base64 | string | yes | The file's content, base64-encoded (10 MB at most) |
attachments[].contentId | string | no | Shows the file in place where the html has <img src="cid:<contentId>"> |
idempotencyKey | string | no | Optional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result. |
set_agent_channels
Set AI agent channels · write: needs a read-and-write key
Stage which channels an AI agent answers on, and optionally when it answers. Omit schedule to keep the agent's current schedule; pass null for always-on. This only stages the edit on the agent's draft — nothing changes for customers until publish_ai_agent. Pass an empty channelIds array to stage taking the agent off all channels. Returns the staged channels and schedule.
| Argument | Type | Required | Description |
|---|---|---|---|
agentId | string | yes | AI agent id from list_ai_agents or get_ai_agent |
channelIds | string[] | yes | Channel ids from list_channels |
schedule | object | null | no | When the agent answers: business_hours follows the org schedule, outside_business_hours is whenever it is closed, custom carries inline hours, null is always-on — omit to keep the current schedule |
set_conversation_property
Set conversation property · write: needs a read-and-write key
Set one of the organization's conversation properties, by its name, key or id. A select takes one of its options by label or value (a multi-select gains it), a number property a number, a yes/no property true or false, a text property any text; null clears it. The error lists the properties, or the property's options, when a name doesn't match.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
property | string | yes | The property's name, key or id |
value | string | number | boolean | null | yes | The value to set, or null to clear it |
set_conversation_status
Set conversation status · write: needs a read-and-write key
Update a conversation's inbox status: open (active), closed (done, can reopen), or resolved (completed).
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
status | open | closed | resolved | yes |
snooze_conversation
Snooze conversation · write: needs a read-and-write key
Snooze a conversation until a Unix timestamp in milliseconds, or pass null to clear snooze and return it to the inbox.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
snoozedUntil | integer | null | yes | Unix ms timestamp, or null to clear snooze |
tag_conversation
Tag conversation · write: needs a read-and-write key
Add and remove tags on a conversation, by tag name (whatever the case) or id. A name the organization has no tag for yet becomes a new tag, which needs a member allowed to edit tags; removing a tag the conversation doesn't have changes nothing. Answers with the tags added and removed.
| Argument | Type | Required | Description |
|---|---|---|---|
streamId | string | yes | Conversation id (stream id) from list_conversations or get_conversation |
add | string[] | no | Tags to add |
remove | string[] | no | Tags to remove |
unpublish_ai_agent
Unpublish AI agent · write: needs a read-and-write key
Take an AI agent off the air immediately: it stops answering on all its channels. The channel set, schedule, and draft config stay untouched — publish_ai_agent puts it back live.
| Argument | Type | Required | Description |
|---|---|---|---|
agentId | string | yes | AI agent id from list_ai_agents or get_ai_agent |