---
title: Barcode Generator
slug: generate-barcode
url: https://apyverse.com/apyhub/service/generate-barcode
provider: ApyHub
categories: [E-commerce Quick Tools, Image Processing]
tags: [barcode, code128, label-generation, image-generation, inventory]
auth: api_key
---

# Barcode Generator

Generate Code128 barcodes from a text string. Download a binary file or get a pre-signed JPEG URL for labels, inventory, and tracking IDs.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/generate/barcode/file` | What it does Generates a Code128 barcode from the provided text and returns the file as binary outp… | 10 |
| POST | `/generate/barcode/url` | What it does Generates a Code128 barcode from the provided text content and returns a pre-signed cl… | 10 |

## About

## 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.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/generate-barcode
