← All tool references

Generators · not_available

Barcode Generator

Generate an SVG Code 128-style barcode preview for text.

Open public tool

Overview

Category
Generators
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/barcode-generator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/barcode-generator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

value · string · required
Enter barcode value.
height · number · required
Enter bar height.
show_text · string · required
Enter show text. Accepted values: yes, no.
{
    "type": "object",
    "properties": {
        "value": {
            "type": "string",
            "description": "Enter barcode value."
        },
        "height": {
            "type": "number",
            "description": "Enter bar height."
        },
        "show_text": {
            "type": "string",
            "description": "Enter show text.",
            "enum": [
                "yes",
                "no"
            ]
        }
    },
    "required": [
        "value",
        "height",
        "show_text"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

svg · string
Barcode SVG produced by the tool.
encoded_characters · number
Encoded characters produced by the tool.
checksum · number
Checksum value produced by the tool.
{
    "type": "object",
    "properties": {
        "svg": {
            "type": "string",
            "description": "Barcode SVG produced by the tool."
        },
        "encoded_characters": {
            "type": "number",
            "description": "Encoded characters produced by the tool."
        },
        "checksum": {
            "type": "number",
            "description": "Checksum value produced by the tool."
        }
    },
    "additionalProperties": false
}

Barcode Generator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/barcode-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "value": "UP-PHASE6-2026",
    "height": 90,
    "show_text": "yes"
}'
{
    "ok": true,
    "data": {
        "slug": "barcode-generator",
        "result": {
            "values": {
                "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"Code 128 barcode for UP-PHASE6-2026\" viewBox=\"0 0 418 114\"><rect x=\"20\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"26\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"32\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"42\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"48\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"56\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"64\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"72\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"80\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"86\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"92\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"98\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"108\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"116\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"124\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"130\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"140\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"144\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"152\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"156\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"164\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"174\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"180\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"188\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"196\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"204\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"210\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"218\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"226\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"234\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"240\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"246\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"252\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"262\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"270\" y=\"0\" width=\"6\n…",
                "encoded_characters": 14,
                "checksum": 14
            },
            "display": {
                "display": "<svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"Code 128 barcode for UP-PHASE6-2026\" viewBox=\"0 0 418 114\"><rect x=\"20\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"26\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"32\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"42\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"48\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"56\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"64\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"72\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"80\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"86\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"92\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"98\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"108\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"116\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"124\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"130\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"140\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"144\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"152\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"156\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"164\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"174\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"180\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"188\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"196\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"204\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"210\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"218\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"226\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"234\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"240\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"246\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"252\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"262\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"270\" y=\"0\" width=\"6\n…"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.