> ## 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 Version

> Retrieve a specific version of a content item

Retrieves the content data for a specific historical version. Use this to view or compare previous versions of content.

## 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>

<ParamField path="version" type="number" required>
  Version number to retrieve
</ParamField>

## Response

Returns the Content object as it existed at the specified version.

```json theme={null}
{
  "data": {
    "id": "cont123",
    "name": "Getting Started Guide",
    "typeId": "ct-article",
    "status": "published",
    "version": 2,
    "content": {
      "title": "Getting Started Guide v2",
      "components": [
        {
          "type": "TextBlock",
          "props": {
            "text": "Welcome to the guide..."
          }
        }
      ]
    },
    "tags": ["guide", "beginner"],
    "isTemplate": false,
    "metadata": {
      "createdBy": "user123",
      "createdAt": "2024-03-20T10:00:00Z",
      "updatedBy": "user456",
      "lastUpdatedAt": "2024-03-21T10:00:00Z",
      "publishedBy": "user456",
      "publishedAt": "2024-03-21T10:00:00Z"
    },
    "createdAt": "2024-03-20T10:00:00Z",
    "updatedAt": "2024-03-21T10:00:00Z"
  }
}
```

## Error Responses

### Version Not Found

```json theme={null}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Content version 5 for ID cont123 was not found"
  }
}
```

### Content Not Found

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

## Code Examples

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

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

  const { data: contentAtVersion } = await response.json();
  console.log(`Content title at version 2: ${contentAtVersion.content.title}`);

  // Compare with current version
  const currentResponse = await fetch(
    'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content/cont123',
    {
      headers: {
        'Authorization': 'Bearer YOUR_JWT'
      }
    }
  );

  const { data: currentContent } = await currentResponse.json();
  console.log(`Current title: ${currentContent.content.title}`);
  ```

  ```swift Swift theme={null}
  let url = URL(string: "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content/cont123/versions/2")!
  var request = URLRequest(url: url)
  request.setValue("Bearer YOUR_JWT", forHTTPHeaderField: "Authorization")

  // Make GET request
  ```
</CodeGroup>

<Note>
  This endpoint returns the content exactly as it was at the specified version. To revert content to a previous version, use the [rollback endpoint](/rest/content/rollback).
</Note>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.