cURL
curl --request POST \ --url https://api.teleskop.dev/labels \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "<string>", "description": "<string>", "color": "<string>" } '
{ "status": "success", "statusCode": 200, "data": { "name": "<string>", "id": "0062b94c-9531-45c5-a171-8019b5c39406", "creator_id": "a76ea981-f007-44e6-b4d7-2dbdc61ce338", "created_at": "2025-07-29T13:37:12.548Z", "updated_at": "2025-07-29T13:37:12.548Z", "description": "<string>", "color": "<string>" }, "message": "Request successful", "metadata": {} }
Creates a new label in your workspace.
API Key for authentication
Name (minimum length 3).
Color in hex format (e.g., #RRGGBB or #RGB).
Label created successfully
Response status
success
error
"success"
HTTP status code
200
Response data
Show child attributes
Label ID
"0062b94c-9531-45c5-a171-8019b5c39406"
Creator ID
"a76ea981-f007-44e6-b4d7-2dbdc61ce338"
"2025-07-29T13:37:12.548Z"
Response message
"Request successful"
Additional metadata