Skip to content

List Entries

Retrieves a paginated list of content entries from a collection.

GET /api/{projectId}/{collectionSlug}

Parameters

Path

ParameterTypeDescription
projectIduuidYour project UUID
collectionSlugstringThe collection slug (e.g. posts)

Query

ParameterTypeDefaultDescription
pageinteger1Page number
per_pageinteger15Items per page (max 100)
localestringproject defaultFilter by locale (e.g. en, fr)
statusstringpublishedFilter by status: published or draft

Request

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

With filters:

Terminal window
curl "https://your-domain.com/api/{projectId}/posts?page=2&per_page=10&locale=fr" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Response

{
"data": [
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"status": "published",
"locale": "en",
"created_at": "2024-01-15T10:30:00+00:00",
"updated_at": "2024-01-15T12:00:00+00:00",
"fields": {
"title": "My first post",
"slug": "my-first-post",
"body": "<p>Full content here...</p>"
}
}
],
"total": 42,
"current_page": 1,
"last_page": 3,
"per_page": 15,
"from": 1,
"to": 15
}

Status codes

StatusDescription
200Success
403Public API disabled for this project
404Project or collection not found