Pular para o conteúdo principal
POST
/
chatwoot
/
webhook
/
{instanceId}
Webhook recebido do Chatwoot
curl --request POST \
  --url https://api.vzaps.com/chatwoot/webhook/{instanceId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "event": "message_created",
  "id": 123,
  "content": "<string>",
  "message_type": "outgoing",
  "private": true,
  "source_id": "<string>",
  "sender": {
    "name": "<string>"
  },
  "content_attributes": {},
  "conversation": {
    "id": 123,
    "messages": [
      {
        "source_id": "<string>"
      }
    ]
  },
  "attachments": [
    {
      "data_url": "<string>",
      "file_name": "<string>"
    }
  ]
}
'

Parâmetros de caminho

instanceId
string
obrigatório
Exemplo:

"VZ9K2M4N8P1Q3R5S7T0WABCD01EF"

Corpo

application/json
event
string
Exemplo:

"message_created"

id
integer
content
string
message_type
string
Exemplo:

"outgoing"

private
boolean
source_id
string | null
sender
object
content_attributes
object
conversation
object
attachments
object[]

Resposta

200

Webhook processado