> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Content

> Retrieve a specific content item by ID

## Path Parameters

<ParamField path="organizationId" type="string" required>
  Organization ID
</ParamField>

<ParamField path="projectId" type="string" required>
  Project ID
</ParamField>

<ParamField path="id" type="string" required>
  Content ID
</ParamField>

## Response

Returns the complete Content object including compiled BindJS code.

```json theme={null}
{
  "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": "jane.doe@metabind.ai",
    "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

```json theme={null}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Content not found",
    "details": {
      "id": "cont124"
    }
  }
}
```

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content/cont124" \
    -H "Authorization: Bearer YOUR_JWT"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content/cont124',
    {
      headers: {
        'Authorization': 'Bearer YOUR_JWT'
      }
    }
  );

  const content = await response.json();
  console.log(`Content: ${content.name} (v${content.version})`);

  // Access compiled code for rendering
  const compiledCode = content.compiled;

  // Access content structure
  const title = content.content.title;
  const components = content.content.components;
  ```
</CodeGroup>
