---
title: "Get Favorite Ids"
method: GET
path: "/api/favorites/ids"
tags: ["Favorites"]
---

# Get Favorite Ids

`GET /api/favorites/ids`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/favorites/ids`
- Auth: HTTP bearer

External IDs of the user's favorites, used by the frontend for star-state lookups.

Returns one entry per favorite. For still-active favorites, uses the live car_listings.id;
for deactivated ones, falls back to the snapshot car_id so the star stays consistent on
the favorites page.

## Response `200`

Successful Response

- unknown

---

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