Ir al contenido

Referencia de endpoints

Referencia generada desde el OpenAPI de Dabar v1.2.0. No editar a mano: ejecutar npm run api:sync -- --source URL/api/v1/openapi.

Base: https://dabar.com.co/api/v1. Las rutas siguientes son relativas a esa base.

Los cuerpos son JSON Schema, no ejemplos con valores para enviar. Las respuestas generales se explican en las guías; el OpenAPI actual no define esquemas completos para todos los DTO de respuesta. No inventes campos de respuesta.

Para /snapshot y /resources/*, además de events:read, se necesita el permiso de lectura del recurso: conversations:read para conversaciones/snapshot y messages:read para mensajes. Son rutas de backend, no un reemplazo de las ACL de usuarios.

Conexión y capacidades.

Permiso: conversations:read. Autenticación: Bearer de servidor.

Bandejas autorizadas.

Permiso: conversations:read. Autenticación: Bearer de servidor.

Consultar miembros delegados.

Permiso: actors:manage. Autenticación: Bearer de servidor.

Registrar o actualizar una identidad delegada.

Permiso: actors:manage. Autenticación: Bearer de servidor.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"externalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"role": {
"type": "string",
"enum": [
"agent",
"admin"
]
},
"active": {
"default": true,
"type": "boolean"
}
},
"required": [
"externalId",
"name",
"role",
"active"
],
"additionalProperties": false
}

Consultar contactos autorizados (hasta 50).

Permiso: contacts:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.

Crear o encontrar por E.164; en pruebas solo contactos preautorizados.

Permiso: contacts:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
{
"type": "object",
"required": [
"phone",
"name"
],
"properties": {
"phone": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}

Actualizar nombre, correo o etiquetas; identidad WhatsApp no se reasigna.

Permiso: contacts:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"email": {
"type": [
"string",
"null"
],
"format": "email"
},
"tags": {
"type": "array",
"maxItems": 30,
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}

Listar conversaciones y cola sin asignar.

Permiso: conversations:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
cursor query No string; Cursor opaco devuelto por la página anterior.
limit query No integer; mín. 1; máx. 50

Abrir o encontrar una conversación, sin fabricar una respuesta humana.

Permiso: conversations:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
{
"type": "object",
"required": [
"contactId",
"inboxId"
],
"properties": {
"contactId": {
"type": "string",
"format": "uuid"
},
"inboxId": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}

Detalle autorizado y ventana de WhatsApp.

Permiso: conversations:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid

Claim, asignación, humano/IA, resolución, lectura, lead o seguimiento.

Permiso: conversations:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
If-Match header No string; date-time; updatedAt ISO del detalle que se está modificando.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "claim"
}
},
"required": [
"action"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "assign"
},
"externalId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"action",
"externalId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "human"
}
},
"required": [
"action"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "ai"
},
"agentId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"action",
"agentId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "resolve"
}
},
"required": [
"action"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "reopen"
}
},
"required": [
"action"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "read"
}
},
"required": [
"action"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "followup"
},
"at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
]
},
"note": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
]
}
},
"required": [
"action",
"at",
"note"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"const": "link_lead"
},
"leadId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"action",
"leadId"
],
"additionalProperties": false
}
]
}

Historial visible, autoría IA y citas disponibles; cursor hacia mensajes anteriores.

Permiso: messages:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
cursor query No string; Cursor opaco devuelto por la página anterior.
limit query No integer; mín. 1; máx. 50

Enviar texto, plantilla, adjunto, cita replyToId o reenvío forward. Citas/reenvíos también requieren messages:read; origen visible y destino autorizado con ventana activa..

Permiso: messages:send. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
Idempotency-Key header Sí string; uuid
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"content": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"replyToId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"content"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "template"
},
"templateId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"parameters": {
"default": {},
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 1000
}
}
},
"required": [
"type",
"templateId",
"parameters"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "media"
},
"uploadId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"caption": {
"default": "",
"type": "string",
"maxLength": 1000
},
"replyToId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"uploadId",
"caption"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "forward"
},
"sourceMessageId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"sourceMessageId"
],
"additionalProperties": false
}
]
}

Revalidar visibilidad de hasta 200 mensajes ya cargados.

Permiso: messages:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
{
"type": "object",
"required": [
"ids"
],
"properties": {
"ids": {
"type": "array",
"maxItems": 200,
"items": {
"type": "string",
"format": "uuid"
}
}
},
"additionalProperties": false
}

Plantillas aprobadas de la bandeja y variables canónicas.

Permiso: conversations:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid

Catálogo de las bandejas autorizadas; agentes solo ven aprobadas. refresh=1 consulta Meta y requiere administrador delegado..

Permiso: conversations:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
refresh query No string; 1

Crear borrador sin enviarlo a Meta; administrador delegado, cupo e idempotencia.

Permiso: conversations:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
Idempotency-Key header Sí string; uuid
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"inboxId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^[a-z0-9_]+$"
},
"category": {
"type": "string",
"enum": [
"utility",
"marketing"
]
},
"language": {
"type": "string",
"pattern": "^[a-z]{2,3}(?:_[A-Z]{2})?$"
},
"content": {
"type": "object",
"properties": {
"header": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 60
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "image"
},
"assetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"assetId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "video"
},
"assetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"assetId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "document"
},
"assetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"assetId"
],
"additionalProperties": false
}
]
},
"footer": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"buttons": {
"maxItems": 10,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "url"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 25
},
"url": {
"type": "string",
"maxLength": 2000,
"format": "uri"
}
},
"required": [
"type",
"text",
"url"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "phone"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 25
},
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
}
},
"required": [
"type",
"text",
"phone"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "quick_reply"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 25
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "request_contact_info"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "Solicita el teléfono del destinatario. WhatsApp fija y traduce el texto; no admite text ni parámetros."
}
]
}
}
},
"additionalProperties": false
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"variables": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*$"
},
"source": {
"type": "string",
"enum": [
"contact.first_name",
"contact.name",
"contact.phone",
"contact.email",
"organization.name"
]
},
"sample": {
"type": "string",
"maxLength": 200
}
},
"required": [
"key",
"source",
"sample"
],
"additionalProperties": false
}
}
},
"required": [
"inboxId",
"name",
"category",
"language",
"body",
"variables"
],
"additionalProperties": false
}

Editar solo borrador autorizado; administrador delegado. Repetir el mismo contenido reconcilia una confirmación perdida..

Permiso: conversations:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
If-Match header Sí string; date-time
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"inboxId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^[a-z0-9_]+$"
},
"category": {
"type": "string",
"enum": [
"utility",
"marketing"
]
},
"language": {
"type": "string",
"pattern": "^[a-z]{2,3}(?:_[A-Z]{2})?$"
},
"content": {
"type": "object",
"properties": {
"header": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 60
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "image"
},
"assetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"assetId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "video"
},
"assetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"assetId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "document"
},
"assetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"type",
"assetId"
],
"additionalProperties": false
}
]
},
"footer": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"buttons": {
"maxItems": 10,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "url"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 25
},
"url": {
"type": "string",
"maxLength": 2000,
"format": "uri"
}
},
"required": [
"type",
"text",
"url"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "phone"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 25
},
"phone": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
}
},
"required": [
"type",
"text",
"phone"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "quick_reply"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 25
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "request_contact_info"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "Solicita el teléfono del destinatario. WhatsApp fija y traduce el texto; no admite text ni parámetros."
}
]
}
}
},
"additionalProperties": false
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"variables": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*$"
},
"source": {
"type": "string",
"enum": [
"contact.first_name",
"contact.name",
"contact.phone",
"contact.email",
"organization.name"
]
},
"sample": {
"type": "string",
"maxLength": 200
}
},
"required": [
"key",
"source",
"sample"
],
"additionalProperties": false
}
}
},
"required": [
"inboxId",
"name",
"category",
"language",
"body",
"variables"
],
"additionalProperties": false
}

Solicitar aprobación de Meta; administrador delegado, número conectado y ejemplos. Ante 202 consultar estados y operación; nunca reenviar con clave nueva..

Permiso: conversations:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
Idempotency-Key header Sí string; uuid
{
"type": "object",
"additionalProperties": false
}

Subir adjunto privado validado; capacidad vence en 15 minutos.

Permiso: messages:send. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
Idempotency-Key header Sí string; uuid
{
"type": "object",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary"
}
}
}

Reservar espacio y autorizar un solo objeto privado. Cuota compartida por organización: Semilla 1 GB, Cosecha 50 GB, Reino 100 GB; no se reinicia por ciclo. La reserva directa cubre el máximo del bucket mientras la autorización siga vigente..

Permiso: messages:send. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
Idempotency-Key header Sí string; uuid
{
"type": "object",
"required": [
"filename",
"mimeType",
"size",
"digest"
],
"properties": {
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"size": {
"type": "integer"
},
"digest": {
"type": "string",
"description": "SHA-256 hexadecimal del archivo original"
}
},
"additionalProperties": false
}

Verificar bytes, tamaño, digest y firma antes de permitir envío.

Permiso: messages:send. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
{
"type": "object",
"required": [
"uploadId"
],
"properties": {
"uploadId": {
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}

Nota privada, no respuesta de WhatsApp.

Permiso: conversations:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
Idempotency-Key header Sí string; uuid
{
"type": "object",
"required": [
"content"
],
"properties": {
"content": {
"type": "string",
"maxLength": 4000
}
},
"additionalProperties": false
}

Mensaje exacto sujeto a permisos y retención.

Permiso: messages:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid

Ruta de descarga; download=1 transmite bytes con autorización actual.

Permiso: messages:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
download query No string; 1

Consultar resultado tras timeout por Idempotency-Key.

Permiso: conversations:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
key query Sí string; uuid

Consultar resultado por operationId.

Permiso: conversations:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid

Configuración de agentes permitidos; administrador delegado.

Permiso: agents:manage. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.

Actualizar perfil, modelo permitido y activación.

Permiso: agents:manage. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
{
"type": "object",
"required": [
"name",
"purpose",
"businessContext",
"behaviorRules",
"businessFacts",
"humanHandoffRules",
"personalityTone",
"modelId",
"isActive"
],
"properties": {
"name": {
"type": "string"
},
"purpose": {
"type": "string"
},
"businessContext": {
"type": "string"
},
"behaviorRules": {
"type": "string"
},
"businessFacts": {
"type": "string"
},
"humanHandoffRules": {
"type": "string"
},
"personalityTone": {
"type": "string"
},
"modelId": {
"type": "string"
},
"isActive": {
"type": "boolean"
}
},
"additionalProperties": false
}

Estado de documentos comerciales.

Permiso: agents:manage. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid

Subir e indexar conocimiento; administrador delegado.

Permiso: agents:manage. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
Idempotency-Key header Sí string; uuid
{
"type": "object",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary"
}
}
}

Eliminar conocimiento autorizado.

Permiso: agents:manage. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
fileId path Sí string; uuid

Subida directa de documento con capacidad temporal de un objeto.

Permiso: agents:manage. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
Idempotency-Key header Sí string; uuid
{
"type": "object",
"required": [
"filename",
"mimeType",
"size"
],
"properties": {
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"size": {
"type": "integer"
}
},
"additionalProperties": false
}

POST /agents/{id}/knowledge/{fileId}/complete

Sección titulada «POST /agents/{id}/knowledge/{fileId}/complete»

Validar documento almacenado y encolar indexación.

Permiso: agents:manage. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
id path Sí string; uuid
fileId path Sí string; uuid

Pausar o habilitar el módulo sin exponer credenciales.

Permiso: conversations:write. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
X-Dabar-Actor header Sí string; uuid; UUID del miembro externo, registrado por esta conexión.
{
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
}

Referencias de cambios publicadas después del commit, sin textos.

Permiso: events:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
cursor query No integer; mín. 0

Bootstrap de la proyección de conversaciones; principal de servidor.

Permiso: events:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
cursor query No string; Cursor opaco devuelto por la página anterior.
limit query No integer; mín. 1; máx. 50

Reconciliar recurso autorizado; principal de servidor.

Permiso: events:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
id path Sí string; uuid

Historial para reconciliación del servidor.

Permiso: events:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
id path Sí string; uuid
cursor query No string; Cursor opaco devuelto por la página anterior.
limit query No integer; mín. 1; máx. 50

Reconciliar estado o retirada de mensaje.

Permiso: events:read. Autenticación: Bearer de servidor.

Parámetro Ubicación Obligatorio Contrato
id path Sí string; uuid