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 https://cotlet.dev/api/v1/ghost/labels \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("ghost", "list_labels") const result = await cotlet.call('ghost', 'list_labels'); cotlet call ghost list_labels Example response
{
"labels": [
{
"id": "6958473e4c66da000199e33e",
"name": "VIP",
"slug": "vip",
"members": 12
}
]
}