# at.happyproto.preferences.contact

> An account's contact email for HappyProto, at rkey self in the account's at.happyproto.preferences/self space, written only as its owner. Kept in that space, never in a public repo: HappyProto drops any such record published to one. HappyProto mails only an address proven through a link it sent.

- Kind: record
- Record key: literal:self
- Authority: preferences.happyproto.at
- Lexicon: 1
- Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.preferences.contact)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.preferences.contact/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.preferences.contact/analytics)

## Record (`at.happyproto.preferences.contact`)

Type: record · key literal:self

### Properties

- `email` (string): The contact email in use. Absent: the owner removed it.
  - Constraints: maxLength: 254
- `pendingEmail` (string): An address waiting for its link to be opened. Until then email stays in use.
  - Constraints: maxLength: 254
- `source` (string, required): pds: copied from the account's PDS when the space was created. owner: set or removed by the owner.
  - Constraints: knownValues: pds | owner
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An account's contact email for HappyProto, at rkey self in the account's at.happyproto.preferences/self space, written only as its owner. Kept in that space, never in a public repo: HappyProto drops any such record published to one. HappyProto mails only an address proven through a link it sent.",
      "key": "literal:self",
      "record": {
        "properties": {
          "email": {
            "description": "The contact email in use. Absent: the owner removed it.",
            "maxLength": 254,
            "type": "string"
          },
          "pendingEmail": {
            "description": "An address waiting for its link to be opened. Until then email stays in use.",
            "maxLength": 254,
            "type": "string"
          },
          "source": {
            "description": "pds: copied from the account's PDS when the space was created. owner: set or removed by the owner.",
            "knownValues": [
              "pds",
              "owner"
            ],
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "source",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "at.happyproto.preferences.contact",
  "lexicon": 1
}
```
