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 Learn how the TrekMail REST API works, including authentication with bearer tokens, plan-based access, rate limits, and response formats.
- 2 How to create, scope, constrain, and revoke API tokens from the dashboard.
- 3 Connect compatible MCP clients with browser authorization, a universal CLI bridge, or narrowly scoped static tokens.
Your curated guide for this category.
Follow this recommended order to get the most out of this category.
Articles in this category
22 articles-
1TrekMail 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.
-
2Creating and Managing API Tokens
How to create, scope, constrain, and revoke API tokens from the dashboard.
-
3Connecting AI Agents to TrekMail via MCP
Connect compatible MCP clients with browser authorization, a universal CLI bridge, or narrowly scoped static tokens.
-
4API Scopes and Plan Permissions
Compare TrekMail API scopes by plan: Starter has read-only infrastructure plus full Drive and Verifier; Pro and Agency unlock all capabilities.
-
5White Label Branding API and MCP Guide
Configure per-domain White Label branding — brand, logos, and branded dashboard/webmail hosts — via REST or MCP.
-
6TrekMail 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.
-
7Drive 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.
-
8Drive API Scopes and Permissions
Reference for the 11 Drive scopes, plan and add-on access, mailbox constraints, and safe token design.
-
9Drive 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.
-
10Connecting AI Agents to TrekMail Drive
Configure scoped tokens and MCP safety gates for Drive file automation.
-
11Automating File Uploads with Drive API
Build safe upload automation with quota checks, idempotency keys, multipart uploads, MCP tools, and failure handling.
-
12Share Links API and MCP Guide
Create, list, and revoke public Drive links through REST or MCP with expiry dates and download caps.
-
13Drive Storage Add-on API Boundaries
What agents can read about the Drive Add-on, and why purchase, resize, and cancel stay dashboard-only.
-
14Drive 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.
-
15Drive 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.
-
16Safety Rails and Delete Intents
How two-step delete intents, rate limits, and audit logging protect against accidental data loss.
-
17Managing Email Migrations via the API
Manage email migrations through the TrekMail API. Test connections, start imports, monitor progress, cancel, retry, and delete migration jobs.
-
18Deliverability and Bounces via API and MCP
Pull outbound deliverability rollups and per-recipient hard/soft bounce reasons through the REST API and MCP.
-
19Connected 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.
-
20Send 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.
-
21Mail 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.
-
22Managing 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.