fix: correct email-agent API usage and webhook docs#10
Open
MaxwellCalkin wants to merge 1 commit intoagentmail-to:mainfrom
Open
fix: correct email-agent API usage and webhook docs#10MaxwellCalkin wants to merge 1 commit intoagentmail-to:mainfrom
MaxwellCalkin wants to merge 1 commit intoagentmail-to:mainfrom
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
client.messages.reply()→client.inboxes.messages.reply()in email-agent (same bug as Bug Report: AgentMail API Usage Error in Sales Agent Example #4 in sales-agent)event_typesfield to webhook creation curl command in email-agent README (same bug as Bug Report: Webhook Creation Requires event_types Field #3 in sales-agent)These are the same two bugs fixed in #9 for the sales-agent, now also fixed in the email-agent.
Test plan
dinner-agentandgithub-maintainer-agentwhich already useclient.inboxes.messages.reply()event_typesper 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.