---
title: Batch
slug: data-platform/connect-platform/app-sdk-api-reference-classes-batch
docTags: 
createdAt: 2026-08-05T20:06:35.251Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / Batch

# Batch

## Index

### Constructors

- [constructor](<./#function Object() \{ \[native code] }>)

### Methods

- [getMessages](docId\:gDfEVUhQwhfNSTAhL2F6s)

## Constructors

## constructor()

### Signature

```typescript
new Batch(messages: Message[]): Batch;
```

### Parameters

| Name       | Type                                               |
| ---------- | -------------------------------------------------- |
| `messages` | [`` `Message` ``](docId\:yZCeulHJFlZmUIxHo88wl)\[] |

### Returns

[`` `Batch` ``](docId\:gDfEVUhQwhfNSTAhL2F6s)

Defined in: [src/app/Consumer.ts:5](https://github.com/ZaiusInc/app-sdk/blob/f0c021d/src/app/Consumer.ts#L5)

## Methods

### getMessages()

### Signature

```typescript
getMessages(): Message[];
```

### Returns

[`` `Message` ``](docId\:yZCeulHJFlZmUIxHo88wl)\[]

Defined in: [src/app/Consumer.ts:8](https://github.com/ZaiusInc/app-sdk/blob/f0c021d/src/app/Consumer.ts#L8)
