Skip to main content
GET
/
v1
/
models
/
{modelId}
/
lineage
Get Model Lineage
curl --request GET \
  --url https://api.truthlocks.com/v1/models/{modelId}/lineage \
  --header 'X-API-Key: <api-key>'
{
  "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "training_runs": [
    {}
  ],
  "datasets": [
    {
      "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "hash": "<string>",
      "format": "<string>",
      "size_bytes": 123,
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "metadata": {},
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "parent_models": [
    {
      "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "hash": "<string>",
      "framework": "<string>",
      "version": "<string>",
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "training_dataset_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}
Returns the complete lineage graph for a model attestation. The graph includes all training datasets, parent models (for fine-tuned or distilled models), and downstream deployments connected by typed relationships. Model lineage enables compliance teams to trace exactly which data was used to train a model, verify that all upstream datasets are properly attested, and audit the full provenance chain from raw data to production deployment.

Authentication

X-API-Key
string
required
API key with models:read scope. Alternatively, pass a Bearer JWT token in the Authorization header.
X-Tenant-ID
string
required
Tenant identifier for multi-tenant isolation.

Path Parameters

id
string
required
Model attestation identifier (maip-model:ULID).

Response

model_id
string
The root model identifier for this lineage query.
nodes
array
Array of lineage nodes. Each node contains: - id (string) — Resource identifier - type (string) — Node type: dataset, model, or deployment
  • name (string) — Human-readable name - version (string) — Resource version - status (string) — Current attestation status - created_at (string) — ISO 8601 timestamp
edges
array
Array of relationships connecting nodes. Each edge contains: - source (string) — Source node identifier - target (string) — Target node identifier - relationship (string) — Relationship type (e.g. trained_on, fine_tuned_from, distilled_from, deployed_as) - metadata (object) — Optional edge metadata
training_datasets
array
Convenience field listing all dataset nodes in the lineage that have a direct trained_on relationship with the queried model. Each entry contains id, name, version, and status.

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

modelId
string<uuid>
required

Model identifier

Response

Model lineage

model_id
string<uuid>
training_runs
object[]
datasets
object[]
parent_models
object[]