# ForgeMesh Text Hashing API

> ForgeMesh Text Hashing API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes SHA-256, SHA-512, SHA-1, or MD5 cryptographic hash digests of any input text, returned as a hex string.

## Facts

- Endpoint: POST https://x402.forgemesh.io/hash-text
- 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/forgemesh-text-hashing-api-d123a1d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bwAn5iFyD3PqjvSsXefvG

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 forgemesh-text-hashing-api-d123a1d2 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a fast, deterministic, stateless text hash with no local crypto library — ideal for agent pipelines needing deduplication keys, cache keys, or content fingerprints without executing code locally. Prefer over local computation when running in sandboxed environments. Use when you need multiple algorithm options (SHA-256, SHA-512, SHA-1, MD5) via a single consistent API.

## Known failure modes

- Missing 'text' field in request body — returns 4xx error
- Invalid algorithm value not in allowed set (sha256, sha512, sha1, md5) — returns error or falls back to default
- Empty string input may return a valid hash (hash of empty string) or an error depending on implementation
- Payment failure via x402 protocol — endpoint returns 402 Payment Required

## How this service works

Text hashing API: SHA-256, SHA-512, SHA-1, or MD5 digest of any text, returned as hex — deterministic, instant, computed locally. For deduplication keys, cache keys, content fingerprints, and integrity checks in agent pipelines.

## Output

Returns a hex-encoded cryptographic hash digest of the provided text, computed using the specified algorithm (sha256 by default, or sha512, sha1, md5). The response includes the resulting digest string and the algorithm used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "algorithm": {
   "type": "string",
   "description": "sha256 (default) | sha512 | sha1 | md5"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "algorithm": "sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-text-hashing-api-d123a1d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
