retrieve inpost shipx shipment labels in pdf zpl or epl format
domain: developers.inpost-group.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Authenticate with an OAuth 2.1 access token scoped to api:shipments:read.
Call GET /shipping/v2/organizations/{organizationId}/shipments/{trackingNumber}/label.
Set the Accept header to the desired label type: application/pdf;format=A4|A6 for print-ready PDFs, text/zpl;dpi=203|300 for Zebra printers, or text/epl2;dpi=203 for Poland-only domestic EPL.
For programmatic handling instead of a raw file, request the +json variant (e.g. application/pdf+json;format=A4) to get a JSON envelope containing a Base64-encoded label.
Decode the Base64 string (e.g. Buffer.from(label, 'base64') in Node) and write it to disk or stream it to a printer depending on format.
Known gotchas
A4 PDFs are rendered as quarter-page layouts, not full-page labels — plan print/cut workflow accordingly.
EPL is only available for domestic Polish shipments; DPL is in a pilot phase for select Poland domestic services only — don't assume either works for international or UK shipments.
The response shape (binary vs. JSON+Base64) is controlled entirely by the Accept header, not a query parameter — sending the wrong Accept value silently changes the response format.
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?