Automation library · Documents and files

Create a REST API for PDF digital signatures

Started by another system calling it. It calls services over plain HTTP rather than through connectors. 27 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

27 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 5Logic 15Service 7

The steps in the order they run, from what starts it.

  1. 1API POST EndpointWebhookStarts it
  2. 2API GET EndpointWebhookStarts it
  3. 3set file pathSetLogic
  4. 4Switch OperationSwitchLogic
  5. 5Prepare input paramsSetLogic
  6. 6Validate Key Gen ParamsCodeLogic
  7. 7Validate PDF Sign ParamsCodeLogic
  8. 8set downlowd file infoSetLogic
  9. 9Switch Upload TypeSwitchLogic
  10. 10Generate KeysCodeLogic
  11. 11Sign PDFCodeLogic
  12. 12Read download file from DiskRead Write FileService
  13. 13Validate PDF UploadCodeLogic
  14. 14Validate Key UploadCodeLogic
  15. 15check successIfLogic
  16. 16GET Respond to WebhookRespond To WebhookStarts it
  17. 17Convert PDF to FileConvert To FileService
  18. 18Convert PFX to FileConvert To FileService
  19. 19Prepare Success ResponseSetLogic
  20. 20POST Error ResponseRespond To WebhookStarts it
  21. 21Write PDF File to DiskRead Write FileService
  22. 22Write PFX File to DiskRead Write FileService
  23. 23POST Success ResponseRespond To WebhookStarts it
  24. 24Read PDF File from DiskRead Write FileService
  25. 25Read PFX File from DiskRead Write FileService
  26. 26Check PDF file is OKSetLogic
  27. 27Check PFX file is OKSetLogic

How it's built

Starts on
Another system calling it
Steps
27, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 27 steps before you point it at anything that matters.