---
title: "Validate barcodes"
method: POST
path: "/registries/{registry_id}:validate-barcodes"
tags: ["inventory"]
---

# Validate barcodes

`POST /registries/{registry_id}:validate-barcodes`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2`
- URL: `https://{tenant_name}.benchling.com/api/v2/registries/{registry_id}:validate-barcodes`
- Auth: HTTP bearer

Validate barcodes on inventory objects.

## Path parameters

- `registry_id` string, required

## Request body

- BarcodesList
  - `barcodes` string[], required: Array of barcodes to validate.

## Response `200`

OK

- BarcodeValidationResults
  - `validationResults` BarcodeValidationResult[]
    - `barcode` string: Barcode to validate.
    - `isValid` boolean: Whether the barcode is valid.
    - `message` string, nullable: If barcode is not valid, a message string explaining the error.

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/benchling/apis/benchling-api-2.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api-2/revisions/01d2fa8523cd?raw)
