# 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).

Retrieves an artifact stored under a user-defined external key (with slash-separated namespacing) from a wallet's project, with optional cache invalidation via max age.

## Facts

- Endpoint: GET https://api.artefaktum.dev/v1/artifacts/by-external-key/smoke/20261031223716?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-26f7cdef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GXPNGbHLuSqaUK1WX9j3y

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-26f7cdef
```

Example prompt: Look up the artifact I stored under the key 'reports/q3-summary' in my Artefaktum project (project ID: proj_abc123) — only return it if it's been updated within the last 86400 seconds.

## When to prefer this

Use this endpoint when you have stored an artifact under a human-readable or structured slash-path key of your own choosing and want to retrieve it without knowing the internal artifact ID. Prefer this over ID-based lookup when your workflow uses semantic or hierarchical naming for artifacts. The max_age_seconds parameter makes it especially useful for cache-validation workflows where stale data should be treated as absent.

## Known failure modes

- 404 if no artifact exists under the given external_key in the specified project
- 404 if artifact exists but is older than max_age_seconds
- 402 Payment Required if the $0.005 USDC payment via x402 is not included or fails
- 400 if required path parameter external_key is missing
- 403 if the wallet does not own the specified project

## 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 title, description, tags, metadata, status, expiry date, and latest version details. If the artifact is older than max_age_seconds (when specified), returns a 404 as if the artifact does not exist.

## 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-26f7cdef/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)
