Référence de l'API
L'API REST de QRabl, version 1. Les points de terminaison ci-dessous proviennent directement de notre spécification OpenAPI.
Les bases
- URL de base. Tous les points de terminaison se trouvent sous
https://qrabl.eu/api/v1. - Authentification. Envoyez votre clé API dans l'en-tête
Authorizationcomme jeton Bearer :Authorization: Bearer qdl_…. Une clé absente ou invalide reçoit401. Une clé qui n'a pas le droit requis par un point de terminaison reçoit403. - Clés API. Les propriétaires et administrateurs d'un espace de travail créent des clés dans le tableau de bord, sous Paramètres → Clés API, à partir du forfait Professional. Chaque clé appartient à un seul espace de travail et porte le droit
read,writeouadmin. La clé complète n'est affichée qu'une seule fois, et nous n'en stockons qu'un hachage. Un espace de travail peut avoir jusqu'à 10 clés actives, et vous pouvez révoquer une clé à tout moment. - Données publiques. La lecture d'un passeport publié ou du statut de rappel d'un produit ne nécessite aucune clé. Ces données sont publiques par conception.
- JSON. Les requêtes et les réponses sont en JSON. Les points de terminaison du passeport renvoient du JSON-LD par défaut. Les erreurs sont renvoyées en JSON, sous la forme standard
{ "error": { "code": "…", "message": "…" } }. - Pagination. Les points de terminaison de liste acceptent
limit(de 1 à 100, 20 par défaut) etoffset. - Limites de débit. Chaque clé API peut faire un nombre fixe de requêtes par minute, selon le forfait de son espace de travail : Free 60, Starter 300, Professional 1 000, Track & Trace 1 000, Enterprise sur mesure. Les clés ne partagent pas de compteur. Chaque réponse à une requête faite avec une clé API porte les en-têtes
X-RateLimit-Limit,X-RateLimit-RemainingetX-RateLimit-Reset(l'heure Unix, en secondes, à laquelle la minute en cours se termine). Au-delà de la limite, l'API répond429 Too Many Requestsavec un en-têteRetry-After: attendez ce nombre de secondes, puis réessayez. Certains points de terminaison ont en plus leur propre limite. La référence indique quels points de terminaison peuvent renvoyer429. - Versions. La version fait partie du chemin.
v1est la version actuelle et n'a pas de date de retrait. Si une version devait un jour être retirée, ses réponses porteraient les en-têtes standardDeprecationetSunsetavant sa désactivation.
Le document OpenAPI
La référence de cette page est générée à partir de notre document OpenAPI 3.1. Téléchargez-le au format JSON depuis /api/docs et chargez-le dans votre client API ou votre générateur de code.
Tester avant la mise en production
Vous voulez d'abord essayer l'API avec des données de test ? Un environnement de test est disponible sur demande, après signature d'un accord de confidentialité (NDA). Consultez Accès à l'environnement de test.
Points de terminaison
Points de terminaison publics issus de la spécification OpenAPI, regroupés par domaine.
DPPSP9 points de terminaison
- POST
/api/v1/dppsp/handoverStart a bulk handover of the workspace's passports - GET
/api/v1/dppsp/handover/{job_id}Status of a handover job, or a signed link to its files - GET
/api/v1/dppsp/manifestList exportable DPPs - GET
/api/v1/dppsp/export/{id}Export a single DPP as a DPPSP transfer bundle - POST
/api/v1/dppsp/importImport a DPPSP transfer bundle from a peer DPPSP - GET
/api/v1/dppsp/transfers/{transfer_id}Poll the status of a DPPSP transfer - GET
/.well-known/dppdataDPP service-provider metadata - GET
/api/v1/dppsp/backup-statusDPPSP backup status - GET
/api/v1/dppsp/health-probeDPPSP health probe
Products5 points de terminaison
- GET
/api/v1/productsList products - POST
/api/v1/productsCreate a product - GET
/api/v1/products/{id}Get a product - PATCH
/api/v1/products/{id}Update a product - DELETE
/api/v1/products/{id}Delete a product
Labels7 points de terminaison
- GET
/api/v1/labelsList labels - POST
/api/v1/labelsCreate a label - GET
/api/v1/labels/{id}Get a label with analytics - PATCH
/api/v1/labels/{id}Update a label - DELETE
/api/v1/labels/{id}Soft-delete a label - POST
/api/v1/labels/{id}/resolve-conflictResolve an optimistic-lock conflict on a DPP label - POST
/api/v1/labels/{id}/transitionTransition a label's status through the state machine
QR2 points de terminaison
- GET
/api/v1/qrList QR templates or resolve GTIN - POST
/api/v1/verify-qrDFT-based QR code verification
Analytics1 point de terminaison
- GET
/api/v1/analyticsGet analytics overview
Integration1 point de terminaison
- GET
/api/v1/integrationIntegration URLs and GTIN utilities
Batch3 points de terminaison
- POST
/api/v1/batchBatch create/update products - GET
/api/v1/batch-overridesList batch overrides for a label - POST
/api/v1/batch-overridesCreate or update a batch override
SDK1 point de terminaison
- GET
/api/v1/sdk/urlsBulk URL generation
Search1 point de terminaison
- GET
/api/v1/searchGlobal search
DPP39 points de terminaison
- GET
/api/v1/dpp/certificateDPP compliance certificate - GET
/api/v1/dpp/{identifier}/recallProduct recall status - GET
/api/v1/dpp/{identifier}Resolve a DPP by UUID or GTIN - GET
/api/v1/dpp/{identifier}/exportExport a DPP as a portable JSON-LD bundle - POST
/api/v1/dpp/{identifier}/verifyVerify DPP authenticity (EN 18223) - POST
/api/v1/dpp/importImport a portable DPP export bundle - GET
/api/v1/conformanceAPI conformance profile - GET
/api/v1/dpp/searchSearch published DPPs - GET
/api/v1/dpp/{identifier}/versionsDPP version history - POST
/api/v1/dpp/{identifier}/deactivateDeactivate a DPP - GET
/api/v1/dpp/{identifier}/eventsList DPP events - POST
/api/v1/dpp/{identifier}/eventsAppend a DPP event - GET
/api/v1/dpp/{identifier}/events/{event_id}/receiptGet signed event receipt - GET
/api/v1/dpp/{identifier}/carbon-footprintGet DPP carbon footprint - POST
/api/v1/dpp/{identifier}/carbon-footprintUpsert DPP carbon footprint - GET
/api/v1/dpp/{identifier}/historyDPP field-level change history - GET
/api/v1/dpp/{identifier}/componentsList DPP component links - POST
/api/v1/dpp/{identifier}/componentsLink a sub-DPP component - DELETE
/api/v1/dpp/{identifier}/components/{childId}Unlink a sub-DPP component - GET
/api/v1/dpp/{identifier}/treeGet DPP component tree - GET
/api/v1/dpp/{identifier}/validateValidate DPP conformance - GET
/api/v1/dpp/{identifier}/flagList DPP flags - POST
/api/v1/dpp/{identifier}/flagSubmit a DPP flag - GET
/api/v1/dpp/passport/{id}Get DPP public passport - GET
/api/v1/dpp/{identifier}/lifecycleGet DPP lifecycle history - POST
/api/v1/dpp/{identifier}/lifecycle/repairRecord a repair event - POST
/api/v1/dpp/{identifier}/lifecycle/refurbishmentRecord a refurbishment event - POST
/api/v1/dpp/{identifier}/lifecycle/end-of-lifeRecord end-of-life routing - GET
/api/v1/dpp/{identifier}/hierarchyGet DPP hierarchy placement - PUT
/api/v1/dpp/{identifier}/hierarchySet DPP hierarchy placement - DELETE
/api/v1/dpp/{identifier}/hierarchyClear DPP hierarchy placement - GET
/api/v1/compliance/installedList installed compliance packs - GET
/api/v1/compliance/packsList available compliance packs - GET
/api/v1/compliance/packs/{slug}Get compliance pack detail - GET
/api/v1/dpps/{id}Get DPP by id (EN 18222 alias) - GET
/api/v1/dppsList DPPs (EN 18222 alias) - GET
/api/v1/dppsByProductId/{productId}Get DPP by product ID (EN 18222 alias) - GET
/api/v1/dppsByProductIdAndDate/{productId}Get DPP by product ID and date (EN 18222 alias) - GET
/api/v1/dppsByProductIdsGet DPPs by product ID list (EN 18222 alias)
GS12 points de terminaison
- GET
/01/{gtin}GS1 Digital Link resolver — GTIN - GET
/01/{gtin}/21/{serial}GS1 Digital Link resolver — GTIN + serial
Short URLs1 point de terminaison
- GET
/s/{code}Short URL resolver
EPCIS4 points de terminaison
- POST
/api/v1/epcis/captureEPCIS 2.0 event capture - GET
/api/v1/epcis/queryEPCIS 2.0 SimpleEventQuery - GET
/api/v1/supply-chain/anomaliesList supply-chain anomalies - GET
/api/v1/supply-chain/journey/{productId}Get product journey
Label Access2 points de terminaison
- POST
/api/label-access/requestRequest tiered label access OTP - POST
/api/label-access/verifyVerify OTP and create access session
L5 Schemas6 points de terminaison
- GET
/dpp/schemas/canonical/{version}Canonical DPP JSON Schema - GET
/dpp/shapes/canonical/{version}Canonical DPP SHACL shapes - GET
/dpp/schemas/dppsp-bundle/v1.0DPPSP Multi-DPP transfer bundle JSON Schema (v1.0) - GET
/dpp/shapes/dppsp-bundle/v1.0DPPSP Multi-DPP transfer bundle SHACL shapes (v1.0) - GET
/dpp/schemas/v1/{class}Per-class DPP JSON-LD schema - GET
/dpp/shapes/v1/{class}Per-class DPP SHACL shapes
NFC2 points de terminaison
- GET
/api/v1/nfc/analyticsNFC tag scan analytics - GET
/api/v1/nfc/anomaliesNFC chip UID anomaly alerts
Wallet2 points de terminaison
- POST
/api/v1/auth/wallet-challengeIssue OID4VP challenge - POST
/api/v1/auth/wallet-verifyVerify wallet VP and issue access token
Workspace2 points de terminaison
- GET
/api/v1/workspace/identifiersGet workspace LEI + GLN identifiers - PUT
/api/v1/workspace/identifiersUpdate workspace LEI + GLN identifiers
Scan6 points de terminaison
- POST
/api/v1/scan/pin-requestsSubmit a PIN access request - POST
/api/v1/scan/{serial}/eventRecord a scan event - POST
/api/v1/scan/{serial}/consentRecord supply-chain data-sharing consent - GET
/api/v1/scan/{serial}/traceGet scan event trace - GET
/api/v1/scan/{serial}/verify-integrityVerify scan-event chain integrity - GET
/api/v1/scan-events/verify-chainVerify Merkle chain for a scan-event batch
Audit1 point de terminaison
- GET
/api/v1/audit/verify/{exportId}Verify a specific audit export
Partner Marketplace1 point de terminaison
- POST
/api/partner-program/packs/{id}/installInstall a partner pack