Skip to content

Conversation

@mmaudet
Copy link

@mmaudet mmaudet commented Dec 14, 2025

Summary

  • Add GET /envelope/{account_id}/{message_id} endpoint to retrieve message envelope (metadata)
  • Move message_id from query parameter to path parameter for clearer, more RESTful API paths
  • Fix API documentation descriptions to be more accurate and descriptive
  • Update frontend API client to use new path-based URLs

Changes

New Endpoint

  • GET /api/v1/envelope/{account_id}/{message_id} - Retrieves the envelope (metadata) of a specific message

API Path Improvements

Old Path New Path
/message-content/{account_id}?message_id=X /message-content/{account_id}/{message_id}
/download-message/{account_id}?message_id=X /download-message/{account_id}/{message_id}
/download-attachment/{account_id}?message_id=X&name=Y /download-attachment/{account_id}/{message_id}?name=Y

Documentation Fixes

  • search_messages: Now correctly describes search functionality instead of "Lists messages"
  • get_thread_messages: Mentions thread_id requirement
  • Proxy endpoints: Fixed copy-paste errors that mentioned OAuth2 instead of proxy

Test plan

  • Verify /api/v1/envelope/{account_id}/{message_id} returns correct envelope data
  • Verify /api/v1/message-content/{account_id}/{message_id} works with new path
  • Verify /api/v1/download-message/{account_id}/{message_id} works with new path
  • Verify /api/v1/download-attachment/{account_id}/{message_id}?name=X works with new path
  • Check Swagger UI documentation is clear and accurate

🤖 Generated with Claude Code

- Add GET /envelope/{account_id}/{message_id} endpoint to retrieve message envelope (metadata)
- Add get_envelope_by_id method to ENVELOPE_INDEX_MANAGER for querying single envelope
- Move message_id from query parameter to path parameter for clearer API paths:
  - /message-content/{account_id}/{message_id}
  - /download-message/{account_id}/{message_id}
  - /download-attachment/{account_id}/{message_id}
  - /envelope/{account_id}/{message_id}
- Fix API documentation descriptions to be more accurate:
  - search_messages: Now correctly describes search functionality
  - get_thread_messages: Mentions thread_id requirement
  - proxy endpoints: Fixed copy-paste errors from OAuth2 docs
- Update frontend API client to use new path-based URLs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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