Roles
receiving— Session used for inbound groups and messages (GOWS-backed by default; WEBJS only when requested).sending— Session scoped for outbound; status-only webhook subscription.
Typical flow
List sessions:Client-facing checks
- Session lifecycle states and error codes are in the API reference.
- For receiving sessions, use
health_staterather than rawstatusas the connected/healthy UI signal.stalemeans the projectedWORKINGstate has not been corroborated by status or message activity insidestale_after_ms;unknownmeans no activity timestamp is available. - If pairing succeeds but messages stay empty, confirm the session reports working, then verify group selection — unselected groups do not populate feeds.