create_stage
Add a new stage to a Kommo pipeline after existing editable stages, using a pipeline ID and stage name. Optionally set a hex color; each call creates another stage and clears caches.
Instructions
Add a stage to a pipeline. It is placed after the pipeline's existing editable stages (sort is computed automatically). Not idempotent: each call creates another stage. Returns the created stage. Clears the stage and pipeline caches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Stage name, e.g. "Negotiation". | |
| color | No | Hex color sent to Kommo as-is, e.g. #4CAF50. Optional; Kommo may restrict it to its own palette. | |
| pipeline_id | Yes | Kommo pipeline ID (integer). Obtain it from list_pipelines. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stage ID. | |
| name | No | Stage name. | |
| sort | No | Sort order. | |
| type | No | 0 for regular stages, 1 for unsorted. | |
| color | No | Hex color. | |
| account_id | No | Kommo account ID. | |
| is_editable | No | Whether the stage can be edited. | |
| pipeline_id | No | Parent pipeline ID. |