List ML Models
Returns all ML models for a project.Query Parameters
Filter by project ID
Response
Array of ML model objects
Create ML Model
Creates a new ML model record (training must be triggered separately).Request Body
Project ID to associate with
Ontology ID defining the data schema
Model name
Model description
Model type:
decision_tree, random_forest, regression, or neural_networkTraining configuration
Additional metadata (key-value pairs)
Response
Returns the created ML model object with statusdraft.
Get ML Model
Returns a single ML model by ID.Path Parameters
Model ID
Response
Returns the ML model object (see List ML Models for schema).Update ML Model
Updates an ML model’s metadata or status.Path Parameters
Model ID
Request Body
All fields are optional. Only provided fields will be updated.New name
New description
New status:
draft, training, trained, failed, degraded, deprecated, or archivedUpdated training metrics
Updated performance metrics
Updated metadata
Response
Returns the updated ML model object.Delete ML Model
Deletes an ML model.Path Parameters
Model ID
Response
Returns204 No Content on success.
Trigger Model Training
Enqueues a Kubernetes training job for the specified model. Returns202 Accepted immediately; poll the model’s status field or listen on the WebSocket for completion.
Request Body
Model ID to train
Storage config IDs to use for training data. If empty, worker generates synthetic data for demo purposes.
Training configuration (overrides model’s default config)
Response
Returns the ML model object with status updated totraining and HTTP status 202 Accepted.
Recommend Model Type
Analyses the project’s ontology and returns a suggested model type (e.g., decision_tree, neural_network) along with a confidence score.Request Body
Project ID
Ontology ID to analyze
Response
Recommended model type
Confidence score (0-100)
Human-readable explanation
Scores for all model types
Analysis of the ontology
Analysis of ingested data
Worker Callbacks
These endpoints are called by Kubernetes training jobs to report completion or failure.Report Training Complete
Called by the worker job to record the trained artifact path and performance metrics.Path Parameters
Model ID
Request Body
Path to the trained model artifact
Model performance metrics
Training metrics
Response
Report Training Failure
Called by the worker job to record a training failure reason.Path Parameters
Model ID
Request Body
Failure reason