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
  1. 1
    TrekMail 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.

  2. 2
    Creating and Managing API Tokens

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

  3. 3
    Connecting 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.

  4. 4
    API 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.

  5. 5
    White Label Branding API and MCP Guide

    Configure per-domain White Label branding — brand, logos, and branded dashboard/webmail hosts — via REST or MCP.

  6. 6
    TrekMail 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.

  7. 7
    Drive 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.

  8. 8
    Drive API Scopes and Permissions

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

  9. 9
    Drive 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.

  10. 10
    Connecting AI Agents to TrekMail Drive

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

  11. 11
    Automating File Uploads with Drive API

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

  12. 12
    Share Links API and MCP Guide

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

  13. 13
    Drive Storage Add-on API Boundaries

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

  14. 14
    Drive 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.

  15. 15
    Drive 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.

  16. 16
    Safety Rails and Delete Intents

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

  17. 17
    Managing Email Migrations via the API

    Manage email migrations through the TrekMail API. Test connections, start imports, monitor progress, cancel, retry, and delete migration jobs.

  18. 18
    Deliverability and Bounces via API and MCP

    Pull outbound deliverability rollups and per-recipient hard/soft bounce reasons through the REST API and MCP.

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

Sign in to TrekMail

Access your dashboard, mailboxes and DNS.

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.