# Artefaktum Artifact Lookup by External Key

> Artefaktum Artifact Lookup by External Key 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).

Retrieve a stored artifact by the user-defined external key name within a wallet's project, with optional freshness enforcement via max_age_seconds.

## Facts

- Endpoint: GET https://api.artefaktum.dev/v1/artifacts/by-external-key/:external_key?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-lookup-by-external-key-dd7d7328
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_slcWriwb_UkTj9MOh_2JF

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-lookup-by-external-key-dd7d7328
```

Example prompt: Can you fetch the artifact I stored under the key 'reports/q1-summary' in my Artefaktum project — only return it if it was stored within the last 3600 seconds.

## When to prefer this

Use this endpoint when you have your own human-readable or path-like name for an artifact and want to retrieve it without knowing its internal artifact ID. Ideal for workflows where artifacts are stored under semantic keys (like 'reports/q1' or 'configs/prod') and need to be fetched by name. The max_age_seconds parameter makes this especially useful for cache-like patterns where stale artifacts should be rejected. Prefer this over the ID-based artifact lookup when the external key is the natural identifier in your workflow.

## Known failure modes

- 404 returned if external_key does not exist in the specified project
- 404 returned if artifact exists but is older than max_age_seconds
- Missing or invalid project_id causes a 400 or lookup failure
- Payment failure or insufficient USDC balance prevents access
- Expired artifacts (past 30-day storage window) return 404
- Invalid or malformed external_key format causes lookup failure

## How this service works

Look up an artifact by the external_key it was stored under (your own name for it, slashes allowed), in one of the wallet's projects. max_age_seconds turns an artifact older than that into a 404, for caching. Returns the artifact. 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

Returns the artifact object including its title, description, tags, metadata, status, expiry date, and latest version details. If the artifact is older than max_age_seconds, a 404 is returned instead.

## 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": [
      "external_key"
     ],
     "properties": {
      "external_key": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "required": [
      "project_id"
     ],
     "properties": {
      "project_id": {
       "type": "string"
      },
      "max_age_seconds": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/artefaktum-artifact-lookup-by-external-key-dd7d7328/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)
