List routes for a domain
Returns a paginated list of routes attached to the domain. Optionally filter by an agent identifier to find routes pointing to a specific agent.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Path Parameters
domainRequiredstringQuery 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
agentIdstringAgent identifier to filter routes by.
Header Parameters
idempotency-keystringA header for idempotency purposes
Response Body
OK
dataRequiredarray<object>List of returned domain routes
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