# Sales pipelines

Sales pipelines (deal categories). Each pipeline has its own set of stages.

Bitrix24 API: `crm.dealcategory.*`
Scope: `crm`

Pipeline stages: `GET /v1/statuses?filter[entityId]=DEAL_STAGE_{categoryId}`

The main pipeline with id `0` is not returned by `/v1/deal-categories` and is not addressable by id here — use the universal endpoint `/v1/categories/2` for it.

## Operations

- [Create a pipeline](./deal-categories/create.md) — `POST /v1/deal-categories`
- [List pipelines](./deal-categories/list.md) — `GET /v1/deal-categories`
- [Get a pipeline](./deal-categories/get.md) — `GET /v1/deal-categories/:id`
- [Update a pipeline](./deal-categories/update.md) — `PATCH /v1/deal-categories/:id`
- [Delete a pipeline](./deal-categories/delete.md) — `DELETE /v1/deal-categories/:id`
- [Search pipelines](./deal-categories/search.md) — `POST /v1/deal-categories/search`
- [Pipeline fields](./deal-categories/fields.md) — `GET /v1/deal-categories/fields`
- [Aggregate pipelines](./deal-categories/aggregate.md) — `POST /v1/deal-categories/aggregate`
