Skip to main content

Create API key

API keys let your app call the Mailofly REST API and SDKs.
The secret is shown once. Copy it immediately — Mailofly only stores a hash.

Create a key

  1. Open API keys
  2. Click Create key and give it a name (e.g. production)
  3. Copy the value — it starts with mf_live_
Store it as an environment variable:

Use it

Every authenticated request needs:
SDK example (Node.js):
cURL:

Tips

  • One key per service (easier to rotate)
  • Never commit keys to git
  • Prefer short-lived keys for contractors / staging

Next