# social.colibri.community.getInvitation

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

## Links

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

## Definitions

### `social.colibri.community.getInvitation`

**Type**: `query`

Resolves an invitation code to its community, hydrated with the community's public details for the invite accept screen.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `code` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

#### Errors

- **AuthRequired**: Missing, malformed, or unverifiable service auth.
- **Forbidden**: The caller lacks the permission this method requires.
- **InvalidRequest**: A parameter or body field was missing or malformed.
- **NotFound**: The referenced record does not exist.

## Raw Schema

```json
{
  "id": "social.colibri.community.getInvitation",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthRequired",
          "description": "Missing, malformed, or unverifiable service auth."
        },
        {
          "name": "Forbidden",
          "description": "The caller lacks the permission this method requires."
        },
        {
          "name": "InvalidRequest",
          "description": "A parameter or body field was missing or malformed."
        },
        {
          "name": "NotFound",
          "description": "The referenced record does not exist."
        }
      ],
      "output": {
        "schema": {
          "ref": "lex:social.colibri.community.defs#resolvedInvitationView",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          }
        }
      },
      "description": "Resolves an invitation code to its community, hydrated with the community's public details for the invite accept screen."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
