# TinyData API — Hash Endpoint

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

Computes SHA-256, SHA-512, or HMAC-SHA-256 cryptographic hashes of one or more text strings in a single API call

## Facts

- Endpoint: POST https://cleanrows-api.lyra-lavende-7298.chatgpt.site/api/hash?utm_source=zero.xyz
- Price: $0.001/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-hash-endpoint-d60f1954
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Oh-jNfUAD2FURF_t0AbrZ

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-hash-endpoint-d60f1954 -d '<json body>'
```

Example prompt: Hash the text 'hello world' using SHA-256 and give me the hex digest.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use cryptographic hashing service without standing up your own infrastructure — especially for SHA-256, SHA-512, or HMAC-SHA-256 on single strings or small batches up to 500 items, and when operating in a USDC micropayment (x402) environment on Polygon or Base.

## Known failure modes

- Missing required 'algorithm' field returns a validation error
- HMAC-SHA-256 requested without providing 'key' field causes an error
- Batch array exceeds 500 items may be rejected
- Invalid algorithm enum value returns a schema error
- Payment failure or insufficient USDC balance blocks request execution

## 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 ok:true, the algorithm used, and either a single hex-encoded hash string (for single input) or an ordered array of hex-encoded hashes (for batch input), plus the count of items processed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key": {
   "type": "string",
   "description": "Required only when algorithm is HMAC-SHA-256."
  },
  "text": {
   "type": "string",
   "description": "Single string to hash."
  },
  "items": {
   "type": "array",
   "description": "Optional ordered batch of strings. When provided as an array, takes precedence over text."
  },
  "algorithm": {
   "enum": [
    "SHA-256",
    "SHA-512",
    "HMAC-SHA-256"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ok",
  "algorithm",
  "count"
 ],
 "properties": {
  "ok": {
   "type": "boolean",
   "const": true
  },
  "hash": {
   "type": "string",
   "description": "Lowercase hexadecimal digest for a single input."
  },
  "count": {
   "type": "integer",
   "maximum": 500,
   "minimum": 1
  },
  "hashes": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Ordered lowercase hexadecimal digests for a batch."
  },
  "algorithm": {
   "enum": [
    "SHA-256",
    "SHA-512",
    "HMAC-SHA-256"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tinydata-api-hash-endpoint-d60f1954/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)
