Skip to main content
GET
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
content-types
/
{id}
Get Content Type
curl --request GET \
  --url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/content-types/{id}

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Content Type ID

Response

Returns the complete ContentType object including the auto-generated schema.
{
  "id": "ct123",
    "name": "Article",
    "description": "Standard article content type for long-form written content...",
    "status": "published",
    "version": 3,
    "lastPublishedVersion": 3,
    "layoutComponentId": "c123",
    "componentIdsAllowList": [
      "c124",
      {
        "id": "questions",
        "name": "Question Components",
        "componentIds": ["c125", "c126"]
      }
    ],
    "packageVersion": "1.0.0",
    "schema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "Article title",
          "minLength": 1,
          "maxLength": 200
        },
        "components": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": { "const": "ArticleParagraph" },
                  "text": { "type": "string" }
                },
                "required": ["type", "text"]
              }
            ]
          }
        }
      },
      "required": ["title", "components"]
    },
    "templateContentIds": ["cont123", "cont124"],
    "permissions": {
      "roles": ["editor", "journalist"],
      "users": ["jane.doe@metabind.ai"],
      "publish": {
        "roles": ["editor"],
        "users": []
      }
    },
    "metadata": {
      "author": "admin@metabind.ai",
      "tags": ["article", "content"],
      "locales": ["en-US", "es-ES", "fr-FR"],
      "publishedAt": "2024-03-20T15:00:00Z",
      "publishedBy": "jane.doe@metabind.ai"
    },
  "createdAt": "2024-03-20T10:00:00Z",
  "updatedAt": "2024-03-20T15:00:00Z"
}

Error Responses

Content Type Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Content type not found"
  }
}

Code Examples

curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content-types/ct123" \
  -H "Authorization: Bearer YOUR_JWT"