# WritersLogic Idempotency Fingerprint

> WritersLogic Idempotency Fingerprint is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Hashes declared identity fields from request bodies using RFC 8785 canonical JSON and SHA-256 to generate a stable idempotency fingerprint, and flags issues like missing fields, volatile overlaps, timestamp-like values, and undeclared differing fields.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/idempotency-fingerprint?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-idempotency-fingerprint-ee549a42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rrxld9RzsIh8hlfqP1UVV

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 writerslogic-idempotency-fingerprint-ee549a42 -d '<json body>'
```

Example prompt: Before retrying this payment POST, hash the 'customerId', 'amount', and 'currency' fields as the identity — scoped to 'payment-service' — across these two request attempts, and flag anything that would make the fingerprint unstable like timestamps or UUIDs in those fields.

## When to prefer this

Use this endpoint when an AI agent needs to deterministically generate or validate an Idempotency-Key before retrying a write operation, especially when request bodies may have inconsistent key ordering or contain fields that could inadvertently destabilize the fingerprint (timestamps, UUIDs, nonces). Prefer this over ad-hoc hashing when you need explicit warnings about identity field quality and undeclared differing fields across retries. Not suitable when you need to actually send the request or when you need provider-specific key format enforcement.

## Known failure modes

- Missing required 'identity' array — returns error requiring at least one JSON Pointer
- A declared JSON Pointer does not resolve in one or more request bodies — flagged as missing identity field
- Request body is not valid JSON — parsing error returned
- More than 20 request attempts or 50 identity/volatile pointers supplied — rejected by schema limits
- Identity field also listed in volatile array — flagged as a configuration conflict but may still return fingerprint

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a SHA-256 fingerprint derived from the RFC 8785 canonical JSON of the declared identity fields, stable across key-ordering differences. Also returns a list of flags covering: missing identity fields, identity fields that are also declared volatile, identity values that heuristically resemble timestamps, epoch integers, or UUIDs, and undeclared fields that differ between the supplied request attempts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "scope": {
   "type": "string",
   "maxLength": 200,
   "description": "Mixed into the hash (for example operation name and tenant) so equal bodies in different scopes get different fingerprints."
  },
  "identity": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 300
   },
   "maxItems": 50,
   "minItems": 1,
   "description": "JSON Pointers whose values define the operation's identity."
  },
  "requests": {
   "type": "array",
   "items": {
    "description": "A request (body, or {method,url,body}) as JSON; several attempts of the same intended operation."
   },
   "maxItems": 20,
   "minItems": 1
  },
  "volatile": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 300
   },
   "maxItems": 50,
   "description": "JSON Pointers declared to change per attempt (timestamps, nonces, request ids)."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-idempotency-fingerprint-ee549a42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
