Intelibot Docs
API

Criar webhook

Passe segredo para assinar as entregas, ou omita e receba um gerado. Ele aparece uma única vez, nesta resposta. Cada entrega leva o cabeçalho X-Intelibot-Signature: sha256=<hmac do corpo>.

POST
/v1/agents/{id}/webhooks
AuthorizationBearer <token>

Chave de API no formato ib_live_...

In: header

Path Parameters

idstring
segredo?string

Ausente, um é gerado e devolvido uma única vez na resposta da criação.

Lengthlength <= 255
urlstring
Formaturi
eventosarray<string>
descricao?string
Lengthlength <= 255

Response Body

curl -X POST "https://api.intelibot.com.br/v1/agents/string/webhooks" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "http://example.com",
    "eventos": [
      "conversation.started"
    ]
  }'
Empty