Add label
Notice: The Cards API is deprecated and will be removed in a future release. Please migrate to the new Tasks API to avoid disruptions.
Adds the specified label to the card.
Parameters
label
string
ID of the label.
Returns
Returns the added label object. Throws an error if some parameters are not valid.
post
/api/cards/{id}/labels
curl -X POST https://{workspace}.kitchen.co/api/cards/{id}/labels \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"label": "lbl_5b521cf4562a5ba739fc72a8",
"color": "#f9d0d9",
"title": null,
"createdAt": "2025-06-16T11:25:31+00:00",
"updatedAt": "2025-06-16T11:25:31+00:00"
}