apyhub
E-COMMERCE QUICK TOOLS · IMAGE PROCESSING

Barcode Generator

What it does

Barcode Generator turns plain text into a Code128 barcode. Send the content string in the request body, and use the output query parameter when you want to name the generated file.

Use POST /download when you need the barcode as a binary file you can store, attach, or pass into another pipeline. Use POST /link when you want a pre-signed cloud storage URL instead; the response returns a single data field containing the JPEG location.

This is a fit for order labels, inventory workflows, shipping documents, and any system that needs a machine-readable barcode from an identifier such as a SKU, ticket number, or tracking code. Keep the input simple: Barcode Generator only encodes the text you provide, and the service returns the generated barcode image in the form you requested.

▣ ENDPOINT 01 / 02
POST
Generate barcode — download file
https://api.eu.apyverse.com/apyhub/generate-barcode/download

QUICKSTART

GUIDE

Quickstart

Create a Code128 barcode from a text string and download the generated file.

curl -X POST "https://api.eu.apyverse.com/apyhub/generate-barcode/download" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"1234567890"}'

What you'll get back

Returns a binary file (string with format: "binary"), which is the generated barcode image.

(binary download)
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Text to encode as a Code128 barcode.

About this endpoint

What it does

Generates a Code128 barcode from the provided text and returns the file as binary output. The request body supplies the barcode content, and the output query parameter can be used to indicate the output name.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput name for the generated barcode file.

Request Body

ParameterTypeMandatoryDescription
contentStringYesText to encode as a Code128 barcode.

Response

Returns a binary file response. The output schema is a single binary string, so there is no JSON object wrapper or named JSON fields in the success payload.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.