---
updatedAt: 2026-05-04T21:43:38.000Z
agentTools:
  projectIndex: https://docs.toqua.ai/llms.txt
---

# Retrieve a model's metadata

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Toqua API",
    "contact": {
      "name": "Toqua",
      "url": "https://toqua.ai/",
      "email": "admin@toqua.ai"
    },
    "version": "0.26"
  },
  "servers": [
    {
      "url": "https://api.toqua.ai",
      "description": "Toqua API"
    }
  ],
  "paths": {
    "/ships/{imo_number}/models/{model_version}/metadata": {
      "get": {
        "tags": [
          "Models"
        ],
        "summary": "Retrieve a model's metadata",
        "operationId": "get_model_metadata",
        "security": [
          {
            "APIKeyHeader": []
          },
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "imo_number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Imo Number"
            }
          },
          {
            "name": "model_version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Set to 'latest' to use the default model version",
              "title": "Model Version"
            },
            "description": "Set to 'latest' to use the default model version"
          },
          {
            "name": "model_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Model Type"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelMetaData"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "501": {
            "description": "Not Implemented"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BenchmarkPeriodConfig": {
        "properties": {
          "start": {
            "type": "string",
            "title": "Start",
            "description": "Start date of the benchmark period."
          },
          "end": {
            "type": "string",
            "title": "End",
            "description": "End date of the benchmark period."
          }
        },
        "type": "object",
        "required": [
          "start",
          "end"
        ],
        "title": "BenchmarkPeriodConfig"
      },
      "DataPeriod": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "benchmark",
              "dynamic",
              "evaluation"
            ],
            "title": "Type",
            "description": "Type of the data period. `benchmark` designates a period on which the model was intially trained. `dynamic` designates a period on which the model was re-trained later. `evaluation` designates a period on which the model has been evaluated, but not (yet) trained.",
            "examples": [
              "benchmark"
            ]
          },
          "samples": {
            "type": "integer",
            "minimum": 0,
            "title": "Samples",
            "description": "Amount of samples contained in this period."
          },
          "start_date": {
            "type": "string",
            "title": "Start date",
            "description": "The date on which this period starts.",
            "examples": [
              "2022-08-02T09:21:24+00:00"
            ]
          },
          "end_date": {
            "type": "string",
            "title": "End date",
            "description": "The date on which this period end.",
            "examples": [
              "2022-08-02T09:21:24+00:00"
            ]
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/RelationMetrics"
            },
            "type": "array",
            "title": "Metrics",
            "description": "The accuracy metrics of the model evaluated on this period."
          },
          "data_statistics": {
            "items": {
              "$ref": "#/components/schemas/DataStatistics"
            },
            "type": "array",
            "title": "Data Statistics",
            "description": "Descriptive statistics of the data seen during this period.",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "type",
          "samples",
          "start_date",
          "end_date",
          "metrics"
        ],
        "title": "DataPeriod"
      },
      "DataStatistics": {
        "properties": {
          "parameter": {
            "type": "string",
            "title": "Parameter",
            "description": "The parameter for which the statistics are calculated.",
            "examples": [
              "sog"
            ]
          },
          "mean": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mean",
            "description": "The mean value of the parameter.",
            "examples": [
              14.5
            ]
          },
          "median": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Median",
            "description": "The median value of the parameter.",
            "examples": [
              14.3
            ]
          },
          "std": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Standard Deviation",
            "description": "The standard deviation of the parameter.",
            "examples": [
              2.3
            ]
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minimum",
            "description": "The minimum value of the parameter.",
            "examples": [
              10.1
            ]
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Maximum",
            "description": "The maximum value of the parameter.",
            "examples": [
              20.1
            ]
          },
          "percentiles": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Percentiles",
            "description": "The percentiles of the parameter.",
            "examples": [
              {
                "0.05": 10.1,
                "0.25": 12.3,
                "0.5": 14.3,
                "0.75": 16.3,
                "0.95": 20.1
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "parameter",
          "mean",
          "median",
          "std",
          "min",
          "max",
          "percentiles"
        ],
        "title": "DataStatistics"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "Metrics": {
        "properties": {
          "mape": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mean Absolute Percentage Error",
            "description": "The mean absolute percentage error, calculated over all test data."
          },
          "mae": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mean Absolute Error",
            "description": "The mean absolute error, calculated over all test data."
          },
          "bpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bias Percentage Error",
            "description": "The bias percentage error, calculated over all test data."
          },
          "mbpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mean Bias Percentage Error",
            "description": "The mean bias percentage error, calculated over all test data."
          },
          "madpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mean Absolute Daily Percentage Error",
            "description": "The mean absolute value of the bias percentage errors averaged per window of 1 sail day."
          },
          "mawpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mean Absolute Weekly Percentage Error",
            "description": "The mean absolute value of the bias percentage errors averaged per window of 1 sail week."
          },
          "mampe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mean Absolute Monthly Percentage Error",
            "description": "The mean absolute value of the bias percentage errors averaged per window of 1 sail month."
          },
          "dpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Daily Percentage Error",
            "description": "The bias percentage error, averaged per window of 1 sailing day."
          },
          "wpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weekly Percentage Error",
            "description": "The bias percentage error, averaged per window of 1 sailing week."
          },
          "mpe": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Percentage Error",
            "description": "The mean bias percentage error, averaged per window of 1 sailing month."
          }
        },
        "type": "object",
        "title": "Metrics"
      },
      "ModelCorrection": {
        "properties": {
          "correction_date": {
            "type": "string",
            "title": "Correction date",
            "description": "The date on which the correction will be applied. A correction will only be applied for predictions for the latest date, if the latest date is after the correction date.",
            "examples": [
              "2022-08-02T09:21:24+00:00"
            ]
          },
          "correction_factor": {
            "type": "number",
            "title": "Correction Factor",
            "description": "The correction factor that was applied to the model. Corrected model prediction = original model prediction * correction_factor",
            "examples": [
              1.2
            ]
          },
          "creation_date": {
            "type": "string",
            "title": "Creation date",
            "description": "The date on which the correction was created.",
            "examples": [
              "2022-08-02T09:21:24+00:00"
            ]
          }
        },
        "type": "object",
        "required": [
          "correction_date",
          "correction_factor",
          "creation_date"
        ],
        "title": "ModelCorrection"
      },
      "ModelMetaData": {
        "properties": {
          "updated_at": {
            "type": "string",
            "title": "Update date",
            "description": "The date on which the model was last updated.",
            "examples": [
              "2022-08-02T09:21:24+00:00"
            ]
          },
          "periods": {
            "items": {
              "$ref": "#/components/schemas/DataPeriod"
            },
            "type": "array",
            "title": "Data Periods",
            "description": "List of periods on which this model was evaluated and/or trained."
          },
          "parameters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelParameters"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Parameters",
            "description": "Specification of which parameters this model accepts as input, produces as output and their typical operational range."
          },
          "corrections": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ModelCorrection"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Corrections applied to the model",
            "description": "When the model has seen no or too little data to be accurate, such as right after a cleaning event, it may be manually corrected. This field contains the corrections that are currently added to the model."
          },
          "model_training_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelTrainingConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Training Config",
            "description": "The configuration used to train this model, including processing rules, benchmark period, and model hyperparameters."
          }
        },
        "type": "object",
        "title": "ModelMetaData"
      },
      "ModelParameters": {
        "properties": {
          "sog": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "stw": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "me_rpm": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "me_power": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "me_fo_consumption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "me_fo_emission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "draft_avg": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "trim": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "fuel_specific_energy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_heading": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "wave_direction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "wave_height": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_speed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_direction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "wind_direction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "wind_speed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "sea_surface_temperature": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          },
          "sea_surface_salinity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParameterDescription"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "ModelParameters"
      },
      "ModelTrainingConfig": {
        "properties": {
          "processing_rules": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProcessingRule"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Processing Rules",
            "description": "Data processing rules applied before training."
          },
          "corrected_stw": {
            "type": "boolean",
            "title": "Corrected STW",
            "description": "Whether corrected STW was used.",
            "default": true
          },
          "benchmark_period": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BenchmarkPeriodConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Benchmark Period",
            "description": "The benchmark period used for training."
          },
          "laden_draft": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Laden Draft"
          },
          "ballast_draft": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ballast Draft"
          },
          "loa": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Length Overall"
          },
          "beam": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Beam"
          },
          "mcr": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "MCR"
          },
          "max_rpm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max RPM"
          },
          "min_rpm": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min RPM"
          },
          "vessel_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vessel Type"
          },
          "apply_data_health_filters": {
            "type": "boolean",
            "title": "Apply Data Health Filters",
            "default": true
          },
          "apply_voyage_filter": {
            "type": "boolean",
            "title": "Apply Voyage Filter",
            "default": true
          },
          "voyages_priority_source": {
            "type": "string",
            "title": "Voyages Priority Source",
            "default": "nr"
          },
          "benchmark_filters": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Benchmark Filters"
          },
          "frequency": {
            "type": "string",
            "title": "Frequency",
            "default": "5min"
          },
          "skip_relations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Skip Relations"
          },
          "physical_model_type": {
            "type": "string",
            "title": "Physical Model Type",
            "default": "physical_model_data"
          },
          "power_fuel_estimator_type": {
            "type": "string",
            "title": "Power Fuel Estimator Type",
            "default": "bayesian_sfoc_estimator"
          },
          "sfoc_power_measurements": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SFOCPowerMeasurement"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "SFOC Power Measurements"
          },
          "schema_version": {
            "type": "integer",
            "title": "Schema Version",
            "default": 1
          },
          "threshold_days_dynamic_model": {
            "type": "integer",
            "title": "Threshold Days Dynamic Model",
            "default": 20
          },
          "idling_speed_threshold": {
            "type": "integer",
            "title": "Idling Speed Threshold",
            "default": 5
          },
          "idling_speed_quantile": {
            "type": "number",
            "title": "Idling Speed Quantile",
            "default": 0.1
          },
          "idling_period_duration_days": {
            "type": "integer",
            "title": "Idling Period Duration Days",
            "default": 7
          }
        },
        "type": "object",
        "title": "ModelTrainingConfig"
      },
      "ParameterDescription": {
        "properties": {
          "input": {
            "type": "boolean",
            "title": "Input",
            "description": "Whether the model can use this parameter as input parameter.",
            "examples": [
              true
            ]
          },
          "output": {
            "type": "boolean",
            "title": "Output",
            "description": "Whether the model can use this parameter as output parameter.",
            "examples": [
              false
            ]
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minimum",
            "description": "The typical minimum value of this parameter."
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Maximum",
            "description": "The typical maximum value of this parameter."
          },
          "default": {
            "type": "number",
            "title": "Default",
            "description": "The default value of this parameter."
          }
        },
        "type": "object",
        "required": [
          "input",
          "output",
          "default"
        ],
        "title": "ParameterDescription"
      },
      "ProcessingRule": {
        "properties": {
          "rule_id": {
            "type": "string",
            "title": "Rule ID",
            "description": "Identifier of the processing rule."
          },
          "is_applied": {
            "type": "boolean",
            "title": "Is Applied",
            "description": "Whether the rule is applied."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "rule_id",
          "is_applied"
        ],
        "title": "ProcessingRule"
      },
      "RelationMetrics": {
        "properties": {
          "entrypoint": {
            "type": "string",
            "enum": [
              "sog",
              "stw",
              "me_rpm",
              "me_power",
              "me_fo_consumption"
            ],
            "title": "Entrypoint",
            "description": "The entrypoint used to predict the target.",
            "examples": [
              "sog"
            ]
          },
          "target": {
            "type": "string",
            "enum": [
              "sog",
              "stw",
              "me_rpm",
              "me_power",
              "me_fo_consumption"
            ],
            "title": "Target",
            "description": "The predicted parameter. The metrics are calculated by comparing the predicted value of the target to the true value of the target.",
            "examples": [
              "me_fo_consumption"
            ]
          },
          "metrics": {
            "$ref": "#/components/schemas/Metrics"
          }
        },
        "type": "object",
        "required": [
          "entrypoint",
          "target",
          "metrics"
        ],
        "title": "RelationMetrics"
      },
      "SFOCPowerMeasurement": {
        "properties": {
          "me_power": {
            "type": "number",
            "title": "ME Power"
          },
          "sfoc": {
            "type": "number",
            "title": "SFOC"
          }
        },
        "type": "object",
        "required": [
          "me_power",
          "sfoc"
        ],
        "title": "SFOCPowerMeasurement"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "externalDocs": {
    "description": "API Documentation",
    "url": "https://docs.toqua.ai"
  }
}
```