Use a stream’s id as stream_id when you open a matter, and one of its stages’ ids as stage_id to move a matter on.
curl "https://api.torlie.com/desk/streams" \
-H "Authorization: Bearer $TORLIE_KEY"What comes back
Each work stream with its stages in order, and how many open matters are at each stage.
{
"streams": [
{
"id": "wst_01jcz8q3w6e9r2t5y8u1i4o7p0",
"name": "Residential purchase",
"position": 0,
"archived": false,
"stages": [
{
"id": "stg_01jcz8q3w6e9r2t5y8u1i4o7p1",
"name": "Instructed",
"open": 4
},
{
"id": "stg_01jcz8q3w6e9r2t5y8u1i4o7p2",
"name": "Searches",
"open": 7
}
]
}
]
}