API Reference
Virtual Keys
Prompts
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
Create Label
Creates a new label in the system
POST
/
labels
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"
}
Authorizations
Body
application/json
Response
200
application/json
Label created successfully
The response is of type object
.
Was this page helpful?
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"
}
Assistant
Responses are generated using AI and may contain mistakes.