Authentication
API key management, permissions, and security best practices.
API Key Authentication
All API requests require a Bearer token in the Authorization header:
API Key format
Grosend API keys follow the format:
sv_live_[48-character-hex]
SMTP Authentication
For SMTP, use your email address as the username and your generated SMTP key as the password. Generate an SMTP key in Settings → SMTP.
Session Authentication
The web dashboard uses session-based authentication via NextAuth. Login at send.grosend.com/app.
Two-Factor Authentication (2FA)
2FA is required for session-based access (dashboard). After login, you'll be prompted to set up TOTP (e.g., Google Authenticator, Authy).
2FA is enforced for dashboard (session) access. API key authentication bypasses 2FA — treat your keys securely.
Security best practices
- Never expose API keys in client-side code or public repos
- Rotate API keys regularly
- Use separate keys for development and production
- Monitor API key usage in the dashboard
- Enable 2FA on your account