Chartquery

Label Preview

GET
/v1/label

Generate a thermal label preview via GET. Output: SVG (default) or PNG. Supports 9 printer languages: TSC, ZPL, EPL, ESC/POS, CPCL, DPL, SBPL, Star PRNT, IPL.

Credit cost: 3 credits per call

Query Parameters

format?string

Output format. Default: svg. Use png to get a raster image.

Default"svg"

Value in

  • "svg"
  • "png"
share?boolean

Set share=true to persist the config and receive JSON instead of an image.

Default"false"

Value in

  • "false"
  • "true"
query*string

Full label config as URL-encoded JSON.

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/label?query=string"
Empty
{  "error": "Bad Request"}
{  "error": "Internal Error"}