API Reference

Interactive OpenAPI references for the GS1 Digital Link Resolver and the EPCIS 2.0 REST bindings.

3 min read

API Reference

Both platform APIs publish an OpenAPI 3.1 document, and both are rendered here in full: every operation and every schema, each operation with a request builder next to it.

GS1 Digital Link Resolver

Resolve GS1 keys to linked resources, and manage the master data, link sets and identifiers behind them. 169 operations across 34 groups, every one of them described.

EPCIS 2.0 REST Bindings

Capture and query EPCIS events, subscriptions and top-level resources, per the GS1 EPCIS 2.0 REST bindings. 78 operations.

What these documents are

Both documents are snapshots, taken from the running services when this site was built and committed alongside the code. A committed snapshot builds offline, shows up in a diff when it changes and carries the date it was taken. A reference fetched live from the API would always be current, but it would go dark whenever the API did, depend on cross-origin permissions and leave every pre-rendered page empty.

A snapshot can lag behind the services. To bound that lag, a CI job re-fetches both documents on every change and fails when the committed copies no longer match the live services, so the lag is bounded by how often the site is built.

Authenticating

Both APIs expect a bearer token, a JWT in the Authorization header. The reference's Authentication panel takes one and keeps it in your browser for the rest of your visit, so you can try several endpoints without fetching it again.

Anonymous reads need no token, because resolution and public master data are open by design.

A token for right now

When you sign in to Digital Data Management, your session already carries a token, and GET /me/tokens on the EPCIS API returns the tokens the current session holds. Session tokens are short-lived, which suits interactive exploration and makes them unsuitable for a running integration.

A token that keeps working

An integration that runs unattended, such as a connector or a nightly job, needs an offline token. Open this address in a browser, signed in as the person the token will belong to:

https://id.epc.is/connector-tokens/authorize

The link takes you to the login and consent screen at auth.epc.is, and the exchange is protected with PKCE. The offline_access scope makes the resulting token an offline one, which keeps working after your session ends.

The token is shown exactly once, with a copy button, on the page you land on. Nothing is stored on our side, so if you lose the token you have to run the flow again. Give it a name with the optional ?name= parameter: an offline token has no expiry date to tell it apart by, and the label shows later which integration holds which token. When the integration is retired, revoke the token from /connector-tokens or from the identity provider's own account console. A revoked token stops refreshing immediately.

About API keys

The EPCIS API also accepts an API-KEY header, which you will find among the security schemes. We recommend bearer tokens: a bearer token carries the tenant and role claims the rest of the platform works with, and the offline flow above gives you one that lasts. The Digital Link Resolver accepts no API key at all.

Last updated: