curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content-types/{id}Retrieve a specific content type by ID
curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content-types/{id}{
"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": ["[email protected]"],
"publish": {
"roles": ["editor"],
"users": []
}
},
"metadata": {
"author": "[email protected]",
"tags": ["article", "content"],
"locales": ["en-US", "es-ES", "fr-FR"],
"publishedAt": "2024-03-20T15:00:00Z",
"publishedBy": "[email protected]"
},
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T15:00:00Z"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Content type not found",
"details": {
"id": "ct123"
}
}
}
curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/content-types/ct123" \
-H "Authorization: Bearer YOUR_API_KEY"