# LotsMail API > Business email for your whole team on your own domain, run from the AI agent you already use. Every capability is defined once and served two ways: as a Model Context Protocol tool for AI agents, and as a REST endpoint. The two never drift, because they are generated from the same registry. - Base URL: https://api.lotsmail.to - Authentication: API key, sent as `Authorization: Bearer ` or `X-API-Key: ` - MCP endpoint: https://api.lotsmail.to/mcp ## Documentation - [REST API reference](https://api.lotsmail.to/docs): every endpoint, its parameters and its scopes, generated from the live registry. - [MCP server guide](https://api.lotsmail.to/docs/mcp): connecting Claude, ChatGPT, Cursor and any other MCP client. - [OpenAPI 3.0 spec](https://api.lotsmail.to/api/v1/docs?app=lotsmail&format=openapi): the machine-readable contract. - [Endpoint list as JSON](https://api.lotsmail.to/api/v1/docs?app=lotsmail): method, path, description and category for each endpoint. ## Notes - The endpoint list is generated, so it is current by construction. Read it rather than any summary of it. - Publishing and other write actions follow the same validation and approval rules over the API and MCP as they do in the app.