LIVE SUPPORTNeed assistance? Chat directly on WhatsApp or submit a ticket.WhatsApp +19863561218 →
Documentation Menu
Beta Feature1 min read

API Keys

Create `eg_...` sending keys in the dashboard portal (not via Swagger).

Module:dashboard/api-keys/introduction

Generate a sending key in the portal#

Programmatic send (OTP, transactional, bulk, campaigns) uses an API key (eg_...), not a dashboard login token.

  1. Sign in at the Mail Champ dashboard
  2. Open API keys
  3. Create a key and copy it immediately (shown once)
  4. Store it on your server (environment variable). Never put it in the browser, localStorage, or a public repo.

Then call send endpoints with:

  • Authorization: Bearer eg_... or
  • X-API-Key: eg_...

Do not use a dashboard JWT/access token for sending.

Interactive API docs: use Explore API in the app (from PUBLIC_API_URL / NEXT_PUBLIC_API_URL) or open {API}/docs.

Security notes#

  • The plaintext key is shown only once at create or rotate time.
  • Rotate issues a new secret for the same key id; the old secret stops working immediately.
  • In production, keep AUTH_REQUIRED=true / API_KEY_REQUIRED=true so sending is never anonymous.
  • Revoke unused keys from the same API keys page.

Related Documentation

Explore interconnected guides and API endpoints.

Have a question about this guide?

Contact our engineering and deliverability support team anytime.