Sign PDF
POST https://api.getdocuforge.dev/v1/pdf/sign
Add a visual digital signature annotation to a PDF document.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
pdf | string | Yes | Base64-encoded PDF document |
name | string | Yes | Signer name |
reason | string | No | Reason for signing |
location | string | No | Location of signing |
contact | string | No | Signer contact information |
page | integer | No | Page number for the signature (0-indexed) |
x | number | No | X coordinate for signature placement |
y | number | No | Y coordinate for signature placement |
width | number | No | Width of the signature box |
height | number | No | Height of the signature box |
output | string | No | "url" (default) or "base64" |
Example
Response (URL mode)
Response (base64 mode)
Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Missing signer name or PDF exceeds size limit |
| 401 | UNAUTHORIZED | Invalid or missing API key |
| 429 | RATE_LIMITED | Too many requests |
| 500 | INTERNAL_ERROR | Server error during signing |

