# Agent402 UK Batch Utility Processor

> Agent402 UK Batch Utility Processor is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Execute up to 50 deterministic utility operations in a single paid batch: hashing, base64, JSON formatting/diffing, text metrics, markdown-to-HTML, slugification, and UUID generation.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/utils/batch
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-batch-utility-processor-27eccf6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fH6lO84PLOoEmrXRJZaN6

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 agent402-uk-batch-utility-processor-27eccf6e -d '<json body>'
```

Example prompt: Can you run these five operations in one go: SHA-256 hash 'hello world', base64-encode 'agent data', format this JSON blob, slugify 'My Blog Post Title', and generate a fresh UUID — stop if any step errors out?

## When to prefer this

Use this endpoint when an agent needs 5 or more deterministic utility transformations mid-task and wants to avoid multiple round-trips and multiple payments. It is strictly better than calling individual utility endpoints when n≥5 because the $0.01 flat fee covers the entire batch. Prefer it over language-model-based transformation when exact, reproducible outputs are required (e.g., canonical hashes, RFC-compliant UUIDs, lossless base64).

## Known failure modes

- Array exceeds 50 items — batch rejected
- Unrecognized op type — item marked failed with error detail
- Malformed JSON input for json-format or json-diff — item fails
- stop_on_error: true halts processing and returns only results up to the failed item
- Payment not received or x402 handshake fails — 402 response, no processing
- Missing required fields for a specific op — that item returns ok: false

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

A JSON object with a 'results' array (one entry per operation, each with ok: true/false, the op name, and the result payload) plus a summary object showing total, succeeded, and failed counts. On partial failure (when stop_on_error is false), completed operations still return their results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "description": "1-50 ops: hash|base64|json-format|json-diff|text-metrics|markdown-to-html|slugify|uuid"
  },
  "stop_on_error": {
   "type": "boolean",
   "description": "Stop after first item error (default false)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "ok": true,
    "op": "hash",
    "result": {
     "hex": "2cf24dba..."
    }
   }
  ],
  "summary": {
   "total": 3,
   "failed": 0,
   "succeeded": 3
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-batch-utility-processor-27eccf6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
