Skip to content

List Assets

Retrieves a paginated list of media files (images, documents, videos) from the project library.

GET /api/{projectId}/files

Parameters

ParameterTypeDescription
projectIduuidYour project UUID

Query

ParameterDefaultDescription
page1Page number
per_page15Items per page (max 100)
typeFilter by MIME type prefix: image, video, application
searchSearch by filename

Request

Terminal window
curl https://your-domain.com/api/{projectId}/files \
-H "Authorization: Bearer YOUR_API_TOKEN"

Response

{
"data": [
{
"uuid": "img-uuid-1234",
"filename": "hero.jpg",
"original_filename": "hero-image.jpg",
"mime_type": "image/jpeg",
"size": 204800,
"url": "/uploads/media/abc123/hero.jpg",
"created_at": "2024-01-15T10:00:00+00:00"
}
],
"total": 24,
"current_page": 1,
"last_page": 2,
"per_page": 15
}

Status codes

StatusDescription
200Success
403Public API disabled or insufficient permissions