List queues
Queues of a workspace with their weekly time slots and how many posts wait in each.
GET https://cotlet.dev/api/v1/sendible/workspaces/{workspace_id}/queues
read
Returns the queues from Publish > Queues: name, whether posts are recycled to the bottom after sending, the day and time slots and the number of posts waiting. A queue sends one post per slot, to one or more profiles. Creating or editing a queue stays in Sendible.
Parameters
| Name | Type | Description |
|---|---|---|
| workspace_id string required | string | Workspace from list_workspaces. |
Request
curl https://cotlet.dev/api/v1/sendible/workspaces/workspace_8c41d2/queues \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("sendible", "list_queues", {"workspace_id":"workspace_8c41d2"}) const result = await cotlet.call('sendible', 'list_queues', {"workspace_id":"workspace_8c41d2"}); cotlet call sendible list_queues --data '{"workspace_id":"workspace_8c41d2"}' Example response
{
"queues": [
{
"queue_id": "q_19",
"name": "Weekly tip",
"recycle": true,
"slots": [
"Mon 09:00",
"Thu 09:00"
],
"posts_waiting": 12
},
{
"queue_id": "q_20",
"name": "Offers",
"recycle": false,
"slots": [
"Fri 12:00"
],
"posts_waiting": 3
}
]
}