Api
Collections
API reference for collection endpoints.
Collections API
Collections are custom content types for structured data like testimonials, team members, products, FAQs, etc.
List Collections
Fetch all collections in the workspace.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
locale | string | No | Locale for item count |
Example
Response:
List Collection Items
Fetch published items from a collection.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | Collection slug |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
locale | string | No | Filter by locale |
allLocales | boolean | No | Return items in all locales |
limit | number | No | Max items to return |
offset | number | No | Pagination offset |
sortBy | string | No | Sort field: order, createdAt, updatedAt |
sortOrder | string | No | Sort direction: asc, desc |
Example
Response:
Get Single Item
Fetch a specific collection item by slug.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | Collection slug |
itemSlug | string | Yes | Item slug |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
locale | string | No | Locale code |
Example
Response:
Pagination
Use limit and offset for pagination:
Sorting
Control the order of items: