API referenceWhatsapp chats
One-to-one: the person and the number itself. A group: its participants, read from WhatsApp (needs the number connected).
X-API-KEY<token>
Your API key from the console (gw_live_…).
In: header
Path Parameters
id*string
A chat id (wac_…), or a WhatsApp JID / phone number together with account_id.
Query Parameters
account_id?string
The account the id belongs to: required when the path names a JID or a phone number instead of Swarmhit's id.
Length
length <= 4096Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/whatsapp/api/v1/chats/wac_k3J9sLq2Vx8nB4mR/attendees?account_id=wa_Xk2pQ9rT4vW8yZ1a"{ "object": "ChatAttendeeList", "items": [ { "object": "ChatAttendee", "id": "waa_H5gT8kL2mQ9wR3vB", "account_id": "wa_Xk2pQ9rT4vW8yZ1a", "provider_id": "33612345678@s.whatsapp.net", "name": "Jane Doe", "is_self": 0, "hidden": 0, "profile_url": "https://wa.me/33612345678" } ], "cursor": null}