---
title: "POST /api/v4/bots/run"
method: POST
path: "/api/v4/bots/run"
---

# POST /api/v4/bots/run

`POST /api/v4/bots/run`

## Headers

- `Content-Type` string

## Request body

- object[]
  - `bot_id` integer, required — ID of the Salesbot to be launched
  - `entity_id` integer, required — The ID of the entity to which the chat contact is linked, or ID of the chat contact itself
  - `entity_type` 'leads' | 'contacts', required — The type of the entity whose ID was passed. Might be `leads` and `contacts`

## Response `202`

Tasks to launch bots have been successfully created

## Other responses

- `400` — Incorrect data was transmitted. Details are available in the response body.
- `401` — User is unauthorized
- `403` — No enough rights to call this method on the specified entity
- `404` — Salesbot with the ID was not found

---

[API](https://skmtc.net/kommo/apis/kommo-api-references.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api-references/versions/f17af4d23c7c/schema)
