# Artefaktum Artifact Lineage / Relations

> Artefaktum Artifact Lineage / Relations is a paid API for AI agents from api.artefaktum.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-01).

Returns an artifact's lineage graph: the artifacts it was derived from (parents) and those derived from it (children), with relation type and direction.

## Facts

- Endpoint: GET https://api.artefaktum.dev/v1/artifacts/:artifact_id/relations?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/artefaktum-artifact-lineage-relations-90cfe68c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_667KwBfLyHNov-Z7qj7pM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability artefaktum-artifact-lineage-relations-90cfe68c
```

Example prompt: Show me the full lineage for artifact abc123 on Artefaktum — I want to see both what it was derived from and what has been derived from it, along with the relation types.

## When to prefer this

Use this endpoint when you need to understand the provenance or downstream impact of a specific artifact stored in Artefaktum — i.e., which artifacts it was built from and which artifacts were built from it. Prefer this over generic artifact metadata endpoints when lineage, derivation chains, or dependency auditing is the goal.

## Known failure modes

- artifact_id not found — 404 with error message
- wallet has not paid or account not initialized — 402 payment required
- invalid artifact_id format — 400 bad request
- artifact belongs to a different wallet — 403 forbidden
- network timeout or service unavailable — 503

## How this service works

List an artifact's lineage: the artifacts it was derived from and those derived from it, with relation type and direction. Costs $0.005 in USDC. No signup: a wallet's first payment creates its account and a default project; the same wallet later reaches the same files.

## Output

A JSON array of relation objects, each describing a linked artifact with its relation type (e.g. derived_from, derived_into) and direction (parent or child), allowing the caller to reconstruct the artifact's full provenance graph.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "artifact_id"
     ],
     "properties": {
      "artifact_id": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "array"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/artefaktum-artifact-lineage-relations-90cfe68c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.artefaktum.dev](https://www.zero.xyz/host/api.artefaktum.dev/llms.txt)
