Back to all steps

Save page as PDF and send

Step fields
webhook endpoint (webhook)
Save the current page as PDF and send it to a webhook (Chromium only).
The endpoint is picked from your webhooks (Profile → API tokens → Webhooks) - the address is no longer typed into the step. The server sends it: the request is signed, retried if the endpoint is down, and every delivery shows up in the webhook log. The step never fails the test.
Usage example

Save the page as a PDF and send a POST to your URL.

Example: https://myapi.com/save-pdf

POST request: the PDF arrives in the pdf field in base64 format.

Receiving example (PHP):

  • $pdfBinary = base64_decode($_POST["pdf"]);
  • file_put_contents("report.pdf", $pdfBinary);

Limitation: works only in Chromium.