Skip to main content
POST
/
api
/
v1
/
webhook
Receber Webhook
curl --request POST \
  --url https://services.staging.app.dados.rio/eai-agent/api/v1/webhook/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "message": "Quero pagar meu IPTU!!",
    "name": "João da Silva",
    "user_number": "5531999999999"
  },
  "metadata": {
    "origin": "sistema_externo",
    "timestamp": "2023-10-15T14:30:00Z"
  },
  "type": "message"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Schema para eventos recebidos via webhook.

type
string
required

Tipo de evento recebido

data
Data · object
required

Dados do evento

metadata
Metadata · object

Metadados adicionais do evento

Response

Successful Response