# Clink Forge Self-Test Product

> Clink Forge Self-Test Product is a paid API for AI agents from api.clinkforge.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns a self-test data product with cryptographic provenance, attestation, and payment receipt via x402 micropayment, used to verify the Clink Forge pipeline end-to-end.

## Facts

- Endpoint: GET https://api.clinkforge.com/v1/p/forge-selftest
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clink-forge-self-test-product-f1b9b0ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mvknC3tvC-oEyZFmOZN52

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 clink-forge-self-test-product-f1b9b0ec
```

Example prompt: Run the Clink Forge self-test to confirm the x402 payment pipeline and cryptographic attestation are working — use ID 'forge-selftest' and show me the provenance chain and payment receipt.

## When to prefer this

Use this endpoint when you need to verify that the Clink Forge x402 micropayment and cryptographic attestation pipeline is functioning correctly, or when you want a low-cost ($0.001 USDC) reference call to validate your payment integration before calling production data products. Prefer this over general data product endpoints when the goal is infrastructure testing or provenance verification rather than real data retrieval.

## Known failure modes

- Missing or invalid 'id' query parameter returns a 400 error
- Payment failure or insufficient USDC balance causes a 402 Payment Required with payment instructions
- Invalid or expired x402 payment token results in payment rejection
- ID string exceeding 40 characters is rejected by schema validation
- Server-side attestation failure may return an error without a signed payload
- Network timeout or upstream unavailability returns a 5xx error

## How this service works

Pay per call over x402. USDC on Base, no account, no API key. 28 government-sourced data products at $0.001–$0.05 per call, every response signed and provenance-chained.

## Output

A JSON object containing: an array of data rows each with a payload and record ID; product metadata (slug, version); a provenance chain (license ID, source URL, observed timestamp); an Ed25519 cryptographic attestation (algorithm + base64 signature); and a payment receipt with an on-chain settlement reference.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "maxLength": 40
      }
     },
     "additionalProperties": false
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "payload": {
     "field": "value"
    },
    "record_id": "R-100"
   }
  ],
  "product": {
   "slug": "example-product",
   "version": 1
  },
  "provenance": {
   "license_id": "US-GOV-PD",
   "source_url": "https://agency.gov/data",
   "observed_at": "2026-08-25T00:00:00Z"
  },
  "attestation": {
   "algorithm": "Ed25519",
   "signature": "base64..."
  },
  "payment_receipt": {
   "settlement_ref": "0xtx..."
  }
 },
 "description": "data rows + provenance chain + attestation"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clink-forge-self-test-product-f1b9b0ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.clinkforge.com](https://www.zero.xyz/host/api.clinkforge.com/llms.txt)
