{"uid":"cap_Pqx6NKxlEGCbW-qlFofCC","slug":"agent-tools-document-extract-upload-ac2ea9f7","name":"Agent Tools – Document Extract Upload","description":"Document parsing from uploaded bytes: send a raw PDF or image (PNG/JPEG) body; returns text plus dates, amounts, totals, IDs, key-value pairs and tables.","url":"https://agent-tools.jbarkules.workers.dev/v1/document/extract/upload?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OcsWjhOMxfnUKEYOoks8K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a raw PDF or image file (PNG/JPEG) uploaded as bytes and returns extracted text, dates, amounts, totals, IDs, key-value pairs, and tables.","exampleAgentPrompt":"I'm uploading a PDF invoice directly — can you parse it and pull out all the totals, dates, line items, and any key-value pairs from the document?","exampleUseCases":[{"title":"Invoice data extraction for accounting","prompt":"I'm sending you a raw PDF of a vendor invoice — please extract all the amounts, dates, invoice ID, and line item totals from it so I can log them in our accounting system."},{"title":"Scanned receipt parsing for expense reports","prompt":"I've got a JPEG photo of a receipt from my business trip — can you pull out the total amount, date, merchant name, and any itemized entries from it?"},{"title":"Contract field extraction for CRM","prompt":"I'm uploading a signed contract PDF — please extract all the key fields like party names, dates, IDs, and any monetary figures so I can populate our CRM record."}],"resultDescription":"Returns extracted text content of the document along with structured fields including detected dates, monetary amounts, totals, reference IDs, key-value pairs, and any tables found within the PDF or image.","failureModes":["Unsupported file format (not PDF, PNG, or JPEG) returns an error","File too large may exceed worker size limits","Scanned images with very low resolution may yield incomplete or garbled text extraction","Corrupted or password-protected PDFs may fail to parse","Non-document images (e.g. photographs, diagrams) may return minimal structured output","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you have the raw bytes of a PDF or image already in memory and want to POST them directly as a body rather than providing a URL. It is the upload-based counterpart to the URL-based document extract endpoint. Prefer this for server-side pipelines where files are received as uploads, or when file URLs are not available or not stable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:32:41.005Z","isFirstParty":false,"canonicalSlug":"agent-tools-document-extract-upload-ac2ea9f7"}