API · Product passport
Product passport
Every registered product resolves to a public passport page at /01/{gtin} — a durable GS1 Digital Link address. Behind that one address, several machine-readable exports are available as siblings. All of them accept ?audience=public|customs|recycler|regulator (default public); a restricted tier needs a grant token or an owning-tenant session.
A passport is a specific published version, not a live view of the product record: publishing freezes the current data as one numbered, hash-chained version, and only a later publish changes what these exports return.
Where that version is stated depends on the export's own vocabulary. The JSON-LD exports — /01/{gtin}/jsonld, the JSON-LD embedded in the HTML passport page, the /vc credential subject, and /api/v1/products/{identifier}/dpp — carry listrar:passportVersion and listrar:publishedAt, plus, once the product has an assigned Listrar Product Passport Identifier, an identifier entry of type PropertyValue with propertyID: "LPPI". /01/{gtin}/record states the same thing in its own shape, as a publication object. The /cirpass, /epcis and /attestations exports follow their own standards and carry neither: to pin the version behind one of those, read /record or /jsonld for the same GTIN.
A GTIN whose passport was published and later withdrawn answers 410 Gone on /01/{gtin}/record and 404 on every other public export; its HTML passport page answers 200 with a short explanatory notice, marked noindex. A passport withheld from public view behaves the same, except that its machine exports answer 404 with error code withheld. An archived passport (the operator stopped maintaining it) stays fully resolvable on every export, with an "archived" banner on the HTML page; it is left out of the directory and the sitemap and marked noindex. A GTIN that was never published answers 404 everywhere.
| Path | Format | What it is |
|---|---|---|
/01/{gtin}/jsonld | Schema.org + DPP JSON-LD | The raw structured data behind the HTML passport page — what an agent or integrator wants instead of parsing HTML. |
/01/{gtin}/record | JSON | The consolidated registry record, resolvable without an API key at the passport's public audience tier, plus a publication object: version, publishedAt, contentHash, previousHash, lppi and status. |
/01/{gtin}/vc | W3C Verifiable Credential | The DPP JSON-LD wrapped in a signed credential envelope (Ed25519, did:web issuer) — verify it against the issuer's DID document. |
/01/{gtin}/epcis | EPCIS 2.0 | The product's lifecycle events as a standard EPCIS document. Location and actor identity follow the same audience gating as every other export. |
/01/{gtin}/cirpass | JSON | A CIRPASS-aligned export, for interoperability with the EU DPP Registry ecosystem. |
/01/{gtin}/attestations | Verifiable Credentials | Signed third-party attestation credentials for the product. Verify each against its issuer's did:web document. |
Verifying a credential
/vc credentials are signed by Listrar's own issuer (Ed25519, did:web). Resolve the verification key at /.well-known/did.json on the same host. /attestations credentials are signed by the third-party verifier named on each attestation; resolve each one's key at /verifiers/{operatorId}/did.json on the same host. Both are standard did:web resolution, nothing Listrar-specific beyond the two well-known locations.
Item level
A serialized item resolves at /01/{gtin}/21/{serial} (GS1 AI 21) or by batch at /01/{gtin}/10/{batch} (GS1 AI 10). These two routes are HTML pages only: each page embeds the model-level passport's JSON-LD. The serial page adds serialNumber; when a GS1 Digital Link exists, both pages set the item URL and @id. The batch page adds no batch fields. The exports above — /jsonld, /record, /vc, /epcis, /cirpass and /attestations — exist only at the model level, /01/{gtin}.