# MessageBatch

The MessageBatch type of the TypeScript SDK, which messages.getMany take or answer.

```ts
type MessageBatch = {
  messages: Record<string, MessageMeta | null>
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `messages` | `Record<string, MessageMeta \| null>` | Map of message ID to message metadata |

## Used by

| Method | What it does |
| --- | --- |
| [`messages.getMany`](/docs/sdks/typescript/messages/get-many) | Batch get message metadata |
