---
title: "Create a label"
method: POST
path: "/labels"
tags: ["labels"]
---

# Create a label

`POST /labels`

## Request

- Base URL: `https://corebee.ai/api/v1`
- URL: `https://corebee.ai/api/v1/labels`
- Auth: HTTP bearer

Requires title.

## Request body

- LabelCreate
  - `title` string, required
  - `description` string
  - `color` string
  - `show_on_sidebar` boolean

## Response `201`

Created

- object
  - `data` Label, required
    - `id` string, uuid
    - `org_id` string, uuid
    - `title` string
    - `description` string, nullable
    - `color` string, nullable
    - `show_on_sidebar` boolean
    - `created_at` string, date-time

## Other responses

- `400`: Validation error
- `401`: Invalid or missing credential

---

[API](https://skmtc.dev/corebee/apis/corebee-api.md) · [All operations](https://skmtc.dev/corebee/apis/corebee-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corebee/apis/corebee-api/revisions/a48ea543b4dc?raw)
