Authentication

Root admin can generate API keys in the admin console.
Authorization: Bearer dwc_live_your_key_here

You can also send the key with the x-api-key header.

Endpoints

Responses are JSON and only include public case fields.
GET /api/v1/search
Search accounts by ID, username, display name, or text.
curl "https://dwcdb.com/api/v1/search?q=robloxname&platform=roblox&limit=10" \
  -H "Authorization: Bearer dwc_live_your_key_here"

Query params: q, platform, banned, minReports, limit.

GET /api/v1/accounts/:key
Fetch one public case by database key. Sources are included by default.
curl "https://dwcdb.com/api/v1/accounts/roblox_id%3A123456?sources=true" \
  -H "Authorization: Bearer dwc_live_your_key_here"
GET /api/v1/lookup
Lookup a known Roblox or Discord ID without building the internal key yourself.
curl "https://dwcdb.com/api/v1/lookup?type=discord_id&id=1234567890" \
  -H "Authorization: Bearer dwc_live_your_key_here"
GET /api/v1/recent
Fetch the most recently added DWC case(s) with details and sources.
curl "https://dwcdb.com/api/v1/recent?limit=1" \
  -H "Authorization: Bearer dwc_live_your_key_here"

Query params: limit (default 1, max 50).

DWC Database