Skip to main content
POST
/
products
/
api
/
v1
/
barcode
Generate a single 1D barcode
curl --request POST \
  --url https://www.closient.com/products/api/v1/barcode/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "gtin": "<string>",
  "barcode_type": "auto",
  "format": "svg"
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.closient.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Body

application/json

Request body for synchronous 1D barcode generation.

gtin
string
required

GTIN (8/12/13/14 digits) or AI-bracketed string for GS1-128.

barcode_type
enum<string>
default:auto

Symbology. auto picks the right family from GTIN length.

Available options:
auto,
ean13,
ean8,
jan,
upca,
upce,
itf14,
ean14,
code128,
gs1_128,
code39
format
enum<string>
default:svg

Output image format.

Available options:
svg,
png,
eps

Response

OK

The response is of type file.