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
curl https://cotlet.dev/api/v1/kommo/pipelines \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("kommo", "list_pipelines")
Node.js
const result = await cotlet.call('kommo', 'list_pipelines');
CLI
cotlet call kommo list_pipelines

Example response

JSON

{
  "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"
        }
      ]
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.