Aller au contenu principal

API Changelog

v1.0.0 — Initial Customer & Reseller API Release (2026-11-30)​

Added​

  • Authentication & Security Pipeline: Support for x-api-key and Authorization: Bearer headers using HMAC-SHA256 hashed gpk_live_... keys, active auth cache with immediate revocation/user-block eviction, and per-key/per-user rate limiting.
  • Fraud Protections: IP cooldowns on repeated auth failures, multi-IP anomaly detection (MULTI_IP_ABUSE), purchase velocity limits (RAPID_REPEAT_PURCHASE), spending spike detection (SPENDING_SPIKE), and append-only api_key_audit_logs / api_key_fraud_events.
  • Endpoints:
    • GET /api/v1/key — Inspect presented key metadata and caps
    • GET /api/v1/balance — Pre-execution balance snapshot and caps
    • GET /api/v1/catalog/products & GET /api/v1/catalog/products/{productId} — Active catalog lookup
    • POST /api/v1/purchases — Atomic SELECT ... FOR UPDATE purchase with idempotency, spend caps, and HTTP 402 balance rejection
    • POST /api/v1/actions — Metered server-priced API actions (BULK_CATALOG_EXPORT, STOCK_RESERVATION_PING)
    • GET /api/v1/orders, GET /api/v1/orders/{orderId}, GET /api/v1/orders/{orderId}/items/{itemId}/file — User-scoped order retrieval & file downloads
    • GET /api/v1/ledger & GET /api/v1/audit — Ledger attribution (apiKeyId, requestType, signed amount, balanceAfter) and security audit log queries