# Developer overview > Read, search, organise, draft and send mail from your own code or AI agent, with tokens you control. Source: https://dropline.cleforyx.com/docs/developers · Section: Developers · All docs: https://dropline.cleforyx.com/llms.txt Dropline has three ways in for code. They share the same tokens, scopes, mailboxes, send approval and rate limits. | | Use it for | Where | | --- | --- | --- | | **REST API** | Your own apps and scripts | `https://dropline.cleforyx.com/api/v1` | | **Webhooks** | Being told when mail arrives, is sent, or needs approval | Your HTTPS endpoint | | **MCP server** | AI agents: Claude Code, Cursor, VS Code | `https://dropline.cleforyx.com/mcp` | ## The basics - JSON in and out, UTF-8, `snake_case` field names, timestamps in ISO 8601 UTC. - Every request carries a personal access token: `Authorization: Bearer dl_pat_…`. - Errors always look the same: `{ "error": { "code", "message", "details" } }`. - Nothing in the API deletes mail permanently. The most it can do is move a message to Trash. - You don’t need the mail server (`mail.cleforyx.com`) for any of this; it’s for mail apps. ## Your first call Create a token under **Settings → Connect AI agents** with the `mail.read` scope, then: ```bash curl https://dropline.cleforyx.com/api/v1/mailboxes \ -H "Authorization: Bearer $DROPLINE_TOKEN" ``` > [!NOTE] > The machine-readable spec (OpenAPI 3.1) is at `https://dropline.cleforyx.com/api/v1/openapi.json`. It needs no token. ## Where to go next - [Authentication](https://dropline.cleforyx.com/docs/developers/authentication): Tokens, scopes and send approval. - [REST API reference](https://dropline.cleforyx.com/docs/developers/api): Every endpoint, with examples. - [Webhooks](https://dropline.cleforyx.com/docs/developers/webhooks): Events, signatures and retries. - [MCP server](https://dropline.cleforyx.com/docs/developers/mcp): Connect an AI agent in one line. --- Previous: [Troubleshooting and FAQ](https://dropline.cleforyx.com/docs/troubleshooting.md) · Next: [Authentication and scopes](https://dropline.cleforyx.com/docs/developers/authentication.md)