AI Agents & API
Connect AI agents to TrekMail, manage API tokens, and automate domain and mailbox operations with the REST API and MCP server.
What you'll learn
- 1 How an AI assistant can open an account, pay for it and finish your email setup on its own — and what stays under your control.
- 2 Learn how the TrekMail REST API works, including authentication with bearer tokens, plan-based access, rate limits, and response formats.
- 3 How to create, scope, constrain, and revoke API tokens from the dashboard.
Your curated guide for this category.
Follow this recommended order to get the most out of this category.
Articles in this category
27 articles-
1Let an AI Agent Buy and Set Up Email for You
How an AI assistant can open an account, pay for it and finish your email setup on its own — and what stays under your control.
-
2TrekMail REST API Overview for Developers
Learn how the TrekMail REST API works, including authentication with bearer tokens, plan-based access, rate limits, and response formats.
-
3Creating and Managing API Tokens
How to create, scope, constrain, and revoke API tokens from the dashboard.
-
4Connecting AI Agents to TrekMail via MCP
Connect compatible MCP clients with browser authorization, a universal CLI bridge, or narrowly scoped static tokens.
-
5API Scopes and Plan Permissions
Compare API scopes across plans, add-ons, OAuth grants, memberships, domain constraints, and MCP safety gates, including White Label access.
-
6White Label Branding API and MCP Guide
Configure per-domain White Label branding (brand, logos, and branded dashboard/webmail hosts) via REST or MCP.
-
7Manage White Label Teams with API and MCP
Invite clients, control domain access, suspend or restore members, and review White Label activity through scoped REST endpoints and MCP tools.
-
8TrekMail Drive API Overview for Developers
Understand the TrekMail Drive API: files, folders, uploads, public share links, storage usage, safe delete rules, and Drive Add-on boundaries.
-
9Drive API Quickstart for Developers
Create a scoped TrekMail API token, call Drive endpoints, upload a file, create a share link, and verify audit logs safely.
-
10Drive API Scopes and Permissions
Reference for the 11 Drive scopes, plan and add-on access, mailbox constraints, and safe token design.
-
11Drive MCP Tools Overview for AI Agents
Overview of the 42 TrekMail Drive MCP tools for AI agents — uploads, share links, bulk operations, safe delete, and Drive Add-on read access.
-
12Connecting AI Agents to TrekMail Drive
Configure scoped tokens and MCP safety gates for Drive file automation.
-
13Automating File Uploads with Drive API
Build safe upload automation with quota checks, idempotency keys, multipart uploads, MCP tools, and failure handling.
-
14Drive Share Links API and MCP Guide
Create, list, and revoke public Drive links through REST or MCP with expiry dates and download caps.
-
15Turning Drive Off for a Mailbox via API
Set a mailbox Drive level with one REST call or MCP tool — one mailbox, a whole domain, or every mailbox.
-
16Suspending Mailbox Sign-In via API
Lock a mailbox owner out while their email keeps arriving — one call for a mailbox, a domain, or every mailbox.
-
17Drive Storage Add-on API Boundaries
What agents can read about the Drive Add-on, and why purchase, resize, and cancel stay dashboard-only.
-
18Drive Bulk File Operations via API/MCP
Move, trash, restore, or purge many TrekMail Drive files and folders safely with REST API endpoints or MCP bulk tools — built for AI agent workflows.
-
19Drive Security, Audit, and Safe Delete Rules
Operate TrekMail Drive automation safely with scoped tokens, audit logs, trash-first deletion, purge separation, and public link controls.
-
20Safety Rails and Delete Intents
How two-step delete intents, rate limits, and audit logging protect against accidental data loss.
-
21Managing Email Migrations via the API
Manage email migrations through the TrekMail API. Test connections, start imports, monitor progress, cancel, retry, and delete migration jobs.
-
22Deliverability and Bounces via API and MCP
Pull outbound deliverability rollups and per-recipient hard/soft bounce reasons through the REST API and MCP.
-
23Connected Accounts via API and MCP
Manage connected external mailboxes and target them in message calls through the TrekMail message API and MCP tools — endpoints, scopes, and external_account_id.
-
24Send As Addresses via API and MCP
Configure source-bound From identities, choose their domain or saved SMTP route, and use them safely for mail operations.
-
25Domain Aliases via API and MCP
Connect a receive-only domain alias, understand delivery states, and automate changes safely through the TrekMail REST API or MCP server.
-
26Mail Client Setup via API and MCP
Retrieve password-free IMAP/SMTP settings, localized app guides, actual sending readiness, and Apple Mail profiles through REST or MCP.
-
27Managing Contacts via API and MCP
Create, import, export, search, and organize contacts and groups in TrekMail through the message API and MCP tools — endpoints, scopes, and pagination.