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

Authorization

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

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
typestringrequired#
Context type (e.g., tenant, app, workspace). Must be lowercase alphanumeric with optional separators.

Length: 1–100Pattern: ^[a-zA-Z0-9_-]+$

Example:"tenant"

idstringrequired#
Unique identifier for this context. Must be lowercase alphanumeric with optional separators.

Length: 1–100Pattern: ^[a-zA-Z0-9_-]+$

Example:"org-acme"

dataobject#
Optional custom data to associate with this context.
Example:
bridgeUrlstring#
Optional bridge URL override for agent connect. When an inbound agent turn resolves this context, its bridge call is routed here instead of the agent default bridge URL. Must be a publicly reachable URL.

Example:"https://tenant-acme.example.com/api/novu"

Responses

application/json
Created
typestringrequired#
Context type (e.g., tenant, app, workspace)
idstringrequired#
Unique identifier for this context
dataobjectrequired#
Custom data associated with this context
bridgeUrlstring#
Bridge URL override for agent connect, if configured on this context
createdAtstringrequired#
Creation timestamp
updatedAtstringrequired#
Last update timestamp