Middle-earth API

Authentication

Get a bearer token and send it with every request.

1 MIN READ

Every request needs a bearer token in the Authorization header.

Bash
curl https://api.middle-earth.example/v3/members \
  -H "Authorization: Bearer mellon_live_example"

Getting a token

Tokens are issued in the Council of Elrond dashboard. Speak the word mellon at the gate and one is generated for you.

Token prefixEnvironment
mellon_live_Production (Rivendell, Eregion, Minas Tirith)
mellon_test_Sandbox (The Shire, Mount Doom, Weathertop)
Keep tokens secret

Anyone with your token can light your beacons. Never commit it to a repository or send it to a Ringwraith.