Skip to main content
WEBHOOK

Headers

X-Wabox-Event
enum<string>
required

Tipo do evento.

Available options:
disconnected
X-Wabox-Event-Id
string
required

Id único do evento (ULID). Use para deduplicar.

X-Wabox-Instance-Id
string
required

Instância que gerou o evento.

X-Wabox-Signature
string

t=<unix seconds>,v1=<hex>v1 = HMAC-SHA256(secret, "<t>.<corpo cru>"). Ausente quando a instância não tem segredo.

Body

application/json
type
enum<string>
required
Available options:
disconnected
event_id
string
required
Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
instance_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
momment
integer
required
Required range: 0 <= x <= 9007199254740991
disconnected
enum<boolean>
required
Available options:
true
reason
enum<string>
required
Available options:
network,
stream_replaced,
logged_out,
banned,
stopped,
engine_shutdown,
unknown
error
string
required

Response

2XX

Qualquer 2xx confirma o recebimento. Outros códigos (ou timeout de 10 s) agendam nova tentativa.