Skip to main content
POST
Crear una etiqueta
Creates a tag. The scope decides what it labels: ticket for pipeline tickets, client for customers and contacts. It cannot change later. The company and project are taken from your token and must not appear in the body. Sending them returns 400.
A tag name is unique per scope. Before creating, list the tags with search and reuse the one that already exists — that keeps reports grouped under a single tag.

Endpoint

Required scope

crm:tags:write

Headers

Body

Example request

Response

201 Created

400 Bad Request

  • A tag with the same name already exists in that scope (Tag name already exists for this scope).
  • The category belongs to the other scope (Tag scope must match its category scope).
  • Missing name or scope, a scope outside the allowed set, a malformed category_id, or a property the endpoint does not accept — including company and project, which are derived from the token.

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

The token does not have the crm:tags:write scope.

404 Not Found

category_id does not match a category of your company (Tag category not found).

Operational notes

  • Name uniqueness is an exact match. VIP and vip are different names to this endpoint. Normalize names on your side before creating if your source system is loose about casing.

Authorizations

Authorization
string
header
required

Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.

Body

application/json
name
string
required

Nombre de la etiqueta. Único por scope dentro de la company (coincidencia exacta).

scope
enum<string>
required

ticket etiqueta tickets del pipeline; client etiqueta clientes y contactos.

Available options:
ticket,
client
color
string

Color hexadecimal. Por defecto #1890ff.

Example:

"#1890ff"

category_id
string

Categoría de la etiqueta. Debe existir y ser del mismo scope que la etiqueta.

Response

201 - application/json
tag
object
required