Public DPPs (anonymous)
/api/v2/public/dpps/:shortcode is the only authentication-free surface
of the v2 API. It exists so end-customers, recyclers and inspectors can scan a
QR code and read a DPP without holding a partner credential.
Published passports are not publicly searchable or browsable: there is no
public list endpoint, so a passport can only be opened by its shortcode.
This endpoint is subject to the IP-based public rate limit (60 requests per
minute, see Rate limits) but requires no Authorization header.
Show by shortcode
GET /api/v2/public/dpps/:shortcode
shortcode is the short slug printed on the QR code. Returns the DPP object
itself (no data wrapper). An unknown shortcode, or a DPP that is no longer
public, returns 404 with a problem-details body.
What is returned
The endpoint returns this DPP shape:
{
"id": "9c8…",
"name": "Acme Cell-Pack 4S",
"description": "4S lithium pack",
"internal_id": "SKU-4S-001",
"shortcode": "abc123",
"status": "published",
"created_at": "2026-04-10T09:12:00Z",
"published_at": "2026-04-15T10:00:00Z",
"image": "https://…",
"organization": { "name": "Acme Materials", "logo": "https://…" },
"template": { "name": "EV Battery v3", "industry": "automotive" },
"completeness_score": 92,
"field_values": [
{
"id": "…", "field_id": "…", "field_name": "Manufacturer", "field_type": "text",
"section_id": "…", "section_name": "Identity", "access_rights": "public",
"value": "Acme Materials", "display_value": "Acme Materials",
"verified": true, "updated_at": "2026-04-15T09:58:00Z"
}
],
"journey_steps": [
{
"id": "…", "organization_name": "Acme Cells", "activity": "Cell assembly",
"event_type": "manufacture", "event_time": "2026-04-15T08:00:00Z", "country": "NL", "…": "…"
}
],
"documents": [ { "name": "declaration.pdf", "url": "https://…" } ]
}
Field-level filtering is enforced server-side: field_values only contains
fields whose access rights resolve to publicly accessible. Partner-only and
private fields are omitted, never returned as placeholders. The organisation
appears by name and logo only.
Caching
The API does not set a public cache header. A DPP that is unpublished stops
appearing immediately (404 on show); if you proxy and cache responses, pick
a TTL you are comfortable serving stale data for.