Get Version
Retrieve one version of a schema graph class by class ID and version number: the exact JSON Schema and field registry IDs active at that point in time.
Retrieve a specific version of a schema graph class by its class ID and integer version number. The response is the exact JSON Schema definition and field composition that was active at that point in the class's evolution, which makes this the endpoint for pinning, exporting, or validating against a historical structure.
Use it when you need determinism: client-side validation against the structure a batch of documents was extracted under, code generation from a known snapshot, or a side-by-side comparison of two versions in a changelog UI.
/v1/schema-graph/classes/{id}/versions/{version}curl
Response
Response fields
Response
{
"id": "ver-uuid-2",
"schema_class_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"version_number": 2,
"json_schema": {
"type": "object",
"properties": {
"invoice_number": { "type": "string" },
"vendor": { "type": "string" }
}
},
"field_ids": ["field-uuid-1", "field-uuid-2"],
"created_at": "2024-08-15T00:00:00.000Z"
}Errors
Error responses
The json_schema object is a valid JSON Schema you can use directly for client-side validation or code generation. The field_ids array maps each schema property back to its field registry entry, so you can cross-reference with GET /v1/fields/{id} for extraction instructions and occurrence statistics.