ContactGroups
List members of a contact group
Returns a contact group's members, most recently joined first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
GET
Returns a contact group's members, most recently joined first. Pass nextCursor back as cursor for the next page; it is null on the last page.
apiKeyheader
x-api-key<token>id*stringMatch
^cgrp_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringContactGroupMemberPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contactGroups.getMembers({ "id": "example"});Example Response
{ "items": [ { "id": "string", "organizationId": "string", "groupId": "string", "contactId": "string", "role": "member", "joinedAt": "string", "joinedBy": "string", "expiresAt": "string", "contact": { "id": "string", "name": "string", "displayName": "string", "type": "string", "identities": [ { "id": "string", "type": "email", "identifier": "string", "verified": true, "channels": [ { "channel": "sms", "reachability": "unknown", "consent": { "status": "opted_in", "source": "string", "capturedAt": "string", "proof": { "property1": "string", "property2": "string" } } } ] } ] } } ], "nextCursor": "string"}