For developers

Open source, on GitHub.

Open Brand Exchange is a specification with three APIs, JSON Schemas, test data and a conformance suite. The specification is the source of truth; the implementations follow it.

Terminal
$ curl https://brands.maison-noor.example/.well-known/obx
200 OK · application/json
{
  "obx_version": "0.3",
  "spec_version": "0.3.1",
  "publisher": { "name": "MAISON NOOR Group" },
  "api_base": "https://brands.maison-noor.example/obx/v1",
  "portal_url": "https://brands.maison-noor.example/",
  "capabilities": ["changes", "products", "by_gtin",
                   "renditions", "exports", "webhooks"]
}

The specification

Version 0.3. OpenAPI 3.1, JSON Schema 2020-12, examples and a fictional test brand, MAISON NOOR. Licensed CC-BY-4.0: free to implement, commercially too.

openbrandexchange/spec · Start with protocol.md ·Quickstart: OBX in 10 minutes

New in version 0.3

  • Materials and care are codes with names in English, Dutch, German and French, from shared vocabularies published at /vocabularies/v0.3/.
  • Several sustainability claims per fibre: recycled, organic, in conversion, pre-consumer, post-consumer and regenerative. In a file, for example: 100% polyester (recycled) (post_consumer).
  • Stable variant ids: by default the style number, colour and size, never the EAN, so an EAN can arrive or change later without creating a new variant.
  • Extensions: your own x-<vendor>-<name> fields are stored and returned, and an unknown field never makes a write fail.
  • New codes: the error idempotency_key_reused, and the warnings material_unknown and qualifier_deprecated. Each code has its own page under /errors/.
  • From 0.3 on, existing shapes under /obx/v1 only change by addition. Planned for 0.4: home and sport, search and filters, and better webhooks.

Full changelog · /vocabularies/v0.3/ ·/errors/

Repositories

Three APIs

APIForStatusContract
OBX Protocolretailers' software: discovery, OAuth2 client credentials, change feed, GTIN lookup, renditions, exports, webhooksnormativeobx-protocol.yaml · HTML
OBX Ingest APIa brand's automation: idempotent upserts keyed by the brand's own ids, sha256-addressed uploads, batches, importsnormativeobx-ingest.yaml · HTML
Node Admin + Portal APIthe shared admin and retailer portalnon-normativenode-admin.yaml · HTML

Try it against the demo portal

The demo portal has a public test key that can only read. Its catalog is fictional and is reset every hour, so the quickstart works right away.

Public read-only test key
obxc_demo-portal-read-only · obxs_demo-portal-read-only-public
HOST=https://obx-portal-demo.richardlindhout96.workers.dev
CLIENT_ID=obxc_demo-portal-read-only
CLIENT_SECRET=obxs_demo-portal-read-only-public
TOKEN=$(curl -s -u "$CLIENT_ID:$CLIENT_SECRET" -d grant_type=client_credentials \
  $HOST/obx/v1/oauth/token | jq -r .access_token)
curl -s -H "Authorization: Bearer $TOKEN" "$HOST/obx/v1/changes?limit=500" | jq '{phase, has_more, n: (.changes | length)}'
curl -s -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
  -d '{"gtins": ["2000100801017", "2000100101025"]}' "$HOST/obx/v1/products:by-gtin"

Open the demo portal

Reading a brand portal in a few lines

HOST=https://brands.maison-noor.example
curl -s $HOST/.well-known/obx                       # what does this brand offer?
TOKEN=$(curl -s -u "$CLIENT_ID:$CLIENT_SECRET" -d grant_type=client_credentials \
  $HOST/obx/v1/oauth/token | jq -r .access_token)
curl -s -H "Authorization: Bearer $TOKEN" "$HOST/obx/v1/changes?limit=500"   # everything, then only changes
curl -s -H "Authorization: Bearer $TOKEN" -X POST -H 'Content-Type: application/json' \
  -d '{"gtins":["2000100101025"]}' "$HOST/obx/v1/products:by-gtin"
# or let the obx tool keep a copy in a folder, only fetching what changed:
OBX_CLIENT_ID=$CLIENT_ID OBX_CLIENT_SECRET=$CLIENT_SECRET obx pull $HOST --out ./maison-noor

SDK and command-line tool

obx-go contains the Go SDK (types, a protocol client and an ingest client with deduplication, multipart uploads and batching), the obx tool for brands, obx-conformance and a mock server. In other languages any HTTP client works: the contract is in the OpenAPI files.

obx-go · obx

Conformance

An implementation is OBX-conformant for a profile when obx-conformance passes every required test of that profile. There are four profiles: protocol, ingest, portal and security. conformance.md

obx-conformance all --url http://localhost:8080 --setup-code …   # a fresh portal: setup, fixtures, every profile
obx-conformance protocol --url https://brands.maison-noor.example --client-id obxc_… --client-secret obxs_…
obx-conformance mock                                              # a mock server that passes everything

Want a quick first look? The online compatibility check tests a portal from the outside, read-only. Online compatibility check

Build it with your AI assistant

Copy a prompt into Claude, ChatGPT or Cursor, complete the part in brackets, and have the assistant write code against the specification.

Export from your system · For brands, ERP and PIM vendors: products.csv and image names.
You are helping me connect our system to Open Brand Exchange (OBX), the open standard for how brands share product photos and article data with retailers.

Read these first:
- Import format: https://github.com/openbrandexchange/spec/blob/main/docs/import-format.md
- Example data (fictional brand MAISON NOOR): https://github.com/openbrandexchange/spec/blob/main/fixtures/maison-noor/products.csv
- JSON Schemas: https://openbrandexchange.com/schemas/v0.3/
- Codes with their names (materials, qualifiers, care): https://openbrandexchange.com/vocabularies/v0.3/

Our system: [name, version, database or API, programming language].

Task:
1. Write an export that produces products.csv exactly in the OBX import format: the same columns in the same order as the MAISON NOOR example, one row per size, UTF-8.
2. Map our fields to the OBX columns. Include the fibre composition per part, the care codes and the EANs. List every OBX field we cannot fill, and every field of ours that has no place in OBX.
3. Rename or copy our product photos to the OBX naming rule {style}_{color}_{position}.jpg, for example MN-1001_NVY_1.jpg.
4. Add a test that runs the export on sample data and compares the result with the MAISON NOOR example's columns.
5. Explain how to check the result with: obx push --dry-run

Ask me for anything you need to know about our system before you write code.
Read OBX in your software · For webshop, PIM and POS vendors: the change feed and images.
You are helping me read Open Brand Exchange (OBX) in our software. OBX is the open standard for how brands share product photos and article data with retailers; every brand runs its own portal with the same API.

Read these first:
- OBX in 10 minutes: https://github.com/openbrandexchange/spec/blob/main/docs/quickstart.md
- Protocol: https://github.com/openbrandexchange/spec/blob/main/docs/protocol.md
- OpenAPI contract: https://github.com/openbrandexchange/spec/blob/main/openapi/obx-protocol.yaml

Our software: [name, programming language, where products and images are stored].

Task:
1. Discover a brand portal through /.well-known/obx and get a token with OAuth2 client credentials.
2. Read the change feed: a full snapshot first, then only the changes, including deletions. Store the cursor so a restart continues where it stopped.
3. Map OBX products, variants (by EAN) and assets to our data model, including fibre composition, care and measurements.
4. Download the image renditions we need, and keep the usage rights and embargo dates with each image.
5. Handle errors and rate limits as the protocol describes, and add tests against the mock portal: obx-conformance mock.

Ask me for anything you need to know about our software before you write code.

Implementations

RepositoryWhatLicenceStatus
specspecification, schemas, test dataCC-BY-4.00.3
obx-goGo SDK, obx tool, conformance suite, mock serverApache-2.00.3
admin-uishared web interface: admin and retailer portalApache-2.00.3
node-goPortal for your own server
Go: your own server, with a one-line installer
AGPL-3.00.3
node-phpPortal for web hosting
PHP: ordinary web hosting
AGPL-3.00.3
node-tsPortal for Cloudflare
TypeScript: Cloudflare Workers
AGPL-3.00.3

Building your own implementation or consumer? Let us know with an issue or pull request, and it goes into this table once it passes the conformance suite.

Documents

Get involved

The standard is shaped in public, and anyone can take part. You don't need to write code: if you work at a brand or a retailer, tell us what you run into, what is missing and what works.

  • Discussions

    Ask a question, share an idea or comment on a proposal for the next version. The best place to start.

    Open the discussions

  • Issues and pull requests

    For a concrete change: a mistake in the specification, a missing field, a better example. Open an issue, or propose the change yourself in a pull request.

    Open an issue

  • E-mail

    For a question you'd rather not ask in public.

    hello@openbrandexchange.com

  • Stay up to date

    Watch the spec repository on GitHub (Watch → Custom → Releases) and you'll hear about every new version.

    Watch the repository