Skip to main content
GET
/
api
/
users
/
{id}
/
saved-items
Get User Saved Items
curl --request GET \
  --url https://api.example.com/api/users/{id}/saved-items

Authentication

No explicit auth check — relies on the user ID in the path.

Path Parameters

ParameterTypeDescription
idUUIDThe user ID

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number
limitinteger12Items per page
standalonestringSet to true for items NOT in any collection
content_typestringFilter by post or recipe

Standalone Filter

When standalone=true, the endpoint:
  1. Fetches all saved items for the user
  2. Queries collection_saved_items to find which are in collections
  3. Filters to only items NOT in any collection
  4. Applies pagination after filtering

Response

{
  "savedItems": [
    {
      "id": "uuid",
      "userId": "uuid",
      "contentType": "recipe",
      "contentId": "uuid",
      "createdAt": "2025-01-15T10:30:00Z",
      "content": {
        "title": "Classic Chrome Street",
        "coverImageUrl": "https://...",
        "author": {
          "id": "uuid",
          "username": "creator",
          "avatarUrl": "https://..."
        }
      }
    }
  ],
  "pagination": { ... }
}