Skip to main content
POST
/
labels
curl -X POST https://app.trypost.it/api/labels \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Product Launch",
    "color": "#4f46e5"
  }'
{
  "id": "c3d4e5f6-a7b8-9c0d-1e2f-3a4b5c6d7e8f",
  "name": "Product Launch",
  "color": "#4f46e5",
  "created_at": "2025-01-10 08:00:00",
  "updated_at": "2025-01-10 08:00:00"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trypost.it/llms.txt

Use this file to discover all available pages before exploring further.

Request

name
string
required
The label name. Maximum 255 characters.
color
string
required
Hex color code (e.g., #FF5733). Must match the format #RRGGBB.

Response

Returns 201 with the created label. Same shape as one entry in GET /labels.
curl -X POST https://app.trypost.it/api/labels \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Product Launch",
    "color": "#4f46e5"
  }'
{
  "id": "c3d4e5f6-a7b8-9c0d-1e2f-3a4b5c6d7e8f",
  "name": "Product Launch",
  "color": "#4f46e5",
  "created_at": "2025-01-10 08:00:00",
  "updated_at": "2025-01-10 08:00:00"
}