Skip to main content
POST
Criar Webhook

Authorizations

Authorization
string
header
required

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

Body

application/json
instanceId
string<uuid>
required
url
string<uri>
required
Example:

"https://seusite.com/webhook"

events
enum<string>[]
required
Available options:
messages.upsert,
messages.update,
messages.delete,
message.send,
contacts.upsert,
contacts.update,
presence.update,
groups.upsert,
groups.update,
groups.participants.update
Example:
headers
object

Headers customizados

secret
string

Segredo para verificar assinatura

retryOnFailure
boolean
default:true

Response

201 - application/json

Webhook criado

id
string
url
string<uri>
events
string[]
headers
object
secret
string
retryOnFailure
boolean
isActive
boolean