Topics
List all topics
Changed onThis api returns a paginated list of topics. Topics can be filtered by key, name, or includeCursor to paginate through the list. Checkout all available filters in the query section.
get/v2/topics
Request
- Base URLhttps://api.novu.co
- AuthAPI key in header Authorization
Query parameters
afterstring
Cursor for pagination indicating the starting point after which to fetch results.
beforestring
Cursor for pagination indicating the ending point before which to fetch results.
limitnumber
Example:10
Limit the number of items to return (max 100)
orderDirection'ASC' | 'DESC'
Direction of sorting
orderBystring
Field to order by
includeCursorboolean
Include cursor item in response
keystring
Key of the topic to filter results.
namestring
Name of the topic to filter results.
Headers
idempotency-keystring
A header for idempotency purposes
Response
OK
Example response
{
"data": [
{
"_id": "64da692e9a94fb2e6449ad06",
"key": "product-updates",
"name": "Product Updates",
"data": {
"category": "product",
"priority": 1
},
"createdAt": "2023-08-15T00:00:00.000Z",
"updatedAt": "2023-08-15T00:00:00.000Z"
}
]
}Changes
- info
added the optional property
//to the response with the status
- info