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

Path Parameters

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

Response

Returns the complete Content object including compiled BindJS code.
{
  "id": "cont124",
  "typeId": "ct123",
  "typeVersion": 2,
  "version": 1,
  "lastPublishedVersion": 1,
  "packageVersion": "1.0.0",
  "name": "Introduction to Metabind",
  "description": "Getting Started with Metabind. A comprehensive guide...",
  "status": "published",
  "isTemplate": false,
  "content": {
    "title": "Getting Started with Metabind",
    "subtitle": "Your complete guide to the platform",
    "heroImage": "asset124",
    "author": "Jane Doe",
    "publishDate": "2024-03-21",
    "components": [
      {
        "type": "ArticleParagraph",
        "text": "Metabind is a powerful platform that revolutionizes how teams collaborate..."
      },
      {
        "type": "ArticleHeading",
        "text": "What is Metabind?",
        "level": 2
      },
      {
        "type": "ArticleParagraph",
        "text": "At its core, Metabind provides a unified environment..."
      },
      {
        "type": "ArticleImage",
        "image": "asset125",
        "caption": "The Metabind dashboard showing key features",
        "alt": "Screenshot of Metabind dashboard"
      }
    ]
  },
  "compiled": "const body = () => { const props = {...}; return ArticleLayout(props); }",
  "tags": ["Technology", "Tutorial"],
  "metadata": {
    "author": "[email protected]",
    "publishedAt": "2024-03-21T14:30:00Z",
    "publishedBy": "user456",
    "locale": "en-US"
  },
  "folderId": "folder123",
  "organizationId": "org123",
  "projectId": "proj456",
  "createdAt": "2024-03-21T10:00:00Z",
  "updatedAt": "2024-03-21T14:30:00Z",
  "createdBy": "user456",
  "updatedBy": "user456"
}

Error Responses

Content Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Content not found",
    "details": {
      "id": "cont124"
    }
  }
}

Code Examples

curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/content/cont124" \
  -H "Authorization: Bearer YOUR_API_KEY"