List a contact's group memberships
Returns the contact groups a contact belongs to, most recently joined first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
GET
Returns the contact groups a contact belongs to, 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
^contact_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringContactGroupMembershipPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contacts.getGroupMemberships({ "id": "example"});Example Response
{ "items": [ { "id": "string", "name": "string", "type": "string", "color": "clay", "role": "string", "joinedAt": "string" } ], "nextCursor": "string"}Related documentation
Get contact engagement metrics
Returns aggregated engagement metrics for a contact, including message counts and active conversation totals.
Get list migration progress
Returns the visible import job's committed counts, generation, terminal failure and resumability. The job persists across worker restarts and page reloads.