Skip to content

GET/users/{id}/albums

List user's albums

Retrieve user's albums. Same filtering, sorting, and pagination as `/albums`.

Parameters 13

NameTypeDescription
_pagequery · integerPage number (1-based)
_limitquery · integerItems per page
_startquery · integerSlice start index (alternative to page-based)

ReturnsAlbum

Bearer token required

Response examples

200Array of albums

application/json example derived from schema

[
  {
    "id": 1,
    "userId": 1,
    "title": "Abstract",
    "description": "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
    "coverImage": "https://picsum.photos/seed/album1/600/400",
    "photoCount": 39,
    "isPublic": true,
    "createdAt": "2024-07-02T09:01:49.954Z"
  }
]
404404 — resource not found

application/json

{
  "error": {
    "status": 404,
    "message": "users #999 not found"
  }
}

Released under the MIT License.