Skip to main content

API Integration

Authentication

All API requests require authentication using an API key. Create your API key in the dashboard under API Keys section.

Quick Setup

Dashboard → API Keys → Generate New API Key → Copy for use in headers

Basic API Usage

Template PDF Generation

Endpoint: POST https://peedief.com/api/templates/by-name/{templateName}/pdf Headers:
Basic Request:
Response:

Template Context Data

Provide dynamic data to populate your template:

Template Features

  • Dynamic content: Populate templates with any JSON data
  • Nested objects: Support for complex data structures
  • Arrays: Handle lists and tables in your templates
  • Custom filename: Optional filename generation
  • Template variables: Use placeholders in your pre-designed templates

No-Code Tools Integration

Zapier Integration

1

Create New Zap

Start a new automation in Zapier
2

Add Webhook Action

Use “Webhooks by Zapier” as your action
3

Configure Action Event

Action event: POST
4

Set URL

URL: https://peedief.com/api/templates/by-name/invoice/pdf
5

Configure Payload

  • Payload Type: Json
  • Data:
    • contextJson: {"customerName": "John Doe", "amount": 100}
    • fileName: invoice.pdf
6

Add Headers

Headers:
  • x-api-key: YOUR_API_KEY

Make.com Integration

1

Add HTTP Module

Create a new scenario and add “HTTP > Make a request” module
2

Configure URL

URL: https://peedief.com/api/templates/by-name/invoice/pdf
3

Set Method

Method: POST
4

Add Header

  • Name: x-api-key
  • Value: YOUR_API_KEY
5

Configure Body

  • Body type: Raw
  • Content type: application/json
  • Request content: { "contextJson": {"customerName": "John Doe", "amount": 100}, "fileName": "invoice.pdf" }
6

Save

Save your configuration to complete the setup

Embed Previews

Use the previewUrl from the response as the src of an iframe for instant, read-only previews. The signed link shares the same expiration window as downloadUrl.

Next Steps

API Reference

Complete API endpoint documentation

Best Practices

Optimize your API usage and security