Pipelines
Documentation for Opportunities API
Get Pipelines
Returns the location's pipelines with their stages. Pass a stage `id` as `pipelineStageId` when you create or move an opportunity.
Create Pipeline
Creates a new pipeline with at least one stage for a given location. Pipeline names must be unique per location (case-insensitive), and stage names must be unique within the pipeline. To set win probabilities by hand, give every stage a `stageWinProbability` (0–100); if any stage is missing a value, all are dropped and forecasting uses automatic probabilities based on stage position. Stages are written only through the pipeline's `stages` array; there are no stage-level endpoints.
Get Pipeline
Retrieves a single pipeline by its ID, including all its stages and configuration.
Update Pipeline
Updates an existing pipeline. Send only the fields to change; omit `stages` to leave the stages as they are.
Delete Pipeline
Permanently deletes a pipeline and all opportunities within it. This action is irreversible — all opportunities across every stage of this pipeline will be removed. Ensure you have migrated or exported any opportunities before calling this endpoint.