Skip to main content
get/v2/contexts
Request example
Response
get/v2/contexts

Authorization

Authorizationstringheaderrequired#
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

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#
Limit the number of items to return

Example:10

orderDirectionenum<string>#
Direction of sorting
Options:ASCDESC
orderBystring#
Field to order by
includeCursorboolean#
Include cursor item in response
typestring#
Filter contexts by type

Example:"tenant"

idstring#
Filter contexts by id

Example:"tenant-prod-123"

Headers

idempotency-keystring#
A header for idempotency purposes

Responses

application/json
OK
dataobject[]required#
List of returned Contexts
nextstringrequired#
The cursor for the next page of results, or null if there are no more pages.
previousstringrequired#
The cursor for the previous page of results, or null if this is the first page.
totalCountnumberrequired#
The total count of items (up to 50,000)
totalCountCappedbooleanrequired#
Whether there are more than 50,000 results available