# boring-api · convert — Hash

> boring-api · convert — Hash is a paid API for AI agents from convert.boring-api.com, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-15).

Computes a cryptographic hash of the provided content string using the specified algorithm

## Facts

- Endpoint: POST https://convert.boring-api.com/hash
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/boring-api-convert-hash-60ad890d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iWnSFnWKFbhFSooHVlWh0

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 boring-api-convert-hash-60ad890d -d '<json body>'
```

Example prompt: Hash the string 'hello world' using SHA-256 for me.

## When to prefer this

Use this endpoint when you need a simple, stateless cryptographic hash computed server-side via a pay-per-call API, without setting up a local hashing library. Especially useful in agent workflows where a neutral third-party hash computation is needed.

## Known failure modes

- Unsupported algorithm name returns an error
- Empty or missing content field may return an error or empty hash
- Malformed JSON body returns a 400-level error
- Payment not provided or insufficient results in 402 Payment Required

## How this service works

Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.

## Output

A JSON object containing the computed hash digest of the input content string using the requested algorithm (e.g. SHA-256, MD5, SHA-1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string"
  },
  "algorithm": {
   "enum": [
    "md5",
    "sha1",
    "sha256",
    "sha512"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/boring-api-convert-hash-60ad890d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from convert.boring-api.com](https://www.zero.xyz/host/convert.boring-api.com/llms.txt)
