Skip to content

adding batch get message#153

Merged
duharry0915 merged 1 commit into
mainfrom
addBatchGetMessage
May 11, 2026
Merged

adding batch get message#153
duharry0915 merged 1 commit into
mainfrom
addBatchGetMessage

Conversation

@duharry0915
Copy link
Copy Markdown
Collaborator

@duharry0915 duharry0915 commented May 11, 2026

Summary by cubic

Adds a batch-get endpoint to fetch message metadata for up to 500 messages in one request. This reduces API round-trips and speeds up inbox tooling.

  • New Features
    • Added POST batchGet for inbox messages to retrieve up to 500 message metadata in one call.
    • Request takes message_ids (max 500); duplicates return a ValidationError. Missing or restricted IDs are omitted; compare count vs limit to detect misses. Order matches the request.
    • Response returns metadata only; body fields are not included. Use the single-message endpoint to fetch bodies.
    • Added CLI docs for agentmail inboxes:messages batch-get.

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

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

✨ API Changes

# API Changelog n/a vs. n/a


## API Changes

### POST /v0/inboxes/{inbox_id}/messages/batch-get
-  endpoint added

💡 Download api-changelog-diff artifact or tag @fern Writer in #github-prs for changelog.

Copy link
Copy Markdown
Contributor

@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

@duharry0915 duharry0915 merged commit 7b0109c into main May 11, 2026
5 checks passed
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