Query the history
GET /api/account/connections?number=<jid>&instance=<id>&from=<rfc3339>&to=<rfc3339>&limit=<n>
Returns the account’s link and unlink events, most recent first. Authenticate with the account TokenAccount, or with the global token passing ?account=<account-name>. All filters are optional: with none, you get the account’s most recent events.
string
Filters by a specific number. Use the exact JID, e.g.
5511999998888@s.whatsapp.net.string
Filters by a specific instance. Use the
instanceId that appears in the events themselves.string
Start of the window, in RFC3339. Without it, there is no lower bound.
string
End of the window, in RFC3339. Without it, there is no upper bound.
integer
Maximum number of events to return. Default
200. Values outside the 1 to 1000 range also use 200.string
Account name. Required only when you use the global token.
200 OK
Response fields
array
The connection events, most recent first. A deleted instance keeps its events, with the name and number it had, because the record survives deletion.
Next
Usage statement
The itemized invoice for the period, instance by instance.
Enterprise webhooks
React to each state change by event.