Contexts
Create a context
Create a new context with the specified type, id, and data. Returns 409 if context already exists. type and id are required fields, data is optional, if the context already exists, it returns the 409 response
POST
PHP
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
Headers
A header for idempotency purposes
Body
application/json
Context type (e.g., tenant, app, workspace). Must be lowercase alphanumeric with optional separators.
Required string length:
1 - 100Pattern:
^[a-zA-Z0-9_-]+$Example:
"tenant"
Unique identifier for this context. Must be lowercase alphanumeric with optional separators.
Required string length:
1 - 100Pattern:
^[a-zA-Z0-9_-]+$Example:
"org-acme"
Optional custom data to associate with this context.
Example:
{
"tenantName": "Acme Corp",
"region": "us-east-1",
"settings": { "theme": "dark" }
}