Skip to content

POST/albums

Create album

Create a new album. Fields `id`, `createdAt`, `updatedAt` are auto-generated. Triggers `albums.created` webhook.

ReturnsAlbum

AcceptsAlbumInput

Bearer token required

Response examples

201Album created

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"
}
400400 — invalid input or malformed JSON

application/json

{
  "error": {
    "status": 400,
    "message": "Request body required"
  }
}
413413 — body exceeds 64 KB

application/json

{
  "error": {
    "status": 413,
    "message": "Request body too large",
    "details": {
      "maxSize": "64 KB"
    }
  }
}
429429 — rate limit exceeded (120/60s)

application/json

{
  "error": {
    "status": 429,
    "message": "Too many requests",
    "details": {
      "retryAfter": 45
    }
  }
}

Released under the MIT License.