POST /v1/labels
Create a new label by sending a JSON request body.
POST /v1/labels creates a new label.
Authentication
Send an organization API key in x-api-key or
Authorization: Bearer <key>.
Request Body
name and color are required.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Label name, from 1 to 100 characters. |
color | string | Yes | Label color, from 1 to 50 characters. |
description | string | No | Label description, up to 500 characters. |
Example
curl -X POST "https://api.blueputto.com/v1/labels" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"name":"Needs review","color":"#ea580c"}'Success Response
201 Created
{
"data": {}
}Error Responses
400 Bad Request401 Unauthorized429 Too Many Requests