import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
const params = {
page: 0, // optional
pageSize: 20, // optional
sortBy: "_id"
orderBy: -1 //optional
}
await novu.layouts.list(params);
{
data: ["data"],
page: 0,
pageSize: 0,
totalCount: 0
}
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
const params = {
page: 0, // optional
pageSize: 20, // optional
sortBy: "_id"
orderBy: -1 //optional
}
await novu.layouts.list(params);
{
data: ["data"],
page: 0,
pageSize: 0,
totalCount: 0
}
Authorization
field like the example shown below:E.g ApiKey 18d2e625f05d80e
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
const params = {
page: 0, // optional
pageSize: 20, // optional
sortBy: "_id"
orderBy: -1 //optional
}
await novu.layouts.list(params);
{
data: ["data"],
page: 0,
pageSize: 0,
totalCount: 0
}
Number of page for the pagination
x >= 0
Size of page for the pagination
x >= 0
Sort field. Currently only supported createdAt
Direction of the sorting query param. Either ascending (1) or descending (-1)
1
, -1
The list of layouts that match the criteria of the query params are successfully returned.
The response is of type object
.
Was this page helpful?