{"uid":"cap_E8I0db7Iu1vcJzNubP6l7","slug":"writerslogic-footnote-attachment-58f68675","name":"WritersLogic Footnote Attachment","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/footnote-attach?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_B03b3Xt3ylKP7sUhP_HVm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Academic paper footnote audit","prompt":"I've extracted all the footnote markers and note blocks from a 40-page academic paper. Here are the marker positions with labels like '1', '2', '*' and their page and x/y coords, and here are the note texts with matching labels and coordinates. Please pair them up, flag any orphans or unattached markers, and note any cases where a note appears above its marker. The PDF uses a downward y-axis."},{"title":"Legal document footnote validation","prompt":"I'm processing a legal brief and I've pulled out all the footnote markers and footnote texts with their labels, page numbers, and coordinates. Some footnote labels repeat across sections. Can you match each marker to its note, handle any repeated labels by reading order, and report ambiguous groups or misplacements? Allow notes to continue onto the next page, and the y-axis goes down."},{"title":"Publisher typesetting QA check","prompt":"Before we finalize this book layout, I need to verify the footnote structure. I have a list of markers with labels like 'a', 'b', 'c' and their page and position data, plus a list of footnote texts with the same kind of metadata. Can you pair them up, tell me if any markers are unattached or any notes are orphaned, and flag anything placed incorrectly? Y-axis is upward (PDF user space)."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:40:53.609Z","isFirstParty":false,"canonicalSlug":"writerslogic-footnote-attachment-58f68675"}