# org.atgrp.invite

An invitation to join the group, written by the group into the invitee's inbox space. Deleting it revokes the invite.

A record in the spec for Atmosphere Groups. The page: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-invite/

- Named in the spec: 10 Invites (https://www.atmospheregroups.org/spec/#invites); 13.2 Record types (https://www.atmospheregroups.org/spec/#record-types); 13.3 Permission sets (https://www.atmospheregroups.org/spec/#permission-sets)
- In the spec's repository: https://tangled.org/atmospheregroups.org/spec/blob/0885261c9cd1af80e89908571f926c2d0c71771f/lexicons/org/atgrp/invite.json
- Published under the same name: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-invite/, the same schema
- The reference host's version: fyi.opensocial.invite, https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-invite/

## The schema in the spec

```json
{
  "lexicon": 1,
  "id": "org.atgrp.invite",
  "defs": {
    "main": {
      "type": "record",
      "description": "An invitation to join the group, written by the group into the invitee's inbox space. Deleting it revokes the invite.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": [
          "createdAt"
        ],
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "expiresAt": {
            "type": "string",
            "format": "datetime"
          },
          "message": {
            "type": "string",
            "maxGraphemes": 2000,
            "maxLength": 20000
          }
        }
      }
    }
  }
}
```
