Batch API response wrapper
All batch API responses are wrapped in this structure to provide consistent response handling across the SDK.
const batchResponse: BatchAPIResponse<UserInterface> = { data: [ { id: 'user-1', email: 'user1@example.com' }, { id: 'user-2', email: 'user2@example.com' } ], paging: { limit: 10, offset: 0, total: 2 }}; Copy
const batchResponse: BatchAPIResponse<UserInterface> = { data: [ { id: 'user-1', email: 'user1@example.com' }, { id: 'user-2', email: 'user2@example.com' } ], paging: { limit: 10, offset: 0, total: 2 }};
The type of data contained in the response
Array of response data items
Optional
Pagination information
Batch API response wrapper
All batch API responses are wrapped in this structure to provide consistent response handling across the SDK.
Example