---
title: "Create an unsubscribe group"
method: POST
path: "/v1/unsubscribe-groups"
tags: ["Unsubscribe Groups"]
---

# Create an unsubscribe group

`POST /v1/unsubscribe-groups`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/unsubscribe-groups`
- Auth: API key in header `x-api-key`

Creates a new unsubscribe group and returns it with a 201 Created status. An organization holds at most 200 groups.

## Request body

- object
  - `name` string, required
  - `description` string, nullable

## Response `201`

Success

- object
  - `id` string, required
  - `organizationId` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `isDefault` boolean, required
  - `memberCount` integer, required
  - `createdAt` string, required
  - `updatedAt` string, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `409`: ConflictError
- `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)
