Create a pipeline
POST /pipelines
/pipelinesCreates a pipeline with four default stages (Lead as initial stage, In progress, Won, Lost) that you can then rename and adjust. If the account has no default pipeline, this one becomes the default.
When to use: To start a new sales process from scratch.
When not to use: To start from a ready-made process, use list_pipeline_templates and create_pipeline_from_template. To change an existing pipeline, use update_pipeline, and for its stages create_pipeline_stage and update_pipeline_stage.
Side effects: The pipeline is open to the whole account until someone restricts it in the app: this API cannot manage who has access to a pipeline. The default stage names are written in the language of the account. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).
Permissions: Requires a CRM seat and the crm.pipelines.manage capability.
Value for the X-Auth-Token header parameter.
In: header
The new Pipeline resource
TypeScript Definitions
Use the request body type in TypeScript.
Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by fase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.
pipeline:list is the summary every item of the list has; pipeline:detail adds what only get_pipeline returns
(the initial stage, the stages and the loss reasons).
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/pipelines" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "reference_currency": "string", "allow_custom_probability": true, "allow_multiple_currencies": false }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "reference_currency": "string", "default": true, "allow_custom_probability": true, "allow_multiple_currencies": true, "access_level": "read", "initial_stage": "f73de70a-30e5-4d17-9ead-29d8c8067fde", "stages": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "color": "string", "type": "open", "probability": 0, "position": 0, "max_calendar_days": 0, "loss_reason_mode": "disabled", "required_fields": [ "string" ], "required_attributes": [ "string" ] } ], "loss_reasons": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "position": 0, "status": "active", "used": true } ]}