Last modified:2026-08-18 09:16:20
x-codeSamples:[{"lang":"cURL","source":"curl -X POST -H 'Authorization: Bearer <token>' /api/v1/library/samudra-manthan/favorite"}]
Request: slug path param; Bearer token requiredAdds the item to the signed-in user's favourites (idempotent).Success: 200 - favourited. Also returns 200 with success: false and code: PLAN_LIMIT (not an HTTP error) when header X-Enforce-Paywall: true is sent and saved-items count has hit the plan's library_save limit (re-favoriting an already-saved item is always free)Errors: 401 - invalid/expired token | 404 - item not found