Skip to content

List project labels ​

GET/api/v2/workspaces/{slug}/project-labels/

Return the workspace's project labels as a paginated list. These labels tag projects. For work item labels, see List labels.

Path Parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

Query Parameters ​

Filters combine with AND.

name:optionalstring

Return labels with this name, compared case-insensitively. Create and update apply the same case-insensitive rule, so use this filter to check for a label before you create one.

name__in:optionalstring

Return labels whose name is in this comma-separated list: ?name__in=Roadmap,Platform. This match is case-sensitive.

search:optionalstring

A search term matched against the label name.

Ordering ​

order_by:optionalstring

Field to sort by. Prefix with - for descending. Defaults to sort_order.

  • sort_order, -sort_order
  • name, -name
  • created_at, -created_at
  • id, -id

Pagination ​

per_page:optionalinteger

Page size. Defaults to 50, maximum 200.

offset:optionalinteger

Number of rows to skip from the start of the result set. Maximum 10000. Read the next value from the response rather than computing offsets yourself.

paginate:optionalstring

Set to cursor to opt into the COUNT-free keyset envelope, which returns next_cursor and has_more instead of next and total_count. Cursor pagination needs order_by set to created_at, -created_at, id, or -id. Any other ordering, including the default sort_order, returns 400 ordering_not_cursor_eligible.

count:optionalboolean

Defaults to true. Set to false to skip the COUNT(*) behind total_count. The response then omits total_count.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return on each row. Unrequested keys are omitted from the response, not returned as null, so absent means "not requested" and null means "actually null". id always comes back whether or not you name it.

Pass all for every requestable field. An unknown name is a 400 that lists the valid set and suggests the closest match, so a typo can't silently cost you the saving.

Requestable here: color, created_at, created_by_id, description, id, name, sort_order, updated_at, updated_by_id.

See Sparse fields.

Scopes ​

workspaces.project_labels:read

Errors ​

StatusCodeCause
400ordering_not_cursor_eligible?paginate=cursor with an ordering other than created_at or id.
401unauthorizedMissing or invalid credentials.
402payment_requiredThe feature this endpoint belongs to isn't enabled on your plan, or is switched off.
403forbiddenYour role or token scope can't read project labels.
404not_foundNo such workspace, or it's outside your tenant.
406not_acceptableThe Accept header asks for a representation the API can't produce.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
List project labels
bash
curl -X GET \
  "https://api.plane.so/api/v2/workspaces/my-team/project-labels/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response200
json
{
  "data": [
    {
      "id": "d8a4f2c6-1e7b-4093-9c5a-6b2e0f8d3a71",
      "name": "Roadmap",
      "description": "Projects committed on this year's roadmap",
      "color": "#3e63dd",
      "sort_order": 65535,
      "created_at": "2026-01-14T09:22:41.478363Z",
      "updated_at": "2026-01-14T09:22:41.478363Z",
      "created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
      "updated_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430"
    },
    {
      "id": "2b6e9d14-7c3a-4f85-b0e2-9a1d5c8f6e37",
      "name": "Platform",
      "description": "",
      "color": "#12a594",
      "sort_order": 75535,
      "created_at": "2026-01-15T13:40:02.118204Z",
      "updated_at": "2026-01-15T13:40:02.118204Z",
      "created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
      "updated_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430"
    }
  ],
  "next": null,
  "previous": null,
  "total_count": 2,
  "pagination": {
    "style": "offset"
  }
}