Skip to content

With Insomnia

Create a new POST request using the following URL: https://api.doppio.sh/v1/render/pdf/direct.

Open the Authorization tab, select Bearer, and paste your token. You can find it under the API key tab in the app. It should look like this:

Insomnia bearer token example

Next, open the Body tab, select the JSON format, and paste the request body you want to send. Here's an example:

json
{
    "page": {
        "pdf": {
            "printBackground": true
        },
        "goto": {
            "url": "https://www.spacejam.com/1996/",
            "options": {
                "waitUntil": [
                    "networkidle0"
                ]
            }
        }
    }
}

In Insomnia, it should look like this:

Insomnia request body example

You're all set. Send the request to generate and download the PDF.

All rights reserved