---
title: "Get a user preference by name"
method: GET
path: "/preferences/{preference_name}"
tags: ["Preferences"]
---

# Get a user preference by name

`GET /preferences/{preference_name}`

Get your user preference by name

## Path parameters

- `preference_name` string, required

## Response `200`

Preference array

- PreferenceObject
  - `id` string, required
  - `name` string, required
  - `value` string, required
  - `description` string, required
  - `level` integer, required
  - `type` string, required
  - `category` string, required
  - `subcategory` string, nullable, required
  - `has_access` boolean
  - `values` union
    - string[]
    - integer[]

## Other responses

- `400` — HTTP 400 Bad Request (errors 4705, 4710).
- `401` — HTTP 401 Unauthorized (error 4701).
- `403` — HTTP 403 Forbidden (errors 4700, 4703, 4742).
- `404` — HTTP 404 Not Found (error 4704).
- `500` — HTTP 500 Internal Server Error (error 4702).

## Changes

- **2026-07-22** `e8e6b266ea29` — 5 info
  - api operation id `userPreference` was added
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - …1 more
- **2026-07-21** `2ff18e50dcc1` — 10 info
  - added the optional property `has_access` to the response with the `200` status
  - added the optional property `values` to the response with the `200` status
  - added the required property `category` to the response with the `200` status
  - added the required property `description` to the response with the `200` status
  - …6 more
- **2026-07-17** `9abb9bf6d3bf` — 1 breaking
  - api removed without deprecation
- **2026-07-11** `2db906b9afb1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ampache/apis/ampache-rest-api/changes/preferences/:preference_name/get.md)

---

[API](https://skmtc.dev/ampache/apis/ampache-rest-api.md) · [All operations](https://skmtc.dev/ampache/apis/ampache-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ampache/ampache-rest-api/revisions/42d304fb6867/schema)
