GET
/api/public/v1/project-labels

List project labels

Every label in the company, each naming the project it belongs to. Labels are scoped to one project, so pass `projectId` for a single project’s vocabulary. Read this to interpret the `labels` on a ticket.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

projects:admin

Query Parameters

NameTypeRequiredDescription
projectIdstringOptionalOnly this project’s labels.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/project-labels" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Labels retrieved successfully!",
  "content": {
    "labels": [
      {
        "id": "lbl_77",
        "projectId": "prj_3c1a",
        "name": "customer-request",
        "color": "amber"
      }
    ]
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Projects
/projects
  1. Open a project.
  2. Open Labels in the sidebar, under Milestones.