---
title: "Return a single preference."
method: GET
path: "/v1/preferences/{name}"
tags: ["preferences"]
---

# Return a single preference.

`GET /v1/preferences/{name}`

## Request

- Base URL: `https://demo.firefly-iii.org/api`
- URL: `https://demo.firefly-iii.org/api/v1/preferences/{name}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://demo.firefly-iii.org/oauth/authorize`
    - Token URL: `https://demo.firefly-iii.org/oauth/token`
  - HTTP bearer

Return a single preference and the value.

## Path parameters

- `name` string, string, required

## Headers

- `X-Trace-Id` string, uuid

## Response `200`

A single preference.

- PreferenceSingle
  - `data` PreferenceRead, required
    - `type` string, string, required: Immutable value
    - `id` string, string, required
    - `attributes` Preference, required
      - `created_at` string, date-time
      - `updated_at` string, date-time
      - `name` string, string, required
      - `data` union, required
        - boolean
        - string
        - object
        - StringArrayItem[]

## Other responses

- `400`: Bad request
- `401`: Unauthenticated
- `404`: Page not found
- `500`: Internal exception

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-3-0.md) - [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-3-0/revisions/ea05639f58ae?raw)
