Skip to main content

GET /api/collections/[id]

Returns a collection with its saved items (recipes and posts).

Path Parameters

ParameterTypeDescription
idUUIDCollection ID

Response (200)

{
  "id": "uuid",
  "name": "Tokyo Street Recipes",
  "description": "My favorite street photography settings",
  "coverImageUrl": "https://...",
  "isPublic": true,
  "author": {
    "id": "uuid",
    "username": "johndoe",
    "avatarUrl": "https://..."
  },
  "items": [
    {
      "id": "uuid",
      "contentType": "recipe",
      "contentId": "uuid",
      "title": "Classic Chrome Street",
      "coverImageUrl": "https://...",
      "addedAt": "2024-01-15T10:30:00Z"
    }
  ],
  "itemCount": 12,
  "favoriteCount": 18,
  "isFavorited": false,
  "createdAt": "2024-01-15T10:30:00Z"
}

Errors

StatusCodeReason
403FORBIDDENPrivate collection, not the owner
404NOT_FOUNDCollection not found