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

Parameters: list_queues
NameTypeDescription
workspace_id string required string Workspace from list_workspaces.

Request

cURL
curl https://cotlet.dev/api/v1/sendible/workspaces/workspace_8c41d2/queues \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("sendible", "list_queues", {"workspace_id":"workspace_8c41d2"})
Node.js
const result = await cotlet.call('sendible', 'list_queues', {"workspace_id":"workspace_8c41d2"});
CLI
cotlet call sendible list_queues --data '{"workspace_id":"workspace_8c41d2"}'

Example response

JSON

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

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.