Skip to content

labels admin GET endpoint is undocumented. #30

@markstos

Description

@markstos

Labels are added and removed through calls to members endpoints, but they are fetched with GET via their own endpoint in the admin API and this appears to be undocumented.

Example call to get labels

GET ghost/api/admin/labels/?limit=100&page=1

Example response when getting labels

{
  "labels": [
    {
      "id": "6958473e4c66da000199e33e",
      "name": "label1",
      "slug": "label1",
      "created_at": "2026-01-02T22:31:26.000Z",
      "updated_at": "2026-01-02T22:31:26.000Z"
    },
    {
      "id": "6958473e4c66da000199e33f",
      "name": "label2",
      "slug": "label2",
      "created_at": "2026-01-02T22:31:26.000Z",
      "updated_at": "2026-01-02T22:31:26.000Z"
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "limit": 100,
      "pages": 1,
      "total": 2,
      "next": null,
      "prev": null
    }
  }
}

I'm reporting this after another SDK user noticed the absence as well:

PhilDL/ts-ghost#280

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions