# social.grain.actor.getPreferences

> Get the viewer's grain preferences, one of each kind they have set. Requires auth.

- Kind: query
- Authority: actor.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.getPreferences)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.getPreferences/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.getPreferences/analytics)

## Query (`social.grain.actor.getPreferences`)

Type: query · GET

### Output (application/json)

- `preferences` (ref, required)
  - Reference: `social.grain.actor.defs#preferences`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the viewer's grain preferences, one of each kind they have set. Requires auth.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "preferences": {
              "ref": "social.grain.actor.defs#preferences",
              "type": "ref"
            }
          },
          "required": [
            "preferences"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "social.grain.actor.getPreferences",
  "lexicon": 1
}
```
