Batch Get Messages
Fetch metadata for up to 500 messages in one request. Missing or
restricted IDs are silently omitted; compare `count` against `limit`
to detect misses.
**CLI:**
```bash
agentmail inboxes:messages batch-get --inbox-id <inbox_id> --message-id <id1> --message-id <id2>
```
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
inbox_id
The ID of the inbox.
Request
This endpoint expects an object.
message_ids
IDs of messages to fetch. Maximum 500 ids per request. Duplicates are
rejected with a validation error. IDs not found in the inbox (including
cross-inbox or permission-restricted) are silently omitted from the
response; callers detect misses by comparing count against limit.
Response
This endpoint returns an object.
limit
Limit of number of items returned.
count
Number of items returned.
messages
Found messages. Order matches message_ids in the request. Body
fields (text, html, extracted_text, extracted_html) are
never populated; use the single-message endpoint to retrieve bodies.
Errors
400
Validation Error
