---
title: "Check if favorited"
method: GET
path: "/api/v1/favorites/check"
tags: ["Favorites"]
---

# Check if favorited

`GET /api/v1/favorites/check`

## Request

- Base URL: `http://localhost:3002`
- URL: `http://localhost:3002/api/v1/favorites/check`
- Auth: HTTP bearer

Checks whether a given captain or boat is in the authenticated customer's favorites.

## Query parameters

- `captainId` string
- `boatId` string

## Response `200`

Favorite check result

- object
  - `data` object
    - `isFavorited` boolean, required
    - `favoriteId` string, nullable

## Other responses

- `400`: Validation error
- `401`: Unauthorized

---

[API](https://skmtc.dev/chartercaptain/apis/charter-captain-api.md) · [All operations](https://skmtc.dev/chartercaptain/apis/charter-captain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chartercaptain/apis/charter-captain-api/revisions/1ffea1113adb?raw)
