Skip to main content
GET
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
content
/
{id}
/
versions
/
{version}
Get Content Version
curl --request GET \
  --url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/content/{id}/versions/{version}
Retrieves the content data for a specific historical version. Use this to view or compare previous versions of content.

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Content ID
version
number
required
Version number to retrieve

Response

Returns the Content object as it existed at the specified version.
{
  "id": "cont123",
  "name": "Getting Started Guide",
  "typeId": "ct-article",
  "status": "published",
  "version": 2,
  "typeVersion": 1,
  "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

{
  "error": {
    "code": "VERSION_NOT_FOUND",
    "message": "Version 5 does not exist for this content",
    "details": {
      "requestedVersion": 5,
      "latestVersion": 3
    }
  }
}

Content Not Found

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

Code Examples

curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/content/cont123/versions/2" \
  -H "Authorization: Bearer YOUR_JWT"
This endpoint returns the content exactly as it was at the specified version. To revert content to a previous version, use the rollback endpoint.