Kommo MCP by usefulapi
v1.15.1List leads, contacts, companies and tasks; create and update leads in Kommo.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
kommo_get_account Get account
Get the Kommo account: id, subdomain, country, currency and the current user id. Good first call to confirm the connection. GET /api/v4/account.
| Parameter | Type | Description |
|---|---|---|
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_list_pipelines List pipelines
List the lead pipelines with their stages (status ids, names, sort order). Use it to find the pipeline_id and status_id values for lead filters and writes. Returns 25 pipelines per call by default: pass offset = next_offset to get the rest. GET /api/v4/leads/pipelines (paged in our code: Kommo returns the whole list in one response).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Pipelines per page (1-100; default 25). |
offset | integer | Pipelines to skip (default 0). Use next_offset from the result to get the next page. |
kommo_list_users List users
List the users of the account with their ids, names, emails, groups, roles and rights. Use it to find responsible_user_id values. active_only drops users that are switched off (on this page). GET /api/v4/users.
| Parameter | Type | Description |
|---|---|---|
active_only | boolean | true = only active users (rights.is_active). |
limit | integer | Entities per page (max 250; default 50). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_list_custom_fields List custom fields
List the custom fields of leads, contacts or companies (ids, names, types, enum options). Use it to find field ids before writing values. GET /api/v4/{entity}/custom_fields.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
limit | integer | Fields per page (max 250; default 10). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
kommo_list_leads List leads
List or search deals (leads) with price, stage, pipeline, responsible user, timestamps, tags and custom field values. Filter by text (name, phone, email), pipeline, stage (142 = won, 143 = lost), owner, author, value, and the create, update, close or next-task windows. Dates: Unix seconds, YYYY-MM-DD (account timezone) or RFC 3339. Rows are compact by default (no _links; each custom field as field_id, field_name and its values, with enum_code where Kommo labels a value); detail "full" returns the Kommo rows (field codes, types, enum ids). One request per call. GET /api/v4/leads.
| Parameter | Type | Description |
|---|---|---|
closed_from | Only leads closed (won or lost) at or after this time. | |
closed_to | Only leads closed at or before this time (a date means the end of that day). | |
created_by | array | Only leads created by these user ids. |
created_from | Only leads created at or after this time. | |
created_to | Only leads created at or before this time (a date means the end of that day). | |
detail | string | compact (default, up to 25 per page) or full (every Kommo field, up to 15 per page). |
limit | integer | Leads per page: 1-25 (default 25); with detail "full" 1-15. A larger value is reduced to the maximum. |
next_task_from | Only leads whose nearest open task is due at or after this time. | |
next_task_to | Only leads whose nearest open task is due at or before this time (a date means the end of that day). | |
order_created_at | string | Sort by creation time (instead of order_updated_at). |
order_updated_at | string | Sort direction. |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
pipeline_id | integer | Only leads in this pipeline. |
price_from | number | Minimum deal value. |
price_to | number | Maximum deal value. |
query | string | Search text across the filled lead fields. |
responsible_user_id | integer | Only leads owned by this user id. |
responsible_user_ids | array | Only leads owned by one of these user ids. |
stages | array | Only leads in these stages, e.g. [{pipeline_id: 1, status_id: 142}] for won leads of pipeline 1. |
updated_by | array | Only leads last changed by these user ids. |
updated_from | Only leads updated at or after this time. | |
updated_to | Only leads updated at or before this time (a date means the end of that day). | |
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_get_lead Get lead
Get one lead by id, with optional embedded data (contacts, loss_reason, source). GET /api/v4/leads/{id}.
| Parameter | Type | Description |
|---|---|---|
lead_id * | integer | Numeric Kommo id. |
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_list_contacts List contacts
List contacts (people) with their names, custom fields (email, phone) and responsible user. One request per call. GET /api/v4/contacts.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Entities per page (max 250; default 25). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
query | string | Search text, e.g. a name, email or phone. |
responsible_user_id | integer | Only contacts owned by this user id. |
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_get_contact Get contact
Get one contact by id, with optional embedded data (leads, companies). GET /api/v4/contacts/{id}.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | Numeric Kommo id. |
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_list_companies List companies
List companies (organisations) with their names, custom fields and responsible user. One request per call. GET /api/v4/companies.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Entities per page (max 250; default 25). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
query | string | Search text, e.g. a company name. |
responsible_user_id | integer | Only companies owned by this user id. |
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_get_company Get company
Get one company by id, with optional embedded data (contacts, leads). GET /api/v4/companies/{id}.
| Parameter | Type | Description |
|---|---|---|
company_id * | integer | Numeric Kommo id. |
with | string | Comma-separated extra data to embed, e.g. 'contacts,loss_reason' (see the Kommo reference for each entity). |
kommo_list_tasks List tasks
List follow-up tasks, optionally only open ones, for one user, one linked entity, a task type or a due window. Dates: Unix seconds, YYYY-MM-DD (account timezone) or RFC 3339. One request per call. GET /api/v4/tasks.
| Parameter | Type | Description |
|---|---|---|
due_from | Only tasks due at or after this time. | |
due_to | Only tasks due at or before this time (a date means the end of that day). | |
entity_id | integer | Only tasks linked to this entity id (use with entity_type). |
entity_type | string | Only tasks linked to this entity type. |
is_completed | boolean | true = completed only; false = open only. |
limit | integer | Entities per page (max 250; default 50). |
order_due | string | Sort by due time. |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
responsible_user_id | integer | Only tasks for this user id. |
task_type_ids | array | Only tasks of these types (ids from kommo_get_account_context). |
kommo_list_notes List notes
List the notes (text notes, calls, service messages) of one lead, contact or company, with is_pinned. Filter by note type; newest first by default. One request per call. GET /api/v4/{entity}/{id}/notes.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
entity_id * | integer | Numeric Kommo id. |
limit | integer | Entities per page (max 250; default 50). |
note_types | array | Only these note types, e.g. common, call_in, call_out, service_message, sms_in, sms_out. |
order | string | Sort by update time (default desc). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
kommo_list_conversations List conversations
List conversations (chats with contacts): status, contact, linked lead and origin channel. Filter by conversation, contact, lead or open only. One page per call. GET /api/v4/talks.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only conversations with this contact id. |
conversation_id | integer | Only this conversation id. |
lead_id | integer | Only conversations linked to this lead id. |
limit | integer | Entities per page (max 250; default 25). |
open_only | boolean | true = open conversations only. |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
kommo_get_conversation Get conversation
Get one conversation by id: is_in_work (true = open, false = closed), contact, linked lead and origin channel. GET /api/v4/talks/{id}.
| Parameter | Type | Description |
|---|---|---|
conversation_id * | integer | Numeric Kommo id. |
kommo_create_lead Create lead
Create one lead (deal) in a pipeline stage. Creates a new record on every call: it does not check for duplicates. POST /api/v4/leads.
| Parameter | Type | Description |
|---|---|---|
name * | string | Lead name. |
pipeline_id | integer | Pipeline id (see kommo_list_pipelines). |
price | number | Deal value. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
status_id | integer | Stage id inside the pipeline (see kommo_list_pipelines). |
kommo_update_lead Update lead
Change one lead: name, value, pipeline, stage or owner. Only the given fields change. Repeating the same call gives the same result. PATCH /api/v4/leads/{id}.
| Parameter | Type | Description |
|---|---|---|
lead_id * | integer | Numeric Kommo id. |
name | string | New lead name. |
pipeline_id | integer | Move to this pipeline id. |
price | number | New deal value. |
responsible_user_id | integer | New owner user id. |
status_id | integer | Move to this stage id (inside the pipeline). |
kommo_close_conversation Close conversation
WRITE: closes one conversation. Ask the user before closing. By default it closes at once without the NPS survey; run_nps true lets Kommo's NPS bot ask the client first (if NPS is on in the account). Kommo may apply the close after its reply: check is_in_work in the result. POST /api/v4/talks/{id}/close, then GET /api/v4/talks/{id}.
| Parameter | Type | Description |
|---|---|---|
conversation_id * | integer | Numeric Kommo id. |
run_nps | boolean | true = close after the NPS survey bot (default false: close at once). |
kommo_create_contact Create contact
WRITE: creates one contact. Ask the user before creating. Creates a new contact on every call: it does not check for duplicates. Give name, or first_name and last_name. POST /api/v4/contacts.
| Parameter | Type | Description |
|---|---|---|
custom_fields_values | array | Custom field values, e.g. [{"field_id": 178382, "values": [{"value": "+19651796214"}]}]. |
emails | array | Emails. On an update the list replaces all emails of the record. |
first_name | string | First name. |
last_name | string | Last name. |
name | string | Full name. |
phones | array | Phones. On an update the list replaces all phones of the record. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
kommo_update_contact Update contact
WRITE: changes one contact: name, owner, phones, emails or custom field values. Only the given fields change; a phones or emails list replaces all phones or emails. Ask the user before changing. PATCH /api/v4/contacts (one contact in the array).
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | Numeric Kommo id. |
custom_fields_values | array | Custom field values, e.g. [{"field_id": 178382, "values": [{"value": "+19651796214"}]}]. |
emails | array | Emails. On an update the list replaces all emails of the record. |
first_name | string | New first name. |
last_name | string | New last name. |
name | string | New full name. |
phones | array | Phones. On an update the list replaces all phones of the record. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
kommo_create_company Create company
WRITE: creates one company. Ask the user before creating. Creates a new company on every call: it does not check for duplicates. POST /api/v4/companies.
| Parameter | Type | Description |
|---|---|---|
name * | string | Company name. |
custom_fields_values | array | Custom field values, e.g. [{"field_id": 178382, "values": [{"value": "+19651796214"}]}]. |
emails | array | Emails. On an update the list replaces all emails of the record. |
phones | array | Phones. On an update the list replaces all phones of the record. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
kommo_update_company Update company
WRITE: changes one company: name, owner, phones, emails or custom field values. Only the given fields change; a phones or emails list replaces all phones or emails. Ask the user before changing. PATCH /api/v4/companies (one company in the array).
| Parameter | Type | Description |
|---|---|---|
company_id * | integer | Numeric Kommo id. |
custom_fields_values | array | Custom field values, e.g. [{"field_id": 178382, "values": [{"value": "+19651796214"}]}]. |
emails | array | Emails. On an update the list replaces all emails of the record. |
name | string | New company name. |
phones | array | Phones. On an update the list replaces all phones of the record. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
kommo_create_task Create task
WRITE: creates one follow-up task. Ask the user before creating. Creates a new task on every call: it does not check for duplicates. Link it to a lead, contact or company with entity_type and entity_id together. POST /api/v4/tasks.
| Parameter | Type | Description |
|---|---|---|
complete_till * | Due time: Unix seconds, YYYY-MM-DDTHH:MM in the account timezone (a bare date = 23:59 that day), or RFC 3339. | |
text * | string | Task text. |
entity_id | integer | Id of the linked lead, contact or company (use with entity_type). |
entity_type | string | Entity type: leads, contacts or companies. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
task_type_id | integer | Task type id (1 = follow-up, 2 = meeting; account types in kommo_get_account_context). |
kommo_update_task Update task
WRITE: changes one task: text, due time, type, owner, or completes it with a result text. Only the given fields change. Ask the user before completing or changing a task. Booking tasks cannot be changed (HTTP 403). PATCH /api/v4/tasks/{id}.
| Parameter | Type | Description |
|---|---|---|
task_id * | integer | Numeric Kommo id. |
complete_till | New due time: Unix seconds, YYYY-MM-DDTHH:MM in the account timezone (a bare date = 23:59 that day), or RFC 3339. | |
is_completed | boolean | true completes the task. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
result_text | string | Result text recorded with the completion. |
task_type_id | integer | New task type id. |
text | string | New task text. |
kommo_create_custom_field Create custom field
WRITE (administrator token). Create one custom field on leads, contacts or companies: name, type, optional code, sort, group, API-only flag, options for select/multiselect/radiobutton, required or hidden stages for lead fields, currency for monetary, reminder for birthday. Creates a new field on every call: check kommo_list_custom_fields first. POST /api/v4/{entity}/custom_fields.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Which records get the field: leads, contacts or companies. |
name * | string | Field name. |
type * | string | Field type. select = list, radiobutton = switch, streetaddress = short address, smart_address = address, legal_entity = tax ID. |
code | string | Symbolic code, to write values without the field id. |
currency | string | ISO currency code; monetary fields only. |
enums | array | Options; required for select, multiselect and radiobutton. |
group_id | string | Field group id (from kommo_list_custom_fields). |
hidden_statuses | array | Leads only: stages in which the field is hidden. Replaces the current list. |
is_api_only | boolean | If true, users cannot edit the value in Kommo; only the API can. |
remind | string | Birthday fields only: when to remind. |
required_statuses | array | Leads only: stages that require this field before a lead moves into them. Replaces the current list. |
sort | integer | Position among the fields. |
kommo_update_custom_field Update custom field
WRITE (administrator token). Change one custom field: name, sort, group, API-only flag, required or hidden stages (lead fields; each list replaces the current one), currency, birthday reminder, and add new options with enums_add. The tool reads the field, sends its current options plus the new ones (Kommo deletes options left out), then reads it back and reports any option that went missing. Do not run two enums_add calls on the same field at the same time. It cannot delete fields or options. PATCH /api/v4/{entity}/custom_fields/{id}.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Which records get the field: leads, contacts or companies. |
field_id * | integer | Numeric Kommo id. |
currency | string | ISO currency code; monetary fields only. |
enums_add | array | New options to append (select, multiselect, radiobutton fields). |
group_id | string | Field group id (from kommo_list_custom_fields). |
hidden_statuses | array | Leads only: stages in which the field is hidden. Replaces the current list. |
is_api_only | boolean | If true, users cannot edit the value in Kommo; only the API can. |
name | string | New field name. |
remind | string | Birthday fields only. |
required_statuses | array | Leads only: stages that require this field before a lead moves into them. Replaces the current list. |
sort | integer | Position among the fields. |
kommo_create_pipeline_stage Create pipeline stage
WRITE (administrator token). Add one stage to a lead pipeline: name, position (sort), color and optional descriptions per user level. Creates a new stage on every call: check kommo_list_pipelines first. POST /api/v4/leads/pipelines/{pipeline_id}/statuses.
| Parameter | Type | Description |
|---|---|---|
name * | string | Stage name. |
pipeline_id * | integer | Pipeline id (see kommo_list_pipelines). |
sort * | integer | Position in the pipeline (required by Kommo; compare the sort values from kommo_list_pipelines). |
color | string | Stage color, one of Kommo's fixed colors. |
descriptions | array | Stage descriptions shown to users, at most one per level (newbie, candidate, master). |
kommo_update_pipeline_stage Update pipeline stage
WRITE (administrator token). Change one pipeline stage: name, position (sort), color or descriptions (the list replaces the current descriptions). It cannot delete stages. PATCH /api/v4/leads/pipelines/{pipeline_id}/statuses/{status_id}.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Pipeline id. |
status_id * | integer | Stage id (see kommo_list_pipelines). |
color | string | New color. |
descriptions | array | Stage descriptions shown to users, at most one per level (newbie, candidate, master). |
name | string | New stage name. |
sort | integer | New position. |
kommo_get_account_context Get account context
Get what most other calls need: account id, name, subdomain, currency, country, timezone, the current time and weekday there, the connected user, user groups and task types (ids for kommo_create_task). 2 requests: GET /api/v4/account?with=users_groups,task_types,datetime_settings and GET /api/v4/users/{current_user_id}.
kommo_get_lead_context Get lead context
Get one lead with everything around it: the lead (fields, tags, products, loss reason, source), its contacts and company, open tasks, the 10 newest notes and its chat conversations. Up to 6 requests, one after another (lead, contacts, company, tasks, notes, conversations). A part that fails is reported in notes.
| Parameter | Type | Description |
|---|---|---|
lead_id * | integer | Numeric Kommo id. |
kommo_list_events List events
List changes in the account, newest first: what changed, on which record, who changed it, when, and the value before and after. Filter by record type and ids (up to 10), event types, authors and a time window (Unix seconds, YYYY-MM-DD in the account timezone, or RFC 3339). Kommo keeps events for a limited time. GET /api/v4/events.
| Parameter | Type | Description |
|---|---|---|
created_by | array | Only changes by these user ids (0 = robot). |
entity | string | Record type (singular): lead, contact, company or task. |
entity_ids | array | Only these record ids (use with entity). |
from | Only events at or after this time. | |
limit | integer | Events per page (max 100; default 50). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
to | Only events at or before this time (a date means the end of that day). | |
types | array | Only these event types, e.g. lead_added, lead_status_changed, entity_responsible_changed, common_note_added, incoming_chat_message, outgoing_chat_message, incoming_call, outgoing_call, task_added, tas… |
kommo_get_lead_timeline Get lead timeline
Get the history of one lead, newest first, one page at a time: stage and owner changes, field changes, links, tags, notes (with their text), chat messages, calls and tasks. 2 requests: GET /api/v4/events for the lead, then GET /api/v4/leads/notes for the text of the notes on the page.
| Parameter | Type | Description |
|---|---|---|
lead_id * | integer | Numeric Kommo id. |
from | Only events at or after this time. | |
limit | integer | Events per page (max 100; default 50). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
to | Only events at or before this time (a date means the end of that day). | |
types | array | Only these event types, e.g. lead_added, lead_status_changed, entity_responsible_changed, common_note_added, incoming_chat_message, outgoing_chat_message, incoming_call, outgoing_call, task_added, tas… |
kommo_get_pipeline_brief Get pipeline brief
Summarise one pipeline from its leads: count and total value per stage, open, won and lost totals, and the 10 open leads with the oldest last change (days_idle). A new task on a lead counts as a change; a new note does not. Reads up to 2,000 leads (8 pages of 250, one after another); complete is false when there are more. GET /api/v4/leads/pipelines/{id} and GET /api/v4/leads.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Pipeline id (see kommo_list_pipelines). |
kommo_list_stagnant_leads List stagnant leads
List open leads with no change for at least `days` days, oldest change first, with days_idle. A new task on a lead counts as a change; a new note does not. Reads up to 4 pages of 250 leads (one after another) and skips won and lost leads. GET /api/v4/leads.
| Parameter | Type | Description |
|---|---|---|
days | integer | Days without a change (default 14). |
limit | integer | Leads to return (default 25, max 50). |
pipeline_id | integer | Only this pipeline. |
responsible_user_id | integer | Only leads of this owner. |
kommo_read_messages Read messages
Read the messages of one conversation (talk_id from kommo_list_conversations), one page at a time: direction, author, text, time, delivery status and attachments. Kommo plans Trial, Pro and Enterprise only. GET /api/v4/talks/{id}/messages.
| Parameter | Type | Description |
|---|---|---|
conversation_id * | integer | Numeric Kommo id. |
from | Only messages at or after this time. | |
limit | integer | Entities per page (max 250; default 50). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
to | Only messages at or before this time (a date means the end of that day). |
kommo_list_unanswered_conversations List unanswered conversations
List open conversations that wait for a reply: the client wrote last. Oldest first, with the client's last message and minutes waiting. Reads up to 250 open conversations, then checks the messages of the last 7 days of the 10 with the oldest update (1 request each, one after another). client_wrote_last is null when the direction is unclear. more_open = true: more open conversations exist than were read. GET /api/v4/talks, then GET /api/v4/talks/{id}/messages.
| Parameter | Type | Description |
|---|---|---|
lead_id | integer | Only conversations of this lead. |
kommo_send_message Send message
WRITE: sends a message to the client in an open conversation, in its channel (WhatsApp, Instagram, ...). The client sees it at once: show the exact text to the user and ask before sending. Optional one file from Kommo Drive (kommo_list_files). Kommo counts sends per month (Trial 100, Pro and Enterprise 500). POST /api/v4/talks/{id}/send_message.
| Parameter | Type | Description |
|---|---|---|
conversation_id * | integer | Numeric Kommo id. |
text * | string | Message text. |
attachment | object |
kommo_list_chat_templates List chat templates
List the reply templates of chats: text, buttons, and for WhatsApp templates the category, language and moderation state (reviews). GET /api/v4/chats/templates.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Templates per page (max 50; default 25). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
kommo_create_chat_template Create chat template
WRITE (administrator token): creates one reply template of chats, plain or for WhatsApp (category, language, footer, header, examples). Ask the user first. A WhatsApp template must then go to Meta moderation with kommo_submit_template_review. POST /api/v4/chats/templates.
| Parameter | Type | Description |
|---|---|---|
content * | string | Template text. WhatsApp variables: {{1}}, {{2}}, ... |
name * | string | Template name. |
buttons | array | Buttons; url buttons need url. |
whatsapp | object | Make it a WhatsApp (waba) template. |
kommo_submit_template_review Submit template review
WRITE: sends a WhatsApp template (from kommo_list_chat_templates) to Meta moderation. Ask the user first: Meta reviews it and the template cannot be edited while in review. POST /api/v4/chats/templates/{id}/review.
| Parameter | Type | Description |
|---|---|---|
template_id * | integer | Numeric Kommo id. |
kommo_add_notes Add notes
WRITE: adds text notes to records of one type (1-250 notes in one request). Ask the user first. Creates new notes on every call. POST /api/v4/{entity}/notes.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
notes * | array |
kommo_update_note Update note
WRITE: replaces the text of one text note (note_type common; ids from kommo_list_notes). Calls, messages and service notes cannot be changed. Ask the user first. PATCH /api/v4/{entity}/notes/{id}.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
entity_id * | integer | Id of the record that has the note. |
note_id * | integer | Numeric Kommo id. |
text * | string | New note text. |
kommo_pin_note Pin note
WRITE: pins a note at the top of the record feed, or unpins it (pinned false). POST /api/v4/{entity}/notes/{id}/pin or /unpin.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
note_id * | integer | Numeric Kommo id. |
pinned | boolean | true = pin (default), false = unpin. |
kommo_create_leads Create leads
WRITE: creates 1-250 leads in one request, each with name, value, pipeline and stage, owner, custom fields, tags, and links to existing contacts and a company. With new_contact or new_company Kommo creates those too: then 1-50 leads, and no lead of that call may use contact_ids or company_id. If duplicate control is on in the account, Kommo may merge such a lead or contact into an existing one (merged: true in the result). Ask the user first. No other duplicate check. Keep one call under 10,000 values in all (records x fields x values): split a larger batch. POST /api/v4/leads, or POST /api/v4…
| Parameter | Type | Description |
|---|---|---|
leads * | array |
kommo_update_leads Update leads
WRITE: changes 1-250 leads in one request: name, value, stage (with the pipeline), loss reason (kommo_list_loss_reasons; for lost leads, stage 143), owner, custom fields, and tags to add or remove (other tags stay). Only the given fields change. Ask the user first. PATCH /api/v4/leads. Keep one call under 10,000 values in all (records x fields x values): split a larger batch.
| Parameter | Type | Description |
|---|---|---|
leads * | array |
kommo_create_contacts Create contacts
WRITE: creates 1-250 contacts in one request: name, phones, emails, owner, custom fields, tags. Ask the user first. No duplicate check: search with kommo_list_contacts first. POST /api/v4/contacts. Keep one call under 10,000 values in all (records x fields x values): split a larger batch.
| Parameter | Type | Description |
|---|---|---|
contacts * | array |
kommo_update_contacts Update contacts
WRITE: changes 1-250 contacts in one request: name, phones and emails (each list replaces all phones or emails of the contact), owner, custom fields, tags to add or remove. Only the given fields change. Ask the user first. PATCH /api/v4/contacts. Keep one call under 10,000 values in all (records x fields x values): split a larger batch.
| Parameter | Type | Description |
|---|---|---|
contacts * | array |
kommo_create_companies Create companies
WRITE: creates 1-250 companies in one request: name, phones, emails, owner, custom fields, tags. Ask the user first. No duplicate check: search with kommo_list_companies first. POST /api/v4/companies. Keep one call under 10,000 values in all (records x fields x values): split a larger batch.
| Parameter | Type | Description |
|---|---|---|
companies * | array |
kommo_update_companies Update companies
WRITE: changes 1-250 companies in one request: name, phones and emails (each list replaces all phones or emails of the company), owner, custom fields, tags to add or remove. Only the given fields change. Ask the user first. PATCH /api/v4/companies. Keep one call under 10,000 values in all (records x fields x values): split a larger batch.
| Parameter | Type | Description |
|---|---|---|
companies * | array |
kommo_create_tasks Create tasks
WRITE: creates 1-250 tasks in one request: text, due time, type, owner, and optionally a linked lead, contact or company. Ask the user first. No duplicate check. POST /api/v4/tasks.
| Parameter | Type | Description |
|---|---|---|
tasks * | array |
kommo_update_tasks Update tasks
WRITE: changes 1-250 tasks in one request: text, due time, type, owner, or completes a task with a result text (is_completed with result_text). Only the given fields change. Booking tasks cannot be changed. Ask the user first. PATCH /api/v4/tasks.
| Parameter | Type | Description |
|---|---|---|
tasks * | array |
kommo_link_records Link records
WRITE: links 1-250 pairs of records: leads with contacts or companies, or contacts with companies. make_main makes each linked contact the main contact of its lead (Kommo sets it only on a new link, so the tool first unlinks that contact, then links it again; if the second step fails it links the contact back and says so). Ask the user first. POST /api/v4/{entity}/link.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Type of entity_id records. |
links * | array | |
make_main | boolean | Leads with contacts only: make the contact the main one. |
kommo_unlink_records Unlink records
WRITE: removes 1-250 links between records (the records stay). Ask the user first. POST /api/v4/{entity}/unlink.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Type of entity_id records. |
links * | array |
kommo_search_products Search products
Search the product catalog by name or SKU, one page at a time: each product with SKU, price and description. Use the ids with kommo_set_lead_products. GET /api/v4/catalogs/{id}/elements.
| Parameter | Type | Description |
|---|---|---|
catalog_id | integer | Catalog id (default: the account's products catalog). |
limit | integer | Entities per page (max 250; default 50). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
query | string | Name or SKU text. |
kommo_create_product Create product
WRITE: adds one product to the catalog: name, SKU, price, description. Ask the user first. No duplicate check: search first. POST /api/v4/catalogs/{id}/elements.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
catalog_id | integer | Catalog id (default: the account's products catalog). |
description | string | |
price | number | |
sku | string |
kommo_update_product Update product
WRITE: changes one product of the catalog: name, SKU, price, description. Only the given fields change. Ask the user first. PATCH /api/v4/catalogs/{id}/elements.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | Numeric Kommo id. |
catalog_id | integer | Catalog id (default: the account's products catalog). |
description | string | |
name | string | |
price | number | |
sku | string |
kommo_set_lead_products Set lead products
WRITE: adds catalog products to a lead with a quantity, or changes the quantity of a product the lead already has. Ask the user first. POST /api/v4/leads/{id}/link (to_entity_type catalog_elements).
| Parameter | Type | Description |
|---|---|---|
lead_id * | integer | Numeric Kommo id. |
products * | array | |
catalog_id | integer | Catalog id (default: the account's products catalog). |
kommo_remove_lead_products Remove lead products
WRITE: takes products off a lead (the products stay in the catalog). Ask the user first. POST /api/v4/leads/unlink.
| Parameter | Type | Description |
|---|---|---|
lead_id * | integer | Numeric Kommo id. |
product_ids * | array | Product ids. |
catalog_id | integer | Catalog id (default: the account's products catalog). |
kommo_list_tags List tags
List the tags of leads, contacts or companies, optionally by part of the name. GET /api/v4/{entity}/tags.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
limit | integer | Entities per page (max 250; default 50). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
query | string | Part of the tag name. |
kommo_update_tags Update tags
WRITE: adds and removes tags on 1-250 leads, contacts or companies in one request; other tags of the records stay. A new tag name creates the tag. Ask the user first. PATCH /api/v4/{entity}.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
records * | array |
kommo_list_incoming_leads List incoming leads
List incoming leads not yet accepted (the Incoming leads stage): uid, category (chats, forms, sip, mail), pipeline, lead and contact, and the request details (channel, form fields, caller). GET /api/v4/leads/unsorted.
| Parameter | Type | Description |
|---|---|---|
category | array | |
limit | integer | Entities per page (max 250; default 50). |
order | string | Sort by creation time. |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
pipeline_id | integer |
kommo_accept_incoming_lead Accept incoming lead
WRITE: accepts one incoming lead: it moves from Incoming leads to a stage of its pipeline (default: the first stage). Ask the user first. POST /api/v4/leads/unsorted/{uid}/accept.
| Parameter | Type | Description |
|---|---|---|
uid * | string | uid of the incoming lead (kommo_list_incoming_leads). |
status_id | integer | Target stage id. |
user_id | integer | User who accepts (default: the token's user). |
kommo_decline_incoming_leads Decline incoming leads
WRITE: declines 1-10 incoming leads (e.g. spam); Kommo deletes their leads. Ask the user first. One request per uid, one after another: DELETE /api/v4/leads/unsorted/{uid}/decline.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Ask the user first: this cannot be undone. |
uids * | array | |
user_id | integer |
kommo_link_incoming_lead Link incoming lead
WRITE: adds an incoming chat request to an existing lead instead of creating a new one (category chats only; Kommo refuses forms). Ask the user first. POST /api/v4/leads/unsorted/{uid}/link.
| Parameter | Type | Description |
|---|---|---|
lead_id * | integer | Existing lead id. |
uid * | string | uid of the incoming lead (kommo_list_incoming_leads). |
user_id | integer |
kommo_log_call Log call
WRITE: records a call made outside Kommo. Kommo finds the contact by phone and adds a call note to it and its lead. Ask the user first. POST /api/v4/calls.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
duration * | integer | Duration in seconds. |
phone * | string | The client's phone number. |
call_result | string | Short result text. |
call_status | integer | 1 left a message, 2 call back later, 3 not available, 4 talked (default), 5 wrong number, 6 no answer, 7 busy. |
created_at | Call time (default now). | |
link | string | Link to the recording. |
responsible_user_id | integer | Owner user id (see kommo_list_users). |
source | string | Name of the phone system (default UsefulAPI). |
kommo_list_files List files
List files of Kommo Drive (the Media section: attachments of chats, notes and records), by name: uuid, version_uuid, name, type, extension and size. Use the uuids with kommo_attach_files or kommo_send_message. GET {drive}/v1.0/files.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Files per page (max 50; default 25). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
query | string | Part of the file name. |
kommo_list_record_files List record files
List the Kommo Drive files attached to one lead, contact or company (file uuids). GET /api/v4/{entity}/{id}/files.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
entity_id * | integer | Numeric Kommo id. |
kommo_attach_files Attach files
WRITE: attaches Kommo Drive files to a lead, contact or company. Ask the user first. PUT /api/v4/{entity}/{id}/files.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
entity_id * | integer | Numeric Kommo id. |
file_uuids * | array | File uuids (kommo_list_files). |
kommo_detach_files Detach files
WRITE: detaches files from a lead, contact or company; the files stay in Kommo Drive. Ask the user first. DELETE /api/v4/{entity}/{id}/files.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
entity_id * | integer | Numeric Kommo id. |
file_uuids * | array | File uuids (kommo_list_files). |
kommo_list_salesbots List Salesbots
List the Salesbot bots of the account with their ids and names. GET /api/v4/bots.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Entities per page (max 250; default 50). |
page | integer | Page number (default 1). Use _links.next in the result to see whether another page exists. If the result has _continue_with (a shortened page), call again with those arguments instead: then more rows… |
kommo_run_salesbots Run Salesbots
WRITE: starts 1-100 Salesbot runs, each one bot on one lead or contact. A bot can message the client: ask the user first. POST /api/v4/bots/run (Kommo answers 202: accepted, not yet run).
| Parameter | Type | Description |
|---|---|---|
runs * | array |
kommo_stop_salesbot Stop Salesbot
WRITE: stops a running Salesbot on one lead. Kommo accepts the stop and applies it soon after (HTTP 202). Ask the user first. POST /api/v4/bots/{id}/stop.
| Parameter | Type | Description |
|---|---|---|
bot_id * | integer | Numeric Kommo id. |
lead_id * | integer | Numeric Kommo id. |
kommo_list_webhooks List webhooks
List the webhook subscriptions of the account: destination address, events and whether it is disabled. GET /api/v4/webhooks.
kommo_subscribe_webhook Subscribe webhook
WRITE (administrator token): subscribes an https address to Kommo events. Kommo then sends record data to that address: ask the user first. Repeating it with the same address replaces its events. POST /api/v4/webhooks.
| Parameter | Type | Description |
|---|---|---|
destination * | string | https address that receives the events. |
events * | array | Events, e.g. add_lead, update_lead, status_lead, responsible_lead, delete_lead, add_contact, update_contact, add_company, add_task, update_task, note_lead, add_talk, update_talk, add_message. |
kommo_unsubscribe_webhook Unsubscribe webhook
WRITE (administrator token): removes the webhook subscription of one address. Ask the user first. DELETE /api/v4/webhooks.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Ask the user first: this cannot be undone. |
destination * | string | https address that receives the events. |
kommo_create_pipeline Create pipeline
WRITE (administrator token): creates a lead pipeline with its open stages in order. Kommo adds the incoming, won (142) and lost (143) stages itself. Ask the user first. POST /api/v4/leads/pipelines.
| Parameter | Type | Description |
|---|---|---|
name * | string | Pipeline name. |
stages * | array | Open stages, in order. |
incoming_leads | boolean | Keep the Incoming leads stage on (default true). |
is_main | boolean | Make it the main pipeline (default false). |
sort | integer | Position among pipelines (default 1000). |
kommo_update_pipeline Update pipeline
WRITE (administrator token): renames a pipeline, makes it the main one, moves it, or switches its Incoming leads stage on or off. Ask the user first. PATCH /api/v4/leads/pipelines/{id}.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | Numeric Kommo id. |
incoming_leads | boolean | Incoming leads stage on or off. |
is_main | boolean | |
name | string | |
sort | integer |
kommo_delete_pipeline Delete pipeline
DELETE (administrator token): deletes a pipeline with its stages, for good. Kommo refuses a pipeline that still has leads, and the last pipeline. Ask the user first. DELETE /api/v4/leads/pipelines/{id}.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Ask the user first: this cannot be undone. |
pipeline_id * | integer | Numeric Kommo id. |
kommo_delete_pipeline_stage Delete pipeline stage
DELETE (administrator token): deletes an open stage of a pipeline, for good. Kommo moves the leads of the stage to another stage. Ask the user first. DELETE /api/v4/leads/pipelines/{pipeline_id}/statuses/{status_id}.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Ask the user first: this cannot be undone. |
pipeline_id * | integer | Numeric Kommo id. |
status_id * | integer | Numeric Kommo id. |
kommo_delete_custom_field Delete custom field
DELETE (administrator token): deletes a custom field and its values in every record, for good. Ask the user first. DELETE /api/v4/{entity}/custom_fields/{id}.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Ask the user first: this cannot be undone. |
entity * | string | Entity type: leads, contacts or companies. |
field_id * | integer | Numeric Kommo id. |
kommo_list_field_groups List field groups
List the field groups (tabs of the record card) of leads, contacts or companies, with the custom fields in each. GET /api/v4/{entity}/custom_fields/groups.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
kommo_save_field_group Save field group
WRITE (administrator token): creates a field group (a tab of the card), or with group_id renames one, moves it, or sets the fields in it (field_ids replaces its field list). Ask the user first. POST or PATCH /api/v4/{entity}/custom_fields/groups.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity type: leads, contacts or companies. |
field_ids | array | Custom field ids for the group. |
group_id | string | Existing group id (kommo_list_field_groups); omit to create. |
name | string | |
sort | integer |
kommo_delete_field_group Delete field group
DELETE (administrator token): deletes a field group; its fields stay. Ask the user first. DELETE /api/v4/{entity}/custom_fields/groups/{id}.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Ask the user first: this cannot be undone. |
entity * | string | Entity type: leads, contacts or companies. |
group_id * | string | Field group id (kommo_list_field_groups). |
kommo_list_loss_reasons List loss reasons
List all loss reasons of leads with their ids (loss_reason_id of kommo_update_leads). GET /api/v4/leads/loss_reasons (one list, no pages).
kommo_save_loss_reason Save loss reason
WRITE (administrator token): creates a loss reason, or renames one (with loss_reason_id). Ask the user first. POST /api/v4/leads/loss_reasons or PATCH /api/v4/leads/loss_reasons/{id}.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
loss_reason_id | integer | Existing id; omit to create. |
kommo_delete_loss_reason Delete loss reason
DELETE (administrator token): deletes a loss reason, for good. Ask the user first. DELETE /api/v4/leads/loss_reasons/{id}.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Ask the user first: this cannot be undone. |
loss_reason_id * | integer | Numeric Kommo id. |