Skip to main content
GET
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
content-types
List Content Types
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
  }
}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID

Query Parameters

page
number
default:"1"
Page number
limit
number
default:"20"
Items per page
status
string
Filter by status: draft, modified, published, unpublished, or deleted
Search term to filter by name or description
tags
string[]
Filter by tags

Response

data
ContentType[]
Array of content type objects
pagination
object
Pagination information

Example Response

{
  "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
  }
}

Code Examples

curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/content-types?status=published" \
  -H "Authorization: Bearer YOUR_API_KEY"