Skip to main content

Endpoint

GET /storage/{path}/metadata
Auth: API Key required

Path parameters

path
string
required
Path to the file relative to the storage root. Use the id from List Storage.photo.jpg · photos/portrait.jpg
This endpoint returns an error if path points to a directory rather than a file.

Response

{
  "size": 204800,
  "createdAt": "2024-03-15T10:30:00.000Z",
  "updatedAt": "2024-03-15T10:30:00.000Z"
}
size
number
File size in bytes.
createdAt
string
ISO 8601 timestamp of when the file was created.
updatedAt
string
ISO 8601 timestamp of the last modification.
Status codes: 200 success · 400 path is a directory · 404 not found · 500 error

Example

curl http://localhost:3000/storage/photos/portrait.jpg/metadata \
  -H "Authorization: Bearer <api_key>"

List Storage

Browse all files and folders.

Delete File

Remove a file and its cached variants.