List deal phases
The phases of your deal pipelines, in order, with their IDs.
GET https://cotlet.dev/api/v1/teamleader/deal-phases
read
Returns the phases of one pipeline or of all pipelines. Every pipeline starts with New, Quotation sent, Accepted and Refused, and your account may have more. The phase ID is what move_deal and list_deals take. How many pipelines you have depends on your package.
Parameters
| Name | Type | Description |
|---|---|---|
| pipeline_id string | string | Only the phases of this pipeline. Default: all. |
Request
curl https://cotlet.dev/api/v1/teamleader/deal-phases \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("teamleader", "list_deal_phases") const result = await cotlet.call('teamleader', 'list_deal_phases'); cotlet call teamleader list_deal_phases Example response
{
"phases": [
{
"phase_id": "1758e847-cc1f-04ce-bd17-5a852e8c01b4",
"name": "New",
"pipeline": "Sales"
},
{
"phase_id": "3a90b4d2-6e17-4c85-8f23-9d1e5a7c0b46",
"name": "Quotation sent",
"pipeline": "Sales"
},
{
"phase_id": "5c12d8f6-0a39-4b71-a4e5-1f6b8d3c9e72",
"name": "Accepted",
"pipeline": "Sales"
}
]
}