# dev.knotless.getAvatar

> 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.

- Kind: query
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getAvatar)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getAvatar/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.getAvatar/analytics)

## Query (`dev.knotless.getAvatar`)

Type: query · GET

### Parameters (query string)

- `actor` (string · did, required): The account.
- `cid` (string · cid, required): The picture's blob.

### Output (*/*)


### Errors

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

## 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
}
```
