Skip to main content
POST
/
user
/
label
Create label
curl --request POST \
  --url https://app.autocalls.ai/api/user/label \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "color": "<string>"
}
'
{
  "message": "Label created successfully",
  "data": { "id": 3, "name": "Inbound", "color": "green", "assistants_count": 0 }
}
Create a label to tag assistants across folders (for example, inbound or outbound). Apply labels to assistants with the label_ids field on the Create assistant and Update assistant endpoints.

Request Body

name
string
required
The label name (max 255 characters). Must be unique within your account.
color
string
A color for the label badge. One of: gray, slate, red, orange, amber, green, teal, blue, purple, pink.

Response

message
string
Success message
data
object
{
  "message": "Label created successfully",
  "data": { "id": 3, "name": "Inbound", "color": "green", "assistants_count": 0 }
}