Create PDF Labels With API

CraftMyPDF supports RESTful API integration. The integration with REST API makes it easy to auto create PDF labels in your application.

Shipping labels, product labels and asset tags have to match a physical layout exactly, down to the margins and the barcode. Build the sheet once at the right size, then feed it order or inventory data for print-ready PDFs.

Design the template once in our drag-and-drop editor, then POST your JSON — your PDF labels come back with tables, images, barcodes and QR codes rendered from your data. Any language that speaks HTTP works, with no PDF library to maintain.

*No Credit-card Required!

Use CraftMyPDF Integration to Create PDF Labels With API

Three simple steps to automate your document or image generation with any programming language:

  1. Design your template once in our drag-and-drop editor — add your text, images, tables and barcodes.
  2. Send us your data and tell us which template to use — from your own app, or from Zapier or Make.com.
  3. Your finished PDF or image comes straight back, ready to store, email or print.

Automation for PDF & image generation has never been easier!

Prefer a different tool? Automate the same workflow with Make.com or Zapier.

Millions of PDFs generated for thousands of users worldwide

CraftMyPDF gives you the power to seamlessly generate PDFs and images from highly reusable templates

  • Easy to Use Drag-and-Drop Template Editor

    Design professional PDF templates visually with our easy-to-use editor. Add text, images, QR codes, barcodes, shapes, tables, charts, and more.

    more
  • Turn Existing PDFs into Fillable Templates

    AI and computer vision detect fields in your existing PDFs, identify the expected data type, and generate clear labels for easier mapping and automation.

    Video tutorial
  • Powerful Expressions & Formatting Support

    Format dates, currencies, numbers, and text with built-in expressions. Need more advanced logic? Extend your templates with custom JavaScript functions.

    more
  • Generate PDF Documents Within Your Region

    Generate and store PDFs closer to your users with regional endpoints. Available in the US, EU, Singapore, and Australia to support data residency and lower latency.

    more
  • PDF Generation & Image Generation API

    Our cloud-based API helps you to generate PDF documents or images. We support synchronously or asynchronously PDF generation scale without the costs of maintenance.

    API Reference
  • Automate with Nocode or Lowcode Platforms

    Automate document workflows with Zapier, Make, Bubble, Coda, and REST API integrations. Connect CraftMyPDF to the tools your team already uses.

    more
  • Support of Fillable Components

    Create interactive PDF forms with fillable components in the drag-and-drop editor. Add text fields, checkboxes, dropdowns, radio buttons, and signature fields with ease.

    more
  • Built with Security in Mind

    CraftMyPDF has successfully completed its SOC 2 Type II audit to support teams that need stronger security, reliability, and operational trust.

    Enterprise features

Intuitive & Advanced Template Editor

Our drag & drop editor lets you design templates in any browser and generate pixel-perfect PDF documents and images from pre-defined templates and JSON data.

Advanced Drag & Drop Template Builder

No code required! Our advanced editor allows you to easily create new PDFs by dragging and dropping the elements into your PDF templates.

You can create PDF documents easily such as invoices, reports, delivery notes that reflect your brand.

If you are still converting HTML code to PDFs and looking for an easy way to create PDF documents – Our PDF template editor does not require HTML or CSS knowledge.

Drag-and-drop template builder animation The CraftMyPDF template editor building an invoice. A logo, a customer text block bound to the data field customer.name, a line-item table bound to items, and a QR code are dragged one at a time from the component palette onto a blank page. Each element is selected as it lands and the properties panel shows its position, size and data-field binding. When all four are placed the finished template is marked saved. Invoice Template 100% Preview COMPONENTS Text Image Table QR Code Barcode Shape Chart A4 · Portrait Bill to {{ customer.name }} PROPERTIES Select an element POSITION SIZE DATA FIELD STYLE OPACITY Auto-fit Image X 12 Y 12 W 46 H 30 {{ logo_url }} Text X 83 Y 12 W 96 H 30 {{ customer.name }} Table X 12 Y 90 W 167 H 104 {{ items }} QR Code X 12 Y 216 W 34 H 34 {{ order_id }} Saved Image Text Table QR Code
Use Cases

Generate Professional PDFs for Recurring Business Workflows

CraftMyPDF helps you design reusable PDF templates and generate polished documents from JSON data using API, Make, or Zapier.

  • Contracts
  • PDF Reports
  • Sales Reports
  • Invoices
  • Packing Slips
  • Label Sheets
  • Certificates
  • Agreements
  • Purchase Orders
  • Delivery Notes
  • Payslips
  • Coupons
  • Credit Notes
  • Dispatch Labels
  • Shipping Labels
CraftMyPDF packing slip template preview

Easy Integrations

Call the PDF Generation API and Image Generation API from the tools your team already runs — Zapier, Make.com, n8n, Bubble.io and more — with no glue code to maintain.

Automate your PDF workflow with no-code platforms or the REST API

One template, one JSON payload. Send data from a Zapier zap, a Make.com scenario, an n8n workflow or your own backend — every integration calls the same endpoint.

Run it synchronously for on-screen downloads or asynchronously for batches, with request data and generated files kept in your chosen region: US, EU, Singapore or Australia.

Browse all integrations
curl -X POST \
  --header "Content-Type: application/json"  \
  --header 'X-API-KEY: 7832MjA6MTE6UjlkM3h4emxpTExzeFR0aQ=' \
  --data '{"template_id": "05f77b2b18ad809a", "export_type":"json", "expiration": 10, "output_file":"my_new.pdf", "data":  "{ \"invoice_number\": \"INV38379\", \"date\": \"2021-09-30\",  \"currency\": \"USD\", \"total_amount\": 82542.56   }", "output_file": "output.pdf"}' \
  "https://api.craftmypdf.com/v1/create"

Native integrations, plus a REST API for everything else.

Customer Reviews

Trusted by individual developers and businesses, we have generated over 10 millions of high-quality PDFs!

See what our customers have to say about us

Frequently Asked Questions

How do you create labels with the API?

Set up the template once at the exact size of your label paper, with the margins, barcode and text where the printer needs them. After that, every order or stock item is one API call. Your system sends the address, SKU or asset number and gets back a PDF that is ready to print. The layout stays the same every time because nobody is rebuilding it by hand.

Can the label have a barcode or QR code?

Yes. Add a barcode or QR block to the template and tell it which field to read. Every label then comes out with its own code, so the tracking number, SKU or asset ID scans straight off the print.

We print hundreds of labels at once when orders go out. Will that work?

Yes. Send the whole batch at once and the PDFs are made in the background while your system carries on. Pick up the files when they are ready. If your order list is in a spreadsheet, the free PDF tools include a shipping label maker, an address label maker and a bulk generator that makes one PDF per row, which is a simple way to test before writing any code.

Does the label have to be separate from the packing slip?

No. The same order data can fill two templates, so the label and the packing slip come from one call. A packing slip made from the receipt template, for example, uses the same order lines as the label.

Who uses this?

Logistics teams for dispatch labels, online shops for shipping and returns, manufacturers for product and asset tags, and facilities teams for equipment labels. The industries pages show the usual documents and workflow for each. If your warehouse system needs the PDFs saved straight into your own S3 storage, that is covered under enterprise features.

How many labels can I make on the free plan?

50 PDFs a month, no credit card needed. One PDF uses one credit no matter how many labels are on the sheet. That is enough to line up the template with your label paper and run a few test prints. For everything else the editor and API can do, including barcodes and expressions, see features.

Start generating PDFs in minutes

Design templates in your browser and generate pixel-perfect PDFs through a simple REST API or your favourite no-code platform.

*No Credit-card Required!