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

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

  3. 3
    Creating and Managing API Tokens

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

  4. 4
    Connecting AI Agents to TrekMail via MCP

    Connect compatible MCP clients with browser authorization, a universal CLI bridge, or narrowly scoped static tokens.

  5. 5
    API Scopes and Plan Permissions

    Compare API scopes across plans, add-ons, OAuth grants, memberships, domain constraints, and MCP safety gates, including White Label access.

  6. 6
    White Label Branding API and MCP Guide

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

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

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

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

  10. 10
    Drive API Scopes and Permissions

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

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

  12. 12
    Connecting AI Agents to TrekMail Drive

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

  13. 13
    Automating File Uploads with Drive API

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

  14. 14
    Drive Share Links API and MCP Guide

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

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

  16. 16
    Suspending 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.

  17. 17
    Drive Storage Add-on API Boundaries

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

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

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

  20. 20
    Safety Rails and Delete Intents

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

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

  22. 22
    Deliverability and Bounces via API and MCP

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

  23. 23
    Connected 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.

  24. 24
    Send 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.

  25. 25
    Domain 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.

  26. 26
    Mail 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.

  27. 27
    Managing 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.

We use necessary technologies to operate and secure TrekMail. Selecting Okay also allows limited analytics and advertising measurement described in our Cookie Policy.

Sign in to TrekMail

Access your dashboard, mailboxes and DNS.

or

12 characters passwords match

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.