🚀 Introducing Agent Gateway — governance, observability, and control for your AI agents.  Register for live webinar ↗
curl --request POST \
--url https://api.portkey.ai/v1/labels \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"name": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "<string>",
"description": "<string>",
"color_code": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Creates a new label in the system
curl --request POST \
--url https://api.portkey.ai/v1/labels \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"name": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "<string>",
"description": "<string>",
"color_code": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Name of the label
^(?!latest$)(?!default$)(?!\d+$)[a-zA-Z0-9_-]*[^@\s]?[a-zA-Z0-9_-]*$ID of the organisation
ID or slug of the workspace
Description of the label
Color code for the label
Label created successfully
ID of the created label
Was this page helpful?