Skip to main content
POST
/
labels
Create a label
curl --request POST \
  --url https://app.tryordinal.com/api/v1/labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Engineering",
  "color": "green"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440402",
  "name": "Engineering",
  "color": "#16a34a",
  "backgroundColor": "#dcfce7",
  "createdAt": "2026-01-05T10:30:00.000Z",
  "updatedAt": "2026-01-05T10:30:00.000Z"
}

Authorizations

Authorization
string
header
required

API key authentication. Generate an API key from your workspace settings.

Body

application/json
name
string
required
Minimum string length: 1
color
enum<string>
required
Available options:
yellow,
purple,
orange,
red,
brown,
green

Response

Label created

id
string<uuid>
name
string
color
string

Hex color code

backgroundColor
string

Hex background color code

createdAt
string<date-time>
updatedAt
string<date-time>