AwardDB
API documentation pages

Authentication

Every data request carries your API key in a standard Authorization: Bearer header — including on the free tier.

Every /api/v1/ data endpoint requires your key. Send it as an HTTP bearer header: Authorization: Bearer awdb_… — including on the free tier. Anonymous requests receive 401 api_key_required.

With curl

# List the available organizations
curl -s https://awarddb.com/api/v1/organizations \
  -H "Authorization: Bearer awdb_…"
# Shell convenience — set your key once:
export AWARDDB_KEY=awdb_…
curl -s -H "Authorization: Bearer $AWARDDB_KEY" https://awarddb.com/api/v1/organizations

With PowerShell

(Windows — no extra tools needed; Invoke-RestMethod is built in and parses the JSON for you):

$key = "awdb_…"
$headers = @{ Authorization = "Bearer $key" }
Invoke-RestMethod -Uri "https://awarddb.com/api/v1/organizations" -Headers $headers

When authentication fails

Authentication problems return 401 with a machine-readable error.code and a WWW-Authenticate: Bearer header: api_key_required (no decodable header), invalid_api_key (unknown key), api_key_revoked (revoked or rotated away), api_key_suspended (owning account blocked). Errors & troubleshooting has full examples of every error code the API can return.

Keep your key private. The API is CORS-open, so browser clients may call it directly — but keep the key out of public client code. Only a salted hash of your key is stored; if a key is compromised, revoke or rotate it on your account page.