How to integrate ZPL API with Make, Zapier, or your own code.
Authenticate your requests using the header x-api-key.
https://html-to-zpl-api-production.up.railway.app/convert
{
"html": "<h1>Hello World</h1>", // Required. Your HTML content.
"widthInches": 4, // Optional. Default: 4
"heightInches": 6 // Optional. Default: 6
}
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
}'
Create a new scenario and add the HTTP module. Select the action Make a request.
https://html-to-zpl-api-production.up.railway.app/convert
x-api-keyYOUR_LICENSE_KEY{
"html": "<div>{{1.html_content}}</div>",
"widthInches": 4,
"heightInches": 6
}
At the bottom of the module settings, verify that Parse response is checked. This is crucial to use the ZPL output in subsequent modules.