# TinyData API — Batch Hash (SHA-256 / SHA-512)

> TinyData API — Batch Hash (SHA-256 / SHA-512) is a paid API for AI agents from cleanrows-api.lyra-lavende-7298.chatgpt.site, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Hashes a batch of 2–500 text items using SHA-256 or SHA-512 and returns the resulting hash strings, billed per call via x402 micropayments.

## Facts

- Endpoint: POST https://cleanrows-api.lyra-lavende-7298.chatgpt.site/api/batch-hash?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tinydata-api-batch-hash-sha-256-sha-512-1b4a3090
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r69PpczzJD0vby9pHORhO

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 tinydata-api-batch-hash-sha-256-sha-512-1b4a3090 -d '<json body>'
```

Example prompt: Hash these 5 email addresses — alice@example.com, bob@example.com, carol@example.com, dave@example.com, eve@example.com — using SHA-256 and return all the hashes.

## When to prefer this

Choose this endpoint when you need to hash multiple strings in a single atomic API call with micropayment billing — ideal for pipelines that must anonymize, fingerprint, or deduplicate a list of values (2–500 items) without running a local cryptographic library. It is especially useful in serverless or agent contexts where installing dependencies is impractical and per-call USDC billing via x402 fits the workflow.

## Known failure modes

- Fewer than 2 or more than 500 items in the array triggers a validation error
- Invalid or missing 'items' field returns a 400-level error
- Unsupported algorithm value (not SHA-256 or SHA-512) causes rejection
- x402 payment failure or insufficient USDC balance prevents the call from completing
- Network timeout on large batches close to the 500-item limit

## How this service works

Hash text, encode or decode Base64, and clean CSV. Pay $0.001–$0.01 per successful request in USDC on Polygon via x402.

## Output

Returns a JSON object with a boolean 'ok' field, the algorithm used, a count of hashes produced (2–500), and an array of hash strings in the same order as the input items.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "items"
 ],
 "properties": {
  "items": {
   "type": "array"
  },
  "algorithm": {
   "enum": [
    "SHA-256",
    "SHA-512"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ok",
  "algorithm",
  "count",
  "hashes"
 ],
 "properties": {
  "ok": {
   "type": "boolean",
   "const": true
  },
  "count": {
   "type": "integer",
   "maximum": 500,
   "minimum": 2
  },
  "hashes": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 500,
   "minItems": 2
  },
  "algorithm": {
   "enum": [
    "SHA-256",
    "SHA-512"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tinydata-api-batch-hash-sha-256-sha-512-1b4a3090/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cleanrows-api.lyra-lavende-7298.chatgpt.site](https://www.zero.xyz/host/cleanrows-api.lyra-lavende-7298.chatgpt.site/llms.txt)
