# dev.knotless.getAvatar

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

✓ This is the authoritative definition for this NSID.

## Description

An account's own picture.

## Links

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

## Definitions

### `dev.knotless.getAvatar`

**Type**: `query`

The picture an account's dev.knotless.profile names, from its PDS: only that one. Served so that a browser never runs it as a page, and the same for good. The views give it as `avatar`. No authentication; responses are not personalized.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | Yes | The account. |
| `cid` | `string` (cid) | Yes | The picture's blob. |

#### Output

**Encoding**: `*/*`

#### Errors

- **NotFound**: No such account, or that is not its picture.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The picture an account's dev.knotless.profile names, from its PDS: only that one. Served so that a browser never runs it as a page, and the same for good. The views give it as `avatar`. No authentication; responses are not personalized.",
      "errors": [
        {
          "description": "No such account, or that is not its picture.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "The account.",
            "format": "did",
            "type": "string"
          },
          "cid": {
            "description": "The picture's blob.",
            "format": "cid",
            "type": "string"
          }
        },
        "required": [
          "actor",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "An account's own picture.",
  "id": "dev.knotless.getAvatar",
  "lexicon": 1
}
```
