# chat.bsky.group.createGroup

> Published by [bsky-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:4v4y5r3lwsbtmsxhile2ljac)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.createGroup)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.createGroup/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.createGroup/examples)

## Definitions

### `chat.bsky.group.createGroup`

**Type**: `procedure`

[NOTE: This is under active development and should be considered unstable while this note is here]. Creates a group convo, specifying the members to be added to it. Unlike getConvoForMembers, this isn't idempotent. It will create new groups even if the membership is identical to pre-existing groups. Will create 'pending' membership for all members, except the owner who is 'accepted'.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `members` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `convo` | `ref` → `chat.bsky.convo.defs#convoView` | Yes |  |

#### Errors

- **AccountSuspended**
- **BlockedActor**
- **GroupInvitesDisabled**
- **NotFollowedBySender**
- **RecipientNotFound**

## Raw Schema

```json
{
  "id": "chat.bsky.group.createGroup",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "members",
            "name"
          ],
          "properties": {
            "name": {
              "type": "string",
              "maxLength": 1280,
              "minLength": 1,
              "maxGraphemes": 128
            },
            "members": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "did"
              },
              "maxLength": 49
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AccountSuspended"
        },
        {
          "name": "BlockedActor"
        },
        {
          "name": "GroupInvitesDisabled"
        },
        {
          "name": "NotFollowedBySender"
        },
        {
          "name": "RecipientNotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "convo"
          ],
          "properties": {
            "convo": {
              "ref": "chat.bsky.convo.defs#convoView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Creates a group convo, specifying the members to be added to it. Unlike getConvoForMembers, this isn't idempotent. It will create new groups even if the membership is identical to pre-existing groups. Will create 'pending' membership for all members, except the owner who is 'accepted'."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
