Email notifications
agent-data notify sends a message to the email address on your account. It accepts a subject and Markdown body. It has no arbitrary-recipient option.
You need an authenticated CLI or an HTTP API key.
- Preview the message.
- Send the reviewed message.
- Check the result in your inbox.
1. Preview the exact message
Section titled “1. Preview the exact message”agent-data notify \ --subject "agent-data documentation check" \ --body "The get-data tutorial retrieved YouTube results." \ --dry-runThis CLI 0.13.0 preview comes from November 14, 2026. The excerpt omits headers, including Authorization.
{ "dry_run": true, "method": "POST", "url": "https://agent-data.motie.dev/api/v1/notify", "body": { "subject": "agent-data documentation check", "body": "The get-data tutorial retrieved YouTube results." }}Check the subject and body. dry_run: true means no email was sent.
2. Send when ready
Section titled “2. Send when ready”Send the same message after your review. If a coding agent prepares it, explicitly instruct the agent to send the reviewed text.
Remove --dry-run to send the message.
agent-data notify \ --subject "agent-data documentation check" \ --body "The get-data tutorial retrieved YouTube results."Supply your API key through AGENT_DATA_API_KEY. A CLI browser login does not authenticate curl.
HTTP has no preview parameter. This request sends the message to your account address.
curl --fail-with-body 'https://agent-data.motie.dev/api/v1/notify' \ -H "Authorization: Bearer $AGENT_DATA_API_KEY" \ -H 'Content-Type: application/json' \ --data '{"subject":"agent-data documentation check","body":"The get-data tutorial retrieved YouTube results."}'The MCP server has no notify tool. Use CLI or HTTP to send the message.
Check the command’s response and your inbox separately. Request acceptance does not establish email arrival.
Send a file
Section titled “Send a file”For a prepared Markdown file, use standard input. The first command previews the message. The second command sends it.
./└── summary.md # Your prepared messageagent-data notify --subject "Research summary" --dry-run < summary.mdagent-data notify --subject "Research summary" < summary.mdOptions and limits
Section titled “Options and limits”| Option | Meaning |
|---|---|
--subject <subject> | Required text, at most 200 characters, without line breaks. |
--body <markdown> | Markdown text, at most 32,768 UTF-8 bytes in the CLI. Omit it to read standard input. |
--dry-run | Print the request without email submission. |
--api-key, --base-url, --verbose, --help | See common CLI options. |
The published CLI defines these input limits. Non-ASCII text can use multiple UTF-8 bytes per character.
If the message does not send
Section titled “If the message does not send”| What you see | What to do |
|---|---|
| The CLI reports a missing subject or empty body. | Supply the missing field. |
| The CLI reports an input above its limit. | Reduce that field to the documented limit. |
| The command waits for standard input. | Finish the input, or redirect your file with < summary.md. |
| Authentication fails. | Check the credential with agent-data auth status. |
| A send request times out. | Retain the error. Check the inbox before another send because a timeout does not establish rejection. |
When to retrieve data first
Section titled “When to retrieve data first”Use the API data guide to retrieve records before you prepare an email. See usage for how notifications differ from data calls.