---
title: "Get Preference Value"
method: GET
path: "/api/v1/auth/preferences/{preference_key}"
tags: ["user-preferences"]
---

# Get Preference Value

`GET /api/v1/auth/preferences/{preference_key}`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/auth/preferences/{preference_key}`
- Auth: none declared

Get a specific preference value by key.

Args:
    preference_key: The key of the preference to retrieve

Returns:
    StandardResponse with the preference value or null if not found

## Path parameters

- `preference_key` string, required

## Headers

- `Authorization` string

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
