Skip to content

fix: correct email-agent API usage and webhook docs#10

Open
MaxwellCalkin wants to merge 1 commit intoagentmail-to:mainfrom
MaxwellCalkin:fix/email-agent-bugs
Open

fix: correct email-agent API usage and webhook docs#10
MaxwellCalkin wants to merge 1 commit intoagentmail-to:mainfrom
MaxwellCalkin:fix/email-agent-bugs

Conversation

@MaxwellCalkin
Copy link

@MaxwellCalkin MaxwellCalkin commented Mar 7, 2026

Summary

These are the same two bugs fixed in #9 for the sales-agent, now also fixed in the email-agent.

Test plan

  • Verified the correct API matches dinner-agent and github-maintainer-agent which already use client.inboxes.messages.reply()
  • Verified webhook creation requires event_types per AgentMail API docs

🤖 Generated with Claude Code


Summary by cubic

Corrected the email-agent reply call to use client.inboxes.messages.reply and updated the webhook example to include event_types. This prevents reply failures and ensures webhooks can be created successfully with AgentMail.

Written for commit 798fa0b. Summary will update on new commits.

- Fix client.messages.reply() → client.inboxes.messages.reply()
  Same bug as sales-agent (issue agentmail-to#4), the messages API is namespaced
  under inboxes in the current SDK
- Add missing event_types field to webhook creation curl command
  Same bug as sales-agent (issue agentmail-to#3), the API requires event_types

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant