Get Class
Retrieve one schema graph class by UUID: its canonical name, status, current version pointer, and links to the full version history. Requires read scope.
Retrieve a single schema graph class by its UUID: one discovered document type with its canonical name, status, and a pointer to its current version. Use this to inspect a specific document type's metadata before drilling into its field structure via the version history.
A common workflow is: list classes to find the document type you care about, fetch it here to read current_version_id, then follow links.versions to see how its field structure evolved. To review proposed ontology changes for the class, query GET /v1/schema-graph/diffs?schema_class_id={id}.
/v1/schema-graph/classes/{id}curl
Response
Response fields
Response
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"schema_class": "Invoice",
"document_type_id": "doc-type-uuid",
"description": "Standard invoice schema class",
"current_version_id": "ver-uuid-3",
"status": "active",
"created_at": "2024-08-01T00:00:00.000Z",
"updated_at": "2024-09-14T00:00:00.000Z",
"links": {
"self": "/v1/schema-graph/classes/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"versions": "/v1/schema-graph/classes/a1b2c3d4-e5f6-7890-abcd-ef1234567890/versions"
}
}Errors
Error responses
links.versions and read the json_schema of the version matching current_version_id.