MCP
An agent can use the API as tools. Each method is one tool, and the key decides what the agent may do.
Connect a client
The MCP server is part of the API, at /v1/mcp. It speaks MCP over HTTP and takes the key in the Authorization header, like every other request. Most clients need only the address and that header. This is the entry for Claude Code, in .mcp.json.
{ "mcpServers": { "opensend": { "type": "http", "url": "https://api.opensend.sh/v1/mcp", "headers": { "Authorization": "Bearer os_..." } } }}Tools
A tool is named after its method: emails.send is emails_send, and apiKeys.create is api_keys_create. Its input is the input of the method, and its description says what it does. Each tool also says whether it only reads, whether it destroys something, and whether it reaches outside the workspace, as sending does.
tools/list gives the tools the key may use and no others: a sending key sees the tools that send, and a full key sees them all. A call the key may not make still gets an answer, an error with the code forbidden.
Each tool carries the name of its method under _meta, as opensend/method, so a program can tie a tool to the same method in this reference.
curl -X POST "$OPENSEND_API_URL/v1/mcp" \ -H "Authorization: Bearer $OPENSEND_API_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"domains_list","arguments":{"status":"pending"}}}'The answer holds the result twice: as structuredContent, and as text for clients that read only text. A refused call has isError set and says why as text. It also carries the error as structuredContent.error, with the type, code and message the REST API answers with, so a program can branch on the code.
Check a call first
To learn whether a call would be taken without running it, send it with opensend/check set to true under _meta, next to name and arguments.
curl -X POST "$OPENSEND_API_URL/v1/mcp" \ -H "Authorization: Bearer $OPENSEND_API_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"domains_create","arguments":{"name":"updates.example.com"},"_meta":{"opensend/check":true}}}'The server checks that the key may use the tool and that the input is valid, runs nothing, and answers. An input that would be refused comes back as the same error a real call gives. It cannot tell you what only running can, such as a domain that is already added.
Protocol
- One
POSTto/v1/mcpcarries a JSON-RPC 2.0 message, or a list of them, and the answer is plain JSON. - The server speaks the protocol versions
2025-06-18,2025-03-26,2024-11-05. - It answers
initialize,ping,tools/listandtools/call. It has tools only: no resources and no prompts.
What is not a tool
Closing a workspace is not a tool, so a mistake of a model cannot wipe one. The assistant and its kept chats are not tools either: the assistant is not one of its own tools.
The assistant
OpenSend has an assistant of its own, and it is a client of this same server. It starts a connection, reads tools/list and calls the tools like any other agent, so a tool that exists here is one the assistant can use, with nothing else to set up. It acts as the person who asks, with their permissions.
Ask it a question and it looks the answer up. It never changes anything by itself: it checks a change first, the change comes back as a proposal, and it runs only when you send it back.
curl -X POST "$OPENSEND_API_URL/v1/ask" \ -H "Authorization: Bearer $OPENSEND_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "messages": [ { "role": "user", "text": "Which domains are not verified yet?" } ]}'{ "object": "ask_answer", "text": "Two domains are not verified yet: news.example.com is pending and example.org failed its last check.", "steps": [ { "call": "domains.list", "title": "List domains", "ok": true } ], "proposal": null, "result": null}Every tool
Emails
- Tool
emails_send- What it does
- Send email
- Tool
emails_batch- What it does
- Send emails in a batch
- Tool
emails_update- What it does
- Reschedule email
- Tool
emails_cancel- What it does
- Cancel email
- Tool
emails_get- What it does
- Retrieve email
- Tool
emails_list- What it does
- List emails
Received emails
- Tool
inbound_list- What it does
- List received emails
- Tool
inbound_get- What it does
- Retrieve received email
Domains
- Tool
domains_create- What it does
- Add domain
- Tool
domains_verify- What it does
- Verify domain
- Tool
domains_get- What it does
- Retrieve domain
- Tool
domains_list- What it does
- List domains
- Tool
domains_update- What it does
- Update domain
- Tool
domains_remove- What it does
- Delete domain
Templates
- Tool
templates_create- What it does
- Create template
- Tool
templates_get- What it does
- Get template
- Tool
templates_list- What it does
- List templates
- Tool
templates_update- What it does
- Update template
- Tool
templates_edit- What it does
- Edit template design
- What it does
- Publish template
- Tool
templates_test- What it does
- Send test of template
- Tool
templates_render- What it does
- Render template design
- What it does
- Duplicate template
- What it does
- List template versions
- What it does
- Get template version
- What it does
- Restore template version
- Tool
templates_remove- What it does
- Delete template
- What it does
- List template starters
- What it does
- Get template starter
Images
- Tool
images_add- What it does
- Add image
- Tool
images_upload- What it does
- Upload image
- Tool
images_list- What it does
- List images
- Tool
images_get- What it does
- Retrieve image
- Tool
images_remove- What it does
- Delete image
Broadcasts
- What it does
- Create broadcast
- What it does
- Update broadcast
- Tool
broadcasts_send- What it does
- Send broadcast
- Tool
broadcasts_test- What it does
- Send test of broadcast
- What it does
- Duplicate broadcast
- Tool
broadcasts_get- What it does
- Retrieve broadcast
- Tool
broadcasts_list- What it does
- List broadcasts
- What it does
- Delete broadcast
Audiences
- Tool
audiences_create- What it does
- Create audience
- Tool
audiences_list- What it does
- List audiences
- Tool
audiences_get- What it does
- Retrieve audience
- Tool
audiences_update- What it does
- Rename audience
- Tool
audiences_remove- What it does
- Delete audience
- Tool
audiences_join- What it does
- Add contact to audience
- Tool
audiences_leave- What it does
- Remove contact from audience
Contacts
- Tool
contacts_create- What it does
- Add contact
- Tool
contacts_list- What it does
- List contacts
- Tool
contacts_get- What it does
- Retrieve contact
- Tool
contacts_update- What it does
- Update contact
- Tool
contacts_remove- What it does
- Delete contact
Contact properties
- What it does
- Create contact property
- What it does
- List contact properties
- What it does
- Retrieve contact property
- What it does
- Update contact property
- What it does
- Delete contact property
Topics
- Tool
topics_create- What it does
- Create topic
- Tool
topics_list- What it does
- List topics
- Tool
topics_get- What it does
- Retrieve topic
- Tool
topics_update- What it does
- Update topic
- Tool
topics_remove- What it does
- Delete topic
Suppressions
- What it does
- Suppress an address
- What it does
- List suppressed addresses
- What it does
- Remove a suppressed address
Automations
- What it does
- Create automation
- What it does
- Update automation
- What it does
- Publish automation
- What it does
- Pause automation
- What it does
- Resume automation
- Tool
automations_test- What it does
- Test automation
- What it does
- Enrol in automation
- What it does
- Duplicate automation
- Tool
automations_get- What it does
- Retrieve automation
- Tool
automations_list- What it does
- List automations
- What it does
- Delete automation
Runs
- Tool
runs_list- What it does
- List runs
- Tool
runs_get- What it does
- Retrieve run
- Tool
runs_cancel- What it does
- Cancel run
- Tool
runs_retry- What it does
- Retry run
Events
- Tool
events_send- What it does
- Send event
- Tool
events_create- What it does
- Define event
- Tool
events_list- What it does
- List events
- Tool
events_get- What it does
- Retrieve event
- Tool
events_update- What it does
- Update event
- Tool
events_remove- What it does
- Delete event
Webhooks
- Tool
webhooks_create- What it does
- Add webhook
- Tool
webhooks_list- What it does
- List webhooks
- Tool
webhooks_update- What it does
- Update webhook
- Tool
webhooks_remove- What it does
- Delete webhook
- Tool
webhooks_test- What it does
- Send test event
- What it does
- List webhook deliveries
Metrics
- Tool
metrics_get- What it does
- Retrieve metrics
Logs
- Tool
logs_list- What it does
- List logs
- Tool
logs_get- What it does
- Retrieve log
API keys
- Tool
api_keys_create- What it does
- Create API key
- Tool
api_keys_enroll- What it does
- Enroll existing API key
- Tool
api_keys_list- What it does
- List API keys
- Tool
api_keys_remove- What it does
- Revoke API key
Imports
- Tool
imports_inspect- What it does
- Look into another account
- Tool
imports_create- What it does
- Start import
- Tool
imports_get- What it does
- Retrieve import
- Tool
imports_list- What it does
- List imports
- Tool
imports_cancel- What it does
- Cancel import
Workspace
- Tool
workspace_get- What it does
- Retrieve workspace
- Tool
workspace_update- What it does
- Update workspace
Members
- Tool
members_invite- What it does
- Invite member
- Tool
members_list- What it does
- List members
- Tool
members_update- What it does
- Update member
- Tool
members_remove- What it does
- Remove member
Billing
- Tool
billing_plans- What it does
- List plans
- Tool
billing_checkout- What it does
- Start checkout
- Tool
billing_portal- What it does
- Open billing portal
- Tool
billing_invoices- What it does
- List invoices
Server
- Tool
server_get- What it does
- Retrieve server settings
Account
- Tool
account_get- What it does
- Retrieve account
Methods
- Tool
methods_list- What it does
- List methods