# WritersLogic Footnote Attachment

> WritersLogic Footnote Attachment 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).

Pairs footnote markers with their corresponding footnote texts in laid-out documents using coordinates and labels, and reports attachment issues like orphans, ambiguities, and misplacements.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/footnote-attach?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-footnote-attachment-58f68675
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E8I0db7Iu1vcJzNubP6l7

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-footnote-attachment-58f68675 -d '<json body>'
```

Example prompt: I've extracted all the footnote markers and footnote texts from a laid-out PDF — here are the markers with their labels, page numbers, and x/y coordinates, and here are the notes with their labels, page numbers, coordinates, and text. Can you pair each marker with its matching note, flag any orphans or unattached markers, and let me know if any notes appear above their marker on the same page? The y-axis increases downward.

## When to prefer this

Use this endpoint when you have already extracted footnote markers and note texts from a document layout tool (like PDF.js or a PDF parser) and need to correctly associate them — especially for documents with repeated labels, multi-page footnotes, or complex layouts. It is the right choice when you need deterministic, rule-based pairing rather than AI guessing, and when you need explicit reporting of structural footnote problems (orphans, ambiguities, misplacements) for QA pipelines. It does not read PDFs directly — use it after extraction.

## Known failure modes

- Mismatched label formats between markers and notes (e.g. '1' vs '1.' ) cause pairing failures
- Ambiguous groups are reported but not resolved — caller must supply corrected data
- Notes on a third or later page relative to their marker are not matched unless allowNextPage is set
- Coordinates outside the valid range (-1,000,000 to 1,000,000) are rejected
- Input arrays exceeding 500 items are rejected
- Missing required fields (label, page, x, y) on any item cause a validation error
- Wrong yAxis setting causes above-marker detection to report false positives/negatives

## 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 structured result with matched marker-note pairs (each containing the marker and its attached note), a list of unattached markers (markers with no matching note), a list of orphan notes (notes with no matching marker), ambiguous label groups (where marker and note counts differ for the same label on a page), and misplaced notes (notes positioned above their marker on the same page).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "notes": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "label",
     "page",
     "x",
     "y",
     "text"
    ],
    "properties": {
     "x": {
      "type": "number",
      "maximum": 1000000,
      "minimum": -1000000
     },
     "y": {
      "type": "number",
      "maximum": 1000000,
      "minimum": -1000000
     },
     "page": {
      "type": "integer",
      "maximum": 100000,
      "minimum": 1
     },
     "text": {
      "type": "string",
      "maxLength": 5000
     },
     "label": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1,
      "description": "Label as printed in the note."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500
  },
  "yAxis": {
   "enum": [
    "down",
    "up"
   ],
   "type": "string",
   "description": "Direction of increasing y: down (PDF.js, screen) or up (PDF user space). Default down."
  },
  "markers": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "label",
     "page",
     "x",
     "y"
    ],
    "properties": {
     "x": {
      "type": "number",
      "maximum": 1000000,
      "minimum": -1000000
     },
     "y": {
      "type": "number",
      "maximum": 1000000,
      "minimum": -1000000
     },
     "page": {
      "type": "integer",
      "maximum": 100000,
      "minimum": 1
     },
     "text": {
      "type": "string",
      "maxLength": 200,
      "description": "Context around the marker, echoed back."
     },
     "label": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1,
      "description": "Marker as printed: 1, *, a."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500
  },
  "allowNextPage": {
   "type": "boolean",
   "description": "A note may sit on the page after its marker. Default false."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-footnote-attachment-58f68675/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)
