API Documentation

How to integrate ZPL API with Make, Zapier, or your own code.

1. Authentication

Authenticate your requests using the header x-api-key.

x-api-key: YOUR_LICENSE_KEY_HERE

2. Endpoint

POST https://html-to-zpl-api-production.up.railway.app/convert

Request Body (JSON)

{
  "html": "<h1>Hello World</h1>",  // Required. Your HTML content.
  "widthInches": 4,               // Optional. Default: 4
  "heightInches": 6               // Optional. Default: 6
}

3. Code Examples

cURL

curl -X POST https://html-to-zpl-api-production.up.railway.app/convert \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_KEY" \
  -d '{
    "html": "<div>My Label</div>",
    "widthInches": 4,
    "heightInches": 6
  }'

4. Integration with Make (Integromat)

1

Add HTTP Module

Create a new scenario and add the HTTP module. Select the action Make a request.

2

Configure the Module

URL https://html-to-zpl-api-production.up.railway.app/convert
Method POST
Headers
Name: x-api-key
Value: YOUR_LICENSE_KEY
Body Type Raw
Content Type JSON (application/json)
Request Content
{
  "html": "<div>{{1.html_content}}</div>",
  "widthInches": 4,
  "heightInches": 6
}
3

Enable Parsing

At the bottom of the module settings, verify that Parse response is checked. This is crucial to use the ZPL output in subsequent modules.