Call POST /api/v1/keys/:id/rotate
Choose a grace window (1, 24, or 168 hours). DielineGrid immediately returns a brand-new dlg_live_ key with identical scopes.
Built for global CPG brands, ERP/PIM connectors (SAP, NetSuite, Shopify), and high-volume print pipelines. Every mutation supports Idempotency-Key deduplication, least-privilege scopes, immutable audit logs, and immediate global Cloudflare Edge KV sync.
Test directly against https://dielinegrid.com/api/v1/* using an API key from /app (or leave blank if already signed in).
Rotate credentials across distributed factories, SAP connectors, and CI runners without dropping a single packaging request.
POST /api/v1/keys/:id/rotate
Choose a grace window (1, 24, or 168 hours). DielineGrid immediately returns a brand-new dlg_live_ key with identical scopes.
Existing clusters keep running with the old key while emitting an X-DielineGrid-Key-Warning header so observability alerts confirm which nodes haven't updated yet.
Roll out the replacement secret across AWS Secrets Manager, Azure Key Vault, or Kubernetes pods on your standard release cadence.
When grace_until passes, the previous key stops authenticating automatically. For leaked keys, call DELETE /api/v1/keys/:id for immediate global revocation.
All endpoints enforce TLS 1.3, peppered SHA-256 key hashing, per-workspace daily hard quotas (429 Retry-After), and least-privilege scopes.
| Method & Endpoint | Required Scope | Idempotency | Description |
|---|---|---|---|
| GET /api/v1/routes | routes:read | Safe GET | Paginated list of workspace GS1 1.2 and D2C SKU routes |
| POST /api/v1/routes | routes:write | Idempotency-Key | Upsert a single GS1 or SKU route with immediate write-through sync to Edge KV |
| POST /api/v1/routes/batch | routes:write | Idempotency-Key | Atomic ERP/PIM batch upsert for up to 500 SKUs per request |
| PATCH / DELETE /api/v1/routes/:key | routes:write | Keyed | Update destination URL, rules, or Edge SKU Passport without reprinting cartons |
| POST /api/v1/cmyk-pdf | cmyk:export | Stateless | Returns pure vector application/pdf (0 0 0 1 k) + POS X-dimension headers |
| GET / POST /api/v1/keys | keys:manage | Idempotency-Key | List key metadata or issue new prefix-tagged dlg_live_ / dlg_test_ keys |
| POST /api/v1/keys/:id/rotate | keys:manage | Idempotency-Key | Zero-downtime dual-key rotation with 1h, 24h, or 168h grace window |
| DELETE /api/v1/keys/:id | keys:manage | Idempotent | Instant emergency revocation across the edge |
| POST /api/v1/domains + /:id/verify | domains:manage | Idempotency-Key | Register custom brand domain and verify DNS TXT via Cloudflare DoH |
| GET /api/v1/audit-logs | audit:read | Safe GET | Read immutable compliance log of route, domain, and key lifecycle events |
| GET /api/v1/export/worker | routes:read | Safe GET | Day-1 Anti-Hostage export: standalone Cloudflare Worker script + KV JSON bundle |