Skip to content

fix: correct sales-agent API usage and webhook docs#9

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

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

Conversation

@MaxwellCalkin
Copy link

@MaxwellCalkin MaxwellCalkin commented Mar 7, 2026

Fix client.messages.reply to client.inboxes.messages.reply in main.py (fixes #4). Add required event_types field to webhook creation curl in README (fixes #3).


Summary by cubic

Fixes the sales-agent example to use the correct reply API and updates webhook docs to include the required event_types field.

  • Bug Fixes
    • Use client.inboxes.messages.reply in main.py so replies send correctly.
    • Add event_types: ["message_received"] to the webhook curl in README to prevent API errors.

Written for commit cbad985. Summary will update on new commits.

- Fix `client.messages.reply()` → `client.inboxes.messages.reply()` (fixes agentmail-to#4)
- Add required `event_types` field to webhook creation curl command (fixes agentmail-to#3)

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.

Bug Report: AgentMail API Usage Error in Sales Agent Example Bug Report: Webhook Creation Requires event_types Field

1 participant