---
title: Apply Headers and Footers on DOCX API
slug: add-header-footer-to-docx
url: https://apyverse.com/apyhub/service/add-header-footer-to-docx
provider: ApyHub
categories: [File Conversion, File Manipulation]
auth: api_key
---

# Apply Headers and Footers on DOCX API

Add headers, footers, images, or a table of contents to DOCX files. Returns a modified DOCX download or a hosted URL.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/stamp/docx/footers/file` | What it does Uploads a DOCX file and returns a modified DOCX file with header and/or footer content… | 100 |
| POST | `/stamp/docx/footers/file/url` | What it does Adds a header and/or footer to an uploaded DOCX file and returns a JSON object contain… | 100 |
| POST | `/stamp/docx/footers/url/file` | What it does Adds a header and/or footer to a DOCX file referenced by URL, then returns the updated… | 100 |
| POST | `/stamp/docx/footers/url` | What it does Adds a header and/or footer to a DOCX file provided by URL, then returns a JSON object… | 100 |

## About

## 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.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/add-header-footer-to-docx
