List group join / leave events
GET
/groups/{id}/events
const url = 'https://app.whatsetter.com/api/v1/groups/example/events?type=join&limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.whatsetter.com/api/v1/groups/example/events?type=join&limit=25' \ --header 'Authorization: Bearer <token>'Membership audit log of one group (joins and leaves), newest first,
as observed from live WhatsApp events and sync passes. Filter by
type, since, until. Requires scope groups:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”type
string
since
string format: date-time
ISO-8601 — only events at or after this instant.
until
string format: date-time
ISO-8601 — only events at or before this instant.
limit
integer
cursor
string
Opaque cursor from the previous page’s pagination.next_cursor.
Responses
Section titled “Responses”Page of events
Media typeapplication/json
object
data
Array<object>
object
id
string
type
string
phone
The member who joined or left (international digits).
string | null
name
Display name, when the member is known.
string | null
occurred_at
string | null format: date-time
source
How the event was observed.
string | null
actor_phone
Admin who added / removed the member, when WhatsApp reported one.
string | null
pagination
object
has_more
boolean
next_cursor
string | null
Example
{ "data": [ { "type": "join", "source": "event" } ]}Missing, unknown or revoked API key
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Resource not found in this workspace
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Invalid parameter or body (also an invalid or expired cursor)
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}
