---
title: "Get a favorite (v2)"
method: GET
path: "/v2/favorites/{favoriteId}"
tags: ["favorites"]
---

# Get a favorite (v2)

`GET /v2/favorites/{favoriteId}`

Retrieve a single favorite by its unique ID. Returns `{ data: { favorite: {...} } }`. The polymorphic target — exactly one of `group_id`, `view_id`, or `contact_id` — is on the favorite body; relations (`groups`, `views`, `contacts`) are inflated for the matching target only.

## Path parameters

- `favoriteId` string, uuid, required

## Response `200`

Successful response

- object
  - `data` object, required
    - `favorite` object, required
      - `id` string, uuid, required
      - `user_id` string
      - `group_id` string, uuid, nullable
      - `view_id` string, uuid, nullable
      - `contact_id` string, uuid, nullable
      - `ranking` integer, nullable
      - `created_at` union, required
        - string, date-time
        - unknown
      - `updated_at` union, required
        - string, date-time
        - unknown
      - `groups` object, nullable
      - `views` object, nullable
      - `contacts` object, nullable

## Other responses

- `400` — Request body failed validation.
- `401` — Missing or invalid API key.
- `403` — Valid key, insufficient permission.
- `404` — Resource does not exist.
- `409` — Request body failed validation.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.net/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getdex/dex-public-api/revisions/9d0dd2de771c/schema)
