curl --request GET \
--url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/components{
"data": [
{}
],
"pagination": {
"limit": 123,
"lastKey": "<string>"
}
}Retrieve a paginated list of components
curl --request GET \
--url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/components{
"data": [
{}
],
"pagination": {
"limit": 123,
"lastKey": "<string>"
}
}view or layout{
"data": [
{
"id": "c123",
"name": "ArticleLayout",
"title": "Article Layout",
"description": "Standard article layout...",
"type": "layout",
"status": "published",
"version": 3,
"lastPublishedVersion": 3,
"content": "...",
"compiled": "...",
"schema": {...},
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T14:30:00Z"
}
],
"pagination": {
"limit": 10,
"lastKey": "eyJpZCI6ImMxMjQifQ=="
}
}
includeAssets=true:
{
"data": [
{
"id": "c123",
"name": "ArticleLayout",
"type": "layout",
"status": "published",
"assets": [
{
"id": "asset123",
"name": "hero-image.jpg",
"type": "image/jpeg",
"url": "https://cdn.metabind.ai/.../hero-image.jpg",
"size": 2048576,
"status": "active",
"metadata": {
"width": 1920,
"height": 1080
}
}
],
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T14:30:00Z"
}
],
"pagination": {...}
}
includeAssets=true, only the first 100 assets per component are included.curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/components?status=published&type=layout" \
-H "Authorization: Bearer YOUR_JWT"