---
title: "Launch Salesbot"
method: POST
path: "/api/v4/bots/{id}/run"
---

# Launch Salesbot

`POST /api/v4/bots/{id}/run`

## Path parameters

- `id` integer, required

## Headers

- `Content-Type` 'application/json'

## Request body

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

## Response `202`

Task to launch a bot has 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 is 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)
