> ## Documentation Index
> Fetch the complete documentation index at: https://print.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Automation: How to send completed PDF/JPEG/PNG files to your printer

### About Webhooks

The Webhooks enables you to easily integrate and connect the Print.App platform to your outside platforms. For instance, you may want to send the PDF file of a project directly to your printer, or save all your user's uploaded pictures in your DropBox or Google Drive.

A Webhook makes this possible by invoking your specified external URL whenever an even happens on the Print.App platform along with the details of such an event for further actions.

At the moment, we can notify you when:

* **A new project is created, i.e when your customer completes a design.**
* **A file is uploaded by your customer.**

You can utilize the new-project Webhook to send the completed PDF/JPEG/PNG files to your print service provider.

### Setting up a Webhook

To get started, navigate to the [settings page in your Print.App admin](https://admin.print.app/settings)
and click the Webhooks tab.

We need a service URL to send that notification to, for that service to get the file and save in a Google Drive.

For this, we can use [Zapier](https://zapier.com), a service that connects different apps and services together. We will create a Zap that listens to the Webhook notification and saves the file in your Google Drive.

<Steps>
  <Step title="Start">
    Register or login to Zapier and click the Make a Zap button on the top left hand corner.
    A Zap is simply a workflow link you create between apps on Zapier.
    [You can read more here](https://zapier.com/help/what-is-zapier/)

    <img width="320" class="rounded" src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-add.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=b6af92580895401f68e16066dbb9b428" data-path="images/zap-add.png" />
  </Step>

  <Step title="Add a Trigger">
    That should take you to the Zap creation dashboard.
    Click the Trigger button

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-trigger.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=92feb44469f51002013b1d32c4edbcc3" alt="Zap Trigger" width="1134" height="222" data-path="images/zap-trigger.png" />
  </Step>

  <Step title="Select a Trigger">
    A window should popup, type in **Webhook**
    And select the **Webhooks by Zapier** option

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-select.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=c884159e0f52db0a0ae3f7bd52b340a8" alt="Zap Trigger select" width="1768" height="1192" data-path="images/zap-select.png" />
  </Step>

  <Step title="Trigger Hook">
    On the right panel, click the Event and select **Catch Hook** option

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-hook.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=00453ef6112ac71126e4184f45c7ee21" alt="Zap Trigger hook" width="1102" height="1158" data-path="images/zap-hook.png" />
  </Step>

  <Step title="Obtain Trigger URL">
    Click next twice to arrive on the Test tab.
    This should give you a URL to send the file to. Copy this URL

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-test.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=2761f6d0751ec77c93ed9d49bf437031" alt="Zap Trigger test" width="1070" height="1518" data-path="images/zap-test.png" />
  </Step>

  <Step title="Add URL to Print.App settings">
    Open a new Tab and navigate to [Print.App Settings](https://admin.print.app/settings)
    Click the Webhooks Tab and paste the URL copied from the prior step and save

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-settings.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=960449be1aa5699b0259eebc545fda70" alt="Zap setting" width="1588" height="678" data-path="images/zap-settings.png" />
  </Step>

  <Step title="Test Trigger">
    On the Zapier page, click on the **Test trigger** button. Then quickly create a new customization / project on your store and save. Check the Zapier page, you should see a record from Print.App

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-record.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=11945fea2c4e99a1282d20133d6488ba" alt="Zap Record" width="1096" height="1526" data-path="images/zap-record.png" />
  </Step>

  <Step title="Action">
    Click the Continue with record to choose an Action.<br />
    An Action is what happens after the Trigger event and for this, we will select Google Drive. You can opt for any other service you want to save the file to or even send as an email.

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-drive.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=00a92277181108ff383c0a3a14996655" alt="Zap Google Drive" width="1770" height="1606" data-path="images/zap-drive.png" />
  </Step>

  <Step title="Google Drive Event">
    Select **Upload File** from the event list

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-drive-event.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=7194699150cebe86e0f4e23cfbcf2e2f" alt="Zap Drive Event" width="1108" height="1524" data-path="images/zap-drive-event.png" />
  </Step>

  <Step title="Select File to Upload">
    Give Zapier permission to access your Google Drive account and click Next.
    Under action, scroll to the **File section** to pick which file you want to upload from the Print.App notification.
    Select the PDF file from the Print.App notification.

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-drive-file.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=ef161957de56e03835d937eab17c872b" alt="Zap Drive Event" width="1072" height="1520" data-path="images/zap-drive-file.png" />
  </Step>

  <Step title="File Saved">
    Click the Test Step and Zapier should send the newly created PDF file to your Google Drive. You can check your Google Drive to confirm.

    <img src="https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/zap-final.png?fit=max&auto=format&n=N56SlrciPbc3x4L4&q=85&s=9e408925732613a2ea0e9b80c8e12497" alt="Zap Drive" width="1100" height="1520" data-path="images/zap-final.png" />
  </Step>

  <Step title="Save and Publish">
    Publish your Zap to save it.
  </Step>
</Steps>
