# app.studynext.invite

> An invitation to a study room, stored on the inviting host's PDS. Consumers treat only records younger than seven days as valid; the StudyNext client and AppView enforce this TTL. Expiry does not delete the record. Room access is still checked against the host's PDS. rkey is server-assigned (createRecord without an explicit rkey).

- Kind: record
- Record key: tid
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.invite)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.invite/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.invite/analytics)

## Record (`app.studynext.invite`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `invitedDid` (string · did, required)
- `room` (string · at-uri, required): AT-URI of the host's app.studynext.status/self record.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An invitation to a study room, stored on the inviting host's PDS. Consumers treat only records younger than seven days as valid; the StudyNext client and AppView enforce this TTL. Expiry does not delete the record. Room access is still checked against the host's PDS. rkey is server-assigned (createRecord without an explicit rkey).",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "invitedDid": {
            "format": "did",
            "type": "string"
          },
          "room": {
            "description": "AT-URI of the host's app.studynext.status/self record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "room",
          "invitedDid",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.invite",
  "lexicon": 1
}
```
