REST API

Labels API

Manage label templates, barcodes, and printing.

Generated from the Celerp 2.4.0 OpenAPI schema, 16 September 2026.

POST /api/labels/bulk-print

Bulk Print

Generate a PDF label sheet for multiple items.

Request body

FieldTypeRequiredDescription
entity_idsarray of stringyesEntity Ids
template_idstring, optional--Template Id

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X POST http://localhost:8000/api/labels/bulk-print \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

POST /api/labels/print/{entity_id}

Print Single

Generate a PDF label for a single item.

Parameters

NameInRequiredTypeDescription
entity_idpathyesstring--

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X POST http://localhost:8000/api/labels/print/:entity_id \
  -H "Authorization: Bearer $TOKEN"

GET /api/labels/templates

List Templates

Responses

StatusDescriptionBody
200Successful Responseobject

Example

curl -X GET http://localhost:8000/api/labels/templates \
  -H "Authorization: Bearer $TOKEN"

POST /api/labels/templates

Create Template

Request body

FieldTypeRequiredDescription
namestringyesName
formatstring--Format
orientationstring--Orientation
width_mmnumber, optional--Width Mm
height_mmnumber, optional--Height Mm
fieldsarray of object--Fields
copiesinteger--Copies
notesstring, optional--Notes

Responses

StatusDescriptionBody
201Successful Responseobject
422Validation ErrorHTTPValidationError

Example

curl -X POST http://localhost:8000/api/labels/templates \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

GET /api/labels/templates/{template_id}

Get Template

Parameters

NameInRequiredTypeDescription
template_idpathyesstring--

Responses

StatusDescriptionBody
200Successful Responseobject
422Validation ErrorHTTPValidationError

Example

curl -X GET http://localhost:8000/api/labels/templates/:template_id \
  -H "Authorization: Bearer $TOKEN"

PUT /api/labels/templates/{template_id}

Update Template

Parameters

NameInRequiredTypeDescription
template_idpathyesstring--

Request body

FieldTypeRequiredDescription
namestring, optional--Name
formatstring, optional--Format
orientationstring, optional--Orientation
width_mmnumber, optional--Width Mm
height_mmnumber, optional--Height Mm
fieldsarray of object, optional--Fields
copiesinteger, optional--Copies
notesstring, optional--Notes

Responses

StatusDescriptionBody
200Successful Responseobject
422Validation ErrorHTTPValidationError

Example

curl -X PUT http://localhost:8000/api/labels/templates/:template_id \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

DELETE /api/labels/templates/{template_id}

Delete Template

Parameters

NameInRequiredTypeDescription
template_idpathyesstring--

Responses

StatusDescriptionBody
204Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X DELETE http://localhost:8000/api/labels/templates/:template_id \
  -H "Authorization: Bearer $TOKEN"