GET
/
v1
/
layouts
import { Novu } from '@novu/node';

const novu = new Novu('<NOVU_SECRET_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
}

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

E.g ApiKey 18d2e625f05d80e

import { Novu } from '@novu/node';

const novu = new Novu('<NOVU_SECRET_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
}

Authorizations

Authorization
string
headerrequired

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

Query Parameters

page
number

Number of page for pagination

pageSize
number

Size of page for pagination

sortBy
string

Sort field. Currently only supported createdAt

orderBy
enum<string>

Direction of the sorting query param

Available options:
ASC,
DESC