---
title: "Create a new community"
method: POST
path: "/api/communities"
tags: ["Communities"]
---

# Create a new community

`POST /api/communities`

## Request body

- CreateCommunityInputDto
  - `hostname` string, required
  - `name` string, required
  - `email` string, required
  - `creator` string, required
  - `owners` string[], required
  - `discordGuildId` string

## Response `200`

Community

- Community
  - `_id` ObjectId, required
  - `hostname` string, required
  - `name` string, required
  - `email` string, required
  - `creator` string, required
  - `owners` string[], required
  - `discordGuildId` string
  - `discordLinkNonce` string, required
  - `isPublic` boolean, required
  - `discordLinkState` 'NOT_SET' | 'PENDING' | 'ACTIVE' | 'DEACTIVE', required

## Other responses

- `201`

## Changes

- **2023-04-03** `e1a32d8c1997` — 1 info
  - endpoint added
- **2023-04-03** `872dae15b4ba` — 1 breaking
  - api path removed without deprecation
- **2023-03-31** `af4ea0086c6f` — 4 breaking, 2 info
  - the `_id` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `_id` response's property type/format changed from `string`/`` to ``/`` for status `201`
  - removed the required property `features` from the response with the `200` status
  - removed the required property `features` from the response with the `201` status
  - …2 more

[Change history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/communities/post.md)

---

[API](https://skmtc.dev/givepraise/apis/praise-api.md) · [All operations](https://skmtc.dev/givepraise/apis/praise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/givepraise/praise-api/revisions/ae4e81183bd2/schema)
