# social.colibri.beta.community.create

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.create)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.create/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.create/examples)

## Definitions

### `social.colibri.beta.community.create`

**Type**: `procedure`

Provisions a new community: an account on the AppView's PDS, its four spaces, an owner role, and a starter layout of two categories holding one text channel and one voice channel between them. This call runs long enough that progress is also emitted over social.colibri.beta.sync.subscribeEvents.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | The community's name. |
| `description` | `string` | No | The community's description. |
| `handlePrefix` | `string` | No | A slug used for the community handle instead of a generated one. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `community` | `ref` → `social.colibri.beta.community.defs#communityView` | Yes | The newly created community. |

#### Errors

- **AuthRequired**: The request is missing, malformed, or unverifiable service auth.
- **InvalidRequest**: The arguments are inconsistent or malformed beyond schema validation.
- **AlreadyExists**: A community already exists with the requested handle.
- **PdsUnavailable**: The AppView's PDS could not be reached to provision the account.
- **SpacesUnsupported**: The AppView's PDS does not implement com.atproto.simplespace, so it cannot host community spaces.
- **UpstreamFailure**: A PDS or third-party call the AppView depends on failed.

## Raw Schema

```json
{
  "id": "social.colibri.beta.community.create",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "name"
          ],
          "properties": {
            "name": {
              "type": "string",
              "maxLength": 32,
              "minLength": 1,
              "description": "The community's name."
            },
            "description": {
              "type": "string",
              "maxLength": 256,
              "description": "The community's description."
            },
            "handlePrefix": {
              "type": "string",
              "description": "A slug used for the community handle instead of a generated one."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request is missing, malformed, or unverifiable service auth."
        },
        {
          "name": "InvalidRequest",
          "description": "The arguments are inconsistent or malformed beyond schema validation."
        },
        {
          "name": "AlreadyExists",
          "description": "A community already exists with the requested handle."
        },
        {
          "name": "PdsUnavailable",
          "description": "The AppView's PDS could not be reached to provision the account."
        },
        {
          "name": "SpacesUnsupported",
          "description": "The AppView's PDS does not implement com.atproto.simplespace, so it cannot host community spaces."
        },
        {
          "name": "UpstreamFailure",
          "description": "A PDS or third-party call the AppView depends on failed."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "community"
          ],
          "properties": {
            "community": {
              "ref": "social.colibri.beta.community.defs#communityView",
              "type": "ref",
              "description": "The newly created community."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Provisions a new community: an account on the AppView's PDS, its four spaces, an owner role, and a starter layout of two categories holding one text channel and one voice channel between them. This call runs long enough that progress is also emitted over social.colibri.beta.sync.subscribeEvents."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
