Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Pins the AgentMail send-message API base URL, required body fields, text-only rendering workaround, and curl and swarm-script examples.
27% 100%+73 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 6 of 22 without it.
3 of 3 safety checks passed
Not used yet
Use this base URL exactly:
https://api.agentmail.to/v0/
DO NOT use api.agentmail.ai. That host is a hallucination and will not send mail through AgentMail's current API.
For POST /inboxes/{inbox}/messages/send, the JSON body fields are exactly:
to
bcc
subject
text
Use text, NOT text_body, body, or content.
Do NOT pass html. AgentMail has a known rendering bug: when html is passed with text, the HTML body can be empty and email clients may show a blank email. AgentMail renders text correctly on its own.
For a one-off send, such as a kickoff email or a single notification, do not create a reusable swarm-script. Use raw curl from Bash, or inline script_run if you need swarm-visible execution.
Only use script_upsert when the send will be reused by a workflow that fires repeatedly.
Use this direct API call first. It does not assume any SDK is installed.
Endpoint:
Next to this one in the catalogue, plus more from the same author.