Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.peedief.com/llms.txt

Use this file to discover all available pages before exploring further.

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:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Basic Request:
{
  "contextJson": {
    "customerName": "John Doe",
    "invoiceNumber": "INV-001",
    "amount": 150.00
  },
  "fileName": "invoice-001.pdf"
}
Response:
{
  "success": true,
  "downloadUrl": "https://peedief.com/download/abc123...",
  "previewUrl": "https://peedief.com/preview/abc123...",
  "fileName": "invoice-001.pdf",
  "fileSize": 245760,
  "templateId": "tpl_abc123",
  "templateName": "invoice"
}

Template Context Data

Provide dynamic data to populate your template:
{
  "contextJson": {
    "companyName": "Acme Corp",
    "customerInfo": {
      "name": "Jane Smith",
      "email": "jane@example.com",
      "address": "123 Main St, City, State 12345"
    },
    "items": [
      {
        "description": "Product A",
        "quantity": 2,
        "price": 50.00
      },
      {
        "description": "Product B",
        "quantity": 1,
        "price": 75.00
      }
    ],
    "total": 175.00,
    "dueDate": "2024-02-15"
  },
  "fileName": "invoice-jane-smith.pdf"
}

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