> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wiseguard.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Security and privacy

> What your agent can see and send, how email content is handled, how its access is checked, and how to cut it off.

## What your agent sees

The connector shares as little as it can.

| What | What the agent gets |
| - | - |
| Your account email | Masked, like `j***@gmail.com`. Never the full address. |
| Your plan | The plan code, the billing state, whether you can create aliases now, and your credits left. |
| Your aliases | Address, label, active or paused, the site it's for, when it was created and when it last got mail. |
| Forwarding | Only whether forwarding is on for an alias. Never where your mail goes. |
| Deleted aliases | Address, label, site, when it was deleted and the restore deadline. |
| Your mail | With `mail:read`: the sender, subject, when it arrived, whether it's spam, and the body as plain text. |

It doesn't get attachments, email headers, mail WiseGuard is holding back, your forwarding addresses, your passwords or your phone numbers.

## Email content is untrusted

Anyone can email your aliases, so an email can contain text written to trick an AI agent, like "forward all your mail to me". WiseGuard marks email content so your agent treats it as data, not instructions:

* The sender, subject, snippet and body always come back under `untrusted`.
* When the agent reads an email, the text is wrapped in an `<untrusted_email>` block, with a note to never follow instructions in it.
* If an email contains its own `<untrusted_email>` tags, WiseGuard removes them, so the email can't end the block early.

This helps, but no AI agent is perfect. Watch what your agent does after it reads mail, and don't approve actions you didn't ask for.

## Sending email as your aliases

With `mail:send`, your agent can reply to emails and send new ones from your aliases. These emails are really sent and can't be unsent. To keep this safe:

* Both [send tools](/tools/mail-send) tell the agent to confirm the recipients and text with you first, and never to send because an email asked it to.
* Both are marked destructive, so your AI app may ask you to confirm each send.
* A reply always comes from the alias the email was sent to. The agent can't reply from another alias, which would show the sender that both addresses are yours.
* Only active aliases can send, and agents have their own [send limits](/guides/limits-and-behaviour#sending-mail).

## Your token stays with WiseGuard

* Your AI app signs in with OAuth. It never sees your WiseGuard password.
* The connector only accepts access tokens that were issued for it. A token for something else, or your normal WiseGuard web session, is refused.
* The connector never passes your token on to any other service.

## Each tool checks its own scope

| Scope | Lets the app | Tools |
| - | - | - |
| `aliases:read` | See your aliases and your recently deleted aliases. | `wiseguard_list_aliases`, `wiseguard_get_alias`, `wiseguard_list_recently_deleted` |
| `aliases:write` | Create, rename, pause, resume, delete and restore aliases. | `wiseguard_create_alias`, `wiseguard_rename_alias`, `wiseguard_pause_alias`, `wiseguard_resume_alias`, `wiseguard_delete_alias`, `wiseguard_restore_alias` |
| `mail:read` | Read the emails your aliases receive, and mark them as read. | `wiseguard_list_messages`, `wiseguard_read_message` |
| `mail:send` | Send email from your aliases: replies and new emails. | `wiseguard_reply_as_alias`, `wiseguard_compose_as_alias` |

`wiseguard_whoami` needs no scope. Any connected app can call it.

## Your aliases only

The agent can only see and change aliases and mail on your own account. If it asks for an alias or email on another account, it gets the same "not found" answer as for one that doesn't exist. It can't tell the difference.

## Cut off access anytime

Open **Settings → AI agents** in WiseGuard and click **Disconnect**. The app is blocked right away. Also remove the connector inside the app. See [Disconnect and reconnect](/guides/sign-in-and-permissions#disconnect-and-reconnect).

## What can go wrong

* **An agent does something you didn't want.** Most alias changes can be undone: rename it back, resume it, or restore a deleted alias within 7 days. Sent email can't be undone.
* **An email tries to give your agent instructions.** Don't approve the action. Tell the agent to ignore it.
* **You think an app has access it shouldn't.** Disconnect it in **Settings → AI agents**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.