--- title: "Barcode Scanner" url: https://docs.catalyst.zoho.com/en/api/code-reference/zia-services/barcode-scanner/ description: "This API enables you to decode the data encoded in a barcode from an image file." last_updated: 2026-08-17T12:16:04Z service: Zia Services type: api --- # Barcode Scanner [Zia Barcode Scanner](https://docs.catalyst.zoho.com/en/zia-services/help/barcode-scanner/introduction/) enables you to scan the most commonly used linear and 2D barcode formats and decode the encoded data. Barcode Scanner can detect formats like Codabar, EAN-13, ITF, UPC-A, QR Code, and more. # Execute Barcode Scanner ### Description This API is used to decode the data encoded in a barcode from an image file. You must specify the path to the image file in the API request, as shown in the sample request. You can optionally specify the barcode format. If you don't specify it, Catalyst will automatically process the default value `all` for it. The JSON response returns the decoded data. ### Request Details #### Request URL `POST` {api-domain}/baas/v1/project/{project_id}/ml/barcode - **api-domain** (URL): The DC-specific domain to access Catalyst API - **project_id** (Numerical): The [unique ID](https://docs.catalyst.zoho.com/en/getting-started/set-up-a-catalyst-project/general-settings/) of the project #### Request Headers **Authorization:** Zoho-oauthtoken {oauth_token} **content-type:** multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW **Optional Headers** **CATALYST-ORG:** {org_id} **Environment:** Development #### Scope ZohoCatalyst.mlkit.READ #### Request JSON Properties - **file** (file, mandatory): The input file with the barcode to be scanned. Allowed formats: *.webp, .jpeg, .png*, .txt File size limit: 10 MB Resolution limit: 36000000 pixels - **format** (string, optional): The format of the barcode in the image. The format codes are specified in the table below. You must provide the path to it in your local system. Allowed formats: .webp, .jpeg, .png File size limit: 10 MB #### Barcode Format Codes
| Barcode Format | Format Code |
|---|---|
| Code 39 | `code39` |
| Code 128 | `code128` |
| Code 93 | `code93` |
| Ean 8 | `ean8` |
| Ean 13 | `ean13` |
| Codabar | `codabar` |
| ITF | `itf` |
| UPC-A | `upca` |
| UPC-E | `upce` |
| RSS | `rss` |
| QR code | `qrcode` |
| Aztec | `aztec` |
| PDF417 | `pdf417` |
| Data Matrix | `datamatrix` |
| If you don't know the format or if you don't specify it | `all` |