---
title: "PDF Watermark API: Add Text or Image Watermarks"
slug: apply-watermark-on-pdf
url: https://apyhub.com/apyhub/service/apply-watermark-on-pdf
provider: ApyHub
categories: [Output Kit]
tags: [watermark, pdf-watermark, pdf-processing, document-stamping]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 4
atoms: 100
mcp: true
alias: pdf-stamp-watermark
---

# PDF Watermark API: Add Text or Image Watermarks

Watermark PDF files with one API call. Add text like DRAFT or a PNG logo to every page from an upload or URL, and get the PDF back. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/file/download` | What it does Uploads a PDF file, applies a watermark to it, and returns the watermarked PDF as a do… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/file/url` | What it does Uploads a PDF file and returns a URL for the watermarked PDF output. The request can i… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/url/download` | What it does Takes a publicly accessible PDF URL and applies a watermark to it, then returns the ge… | 100 |
| POST | `https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/url/url` | What it does Adds a watermark to a PDF fetched from a URL and returns the URL of the generated wate… | 100 |

## Endpoint reference

### Add watermark to PDF (file upload → download)

`POST https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/file/download` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | PDF file to watermark. |
| `output` | body | string | no | Output filename stem (without extension). Defaults to output. |
| `watermark_text` | body | string | no | Watermark text rendered on every page. At least one of watermark_text or watermark_image is required. Example: `DRAFT`. |
| `watermark_image` | body | string (binary) | no | PNG image scaled to fit each page as a watermark. |

#### Quickstart

Upload a PDF and a watermark file to generate a watermarked PDF download.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/file/download" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/file.pdf" \
  -F "watermark_image=@/path/to/watermark.png"
```

#### What you'll get back

Returns a binary file (`string` with `format: binary`) containing the generated PDF.

### Add watermark to PDF (file upload → S3 URL)

`POST https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/file/url` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes |  |
| `watermark_text` | body | string | no | Example: `DRAFT`. |
| `watermark_image` | body | string (binary) | no |  |

#### Quickstart

Upload a PDF file to generate a watermarked PDF link.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/file/url" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/document.pdf"
```

#### What you'll get back

Returns a JSON object with a `url` string field containing the watermarked PDF file URL.

```json
{
  "url": "https://s3.amazonaws.com/bucket/watermarked.pdf"
}
```

### Add watermark to PDF (URL → download)

`POST https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/url/download` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file_url` | body | string (uri) | yes | Publicly accessible PDF URL. Example: `https://assets.apyhub.com/samples/sample.pdf`. |
| `watermark_text` | body | string | no | At least one of watermark_text or watermark_image_url is required. Example: `DRAFT`. |
| `watermark_image_url` | body | string (uri) | no | Publicly accessible PNG image URL to use as the watermark. |

#### Quickstart

Download a PDF from a public URL and apply a text watermark in one call.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/url/download" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "file_url": "https://assets.apyhub.com/samples/sample.pdf",
    "watermark_text": "DRAFT"
  }'
```

#### What you'll get back

Returns the generated PDF as a binary file.

```binary
```

### Add watermark to PDF (URL → S3 URL)

`POST https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/url/url` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file_url` | body | string (uri) | yes | Example: `https://assets.apyhub.com/samples/sample.pdf`. |
| `watermark_text` | body | string | no | Example: `DRAFT`. |
| `watermark_image_url` | body | string (uri) | no |  |

#### Quickstart

Create a watermarked PDF from a public file URL.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/apply-watermark-on-pdf/url/url" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "file_url": "https://assets.apyhub.com/samples/sample.pdf",
    "watermark_text": "DRAFT"
  }'
```

#### What you'll get back

Returns a JSON object with a `url` string field — the location of the generated watermarked PDF.

```json
{
  "url": "https://s3.amazonaws.com/bucket/watermarked.pdf"
}
```

## About

## What it does
The PDF Watermark API adds a text or image watermark to every page of a PDF. Send the PDF as an upload (up to 100 MB) or as a URL, set `watermark_text` for words like "DRAFT" or "CONFIDENTIAL", or add a PNG logo as the watermark image, and get the watermarked PDF back as the file itself or as a link you can store or share.

Use it to mark drafts and internal documents, brand reports and invoices before sending them to customers, or label files with a client or company name so their origin is clear when shared. For page headers, footers, and stamps, use the [Watermark and Footers on PDF API](https://apyhub.com/apyhub/service/stamp-header-footer-on-pdf). To watermark other media, use the [Image Watermark API](https://apyhub.com/apyhub/service/apply-watermark) or the [Video Watermark API](https://apyhub.com/apyhub/service/generate-watermark-for-videos).

Pick the endpoint that fits your setup: upload endpoints when the PDF is in your app, URL endpoints when it's hosted elsewhere. You can start on ApyHub's free tier with no card required.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/apply-watermark-on-pdf
