---
title: "List a contact's group memberships"
method: GET
path: "/v1/contacts/{id}/groups"
tags: ["Contacts"]
---

# List a contact's group memberships

`GET /v1/contacts/{id}/groups`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/contacts/{id}/groups`
- Auth: API key in header `x-api-key`

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.

## Path parameters

- `id` string, required

## Query parameters

- `limit` string, nullable
- `cursor` string

## Response `200`

ContactGroupMembershipPage

- ContactGroupMembershipPage
  - `items` object[], required
    - `id` string, required
    - `name` string, required
    - `type` string, required
    - `color` 'clay' | 'sand' | 'moss' | 'sky' | 'plum' | 'rose', nullable, required
    - `role` string, required
    - `joinedAt` string, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
