Skip to main content

Scan Barcode

Applies to: v3 (Turso)
Method
GET
Auth
JWT (user)
Effect
Lookup barcode via whitelist
Response
{ id, isBoycott }
Componentv3
Entry endpointn/a
Primary storeDirectus
Exact barcode lookupn/a
External enrichmentn/a
AuthAPI key for admin tools

System Context

Sequence

Scan Flow

The API validates the barcode, checks the whitelist tables for a match, and asynchronously enriches via external providers (Go-UPC, Open Food Facts). Returns { id, isBoycott } or 404.

See also

Quickstart (v3)

curl -H "Authorization: Bearer <JWT>" \
https://nothanks-api.bashsquare.com/v3/users/<device_id>/scan/4800361005500

Response:

{ "id": 42, "isBoycott": true }