List pipelines and stages
Pipelines of the account with their stages, in the order Kommo shows them.
GET https://cotlet.dev/api/v1/kommo/pipelines
read
Returns each pipeline with its stage_id and stage name, in board order, plus the Won and Lost closing stages. Run it first: the other tools take pipeline_id and stage_id from it. Pipelines and stages you cannot see with your Kommo permissions are not returned.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/kommo/pipelines \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("kommo", "list_pipelines") const result = await cotlet.call('kommo', 'list_pipelines'); cotlet call kommo list_pipelines Example response
{
"pipelines": [
{
"pipeline_id": 8210123,
"name": "Sales",
"stages": [
{
"stage_id": 71000001,
"name": "Incoming leads"
},
{
"stage_id": 71000002,
"name": "Contacted"
},
{
"stage_id": 71000003,
"name": "Proposal"
},
{
"stage_id": 71000004,
"name": "Negotiation"
}
]
}
]
}