Context schema Model API Reference (Contexts)
Reference the Novu context schema used in API requests and responses. Review fields, data types, and object structure for this resource.
Context
Context is a reusable, user-defined data object that stores metadata (like tenant, region, or app details) to organize and personalize notifications. Unlike payloads that exist only for a single workflow execution, contexts are persistent and can be shared across multiple workflows and API calls. This makes them particularly useful for multi-tenant applications, dynamic branding, and scenarios where notifications need to reference common, reusable data.
Read more about how to use contexts in workflows in the contexts section.
Retrieve master translations JSON GET
Retrieve all translations for a locale in master JSON format organized by resourceId (workflowId)
Create a context POST
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