Trying to fetch large volumes of conversation details using the Genesys Cloud Analytics API. The endpoint is GET /api/v2/analytics/conversations/details/query. I’m using the official Node.js SDK.
const response = await platformClient.analyticsApi.postAnalyticsConversationsDetailsQuery({
body: {
size: 2000,
dateRange: { start: '2023-10-01T00:00:00.000Z', end: '2023-10-02T00:00:00.000Z' }
}
});
The response includes a nextPageCursor. The docs imply this cursor should be passed back in the request body to get the next batch. But the TypeScript interface for the request body doesn’t have a nextPageCursor property. It only has size, dateRange, groupBy, etc.
Am I supposed to append ?cursor=xyz to the URL manually, ignoring the typed method? Or is the SDK missing this field in the type definition? The raw REST call works with the query param, but the SDK seems to block it.