# WritersLogic Citation Span Verifier

> WritersLogic Citation Span Verifier 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).

Locates quoted text within a source document and returns precise character offsets across multiple encoding schemes, categorizing each quote as exact, normalized-match, elided, probable paraphrase, or not-present.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/citation-span?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-citation-span-verifier-a93794f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DaVKZS2ssbz6fq-uW12L0

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-citation-span-verifier-a93794f0 -d '<json body>'
```

Example prompt: Check whether the quote 'the quick brown fox jumps over the lazy dog' actually appears in the article I pasted, and if it's not an exact match tell me what normalizations were needed and where in the text the closest span is.

## When to prefer this

Use this endpoint when you need deterministic, encoding-precise proof of where a quoted string sits within a source document — especially when downstream systems need character-level offsets (e.g. UI highlighting, span extraction, diff tools). It is preferable over fuzzy text search when you need explicit normalization reporting, over manual review when auditing large volumes of AI-attributed quotes, and over LLM-based fact-checkers when you need verifiable, reproducible results rather than probabilistic judgments.

## Known failure modes

- Total quote text exceeds 40,000 characters — request rejected
- Source text exceeds 100,000 characters — request rejected
- More than 50 quotes submitted — request rejected
- Quote shorter than minLength after trimming — returns 'unknown' status
- No quote text provided (minLength 1 violation) — validation error
- Payment not received or insufficient USDC — 402 response

## How this service works

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

## Output

For each submitted quote, the endpoint returns its match status (exact, normalized, elided, paraphrase, or not-present), the precise start and end positions in UTF-16, Unicode code points, UTF-8 bytes, and grapheme units, plus a list of normalizations that were applied (e.g. whitespace, quotes, dashes, unicode). Paraphrases include the nearest matching span but are explicitly not counted as matches.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "quotes": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "text"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 100,
      "description": "Echoed back."
     },
     "text": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "description": "The quoted text."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50,
   "minItems": 1,
   "description": "Up to 50 quotes, 40000 characters in total."
  },
  "source": {
   "type": "string",
   "maxLength": 100000,
   "minLength": 1,
   "description": "Text the quotes are claimed to come from."
  },
  "tolerate": {
   "type": "array",
   "items": {
    "enum": [
     "whitespace",
     "quotes",
     "dashes",
     "ellipsis",
     "invisible",
     "unicode"
    ],
    "type": "string"
   },
   "maxItems": 6,
   "description": "Normalizations that still count as a match. Default: all six."
  },
  "exactOnly": {
   "type": "boolean",
   "description": "Count only byte-identical matches as pass; normalized matches become fail. Default false."
  },
  "minLength": {
   "type": "integer",
   "maximum": 200,
   "minimum": 1,
   "description": "Quotes shorter than this many characters (after trimming quote marks) are too-short and give unknown. Default 8."
  },
  "ignoreCase": {
   "type": "boolean",
   "description": "Also tolerate case differences (reported as a normalization). Default false."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-citation-span-verifier-a93794f0/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)
