---
ai:
  exclude: true
search:
  tags:
    - mypreferences
    - GET
seo:
  description: >-
    Returns preference of the currently logged in user.… Reference for the GET
    /api/2/mypreferences endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Get user preference by key
  badge: GET
title: Get user preference by key
type: openapi-operation
---
Returns preference of the currently logged in user. Preference key must be provided as input parameter (key). The value is returned exactly as it is. If key parameter is not provided or wrong - status code 404. If value is found  - status code 200.

`GET /api/2/mypreferences`

**Responses**

- `200` — Returns the value of one preference of currently logged in user.
- `404` — Key not found.

Response example, 200:

```json
"string"
```
