---
title: "Adding pipelines"
method: POST
path: "/api/v4/leads/pipelines"
---

# Adding pipelines

`POST /api/v4/leads/pipelines`

This method allows adding multiple pipelines

## Headers

- `Content-Type` string

## Request body

- object
  - `RAW_BODY` object[]
    - `name` string, required — Pipeline name
    - `sort` integer, required — Sequence number of the pipeline in the pipeline list
    - `is_main` boolean, required — Defines whether the pipeline is main for the account.
    - `is_unsorted_on` boolean, required — Defines whether Incoming Leads are enabled.
    - `_embedded` object — Pipeline stages data. You can pass names for the system stages 142 and 143 when adding a pipeline.
      - `statuses` object[]
        - `id` integer — Pipeline stages data. You can pass names for the system stages 142 and 143 when adding a pipeline.
        - `name` string — Stage name
        - `sort` integer — Sequence number of the stage in the pipeline
        - `color` string — Stage color
        - `request_id` string — The field will be returned unchanged in the response and will not be saved.
        - `descriptions` object — Status description. Optional parameter
          - `level` string — The level of users for which the status description is shown
          - `description` string — Description of the status
    - `request_id` string — The field that will be returned unchanged in the response and will not be saved.

## Response `200`

200

- object
  - `_total_items` integer
  - `_links` object
    - `self` object
      - `href` string
  - `_embedded` object
    - `pipelines` object[]
      - `id` integer
      - `name` string
      - `sort` integer
      - `is_main` boolean
      - `is_unsorted_on` boolean
      - `is_archive` boolean
      - `account_id` integer
      - `request_id` string
      - `_links` object
        - `self` object
          - `href` string
      - `_embedded` object
        - `statuses` object[]
          - `id` integer
          - `name` string
          - `sort` integer
          - `is_editable` boolean
          - `pipeline_id` integer
          - `color` string
          - `type` integer
          - `account_id` integer
          - `_links` object
            - `self` object
              - …

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403
- `422` — 422
- `429` — 429
- `500` — 500

---

[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)
