Skip to main content

The two surfaces

For any server-to-server integration, use an API key.
The web console and the public API do not use the same authentication method.

API key format

A MsgFlash API key looks like this:
Structure:
  • prefix msgf_live_
  • 64 lowercase hexadecimal characters
The full key is only shown once when it is created.

Using your API key

Do not use Authorization: Bearer <api_key> for the public API. The backend explicitly expects the x-api-key header.

Creating and revoking a key

  1. Sign in to app.msgflash.com
  2. Open API Keys
  3. Click New API Key
  4. Give it a descriptive name
  5. Copy the key immediately
To revoke a key:
  1. Go back to API Keys
  2. Click Revoke
  3. Confirm
Revocation is immediate.

Dashboard authentication

The main dashboard flows are:
  • signup
  • login
  • Google OAuth
  • email verification
  • password reset
Detailed guide: See the dashboard auth guide

Number of keys per plan


Best practices

One key per environment

Use separate keys for production, staging, and development.

Environment variables

Store your key in an environment variable such as MSGFLASH_API_KEY or in a secrets manager.

Example: