curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content-types{
"data": [
{}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"pages": 123
}
}Retrieve a list of all content types for a project
curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content-types{
"data": [
{}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"pages": 123
}
}draft, modified, published, unpublished, or deleted{
"data": [
{
"id": "ct123",
"name": "Article",
"description": "Standard article content type...",
"status": "published",
"version": 3,
"lastPublishedVersion": 3,
"layoutComponentId": "c123",
"componentIdsAllowList": ["c124", "c125"],
"packageVersion": "1.0.0",
"templateContentIds": ["cont123"],
"permissions": {
"roles": ["editor"],
"users": []
},
"metadata": {
"author": "[email protected]",
"tags": ["article"]
},
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T15:00:00Z"
},
{
"id": "ct124",
"name": "BlogPost",
"description": "Blog post content type...",
"status": "draft",
"version": null,
"lastPublishedVersion": null,
"layoutComponentId": "c130",
"componentIdsAllowList": ["c131", "c132"],
"packageVersion": "1.0.0",
"templateContentIds": [],
"permissions": {
"roles": ["blogger"],
"users": []
},
"metadata": {
"author": "[email protected]",
"tags": ["blog"]
},
"createdAt": "2024-03-21T10:00:00Z",
"updatedAt": "2024-03-21T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 2,
"pages": 1
}
}
curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/content-types?status=published" \
-H "Authorization: Bearer YOUR_API_KEY"