Developer overview
Read, search, organise, draft and send mail from your own code or AI agent, with tokens you control.
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_casefield 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:
curl https://dropline.cleforyx.com/api/v1/mailboxes \
-H "Authorization: Bearer $DROPLINE_TOKEN"Where to go next
- Authentication: Tokens, scopes and send approval.
- REST API reference: Every endpoint, with examples.
- Webhooks: Events, signatures and retries.
- MCP server: Connect an AI agent in one line.