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 AI agents to TrekMail via MCP — one-click OAuth in Claude.ai, plus configs for Claude Desktop, Claude Code, and Docker-hosted deployments.
Your curated guide for this category.
Follow this recommended order to get the most out of this category.
Articles in this category
18 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 AI agents to TrekMail via MCP — one-click OAuth in Claude.ai, plus configs for Claude Desktop, Claude Code, and Docker-hosted deployments.
-
4API Scopes and Plan Permissions
Reference for TrekMail API scopes by plan — Nano gets Verifier access, Starter is read-only plus Verifier, Pro and Agency unlock full API control.
-
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.