API keys

For scripts, servers and the CLI. See the API reference to get started.

Call the API
curl https://api.ghstmail.space/v1/aliases \
  -H "Authorization: Bearer $GHSTMAIL_KEY"

Send the key as a bearer token. Keep it on a server: the API does not accept calls from a browser.

Or use the CLI
npm install -g ghstmail
ghstmail login

The CLI signs in through your browser and stores its own key, so you never paste one.