Zapier allows you to connect refile with thousands of the most popular apps, so you can automate your work and have more time for what matters most—no code required.

You’ll need a paid Zapier plan to make requests to refile.

Getting Started with Zapier

  1. Sign up for refile to get your API key
  2. Sign up for Zapier if you don’t already have an account
  3. Create a new Zap and search for “Webhooks by Zapier” as your trigger or action

Using Webhooks with refile

You can use Zapier’s Webhooks to make API calls to refile. Here’s how to set it up:

  1. Choose “Webhooks by Zapier” as your action
  2. Select “Custom Request” as the action event
  3. Configure your webhook with the following settings:
    • Method: POST
    • URL: https://www.refile.co/api/v1/pdf/markdown
    • Headers: Add an “Authorization” header with value Bearer <your-api-key>
    • Data: Format your request body as JSON with the required parameters

Example Zap Configuration

When setting up your Webhook action in Zapier:

  • URL: https://www.refile.co/api/v1/pdf/markdown
  • Method: POST
  • Headers:
    {
      "Authorization": "Bearer your_api_key_here",
      "Content-Type": "application/json"
    }
    
  • Data:
    {
      "markdown": "# My Generated Document\n\nThis content was created via Zapier!",
      "theme": "modern",
      "output": "url"
    }
    

The response from refile will include a URL to your generated PDF, which you can use in subsequent steps of your Zap.