Give each tool its own API key: recipient limits, From limits and daily caps
An API key is a password for your email. Most teams create one key with full access and paste it everywhere: the backend, a cron job, a contractor's laptop, an AI coding assistant. If any of those leaks or misbehaves, the damage is everything that key can do. Vaartix lets you limit each key to exactly what it needs.
Start with the scope
Every key is either send-only or full access. A send-only key can send email, over the API or SMTP, and nothing else. It can't read your email history, manage domains or create more keys. Give your applications send-only keys, and keep full-access keys for the rare tools that genuinely need them.
Then add limits
Owners and admins can limit any key with Limits next to it on the API keys page:
- Who it can send to: anyone, or a list of addresses and domains. A key for an internal alerts job might only be allowed to email
@acme.in. - Which From addresses it can use, so a key for receipts can't send as
security@. - Hourly and daily caps, so a bug in a loop can't send thousands of emails.
- Whether it can read email content: bodies, headers and clicked links, in emails, logs and webhook history.
Limits apply over the API and the SMTP relay alike. Giving a key more asks for a confirmation code; giving it less takes effect at once. You can also restrict a key to some of your domains, and give it an expiry date, up to 2 years ahead, for a contractor or a short project.
A key made for an AI agent
AI tools are the clearest case for a limited key. When you create a key, answer Yes, an AI agent to Is this key for an AI agent or MCP server?. It then starts with:
- no access to email content;
- test addresses only;
- at most 20 emails an hour and 50 a day.
It shows as AI agent key in the list, so everyone on the team can see what it's for. Widen only what the agent needs: for example, allow it to email your own domain, keep content reading off, and leave the caps low.
If the AI tool supports it, there's an even safer option: the hosted MCP server at mcp.vaartix.com, which needs no API key at all and adds approvals on every send. Our post Letting an AI agent send email without handing it the keys explains it.
A sensible set of keys
| Key | Scope | Limits |
|---|---|---|
| Production backend | Send-only | Your sending domain only; content reading off |
| Internal alerts job | Send-only | Recipients limited to your own domain; a daily cap |
| Contractor or short project | Send-only | An expiry date; test addresses until they need more |
| AI coding assistant | AI agent key | The safe defaults, widened only as needed |
Keep keys safe
- Vaartix stores only a hash of each key and shows it once. Keep it in an environment variable or a secret manager, never in code or Git.
- Never put a key in browser or mobile app code. Send from your server.
- The dashboard shows when each key was last used, so you can find and revoke keys nobody needs.
- Revoke a key the moment you suspect it leaked. It stops working immediately.
Everything above is in the API keys docs.