apyhub
FILE CONVERSION · FILE MANIPULATION

Apply Headers and Footers on DOCX API

What it does

DOCX Header Footer adds headers, footers, and an optional table of contents to a DOCX file, then returns the modified document as a download or a hosted URL.

Send a DOCX file and choose whether to supply header text, footer text, a header image, a footer image, or a table of contents. You can also set header and footer alignment to left, center, or right. The service supports both file uploads and publicly accessible DOCX and PNG URLs, so you can work with local documents or documents already stored online.

Use DOCX Header Footer when you need to stamp generated reports with CONFIDENTIAL, add page numbers in the footer, brand a document with logos, or prepare a structured proposal with a table of contents at the front. The input is a DOCX file or URL plus the header and footer settings; the output is either a binary DOCX download or a JSON response containing a url.

It is a good fit for document automation pipelines that need consistent formatting across batches of reports, contracts, or internal handbooks without opening Word manually.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.