---
title: "Add members to a contact group"
method: POST
path: "/v1/contact-groups/{id}/members"
tags: ["Contact Groups"]
---

# Add members to a contact group

`POST /v1/contact-groups/{id}/members`

## Request

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

Adds one or more contacts to a contact group, returning counts of added and skipped members.

## Path parameters

- `id` string, required

## Request body

- object
  - `contactIds` ContactId[], required
  - `role` 'member' | 'moderator' | 'admin', nullable

## Response `200`

Success

- object
  - `added` integer, required
  - `skipped` integer, 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)
