TrekMail TrekMail

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 What the TrekMail API does, how authentication works, and which plans include API access.
  • 2 How to create, scope, constrain, and revoke API tokens from the dashboard.
  • 3 Connect Claude Desktop, Claude Code, or other MCP-compatible agents to TrekMail.

Your curated guide for this category.

Follow this recommended order to get the most out of this category.

Articles in this category

16 articles
  1. 1
    API Overview

    What the TrekMail API does, how authentication works, and which plans include API access.

  2. 2
    Creating and Managing API Tokens

    How to create, scope, constrain, and revoke API tokens from the dashboard.

  3. 3
    Connecting AI Agents (MCP)

    Connect Claude Desktop, Claude Code, or other MCP-compatible agents to TrekMail.

  4. 4
    API Scopes and Plan Permissions

    Full reference of API scopes, what each one controls, and which plans unlock them.

  5. 5
    Drive API Overview

    Understand the TrekMail Drive API for files, folders, uploads, share links, storage usage, safe delete rules, and add-on boundaries.

  6. 6
    Drive API Quickstart

    Create a scoped token, list spaces, upload a file, create a share link, and verify the audit log.

  7. 7
    Drive API Scopes and Permissions

    Reference for the 9 Drive scopes, plan and add-on access, mailbox constraints, and safe token design.

  8. 8
    Drive MCP Tools Overview

    Overview of the 38 Drive MCP tools and how agents use them for uploads, sharing, bulk operations, and add-on reads.

  9. 9
    Connecting AI Agents to TrekMail Drive

    Configure scoped tokens and MCP safety gates for Drive file automation.

  10. 10
    Automating File Uploads with Drive API

    Build safe upload automation with quota checks, idempotency keys, multipart uploads, MCP tools, and failure handling.

  11. 11
    Share Links API and MCP Guide

    Create, list, and revoke public Drive links through REST or MCP with expiry dates and download caps.

  12. 12
    Drive Storage Add-on API Boundaries

    What agents can read about the Drive Add-on, and why purchase, resize, and cancel stay dashboard-only.

  13. 13
    Drive Bulk File Operations via API/MCP

    Move, trash, restore, or purge many Drive files and folders safely with REST API endpoints or MCP tools.

  14. 14
    Drive Security, Audit Trail, and Safe Delete/Purge Rules

    Operate Drive automation safely with scoped tokens, audit logs, Trash-first deletion, purge separation, and link controls.

  15. 15
    Safety Rails and Delete Intents

    How two-step delete intents, rate limits, and audit logging protect against accidental data loss.

  16. 16
    API Migrations

    Import email from any IMAP provider via the REST API or MCP server.

We use cookies for essential functionality. No ads, no ad tracking.

or
or

Reset email sent

If an account exists for this email, we've sent password reset instructions.

By continuing, you agree to TrekMail's Terms and Privacy Policy.