# Agent Payload Tools – SHA Hash

> Agent Payload Tools – SHA Hash is a paid API for AI agents from api.agent-payload-tools.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes a cryptographic SHA hash (SHA-256, SHA-384, or SHA-512) of UTF-8 text input deterministically

## Facts

- Endpoint: POST https://api.agent-payload-tools.workers.dev/hash
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-payload-tools-sha-hash-a51d226b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_azF46cKKrRK6mqzUIl9j6

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-payload-tools-sha-hash-a51d226b -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, deterministic, server-side cryptographic hash of a UTF-8 string without managing local crypto libraries — especially useful in agent pipelines where you want reproducible content fingerprints, integrity checksums, or stable derived identifiers. Prefer it over client-side hashing when you want a neutral third-party computation, or when your agent runtime doesn't expose native crypto APIs. It is not suitable for hashing binary data (only UTF-8 text) or for HMAC/keyed-hash operations.

## Known failure modes

- Empty input string may return hash of empty string or a validation error
- Unsupported algorithm value (outside SHA-256/SHA-384/SHA-512 enum) returns a 400 validation error
- Non-UTF-8 encoded input may cause a decoding error
- Payment not provided or insufficient USDC results in HTTP 402 payment required
- Request timeout if the Workers.dev edge node is temporarily unavailable

## How this service works

Hash text, strings, or UTF-8 payload data with SHA256, SHA384, or SHA512. Compute a cryptographic hash, checksum, or digest for payload integrity, content fingerprinting, cache keys, and verifying that data has not changed.

## Output

Returns a hex-encoded cryptographic digest of the input text using the specified SHA algorithm (SHA-256 by default), along with the algorithm name used. The output is deterministic — identical inputs always produce identical hashes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "default": "",
   "description": "UTF-8 text to hash."
  },
  "algorithm": {
   "enum": [
    "SHA-256",
    "SHA-384",
    "SHA-512"
   ],
   "type": "string",
   "description": "Digest algorithm. Defaults to SHA-256."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-payload-tools-sha-hash-a51d226b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-payload-tools.workers.dev](https://www.zero.xyz/host/api.agent-payload-tools.workers.dev/llms.txt)
