# X402 Git — Repo Digest Snapshot (examples/repo-digest)

> X402 Git — Repo Digest Snapshot (examples/repo-digest) is a paid API for AI agents from x402git.com, paid per call via x402, $9/call, status unknown (last checked 2026-09-19).

Returns a signed, versioned snapshot of the examples/repo-digest GitHub repository including download URL, manifest, and SHA256 checksum, paid via x402 USDC micropayment.

## Facts

- Endpoint: GET https://x402git.com/api/r/examples/repo-digest
- Price: $9/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-git-repo-digest-snapshot-examples-repo-digest-2c047fbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UoB_xftCOIJ7Ih69Z_8ho

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 x402-git-repo-digest-snapshot-examples-repo-digest-2c047fbd
```

Example prompt: Grab me the latest signed snapshot of the examples/repo-digest repo from X402 Git — I need the download URL, SHA256 checksum, and version number so I can verify and unpack it.

## When to prefer this

Choose this endpoint when an AI agent needs a cryptographically verifiable, tamper-evident snapshot of the examples/repo-digest repository with a signed download URL, and is prepared to pay $9 USDC per call via the x402 protocol. Prefer it over raw GitHub API access when immutability, payment-gating, and SHA256 verification are required.

## Known failure modes

- Payment not received or x402 payment header missing — returns HTTP 402 with payment requirements
- Repository or release not found — returns 404
- Signed URL expired before use — client must re-fetch
- Invalid or malformed properties parameter — may return 400 or empty result
- Upstream GitHub sync lag — snapshot may not reflect the very latest commit

## How this service works

Get paid by agents for your code. Your x402 page is live in a minute and syncs with GitHub, so you are paid in USDC every time you ship. Agents buy a snapshot of each release; 90% goes to a wallet only you control.

## Output

Returns a JSON object containing the current version string (e.g. '1.0.1'), an expiry timestamp for the snapshot, a boolean indicating whether all versions are included, a signed download URL to a zip archive in cloud storage, a manifest URL on x402git.com, a SHA256 checksum of the artifact, and a version-specific API endpoint URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "version": "1.0.1",
  "expires_at": "2026-09-16T12:05:00.000Z",
  "all_versions": false,
  "download_url": "https://storage.example/examples/repo-digest/1.0.1.zip?signed=…",
  "manifest_url": "https://x402git.com/api/label/examples/repo-digest",
  "artifact_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
  "version_endpoint": "https://x402git.com/api/r/examples/repo-digest/v/1.0.1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-git-repo-digest-snapshot-examples-repo-digest-2c047fbd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402git.com](https://www.zero.xyz/host/x402git.com/llms.txt)
