Stop paying your LLM
to read the whole inbox
Ask for the mail you need, not a whole inbox. Permaily runs your query and returns typed, structured data, so your LLM doesn't have to read the emails.
Example: your LLM reads 1,000 tokens per email at $0.10 per 1M tokens, counting input only. Permaily counts 3 tokens per email at $0.01 per 1M.
Every query comes with its types
Your query says which emails you want and which fields come back. The SDK turns that into types, so you skip the prompt, the parsing and the validation.
# What your app asks for
query: >
from:(iberia.com OR booking.com OR airbnb.com)
subject:(booking OR reservation OR itinerary)
fields:
is_cancellation: boolean
cancellation_notes: string?
refunded: boolean// Generated by the SDK
type TravelBooking = {
from: string;
date: string;
subject: string;
isCancellation: boolean;
cancellationNotes: string | null;
refunded: boolean;
};Pay for what you extract
A token is one processed unit of an email. Basic info costs 1 token per email. Ask for more, and each email costs more.
- Typed, structured output from your query
- REST API, webhooks and SDKs
- Hosted consent screen
- Sandbox mailboxes
- Email support
What else changes when you ask for less
| Topic | Gmail and your LLM | Permaily |
|---|---|---|
| What you store | Whatever you fetched, often more than you need | Only what was released, if you store it at all |
| What people see | A permission screen covering everything | The exact emails you’d receive, on their own mail |
| Google review | Restricted-scope verification and a yearly security assessment | None of your own. Permaily holds the Google connection |
| Providers | One integration per provider | One API for Gmail, Google Workspace and Microsoft 365 |
One view of the inbox, however you read it
REST API
GET /v1/messages?access=acc_9f2cSearch and read inside the slice, with the approved parts only.
Webhooks
message.releasedGet new matching mail as it arrives, signed, with its receipt id.
Remote MCP
https://mcp.permaily.comTools like describe_access, search_messages and get_message.
Questions before you switch
Can I still use my own LLM?
Yes, on the emails you receive. You just stop paying it to sort the rest. Every message is marked as untrusted content.
Do I still need Google’s verification?
No. Permaily holds the Google connection and goes through the review, so your app only talks to our API.
What if I need more mail later?
Ask again with the wider query. The person sees exactly what it would add, and nothing new reaches you until they approve.
Can I test without real mail?
Yes. Test keys only see sandbox mailboxes with sample mail.
Ask for less
Create an app, run your first query in the sandbox, and see what comes back.