PDFPi API
  • Home
  • Playground
  • Drive Setup
Setup Locked
🔒

Google Drive Already Configured

The setup has been completed and is now locked. To reconfigure, delete the config file on the server and restart.

Google Drive Setup

Connect your Google Drive to automatically save generated PDFs. Follow the steps below to complete the one-time setup.

Quick Setup Guide

Create a Google Cloud Project

Go to Google Cloud Console, create a new project (or select an existing one).

Enable the Google Drive API

In the Cloud Console go to APIs & Services → Library, search for Google Drive API and click Enable.

Create a Service Account & Download Key

Go to APIs & Services → Credentials → Create Credentials → Service account. After creating, open the account, go to the Keys tab → Add Key → JSON. A .json file will download.

Create a Shared Drive & Folder

Important: Service accounts cannot store files in regular "My Drive" folders (no storage quota). You must use a Shared Drive.

In Google Drive, go to Shared drives (left sidebar) → create or select one. Create a folder inside. Click Manage members on the Shared Drive → paste the service account email (from Step 3) → set role to Content manager. Open the folder and copy the Folder ID from the URL.

URL format: https://drive.google.com/drive/folders/FOLDER_ID

Complete the Form Below

Upload/paste the JSON key and enter the folder ID, then test and save.

Configuration
📂

Drag & drop the .json key file here, or click to browse

Or paste the JSON content below
Drive Folder
The folder ID from https://drive.google.com/drive/folders/FOLDER_ID — must be inside a Shared Drive

PDFPi – Web-to-PDF API  ·  MIT License  ·  Built with Express & Puppeteer