GET
/
v1
/
messages
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
}

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

Query Parameters

channel
enum<string>
Available options:
in_app,
email,
sms,
chat,
push
subscriberId
string
transactionId
string[]
page
number
default: 0
limit
number
default: 10

Response

200 - application/json
hasMore
boolean
required
data
object[]
required
pageSize
number
required
page
number
required