# AgentShelf Content Hash (SHA-256 / MD5)

> AgentShelf Content Hash (SHA-256 / MD5) is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes a SHA-256 or MD5 hex digest of provided text, entirely server-side with no external network calls.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/content-hash?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-content-hash-sha-256-md5-7594cff6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NkYS3bedW9-qiSdNaM-92

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 agentshelf-content-hash-sha-256-md5-7594cff6 -d '<json body>'
```

Example prompt: Can you give me the SHA-256 hex digest of the text 'Hello, world!'?

## When to prefer this

Choose this endpoint when you need a quick, deterministic SHA-256 or MD5 hex digest of text without setting up local crypto libraries. Especially useful in agent pipelines where only these two standard algorithms are needed and a tiny per-call cost ($0.001 USDC) is acceptable. For SHA-3 or BLAKE2 digests, use sibling endpoints on the same host. Always try the free sandbox endpoint (POST /v1/sandbox/content-hash) first if available.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Text exceeding 100,000 characters is rejected
- Invalid 'algorithm' value (anything other than 'sha256' or 'md5') returns a bad request error
- Payment failure (insufficient USDC balance or x402 protocol error) blocks the call

## How this service works

Call when an agent needs a SHA-256 or MD5 hex digest of provided text. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/content-hash first.

## Output

Returns a hex-encoded hash string (SHA-256 or MD5) of the submitted text. No network calls are made; the result is deterministic and reproducible for identical inputs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "hello"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Text to hash. No fetch."
  },
  "algorithm": {
   "enum": [
    "sha256",
    "md5"
   ],
   "type": "string",
   "examples": [
    "sha256"
   ],
   "description": "sha256 or md5. Default sha256."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-content-hash-sha-256-md5-7594cff6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
