List labels

List member labels, with how many members carry each.

GET https://cotlet.dev/api/v1/ghost/labels

read

Returns the name and slug of each label and the member count. Use it before label_members so the agent reuses an existing label name and does not create a near-duplicate.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/ghost/labels \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("ghost", "list_labels")
Node.js
const result = await cotlet.call('ghost', 'list_labels');
CLI
cotlet call ghost list_labels

Example response

JSON

{
  "labels": [
    {
      "id": "6958473e4c66da000199e33e",
      "name": "VIP",
      "slug": "vip",
      "members": 12
    }
  ]
}

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.