---
title: "Create a Label"
method: POST
path: "/customers/labels"
tags: ["Labels"]
---

# Create a Label

`POST /customers/labels`

Creates a new `Label` on the authenticated user's organisation.
Labels are then available to attach to any `Customer` in the
organisation for ad-hoc segmentation in reports and Customer
Hub searches.

## Request body

- object
  - `value` string, required — Display text shown on the label badge against a customer. Operator-facing only — there is no guest-visible surface for labels. Limited to 20 characters so the badge fits in customer-list rows.
  - `colour` string, required — A hex colour code excluding the preceding \# which this label will be rendered as.
  - `organisation_id` string, uuid — The organisation which this label belongs to

## Response `201`

The label was successfully retrieved

- object
  - `data` SchemasLabel2, required — A `Label` is an organisation-wide tag that can be attached to customers, orders, and other resources to categorise them for reporting and filtering purposes.
    - `id` string, uuid, required — The ID of the label
    - `value` string, required — The name of the label
    - `colour` string, required — A hex colour code excluding the preceding \# which this label will be rendered as.
    - `organisation_id` string, uuid, required — The organisation which this label belongs to
    - `created_at` string, date-time, required — The datetime which the label was created
    - `updated_at` string, date-time, required — The datetime which the label was last updated

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
