Skip to main content
GET
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
components
/
{id}
/
versions
List Component Versions
curl --request GET \
  --url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/components/{id}/versions
{
  "data": [
    {}
  ],
  "pagination": {}
}

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.

Path Parameters

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

Query Parameters

limit
number
default:"20"
Items per page
lastKey
string
Cursor for pagination (from previous response)

Response

data
ComponentVersion[]
Array of version objects
pagination
object
Pagination information

Example Response

{
  "data": [
    {
      "version": 3,
      "status": "published",
      "content": "const metadata = () => ({...});\nconst body = (props) => {...};",
      "compiled": "const metadata = () => ({...});\nconst body = (props) => {...};",
      "schema": {...},
      "createdAt": "2024-03-22T10:00:00Z",
      "createdBy": "user123",
      "packageVersion": "2.0.0"
    },
    {
      "version": 2,
      "status": "published",
      "content": "...",
      "compiled": "...",
      "schema": {...},
      "createdAt": "2024-03-15T10:00:00Z",
      "createdBy": "user123",
      "packageVersion": "1.1.0"
    },
    {
      "version": 1,
      "status": "published",
      "content": "...",
      "compiled": "...",
      "schema": {...},
      "createdAt": "2024-03-10T10:00:00Z",
      "createdBy": "user456",
      "packageVersion": "1.0.0"
    }
  ],
  "pagination": {
    "limit": 20,
    "lastKey": null
  }
}
Component versions are created when the component is included in a package. Each version is immutable and tied to a specific package version.

Code Examples

curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/components/c123/versions" \
  -H "Authorization: Bearer YOUR_JWT"