Authentication

API keys

Keys are created in Settings → Developer API. The full secret is shown exactly once, at creation. Only a one-way hash is stored, so a lost key must be regenerated.

Key format
eaw_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Send it in the header — never in a URL, query string or Discord message. Requests carrying?api_key= are rejected with 400.

Authorization: Bearer eaw_live_xxxxxxxxxxxxxxxxx
Scopes

A key only grants what you tick. Requests outside a key's scopes return403 insufficient_scope.

  • public.readRead anything already public in the game world.
  • nation.readRead the key owner's own nation record.
  • resources.readRead the key owner's own resource reserves.
  • military.readRead the key owner's own forces and commanders.
  • wars.readRead wars and battle logs.
  • market.readRead market data when the market system ships.
  • alliance.readRead public alliance profiles.
  • alliance.members.readRead public alliance rosters.
  • alliance.wars.readRead wars involving an alliance.
  • alliance.treasury.readRead the key owner's own financial history.
  • notifications.readRead the key owner's own notifications.
Revocation and rotation
  • Revoking takes effect on the very next request — there is no cache to wait out.
  • Rotate by creating a new key, deploying it, then revoking the old one.
  • Creation date, last-used date and lifetime request count are shown for every key.
Never delegated to third parties
  • Launch nuclear or strategic weapons
  • Declare or resolve wars
  • Transfer Credits or resources
  • Withdraw from an alliance treasury
  • Perform espionage
  • Accept or sign treaties
  • Modify alliance permissions or ranks
  • Delete accounts or nations
  • Any irreversible strategic action

Players are never asked for their Economics and War password by a third-party application. Planned OAuth authorization will show an explicit consent screen with AUTHORIZE / DENY.