Skip to main content
Enter your API key in the Authorization field like the example shown below:E.g ApiKey 18d2e625f05d80e
import { Novu, ChannelTypeEnum } from '@novu/node';

const novu = new Novu('<NOVU_API_KEY>');

const params = {
  page: 0, // optional
  limit: 20, // optional
  subscriberId: "subscriberId"  //optional
  channel: ChannelTypeEnum.EMAIL //optional
  transactionIds : ["txnId1","txnId2"] //optional
}

await novu.messages.list(params);
{
    hasMore: true,
    data: [data],
    pageSize: 0,
    page: 0
}