Pagekit Docs

Content

Media

Endpoints

GET    /v1/media
POST   /v1/media
DELETE /v1/media/:id

POST /v1/media registers an asset that already lives in object storage:

{
  "url": "https://cdn.example.com/og.png",
  "filename": "og.png",
  "mimeType": "image/png",
  "size": 184320,
  "width": 1200,
  "height": 630,
  "alt": "Open Graph card"
}

Supported types: JPG, PNG, WebP, GIF, SVG. Direct uploads and automatic WebP/AVIF variants are on the roadmap.