List a contact's group memberships

Returns the contact groups that a contact currently belongs to. Use this endpoint to list a contact's group memberships through the Samva email API.

GET
/v1/contacts/{id}/groups

Returns the contact groups that a contact currently belongs to.

x-api-key<token>

In: header

Path Parameters

id*string
Match^contact_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/contacts/string/groups"
{  "groups": [    {      "id": "string",      "name": "string",      "type": "string",      "role": "string",      "joinedAt": "string"    }  ]}