Configuración

set_new_webhook_api_v1_set_webhook_post

post

Este endpoint te permite configurar una URL de webhook para recibir actualizaciones en tiempo real de la API. Al configurar un webhook, tu sistema puede procesar automáticamente los eventos entrantes sin necesidad de sondeo continuo.

Cuerpo de la Solicitud

La solicitud debe enviarse en formato JSON y debe incluir los siguientes parámetros:

  • url (string, requerido) – La URL del webhook donde se entregarán los eventos. No hay límite de caracteres para este campo.

  • headers (object, opcional) – Un conjunto de pares clave-valor que se incluirán como encabezados personalizados en las solicitudes de webhook.

Authorizations
Body
all ofOptional
and
anyOptionalExample: {"url":"https://example.com","headers":{"Authorization":"Basic wersfQ.."}}
Responses
200

Respuesta Exitosa

application/json
Responseany
post
/api/v1/set-webhook
POST /api/v1/set-webhook HTTP/1.1
Host: www.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "url": "https://example.com",
  "headers": {
    "Authorization": "Basic wersfQ.."
  }
}

No content

get_webhook_api_v1_webhook_get

get
Authorizations
Responses
200

Respuesta Exitosa

application/json
get
/api/v1/webhook
GET /api/v1/webhook HTTP/1.1
Host: www.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Respuesta Exitosa

{
  "url": "text",
  "headers": {}
}

create_new_channel_api_v1_channel_register_post

post
Authorizations
Body
whatsAppBusinessAccountstringRequired
whatsAppNumberstringRequired
Responses
200

Respuesta Exitosa

application/json
Responseany
post
/api/v1/channel/register
POST /api/v1/channel/register HTTP/1.1
Host: www.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "whatsAppBusinessAccount": "text",
  "whatsAppNumber": "text"
}

No content