API Versioning

DarkerDB uses dated wire contracts selected with the X-API-Version request header. The /v2 path is the DarkerDB route namespace, not the response contract version.

PropertyValue
HeaderX-API-Version
FormatYYYY-MM-DD
Latest2026-09-28
Supported2026-08-02, 2026-08-03, 2026-08-15, 2026-08-21, 2026-09-22, 2026-09-28
bash
curl https://api.darkerdb.com/v2/items \
  -H "X-API-Key: your-api-key" \
  -H "X-API-Version: 2026-09-28"

Omitting the header follows the latest contract. That works for a website deployed alongside the API. Released desktop, mobile and third-party clients should pin the contract they support.

Every API response echoes the selected contract in X-API-Version and includes Vary: X-API-Version for safe caching.

Resolution

SentResult
Absent or emptyLatest contract
Supported dateRequested contract
Malformed or unknown date400 Bad Request
Retired date410 Gone

Supported Contracts

  • 2026-09-28 is the latest contract.
  • 2026-09-22 preserves the compact market.sockets array.
  • 2026-08-02 preserves the previous login response shape.

In the latest DarkerDB contract, market.sockets is an object keyed by the gem's zero-based index in the ordered secondary attributes. Compatibility remains pinned until a client deliberately upgrades.

Retirement

Retired contracts return 410 Gone with resource:gone. Upgrade the client to a supported contract instead of retrying the request.