{"name":"PDF.xhub API","description":"REST API for rendering PDF documents from reusable templates and attaching files to existing PDFs. Send a block-based template plus a JSON data object and get back a finished PDF.","url":"/","provider":{"organization":"xhub.io","url":"https://xhub.io"},"version":"1.0.0","documentationUrl":"/docs","capabilities":{"streaming":false,"pushNotifications":false,"stateTransitionHistory":false},"authentication":{"schemes":["bearer"],"credentials":"API Key (sk_live_* or sk_test_*)"},"defaultInputModes":["application/json"],"defaultOutputModes":["application/json","application/pdf"],"skills":[{"id":"generate-pdf","name":"Generate a PDF from a template","description":"Render a PDF document by merging a JSON data object into a block-based template. Reference a stored template by id or post an inline template. Returns the binary PDF.","tags":["pdf","render","template","document","report"],"examples":["Generate a monthly report PDF from my report template and this data","Render a confirmation letter PDF from an inline template","Create a PDF from template 00000000-0000-4000-a003-000000000001 with this data"],"inputModes":["application/json"],"outputModes":["application/pdf","application/json"]},{"id":"attach-files-to-pdf","name":"Attach files to a PDF","description":"Embed one or more files as attachments into an existing PDF without re-rendering it. Preserves PDF/A-3 conformance when the carrier is already PDF/A-3.","tags":["pdf","attachment","embed","pdf/a-3"],"examples":["Attach this CSV to my PDF","Embed the source XML into this PDF report","Add a supporting document to a generated PDF"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"inspect-pdf-form-fields","name":"List the form fields of a PDF","description":"Inspect the fillable AcroForm fields of a PDF and return their names, types, options, and required/read-only flags — so you know which keys to send when filling it.","tags":["pdf","form","acroform","inspect","fields"],"examples":["What fields can I fill in this PDF?","List the form fields of this application form","Show me the AcroForm schema of this document"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"fill-pdf-form","name":"Fill the form fields of a PDF","description":"Fill the AcroForm fields of a PDF from a map of field name → value and return the resulting PDF. Optionally flatten the form so the values are baked in and no longer editable.","tags":["pdf","form","acroform","fill","flatten"],"examples":["Fill this PDF form with these values","Fill and flatten this application form","Set the name and date fields in this PDF and lock them"],"inputModes":["application/json"],"outputModes":["application/pdf","application/json"]}]}