Skip to main content
POST
Create a new label

Authorizations

x-portkey-api-key
string
header
required

Body

application/json
name
string
required

Name of the label

Pattern: ^(?!latest$)(?!default$)(?!\d+$)[a-zA-Z0-9_-]*[^@\s]?[a-zA-Z0-9_-]*$
organisation_id
string<uuid>

ID of the organisation

workspace_id
string

ID or slug of the workspace

description
string

Description of the label

color_code
string

Color code for the label

Response

Label created successfully

id
string<uuid>

ID of the created label

Last modified on April 8, 2026