Authentication

Please generate a API Key in the application to use the API. These API Key are used to authenticate the requests to the API and should be appended to the request header as Authorization: Bearer <API Key>.

SDK

We have a SDK for Typescript/javascript for now and its the most recommended way to use the API. It is a library that wraps the API and provides a simple interface to use the API. Its also type-safe and can save your time on tinkering.
import { SudoPdf } from "@sudopdf/sdk";

const sudoPdf = new SudoPdf({
  apiKey: "your-api-key",
});

const pdf = await sudoPdf.generatePdf({
  templateId: "your-template-id",
  data: {
    name: "John Doe",
    email: "john.doe@example.com",
  },
  async: true,
  filename: "your-filename.pdf",
  webhook: "https://your-webhook-url",
  webhookSecret: "your-webhook-secret",

});
Please contact us at sales@sudopdf.com for SDK on your favorite language on request and future commitment.

API

We offer two main API endpoints to generate PDF. One for geeneration of PDF and another to bulk pdf generation.