---
title: "Save a bundle to your favorites."
method: POST
path: "/api/favorites/{id}"
---

# Save a bundle to your favorites.

`POST /api/favorites/{id}`

## Request

- Base URL: `https://okfindex.com`
- URL: `https://okfindex.com/api/favorites/{id}`
- Auth: none declared

Private to the personal account. Up to 200 favorites. No bundle content is copied. Responses use private, no-store.
Returns: { id, favorited }

## Path parameters

- `id` string, required

## Response `200`

{ id, favorited }

- object
  - `id` string, required: Bundle ID from the public index.
  - `favorited` boolean, required: Whether the bundle is now saved.

## Other responses

- `401`: Sign in or use a personal API key.
- `403`: Use a personal account.
- `404`: Bundle is not live.
- `409`: The account has 200 favorites.
- `503`: Favorites are unavailable.

---

[API](https://skmtc.dev/okfindex/apis/okf-index.md) · [All operations](https://skmtc.dev/okfindex/apis/okf-index/llms.txt) · [OpenAPI document](https://skmtc.dev/okfindex/apis/okf-index/revisions/4b13ca3c739f?raw)
