> Limit each Vaartix API key to what it needs: send-only scope, allowed recipients and From addresses, caps, and keys made for AI agents.

Source: https://vaartix.com/blog/scoped-api-keys-ai-agents

[Blog](https://vaartix.com/blog)

# Give each tool its own API key: recipient limits, From limits and daily caps

26 November 2026 · 3 min read · Vaartix team

-   [AI agents](https://vaartix.com/blog/tag/ai-agents)
-   [Developers](https://vaartix.com/blog/tag/developers)

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](https://vaartix.com/blog/ai-agent-email-safely) 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](https://vaartix.com/docs/concepts/api-keys/).

## Related posts

-   [Send email from your AI assistant with the Vaartix MCP server](https://vaartix.com/blog/connect-ai-assistant-mcp) 29 November 2026
-   [Letting an AI agent send email without handing it the keys](https://vaartix.com/blog/ai-agent-email-safely) 23 November 2026
-   [Sending OTPs: delays, retries and what users actually see](https://vaartix.com/blog/otp-email-delays) 30 November 2026

**Vaartix is a transactional email API built in India.** It sends through Amazon SES in Mumbai, keeps your data in India and is priced in rupees. Anyone can sign up free, and the Free plan has every feature.

[Sign up free](https://app.vaartix.com/?signup)
