Move a lead to a stage

Move a lead to another stage, in any pipeline, or close it as Won or Lost.

POST https://cotlet.dev/api/v1/kommo/leads/{lead_id}/stage/move

write Confirm

Returns the lead with its new stage. The expected revenue of the pipeline updates by itself. A Digital Pipeline trigger on the target stage fires, so it can send an email, start a Salesbot or add a task. A closed lead leaves the pipeline view. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: move_lead_stage
NameTypeDescription
lead_id integer required integer Lead ID from list_leads or get_lead.
stage_id integer integer Target stage from list_pipelines. Leave out when you use close_as.
close_as string string won or lost. Closes the lead the way dropping it on Won or Lost does.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/kommo/leads/1/stage/move \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("kommo", "move_lead_stage", {"lead_id":1})
Node.js
const result = await cotlet.call('kommo', 'move_lead_stage', {"lead_id":1});
CLI
cotlet call kommo move_lead_stage --data '{"lead_id":1}'

Example response

JSON

{
  "lead_id": 24518301,
  "from_stage": "Proposal",
  "to_stage": "Negotiation",
  "pipeline_id": 8210123
}

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.