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
Retrieve Label
Returns a specific label by its ID
GET
/
labels
/
{labelId}
curl --request GET \
--url https://api.portkey.ai/v1/labels/{labelId} \
--header 'x-portkey-api-key: <api-key>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"color_code": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_universal": true,
"created_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"status": "<string>"
}
Authorizations
Path Parameters
ID of the label to retrieve
Query Parameters
ID of the organisation
ID or slug of the workspace
Response
200
application/json
Label details
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.portkey.ai/v1/labels/{labelId} \
--header 'x-portkey-api-key: <api-key>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"color_code": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_universal": true,
"created_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"status": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.