# dev.knotless.getEmails

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

How many email addresses the asking account claims as its.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getEmails)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getEmails/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getEmails/examples)

## Definitions

### `dev.knotless.getEmails`

**Type**: `query`

How many addresses the asking account's dev.knotless.emails record claims. The record keeps each only as a hash, salted with the account's DID, so no one, the appview included, can list them. Requires authentication: a service token, or the session cookie the pages' login sets.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes | How many addresses it claims. |

#### Errors

- **AuthenticationRequired**: No account asks.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "How many addresses the asking account's dev.knotless.emails record claims. The record keeps each only as a hash, salted with the account's DID, so no one, the appview included, can list them. Requires authentication: a service token, or the session cookie the pages' login sets.",
      "errors": [
        {
          "description": "No account asks.",
          "name": "AuthenticationRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "description": "How many addresses it claims.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "description": "How many email addresses the asking account claims as its.",
  "id": "dev.knotless.getEmails",
  "lexicon": 1
}
```
