Skip to main content
POST
Crear una categoría de etiquetas
Creates a tag category. Assign tags to it with category_id when you create or update them; a tag and its category must share the same scope. The company and project are taken from your token and must not appear in the body. Sending them returns 400.

Endpoint

Required scope

crm:tags:write

Headers

Body

Example request

Response

201 Created

400 Bad Request

  • A category with the same name already exists in that scope (Tag category name already exists for this scope).
  • Missing name or scope, a scope outside the allowed set, a negative order, or a property the endpoint does not accept — including company and project.

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

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

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 categoría. Único por scope dentro de la company.

scope
enum<string>
required
Available options:
ticket,
client
exclusive
boolean
default:false

Si es true, un ticket o cliente lleva a lo más una etiqueta de esta categoría: agregar otra quita la anterior.

order
number
default:0
Required range: x >= 0

Response

201 - application/json
category
object
required