---
title: "Create a label"
method: POST
path: "/api/workspaces/{workspaceId}/labels"
tags: ["Labels"]
---

# Create a label

`POST /api/workspaces/{workspaceId}/labels`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/labels`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required

## Request body

- object
  - `name` string, required
  - `color` string
  - `description` string

## Response `201`

Label created

- object
  - `success` boolean, required
  - `data` object, required
    - `id` string, cuid, required
    - `name` string, required
    - `color` string, required
    - `description` string, nullable, required
    - `issueCount` integer, required

## Other responses

- `400`: Validation error
- `409`: Label name already exists

---

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