Skip to main content
GET
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
content
/
{id}
/
versions
List Content Versions
curl --request GET \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/content/{id}/versions
{
  "data": [
    {
      "version": 123,
      "typeVersion": 123,
      "status": "<string>",
      "content": {},
      "createdAt": "<string>",
      "createdBy": "<string>"
    }
  ],
  "pagination": {}
}

Path Parameters

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

Query Parameters

page
number
default:"1"
Page number
limit
number
default:"20"
Items per page

Response

data
object[]
Array of version records
pagination
object
Pagination information

Example Response

{
  "data": [
    {
      "version": 3,
      "typeVersion": 2,
      "status": "published",
      "content": {
        "title": "Getting Started Guide v3",
        "components": [...]
      },
      "createdAt": "2024-03-22T10:00:00Z",
      "createdBy": "user123"
    },
    {
      "version": 2,
      "typeVersion": 2,
      "status": "published",
      "content": {
        "title": "Getting Started Guide v2",
        "components": [...]
      },
      "createdAt": "2024-03-21T10:00:00Z",
      "createdBy": "user456"
    },
    {
      "version": 1,
      "typeVersion": 1,
      "status": "published",
      "content": {
        "title": "Getting Started Guide",
        "components": [...]
      },
      "createdAt": "2024-03-20T10:00:00Z",
      "createdBy": "user123"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 3
  }
}
Versions are returned in reverse chronological order (newest first).

Code Examples

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