Standard API response wrapper
All API responses are wrapped in this structure to provide consistent response handling across the SDK.
const response: APIResponse<UserInterface> = { data: { id: 'user-123', email: 'user@example.com', name: 'John Doe' }, paging: { limit: 10, offset: 0, total: 1 }}; Copy
const response: APIResponse<UserInterface> = { data: { id: 'user-123', email: 'user@example.com', name: 'John Doe' }, paging: { limit: 10, offset: 0, total: 1 }};
The type of data contained in the response
The response data, can be a single item or array
Optional
Pagination information for list responses
Standard API response wrapper
All API responses are wrapped in this structure to provide consistent response handling across the SDK.
Example