# decryptpdf: Decrypt a PDF

> decryptpdf (Decrypt a PDF) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/decryptpdf, 3 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Decrypts the provided PDF with the given password. The password must not be empty.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/decryptpdf`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make and n8n
- Docs: https://1001fx.com/functions/decryptpdf

## Parameters

- `password` (string, required) – Password: A string containing the secret password which will be further used to unlock the pdf.
- `file` (file, required) – PDF file: Encrypted PDF file.

## Example: Pdf file to be decrypted

```bash
curl -X POST 'https://api.1001fx.com/files/decryptpdf' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file=@encrypted-secret.pdf' \
  -F 'password=secret'
```
