# fyi.filed.prosebox.letter

> Published by [prosebox.filed.fyi](https://lexicon.garden/identity/did:plc:qi3y3fjwskyqmwkq5onqxdla)

## Description

A letter of correspondence addressed to a specific DID. Letters are immutable once sent; corrections are new letters.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qi3y3fjwskyqmwkq5onqxdla/fyi.filed.prosebox.letter)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qi3y3fjwskyqmwkq5onqxdla/fyi.filed.prosebox.letter/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qi3y3fjwskyqmwkq5onqxdla/fyi.filed.prosebox.letter/examples)

## Definitions

### `fyi.filed.prosebox.letter`

**Type**: `record`

A correspondence letter.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `box` | `string` (did) | Yes | DID of the recipient. Delivery is indexing: an inbox is letters whose box is one's own DID. |
| `body` | `string` | Yes | Letter body in the CommonMark subset defined by the ATProsebox presentation contract. |
| `replyTo` | `string` (at-uri) | No | AT-URI of the letter this one replies to. |
| `subject` | `string` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `deliverAt` | `string` (datetime) | No | Optional delayed-arrival timestamp. Renderers should not display the letter in the recipient's inbox before this time. |

## Raw Schema

```json
{
  "id": "fyi.filed.prosebox.letter",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "box",
          "body",
          "createdAt"
        ],
        "properties": {
          "box": {
            "type": "string",
            "format": "did",
            "maxLength": 2048,
            "description": "DID of the recipient. Delivery is indexing: an inbox is letters whose box is one's own DID."
          },
          "body": {
            "type": "string",
            "maxLength": 100000,
            "description": "Letter body in the CommonMark subset defined by the ATProsebox presentation contract."
          },
          "replyTo": {
            "type": "string",
            "format": "at-uri",
            "maxLength": 8192,
            "description": "AT-URI of the letter this one replies to."
          },
          "subject": {
            "type": "string",
            "maxLength": 640,
            "maxGraphemes": 256
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "deliverAt": {
            "type": "string",
            "format": "datetime",
            "description": "Optional delayed-arrival timestamp. Renderers should not display the letter in the recipient's inbox before this time."
          }
        }
      },
      "description": "A correspondence letter."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "A letter of correspondence addressed to a specific DID. Letters are immutable once sent; corrections are new letters."
}
```
