# Agent Forge SHA-256 Hash

> Agent Forge SHA-256 Hash is a paid API for AI agents from agent-forge.annushka1190.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Computes a SHA-256 cryptographic hash of a given input, payable per-request via USDC with no API keys required.

## Facts

- Endpoint: POST https://agent-forge.annushka1190.workers.dev/v1/hash/sha256
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-forge-sha-256-hash-99bfcdb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sZ1EeVLTLhiKEa75Y37Y0

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 agent-forge-sha-256-hash-99bfcdb5 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of the string 'Hello, world!' for me?

## When to prefer this

Choose this endpoint when you need a pay-per-use SHA-256 hash with zero setup — no API keys, no accounts, just USDC micro-payments via x402. Ideal for AI agents running in serverless or ephemeral environments that need occasional hashing without maintaining credentials. Prefer over rolling your own when you want auditable, metered cryptographic utility calls in an agentic workflow.

## Known failure modes

- Missing 'input' field in the request body returns a validation error
- Non-JSON or malformed body may cause a 400 bad request
- Payment failure or insufficient USDC balance returns a 402 Payment Required before processing
- Empty string input is technically valid but produces a fixed known hash — callers should be aware

## How this service works

Hash and unit utilities for AI agents: SHA-256, SHA-1, HMAC-SHA256, stable JSON fingerprint, ETH/Gwei/Wei conversion, human bytes, and duration parsing. Pay-per-request USDC via x402. No API keys, no accounts.

## Output

Returns a JSON object with an 'ok' boolean and the SHA-256 hex digest of the submitted input. The hash is deterministic and identical inputs always produce the same digest.

## 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"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-forge-sha-256-hash-99bfcdb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-forge.annushka1190.workers.dev](https://www.zero.xyz/host/agent-forge.annushka1190.workers.dev/llms.txt)
