List domains for an environment
Returns a paginated list of inbound-email domains in the current environment. Supports cursor pagination and a name contains filter.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Query Parameters
afterstringCursor for pagination indicating the starting point after which to fetch results.
beforestringCursor for pagination indicating the ending point before which to fetch results.
limitnumberLimit the number of items to return
orderDirectionstringDirection of sorting
"ASC" | "DESC"orderBystringField to order by
includeCursorbooleanInclude cursor item in response
namestringDomain name to filter results by.
Header Parameters
idempotency-keystringA header for idempotency purposes
Response Body
OK
dataRequiredarray<object>List of returned domains
nextRequiredstring | nullThe cursor for the next page of results, or null if there are no more pages.
previousRequiredstring | nullThe cursor for the previous page of results, or null if this is the first page.
totalCountRequirednumberThe total count of items (up to 50,000)
totalCountCappedRequiredbooleanWhether there are more than 50,000 results available