List Versions
List all published versions of a schema graph class ordered by version number descending with field definitions for each version.
Retrieve the complete version history of a schema graph class. Each version captures a snapshot of the class's JSON Schema definition and its associated field registry IDs at the time the version was published. Versions are created when diffs are approved, and version numbers increment monotonically.
/v1/schema-graph/classes/{id}/versionsResponse
Response fields
Response
{
"data": [
{
"id": "ver-uuid-3",
"schema_class_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"version_number": 3,
"json_schema": {
"type": "object",
"properties": {
"invoice_number": { "type": "string" },
"vendor": { "type": "string" },
"total": { "type": "number" }
}
},
"field_ids": ["field-uuid-1", "field-uuid-2", "field-uuid-3"],
"created_at": "2024-09-01T00:00:00.000Z"
}
]
}Errors
Error responses
Compare two versions by fetching them individually with GET /v1/schema-graph/classes/{id}/versions/{version} and diffing their json_schema and field_ids arrays. This is useful for auditing how a class evolved after a diff was approved, or for building a changelog UI that shows added and removed fields per version.