cURL
curl --request POST \ --url https://api.portkey.ai/v1/labels \ --header 'Content-Type: application/json' \ --header 'x-portkey-api-key: <api-key>' \ --data '{ "organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "workspace_id": "<string>", "name": "<string>", "description": "<string>", "color_code": "<string>" }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Creates a new label in the system
Name of the label
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?