{"uid":"cap_9p8flMuh5TMT_w21sCWhJ","slug":"docforge-pdf-split-8882240e","name":"DocForge PDF Split","description":"Machine-payable document & media generation via x402 (USDC on Base). Endpoints respond 402 with payment instructions; retry with an x402 payment header.","url":"https://docforge-selim.duckdns.org/pdf-split","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":{"required":["file"],"properties":{"file":{"type":"string","description":"Base64-encoded source PDF (data: URI accepted). Max 30MB."},"pages":{"type":"array","description":"Alternative to ranges: explicit 1-indexed page numbers, e.g. [1,3,5]."},"ranges":{"type":"string","description":"1-indexed, inclusive, e.g. '1-3,5,8-10'. Each comma group becomes one output PDF. Multiple groups -> ZIP; one group -> single PDF."}}},"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":{"type":"json","example":"Binary PDF (single range) or ZIP of PDFs (multiple ranges)"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_83Zj77idWzJhPbYOC6GUG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits a PDF document into one or more page-range segments, returning a single PDF or ZIP of PDFs, paid via x402 USDC on Base.","exampleAgentPrompt":"Can you split my PDF into two parts — pages 1 through 15 as one file and pages 16 through 40 as another — and give me a ZIP with both?","exampleUseCases":null,"resultDescription":"For a single page range: a binary PDF file containing only the specified pages. For multiple ranges: a ZIP archive containing one PDF per range. Payment of $0.02 USDC on Base is required via x402 before the response is delivered.","failureModes":["402 Payment Required if x402 header is missing or payment is insufficient — retry with valid payment header","Invalid page range (out of bounds for the document) returns an error","Malformed or password-protected PDF input rejected","Network timeout on large PDF uploads","Invalid USDC payment amount or wrong chain"],"whenToPreferThis":"Use this endpoint when you need to programmatically split or extract page ranges from a PDF file in an agent workflow and are set up to pay via x402 USDC on Base. Prefer this over manual tools when automation and machine-payable micropayments are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:27:39.806Z","isFirstParty":false}