Skip to main content
GET
/
categories
/
labels-model
Get Categories and Labels
curl --request GET \
  --url https://api.projectcor.com/v1/categories/labels-model \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 101,
    "name": "Development Team",
    "labels": [
      {
        "id": 3001,
        "hex": "#FF5733",
        "hsl": null,
        "rgb": null,
        "lang": "en",
        "name": "Backend",
        "color_id": 10
      },
      {
        "id": 3002,
        "hex": "#33FF57",
        "hsl": null,
        "rgb": null,
        "lang": "en",
        "name": "Frontend",
        "color_id": 11
      },
      {
        "id": 3003,
        "hex": "#3357FF",
        "hsl": null,
        "rgb": null,
        "lang": "en",
        "name": "QA",
        "color_id": 12
      },
      {
        "id": 3004,
        "hex": "#FF33A1",
        "hsl": null,
        "rgb": null,
        "lang": "en",
        "name": "DevOps",
        "color_id": 13
      }
    ]
  },
  {
    "id": 102,
    "name": "Sales Team",
    "labels": [
      {
        "id": 4001,
        "hex": "#FFC300",
        "hsl": null,
        "rgb": null,
        "lang": "en",
        "name": "Lead Generation",
        "color_id": 14
      },
      {
        "id": 4002,
        "hex": "#FF5733",
        "hsl": null,
        "rgb": null,
        "lang": "en",
        "name": "Account Management",
        "color_id": 15
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

model
enum<string>
default:user
required

Model type to retrieve labels for

Available options:
user

Response

200 - application/json

List of categories with their associated labels

id
integer
name
string
labels
object[]