HerramientasTools
Entrar Crear cuenta

Proteger un PDF con contraseña

Proteger PDF es una API que añade una contraseña a un PDF, para que solo pueda abrirse con ella. Perfecto para mandar nóminas, contratos o datos sensibles desde n8n, Make o Zapier, sin montar servidores.

Cómo funciona

Le mandas un PDF y la contraseña que quieres ponerle, y te devuelve el mismo PDF protegido: cualquier lector de PDF la pedirá antes de abrirlo. No guarda nada: se genera al momento.

Para quitar la contraseña más adelante, usa Quitar contraseña (hace falta saberla).

Lo único que necesitas

  • Tu API key. La creas en tu panel con "+ Crear llave". Se muestra una sola vez, así que cópiala y guárdala.
  • En tu plataforma de automatización, un paso de tipo "HTTP Request" / "Hacer una petición HTTP" (lo tienen n8n, Make, Zapier, Pipedream…).

Cómo usarlo en n8n (paso a paso)

Le envías tu PDF tal cual (como archivo binario) y la contraseña como parámetro. En el nodo HTTP Request:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-protect
  • Send Query Parameters: actívalo y añade password = la contraseña que quieras.
  • Send Headers: actívalo y añade dos: x-api-key = tu llave, y Content-Type = application/pdf
  • Send Body: actívalo → elige la opción para mandar un archivo binario (en n8n: "n8n Binary File", con la propiedad binaria de tu PDF, normalmente data)
  • En Options → Response → Response Format: elige File

En Make (módulo HTTP → Make a request): mismo método y URL, password en Query String, las dos cabeceras, y el PDF como dato binario en el cuerpo.

Opciones

OpciónPor defectoPara qué sirve
passwordObligatorio. La contraseña que se pedirá al abrir el PDF.

Lo que recibes

El PDF protegido directamente, listo para guardar o enviar. (En modo JSON, el PDF llega en base64.)

Protect a PDF with a password

Protect PDF is an API that adds a password to a PDF, so it can only be opened with it. Great for sending payslips, contracts or sensitive data from n8n, Make or Zapier, with no servers to maintain.

How it works

You send a PDF and the password you want to set, and get back the same PDF protected: any PDF reader will ask for it before opening. Nothing is stored: it's generated on the fly.

To remove the password later, use Remove password (you need to know it).

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).

How to use it in n8n (step by step)

You send your PDF as is (as binary data) and the password as a parameter. In the HTTP Request node:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-protect
  • Send Query Parameters: on, and add password = whatever password you want.
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/pdf
  • Send Body: on → choose the binary file option (in n8n: "n8n Binary File", with your PDF's binary property, usually data)
  • Under Options → Response → Response Format: choose File

In Make (HTTP → Make a request module): same method and URL, password in Query String, the two headers, and the PDF as binary data in the body.

Options

OptionDefaultWhat it does
passwordRequired. The password that will be asked for when opening the PDF.

What you get back

The protected PDF itself, ready to save or send. (In JSON mode, the PDF comes in base64.)