from novu.api import EventApiurl = "https://api.novu.co"api_key = "<NOVU_API_KEY>"novu = EventApi(url, api_key).trigger( name="<WORKFLOW_TRIGGER_IDENTIFIER>", # This is the Workflow ID. It can be found on the workflow page. recipients="<UNIQUE_SUBSCRIBER_IDENTIFIER>", # The subscriber ID can be gotten from the dashboard. payload={}, # Your custom Novu payload goes here)
import co.novu.common.base.Novu;import co.novu.api.common.SubscriberRequest;import co.novu.api.events.requests.TriggerEventRequest;import co.novu.api.events.responses.TriggerEventResponse;public class Main { public static void main(String[] args) { String apiKey = "<NOVU_API_KEY>"; Novu novu = new Novu(apiKey); SubscriberRequest subscriberRequest = new SubscriberRequest(); subscriberRequest.setEmail("<EMAIL_ADDRESS>"); subscriberRequest.setFirstName("<FIRST_NAME>"); subscriberRequest.setLastName("<LAST_NAME>"); subscriberRequest.setPhone("<PHONE_NUMBER>"); subscriberRequest.setAvatar("<AVATAR>"); subscriberRequest.setSubscriberId("<SUBSCRIBER_ID>"); TriggerEventRequest triggerEventRequest = new TriggerEventRequest(); triggerEventRequest.setName("<NAME>"); triggerEventRequest.setTo(subscriberRequest); triggerEventRequest.setPayload(Collections.singletonMap("<CUSTOM_VARIABLE_NAME>", "<CUSTOM_VARIABLE_VALUE>")); TriggerEventResponse response = novu.triggerEvent(triggerEventRequest); }}
using Novu.DTO;using Novu.Models;using Novu;var novuConfiguration = new NovuClientConfiguration{ /** * Defaults to https://api.novu.co/v1 */ Url = "https://novu-api.my-domain.com/v1", ApiKey = "12345",};var novu = new NovuClient(novuConfiguration);public class OnboardEventPayload{ [JsonProperty("username")] public string Username { get; set; } [JsonProperty("welcomeMessage")] public string WelcomeMessage { get; set; }}var onboardingMessage = new OnboardEventPayload{ Username = "jdoe", WelcomeMessage = "Welcome to novu-dotnet"};var payload = new EventTriggerDataDto(){ EventName = "onboarding", To = { SubscriberId = "subscriberId" }, Payload = onboardingMessage};var trigger = await novu.Event.Trigger(payload);
Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.
To prevent duplicate triggers, you can optionally pass a transactionId in the request body. If the same transactionId is used again, the trigger will be ignored. The retention period depends on your billing tier.
POST
/
v1
/
events
/
trigger
import { Novu } from '@novu/node';const novu = new Novu("<NOVU_API_KEY>");await novu.trigger('<WORKFLOW_TRIGGER_IDENTIFIER>', { to: { subscriberId: '<UNIQUE_SUBSCRIBER_IDENTIFIER>', email: 'john@doemail.com', firstName: 'John', lastName: 'Doe', }, payload: { name: "Hello World", organization: { logo: 'https://happycorp.com/logo.png', }, }, });
from novu.api import EventApiurl = "https://api.novu.co"api_key = "<NOVU_API_KEY>"novu = EventApi(url, api_key).trigger( name="<WORKFLOW_TRIGGER_IDENTIFIER>", # This is the Workflow ID. It can be found on the workflow page. recipients="<UNIQUE_SUBSCRIBER_IDENTIFIER>", # The subscriber ID can be gotten from the dashboard. payload={}, # Your custom Novu payload goes here)
import co.novu.common.base.Novu;import co.novu.api.common.SubscriberRequest;import co.novu.api.events.requests.TriggerEventRequest;import co.novu.api.events.responses.TriggerEventResponse;public class Main { public static void main(String[] args) { String apiKey = "<NOVU_API_KEY>"; Novu novu = new Novu(apiKey); SubscriberRequest subscriberRequest = new SubscriberRequest(); subscriberRequest.setEmail("<EMAIL_ADDRESS>"); subscriberRequest.setFirstName("<FIRST_NAME>"); subscriberRequest.setLastName("<LAST_NAME>"); subscriberRequest.setPhone("<PHONE_NUMBER>"); subscriberRequest.setAvatar("<AVATAR>"); subscriberRequest.setSubscriberId("<SUBSCRIBER_ID>"); TriggerEventRequest triggerEventRequest = new TriggerEventRequest(); triggerEventRequest.setName("<NAME>"); triggerEventRequest.setTo(subscriberRequest); triggerEventRequest.setPayload(Collections.singletonMap("<CUSTOM_VARIABLE_NAME>", "<CUSTOM_VARIABLE_VALUE>")); TriggerEventResponse response = novu.triggerEvent(triggerEventRequest); }}
using Novu.DTO;using Novu.Models;using Novu;var novuConfiguration = new NovuClientConfiguration{ /** * Defaults to https://api.novu.co/v1 */ Url = "https://novu-api.my-domain.com/v1", ApiKey = "12345",};var novu = new NovuClient(novuConfiguration);public class OnboardEventPayload{ [JsonProperty("username")] public string Username { get; set; } [JsonProperty("welcomeMessage")] public string WelcomeMessage { get; set; }}var onboardingMessage = new OnboardEventPayload{ Username = "jdoe", WelcomeMessage = "Welcome to novu-dotnet"};var payload = new EventTriggerDataDto(){ EventName = "onboarding", To = { SubscriberId = "subscriberId" }, Payload = onboardingMessage};var trigger = await novu.Event.Trigger(payload);
from novu.api import EventApiurl = "https://api.novu.co"api_key = "<NOVU_API_KEY>"novu = EventApi(url, api_key).trigger( name="<WORKFLOW_TRIGGER_IDENTIFIER>", # This is the Workflow ID. It can be found on the workflow page. recipients="<UNIQUE_SUBSCRIBER_IDENTIFIER>", # The subscriber ID can be gotten from the dashboard. payload={}, # Your custom Novu payload goes here)
import co.novu.common.base.Novu;import co.novu.api.common.SubscriberRequest;import co.novu.api.events.requests.TriggerEventRequest;import co.novu.api.events.responses.TriggerEventResponse;public class Main { public static void main(String[] args) { String apiKey = "<NOVU_API_KEY>"; Novu novu = new Novu(apiKey); SubscriberRequest subscriberRequest = new SubscriberRequest(); subscriberRequest.setEmail("<EMAIL_ADDRESS>"); subscriberRequest.setFirstName("<FIRST_NAME>"); subscriberRequest.setLastName("<LAST_NAME>"); subscriberRequest.setPhone("<PHONE_NUMBER>"); subscriberRequest.setAvatar("<AVATAR>"); subscriberRequest.setSubscriberId("<SUBSCRIBER_ID>"); TriggerEventRequest triggerEventRequest = new TriggerEventRequest(); triggerEventRequest.setName("<NAME>"); triggerEventRequest.setTo(subscriberRequest); triggerEventRequest.setPayload(Collections.singletonMap("<CUSTOM_VARIABLE_NAME>", "<CUSTOM_VARIABLE_VALUE>")); TriggerEventResponse response = novu.triggerEvent(triggerEventRequest); }}
using Novu.DTO;using Novu.Models;using Novu;var novuConfiguration = new NovuClientConfiguration{ /** * Defaults to https://api.novu.co/v1 */ Url = "https://novu-api.my-domain.com/v1", ApiKey = "12345",};var novu = new NovuClient(novuConfiguration);public class OnboardEventPayload{ [JsonProperty("username")] public string Username { get; set; } [JsonProperty("welcomeMessage")] public string WelcomeMessage { get; set; }}var onboardingMessage = new OnboardEventPayload{ Username = "jdoe", WelcomeMessage = "Welcome to novu-dotnet"};var payload = new EventTriggerDataDto(){ EventName = "onboarding", To = { SubscriberId = "subscriberId" }, Payload = onboardingMessage};var trigger = await novu.Event.Trigger(payload);
The transactionId within Novu is a unique identifier that is used to ensure the idempotent nature of notification delivery.When you trigger an event to send a notification, you have the option to provide a transactionId. If you do not provide one, Novu will generate a UUID for you.This identifier is particularly useful for preventing the same notification from being sent multiple times in case the trigger event is inadvertently called more than once.By leveraging the transactionId, you can make idempotent requests, which means if the same transactionId is used in another request, Novu’s API will recognize it and will not send the same notification again.
This upholds the principle of idempotency, ensuring that the effect of the operation is the same, no matter how many times the request is repeated with the same transactionId.
The payload object is used to pass additional custom information that could be used to render the workflow, or perform routing rules based on it.
This data will also be available when fetching the notifications feed from the API to display certain parts of the UI.
It is used to display the Avatar of the provided actor's subscriber id or actor object.
If a new actor object is provided, we will create a new subscriber in our system
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Novu","colors":{"primary":"#0055ff","light":"#00d5ff","dark":"#0055ff"},"logo":{"light":"https://mintcdn.com/novu-v2-docs/VG9mq1_LJq1HEO4o/logo/novu-light.svg?fit=max\u0026auto=format\u0026n=VG9mq1_LJq1HEO4o\u0026q=85\u0026s=7eacd7fa5f8962ea593e8b499c2933e4","dark":"https://mintcdn.com/novu-v2-docs/VG9mq1_LJq1HEO4o/logo/novu-dark.svg?fit=max\u0026auto=format\u0026n=VG9mq1_LJq1HEO4o\u0026q=85\u0026s=275f6d49242a214e9af7ec7a0714d139"},"favicon":"https://mintcdn.com/novu-v2-docs/YYAvm31YUpJTIUru/favicon.png?fit=max\u0026auto=format\u0026n=YYAvm31YUpJTIUru\u0026q=85\u0026s=1482d60682c67f8d7253cbced80d90ca","api":{"openapi":"https://api.novu.co/openapi.json","mdx":{"auth":{"method":"key","name":"Authorization"},"server":["https://api.novu.co","https://eu.api.novu.co"]}},"background":{"image":"https://mintcdn.com/novu-v2-docs/YYAvm31YUpJTIUru/background.png?fit=max\u0026auto=format\u0026n=YYAvm31YUpJTIUru\u0026q=85\u0026s=956f7a984e350d08a1d84cdec70f4b4b","color":{"light":"#ffffff","dark":"#000000"}},"navbar":{"links":[{"href":"https://docs.novu.co?utm_campaign=v0.24.x-docs_top_nav","label":"v2 Docs"},{"href":"https://novu.co/pricing/?utm_campaign=v0.24.x-docs_top_nav","label":"Pricing"},{"href":"https://novu.co/blog/?utm_campaign=v0.24.x-docs_top_nav","label":"Blog"},{"href":"https://novu.co/contact-us/?utm_campaign=v0.24.x-docs_top_nav","label":"Contact us"}],"primary":{"type":"github","href":"https://github.com/novuhq/novu"}},"footer":{"socials":{"twitter":"https://twitter.com/novuhq","github":"https://github.com/novuhq","linkedin":"https://www.linkedin.com/company/novuco"}},"seo":{"metatags":{"og:image":"https://novu.co/images/social-preview.jpg","robots":"noindex"},"indexing":"navigable"},"integrations":{"intercom":{"appId":"fqe0apnx"},"plausible":{"domain":"docs.novu.co"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"novu-v2-docs","hasAudioNarration":false,"actualSubdomain":"novu-v2-docs","customDomains":["v0.x-docs.novu.co"],"gitSource":{"type":"github","owner":"novuhq","repo":"docs","deployBranch":"v0.x-docs","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a3b8954ebea45ce91c3e629","collectionId":"236c75b9-6a6b-49a2-83a0-429b2be65a92","schemaVersion":"v3"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a3b8954ebea45ce91c3e629:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Documentation","count":356},{"language":"default","tag":"API Reference","count":202},{"language":"default","tag":"Channels \u0026 Providers","count":54},{"language":"default","tag":"Guides","count":46},{"language":"default","tag":"Framework (Code-First)","count":33},{"language":"default","tag":"Subscribers","count":23},{"language":"default","tag":"Getting Started","count":22},{"language":"default","tag":"Email","count":18},{"language":"default","tag":"SMS","count":18},{"language":"default","tag":"Quickstarts","count":17}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/events/trigger-event","slug":"/api-reference/events/trigger-event","pageMetadata":{"openapi":"post /v1/events/trigger","title":"Trigger event","description":"\n Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.\n To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.","href":"/api-reference/events/trigger-event"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.\\nTo prevent duplicate triggers, you can optionally pass a \", _jsx(_components.strong, {\n children: \"transactionId\"\n }), \" in the request body. If the same \", _jsx(_components.strong, {\n children: \"transactionId\"\n }), \" is used again, the trigger will be ignored. The retention period depends on your billing tier.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Accordion,Note,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Warning,{children:[_jsxs(_components.p,{children:[`Enter your API key in the `,_jsx(_components.code,{children:`Authorization`}),` field like the example shown below:`]}),_jsxs(_components.p,{children:[`E.g `,_jsx(_components.code,{children:`ApiKey 18d2e625f05d80e`})]})]}),`\n`,`\n`,`\n`,_jsxs(Accordion,{title:`Idempotent nature of transactionId`,id:`idempotent-nature-of-transactionid`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`transactionId`}),` within Novu is a unique identifier that is used to ensure the idempotent nature of notification delivery.`]}),_jsxs(_components.p,{children:[`When you trigger an event to send a notification, you have the option to provide a `,_jsx(_components.code,{children:`transactionId`}),`. If you do not provide one, Novu will generate a UUID for you.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`This identifier is particularly useful for preventing the same notification from being sent multiple times in case the trigger event is inadvertently called more than once.`})}),_jsxs(_components.p,{children:[`By leveraging the `,_jsx(_components.code,{children:`transactionId`}),`, you can make idempotent requests, which means if the same `,_jsx(_components.code,{children:`transactionId`}),` is used in another request, Novu’s API will recognize it and will not send the same notification again.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This upholds the principle of idempotency, ensuring that the effect of the operation is the same, no matter how many times the request is repeated with the same `,_jsx(_components.code,{children:`transactionId`}),`.`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /v1/events/trigger","title":"Trigger event","description":"\n Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.\n To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.","href":"/api-reference/events/trigger-event"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Note,RequestExample,ResponseExample,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Warning,{children:[_jsxs(_components.p,{children:[`Enter your API key in the `,_jsx(_components.code,{children:`Authorization`}),` field like the example shown below:`]}),_jsxs(_components.p,{children:[`E.g `,_jsx(_components.code,{children:`ApiKey 18d2e625f05d80e`})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`20`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@novu/node'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` novu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cNOVU_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`trigger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cWORKFLOW_TRIGGER_IDENTIFIER>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` to:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'john@doemail.com'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` firstName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'John'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lastName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Doe'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payload:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello World\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` organization:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` logo:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://happycorp.com/logo.png'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`12`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` Novu\\\\SDK\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$novu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`NOVU_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$novu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`triggerEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'name'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cWORKFLOW_TRIGGER_IDENTIFIER>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'payload'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'customVariables'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Hello'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'to'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'subscriberId'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'phone'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '07983882186'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toArray`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`19`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.novu.co/v1/events/trigger`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: ApiKey \u003cNOVU_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"\u003cWORKFLOW_TRIGGER_IDENTIFIER>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"to\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subscriberId\": \"\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"john@doemail.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"firstName\": \"John\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"lastName\": \"Doe\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payload\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Hello World\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"organization\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"logo\": \"https://happycorp.com/logo.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Ruby`,numberOfLines:`16`,language:`ruby`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ruby`,children:_jsxs(_components.code,{language:`ruby`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'novu'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cNOVU_API_KEY>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` => `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cWORKFLOW_TRIGGER_IDENTIFIER>'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'payload'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` => { `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'first-name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` => `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Adam'`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # optional`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'to'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` => {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'subscriberId'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` => `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'transactionId'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` => `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'89kjfke9893'`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` #optional`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`trigger_event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(payload)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`39`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`39`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`context`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tnovu`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`github.com/novuhq/go-novu/lib`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`log`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tsubscriberID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tapiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cNOVU_API_KEY>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\teventId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cWORKFLOW_TRIGGER_IDENTIFIER>\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tctx`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` context`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Background`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tto`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"lastName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Doe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"firstName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"subscriberId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subscriberID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"john@doemail.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tpayload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello World\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"organization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\t\"logo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://happycorp.com/logo.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t\t},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tdata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ITriggerPayloadOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`To`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`to`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tnovuClient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewAPIClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{})`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tresp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` novuClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`EventApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Trigger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ctx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`eventId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\tlog`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Fatal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"novu error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\t\treturn`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`10`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` novu.api `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` EventApi`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.novu.co\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`api_key `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cNOVU_API_KEY>\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`novu `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` EventApi(url, api_key).trigger(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cWORKFLOW_TRIGGER_IDENTIFIER>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# This is the Workflow ID. It can be found on the workflow page.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` recipients`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# The subscriber ID can be gotten from the dashboard.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Your custom Novu payload goes here`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Java`,numberOfLines:`27`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`27`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` co.novu.common.base.Novu;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` co.novu.api.common.SubscriberRequest;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` co.novu.api.events.requests.TriggerEventRequest;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` co.novu.api.events.responses.TriggerEventResponse;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` static`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cNOVU_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` novu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(apiKey);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` SubscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberRequest`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` SubscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setEmail`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cEMAIL_ADDRESS>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setFirstName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cFIRST_NAME>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setLastName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cLAST_NAME>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setPhone`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cPHONE_NUMBER>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setAvatar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAVATAR>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subscriberRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setSubscriberId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cSUBSCRIBER_ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` TriggerEventRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` triggerEventRequest`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TriggerEventRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` triggerEventRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cNAME>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` triggerEventRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setTo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(subscriberRequest);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` triggerEventRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setPayload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Collections`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`singletonMap`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cCUSTOM_VARIABLE_NAME>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cCUSTOM_VARIABLE_VALUE>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` TriggerEventResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`triggerEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(triggerEventRequest);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`.NET`,numberOfLines:`38`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`38`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`DTO`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Models`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` novuConfiguration`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` NovuClientConfiguration`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /** `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Defaults to https://api.novu.co/v1 `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://novu-api.my-domain.com/v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ApiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` novu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` NovuClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`novuConfiguration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` OnboardEventPayload`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`JsonProperty`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"username\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` Username`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`JsonProperty`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"welcomeMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` WelcomeMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` onboardingMessage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` OnboardEventPayload`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Username`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"jdoe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` WelcomeMessage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Welcome to novu-dotnet\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` EventTriggerDataDto`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` EventName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"onboarding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` To`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SubscriberId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subscriberId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Payload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onboardingMessage`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` trigger`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` novu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Trigger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"acknowledged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsxs(Accordion,{title:`Idempotent nature of transactionId`,id:`idempotent-nature-of-transactionid`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`transactionId`}),` within Novu is a unique identifier that is used to ensure the idempotent nature of notification delivery.`]}),_jsxs(_components.p,{children:[`When you trigger an event to send a notification, you have the option to provide a `,_jsx(_components.code,{children:`transactionId`}),`. If you do not provide one, Novu will generate a UUID for you.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`This identifier is particularly useful for preventing the same notification from being sent multiple times in case the trigger event is inadvertently called more than once.`})}),_jsxs(_components.p,{children:[`By leveraging the `,_jsx(_components.code,{children:`transactionId`}),`, you can make idempotent requests, which means if the same `,_jsx(_components.code,{children:`transactionId`}),` is used in another request, Novu’s API will recognize it and will not send the same notification again.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This upholds the principle of idempotency, ensuring that the effect of the operation is the same, no matter how many times the request is repeated with the same `,_jsx(_components.code,{children:`transactionId`}),`.`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /v1/events/trigger","title":"Trigger event","description":"\n Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.\n To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.","href":"/api-reference/events/trigger-event"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '@novu/node'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> novu\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;NOVU_API_KEY>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">trigger\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'\u0026#x3C;WORKFLOW_TRIGGER_IDENTIFIER>'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> to:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberId:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '\u0026#x3C;UNIQUE_SUBSCRIBER_IDENTIFIER>'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> email:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'john@doemail.com'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> firstName:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'John'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> lastName:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Doe'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> payload:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> name:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Hello World\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> organization:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> logo:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://happycorp.com/logo.png'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"PHP","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"php\">\u003ccode language=\"php\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">use\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\"> Novu\\SDK\\\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\">Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$novu\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">\u0026#x3C;\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">NOVU_API_KEY\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$novu\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">->\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">triggerEvent\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">([\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'name'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '\u0026#x3C;WORKFLOW_TRIGGER_IDENTIFIER>'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'payload'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'customVariables'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Hello'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'to'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'subscriberId'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '\u0026#x3C;UNIQUE_SUBSCRIBER_IDENTIFIER>'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'phone'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =>\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '07983882186'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">->\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">toArray\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.novu.co/v1/events/trigger\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: ApiKey \u0026#x3C;NOVU_API_KEY>\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"\u0026#x3C;WORKFLOW_TRIGGER_IDENTIFIER>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"to\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subscriberId\": \"\u0026#x3C;UNIQUE_SUBSCRIBER_IDENTIFIER>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"email\": \"john@doemail.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"firstName\": \"John\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"lastName\": \"Doe\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"payload\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Hello World\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"organization\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"logo\": \"https://happycorp.com/logo.png\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Ruby","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"ruby\">\u003ccode language=\"ruby\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">require\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'novu'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#4EC9B0\">::\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4EC9B0\">Client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">new\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'\u0026#x3C;NOVU_API_KEY>'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">payload\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'name'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> => \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'\u0026#x3C;WORKFLOW_TRIGGER_IDENTIFIER>'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'payload'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> => { \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># optional\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'first-name'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> => \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Adam'\u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> # optional\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'to'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> => {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'subscriberId'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> => \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'\u0026#x3C;UNIQUE_SUBSCRIBER_IDENTIFIER>'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'transactionId'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> => \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'89kjfke9893'\u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> #optional\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">client.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">trigger_event\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(payload)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Go","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"go\">\u003ccode language=\"go\" numberOfLines=\"39\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">package\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> main\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">context\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">fmt\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tnovu\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">github.com/novuhq/go-novu/lib\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\"\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#CE9178\">log\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">func\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> main\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">() {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tsubscriberID\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u0026#x3C;UNIQUE_SUBSCRIBER_IDENTIFIER>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tapiKey\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u0026#x3C;NOVU_API_KEY>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\teventId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u0026#x3C;WORKFLOW_TRIGGER_IDENTIFIER>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tctx\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> context\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Background\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tto\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> map\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\">string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">interface\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{}{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"lastName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Doe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"firstName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"John\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"subscriberId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">subscriberID\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"john@doemail.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tpayload\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> map\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\">string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">interface\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{}{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hello World\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\"organization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">map\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\">string\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">interface\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{}{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t\t\t\"logo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://happycorp.com/logo.png\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t\t},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tdata\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">ITriggerPayloadOptions\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">To\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">to\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Payload\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">payload\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tnovuClient\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">NewAPIClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">apiKey\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">\u0026#x26;\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Config\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{})\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\tresp\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">err\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> :=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> novuClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">EventApi\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Trigger\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ctx\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">eventId\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">\tif\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> err\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> !=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> nil\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">\t\tlog\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Fatal\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"novu error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">err\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">())\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">\t\treturn\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">\t}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">from\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> novu.api \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> EventApi\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.novu.co\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">api_key \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u0026#x3C;NOVU_API_KEY>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">novu \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> EventApi(url, api_key).trigger(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> name\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;WORKFLOW_TRIGGER_IDENTIFIER>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># This is the Workflow ID. It can be found on the workflow page.\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> recipients\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;UNIQUE_SUBSCRIBER_IDENTIFIER>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># The subscriber ID can be gotten from the dashboard.\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> payload\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{}, \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># Your custom Novu payload goes here\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Java","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"java\">\u003ccode language=\"java\" numberOfLines=\"27\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> co.novu.common.base.Novu;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> co.novu.api.common.SubscriberRequest;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> co.novu.api.events.requests.TriggerEventRequest;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> co.novu.api.events.responses.TriggerEventResponse;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> class\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Main\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> static\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\"> void\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> main\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#4EC9B0\">String\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[] \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">args\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#4EC9B0\"> String\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> apiKey\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"\u0026#x3C;NOVU_API_KEY>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#4EC9B0\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> novu\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(apiKey);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#4EC9B0\"> SubscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberRequest\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> SubscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setEmail\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;EMAIL_ADDRESS>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setFirstName\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;FIRST_NAME>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setLastName\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;LAST_NAME>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setPhone\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;PHONE_NUMBER>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setAvatar\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;AVATAR>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subscriberRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setSubscriberId\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;SUBSCRIBER_ID>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#4EC9B0\"> TriggerEventRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> triggerEventRequest\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> TriggerEventRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> triggerEventRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setName\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;NAME>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> triggerEventRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setTo\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(subscriberRequest);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> triggerEventRequest\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">setPayload\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Collections\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">singletonMap\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;CUSTOM_VARIABLE_NAME>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;CUSTOM_VARIABLE_VALUE>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">));\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> \u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#4EC9B0\"> TriggerEventResponse\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">triggerEvent\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(triggerEventRequest);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":".NET","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"csharp\">\u003ccode language=\"csharp\" numberOfLines=\"38\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">DTO\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">Models\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">using\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> Novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> novuConfiguration\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> NovuClientConfiguration\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> /** \u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> * Defaults to https://api.novu.co/v1 \u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> */\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Url\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://novu-api.my-domain.com/v1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> ApiKey\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> novu\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> NovuClient\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">novuConfiguration\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> class\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> OnboardEventPayload\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">JsonProperty\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"username\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> string\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> Username\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">get\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">set\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\">JsonProperty\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"welcomeMessage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> public\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> string\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> WelcomeMessage\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">get\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">set\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> onboardingMessage\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> OnboardEventPayload\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Username\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"jdoe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> WelcomeMessage\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Welcome to novu-dotnet\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> payload\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#4EC9B0\"> EventTriggerDataDto\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> EventName\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"onboarding\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> To\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">SubscriberId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subscriberId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Payload\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> onboardingMessage\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">var\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> trigger\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> novu\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">Event\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">Trigger\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">payload\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"acknowledged\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"processed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transactionId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"string\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/novu-v2-docs/7fac7b8abaef5f40/echo-terminal.js","/_mintlify/custom/novu-v2-docs/eed67aa1570b4055/google-tag-manager.js","/_mintlify/custom/novu-v2-docs/4fe39a51663894fd/hubspot.js","/_mintlify/custom/novu-v2-docs/3c623cb7116f058c/linkedin-insights.js","/_mintlify/custom/novu-v2-docs/19b29f44574d1bc1/linkedin.js"],"openApiReferenceData":{"operation":{"operationId":"EventsController_trigger","x-speakeasy-group":"","x-speakeasy-usage-example":{"title":"Trigger Notification Event"},"x-speakeasy-name-override":"trigger","summary":"Trigger event","description":"\n Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.\n To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.","parameters":[],"requestBody":"3947aa5b-45f1-43d5-af15-f3efdfa51517","responses":{"201":"69cdbe64-4c73-4998-bb55-a367ab2c2389","409":"4b2bf220-8fec-44d6-9ec5-df054500e08e","429":"36d73ca8-4692-4584-94fa-e2a78c66b7ec","503":"db175da0-afe1-457b-8adb-071e39e1cff7"},"tags":["Events"],"security":["aee09524-3001-49dc-ae34-8a7ddc3ce6c0"],"x-codeSamples":[{"lang":"typescript","label":"EventsController_trigger","source":"import { Novu } from \"@novu/api\";\nimport { TopicPayloadDtoType } from \"@novu/api/models/components\";\n\nconst novu = new Novu({\n apiKey: \"\u003cYOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await novu.trigger({\n name: \"workflow_identifier\",\n payload: {},\n overrides: {},\n to: [\n {\n topicKey: \"topic_key\",\n type: TopicPayloadDtoType.Topic,\n },\n ],\n });\n\n // Handle the result\n console.log(result)\n}\n\nrun();"}],"method":"post","type":"path","servers":["ab5dfd93-1629-49d4-bf05-46d1f1ac4f80","2865ec2b-d37b-4f89-9008-1b99197b6084"],"path":"/v1/events/trigger","baseUrlOptions":["https://api.novu.co","https://eu.api.novu.co"],"title":"Trigger event","codeSamples":[{"label":"EventsController_trigger","lang":"typescript","source":"import { Novu } from \"@novu/api\";\nimport { TopicPayloadDtoType } from \"@novu/api/models/components\";\n\nconst novu = new Novu({\n apiKey: \"\u003cYOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await novu.trigger({\n name: \"workflow_identifier\",\n payload: {},\n overrides: {},\n to: [\n {\n topicKey: \"topic_key\",\n type: TopicPayloadDtoType.Topic,\n },\n ],\n });\n\n // Handle the result\n console.log(result)\n}\n\nrun();"}],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"20","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"Novu"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" } "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"from"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '@novu/node'"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" novu"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" Novu"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cNOVU_API_KEY>\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" novu"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"trigger"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'\u003cWORKFLOW_TRIGGER_IDENTIFIER>'"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" to:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberId:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" email:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'john@doemail.com'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" firstName:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'John'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" lastName:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Doe'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" payload:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" name:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Hello World\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" organization:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" logo:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'https://happycorp.com/logo.png'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}}},"\n"]}}}},"filename":"Node.js"},{"dropdown":false,"language":"php","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"php","children":{"type":"code","key":null,"ref":null,"props":{"language":"php","numberOfLines":"12","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"use"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#D4D4D4"},"children":" Novu\\SDK\\"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":"Novu"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$novu"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" Novu"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"\u003c"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#D4D4D4"},"children":"NOVU_API_KEY"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":">"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$novu"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"->"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"triggerEvent"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(["}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'name'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '\u003cWORKFLOW_TRIGGER_IDENTIFIER>'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'payload'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'customVariables'"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Hello'"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'to'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'subscriberId'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'phone'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" =>"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '07983882186'"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"])"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"->"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"toArray"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n"]}}}},"filename":"PHP"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"19","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://api.novu.co/v1/events/trigger"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: ApiKey \u003cNOVU_API_KEY>\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"name\": \"\u003cWORKFLOW_TRIGGER_IDENTIFIER>\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"to\": {"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"subscriberId\": \"\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"email\": \"john@doemail.com\","}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"firstName\": \"John\","}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"lastName\": \"Doe\""}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" },"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"payload\": {"}}}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"name\": \"Hello World\","}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"organization\": {"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"logo\": \"https://happycorp.com/logo.png\""}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"},{"dropdown":false,"language":"ruby","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"ruby","children":{"type":"code","key":null,"ref":null,"props":{"language":"ruby","numberOfLines":"16","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"require"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'novu'"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"client"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":" Novu"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#4EC9B0"},"children":"::"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4EC9B0"},"children":"Client"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"new"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'\u003cNOVU_API_KEY>'"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"payload"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'name'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" => "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'\u003cWORKFLOW_TRIGGER_IDENTIFIER>'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'payload'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" => { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"# optional"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'first-name'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" => "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Adam'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":" # optional"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'to'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" => {"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'subscriberId'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" => "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>'"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'transactionId'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" => "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'89kjfke9893'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":" #optional"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"client."}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"trigger_event"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(payload)"}}]}},"\n"]}}}},"filename":"Ruby"},{"dropdown":false,"language":"go","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"go","children":{"type":"code","key":null,"ref":null,"props":{"language":"go","numberOfLines":"39","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"package"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" main"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ("}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"context"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"fmt"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tnovu"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"github.com/novuhq/go-novu/lib"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#CE9178"},"children":"log"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"func"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" main"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"() {"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tsubscriberID"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>\""}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tapiKey"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"\u003cNOVU_API_KEY>\""}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\teventId"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"\u003cWORKFLOW_TRIGGER_IDENTIFIER>\""}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tctx"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" context"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Background"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tto"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" map"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#4EC9B0"},"children":"string"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"interface"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{}{"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"lastName\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Doe\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"firstName\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"John\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"subscriberId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"subscriberID"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"email\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"john@doemail.com\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t}"}}}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tpayload"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" map"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#4EC9B0"},"children":"string"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"interface"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{}{"}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"name\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Hello World\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\"organization\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"map"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#4EC9B0"},"children":"string"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"interface"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{}{"}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\t\t\t\"logo\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://happycorp.com/logo.png\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t\t},"}}}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t}"}}}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tdata"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" novu"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"ITriggerPayloadOptions"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"To"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"to"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"Payload"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"payload"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}]}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tnovuClient"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" novu"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"NewAPIClient"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"apiKey"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"\u0026"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"novu"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"Config"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{})"}}]}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\tresp"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"err"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" :="}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" novuClient"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"EventApi"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Trigger"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"ctx"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"eventId"}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"14","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"data"}},{"type":"span","key":"15","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}]}},"\n",{"type":"span","key":"66","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"68","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"\tif"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" err"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" !="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" nil"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"70","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"\t\tlog"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Fatal"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"novu error\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"err"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Error"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"())"}}]}},"\n",{"type":"span","key":"72","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"\t\treturn"}}}},"\n",{"type":"span","key":"74","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"\t}"}}}},"\n",{"type":"span","key":"76","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Go"},{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"10","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"from"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" novu.api "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" EventApi"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"url "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.novu.co\""}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"api_key "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"\u003cNOVU_API_KEY>\""}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"novu "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" EventApi(url, api_key).trigger("}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" name"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cWORKFLOW_TRIGGER_IDENTIFIER>\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"# This is the Workflow ID. It can be found on the workflow page."}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" recipients"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cUNIQUE_SUBSCRIBER_IDENTIFIER>\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"# The subscriber ID can be gotten from the dashboard."}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" payload"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{}, "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":"# Your custom Novu payload goes here"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n"]}}}},"filename":"Python"},{"dropdown":false,"language":"java","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"java","children":{"type":"code","key":null,"ref":null,"props":{"language":"java","numberOfLines":"27","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" co.novu.common.base.Novu;"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" co.novu.api.common.SubscriberRequest;"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" co.novu.api.events.requests.TriggerEventRequest;"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" co.novu.api.events.responses.TriggerEventResponse;"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"public"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" class"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" Main"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" public"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" static"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#4EC9B0"},"children":" void"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" main"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#4EC9B0"},"children":"String"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"[] "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":"args"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":") {"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#4EC9B0"},"children":" String"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" apiKey"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"\u003cNOVU_API_KEY>\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#4EC9B0"},"children":" Novu"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" novu"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" Novu"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(apiKey);"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#4EC9B0"},"children":" SubscriberRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberRequest"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" SubscriberRequest"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setEmail"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cEMAIL_ADDRESS>\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setFirstName"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cFIRST_NAME>\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setLastName"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cLAST_NAME>\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setPhone"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cPHONE_NUMBER>\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setAvatar"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cAVATAR>\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" subscriberRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setSubscriberId"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cSUBSCRIBER_ID>\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#4EC9B0"},"children":" TriggerEventRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" triggerEventRequest"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" TriggerEventRequest"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" triggerEventRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setName"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cNAME>\""}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" triggerEventRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setTo"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(subscriberRequest);"}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" triggerEventRequest"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"setPayload"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"Collections"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"singletonMap"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cCUSTOM_VARIABLE_NAME>\""}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"\u003cCUSTOM_VARIABLE_VALUE>\""}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"));"}}]}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" "}}}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#4EC9B0"},"children":" TriggerEventResponse"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" novu"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"triggerEvent"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(triggerEventRequest);"}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Java"},{"dropdown":false,"language":"csharp","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"csharp","children":{"type":"code","key":null,"ref":null,"props":{"language":"csharp","numberOfLines":"38","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"using"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" Novu"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"DTO"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"using"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" Novu"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"Models"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"using"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" Novu"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"var"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" novuConfiguration"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" NovuClientConfiguration"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":" /** "}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":" * Defaults to https://api.novu.co/v1 "}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#6E7781","--shiki-dark":"#6A9955"},"children":" */"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" Url"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://novu-api.my-domain.com/v1\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" ApiKey"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"12345\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"};"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"var"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" novu"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" NovuClient"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"novuConfiguration"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"public"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" class"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" OnboardEventPayload"}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"JsonProperty"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"username\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")]"}}]}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" public"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" string"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" Username"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"get"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"; "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"set"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"; }"}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":"JsonProperty"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"welcomeMessage\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")]"}}]}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" public"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" string"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" WelcomeMessage"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"get"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"; "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"set"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"; }"}}]}},"\n",{"type":"span","key":"44","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n",{"type":"span","key":"46","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"48","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"var"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" onboardingMessage"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" OnboardEventPayload"}}]}},"\n",{"type":"span","key":"50","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"52","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" Username"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"jdoe\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"54","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" WelcomeMessage"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Welcome to novu-dotnet\""}}]}},"\n",{"type":"span","key":"56","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"};"}}}},"\n",{"type":"span","key":"58","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"60","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"var"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" payload"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#4EC9B0"},"children":" EventTriggerDataDto"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"()"}}]}},"\n",{"type":"span","key":"62","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"64","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" EventName"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"onboarding\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"66","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" To"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"SubscriberId"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"subscriberId\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"68","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" Payload"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" onboardingMessage"}}]}},"\n",{"type":"span","key":"70","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"};"}}}},"\n",{"type":"span","key":"72","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"74","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"var"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" trigger"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" novu"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"Event"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"Trigger"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"payload"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n"]}}}},"filename":".NET"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"acknowledged\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":"true"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"status\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"processed\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"transactionId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"string\""}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Response"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The trigger identifier of the workflow you wish to send. This identifier can be found on the workflow page.","example":"workflow_identifier","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"to":{"type":"array","description":"The recipients list of people who will receive the notification.","items":{"oneOf":[{"type":"object","required":["subscriberId"],"properties":{"subscriberId":{"type":"string","description":"The internal identifier you used to create this subscriber, usually correlates to the id the user in your systems","isRequired":true,"uniqueKey":"to.items.[INDEX].oneOf.0.subscriberId","typeLabel":"string"},"email":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.email","typeLabel":"string"},"firstName":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.firstName","typeLabel":"string"},"lastName":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.lastName","typeLabel":"string"},"phone":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.phone","typeLabel":"string"},"avatar":{"type":"string","description":"An http url to the profile image of your subscriber","uniqueKey":"to.items.[INDEX].oneOf.0.avatar","typeLabel":"string"},"locale":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.locale","typeLabel":"string"},"data":{"type":"object","uniqueKey":"to.items.[INDEX].oneOf.0.data","typeLabel":"object"},"channels":{"type":"array","items":{"type":"object","properties":{"providerId":{"type":"object","isRequired":true,"uniqueKey":"to.items.[INDEX].oneOf.0.channels.items.[INDEX].providerId","typeLabel":"object"},"credentials":{"type":"object","properties":{"webhookUrl":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.channels.items.[INDEX].credentials.webhookUrl","typeLabel":"string"},"deviceTokens":{"type":"array","items":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.channels.items.[INDEX].credentials.deviceTokens.items.[INDEX]","typeLabel":"string"},"uniqueKey":"to.items.[INDEX].oneOf.0.channels.items.[INDEX].credentials.deviceTokens","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"to.items.[INDEX].oneOf.0.channels.items.[INDEX].credentials","typeLabel":"object"},"integrationIdentifier":{"type":"string","uniqueKey":"to.items.[INDEX].oneOf.0.channels.items.[INDEX].integrationIdentifier","typeLabel":"string"}},"required":["providerId","credentials"],"uniqueKey":"to.items.[INDEX].oneOf.0.channels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"to.items.[INDEX].oneOf.0.channels","typeLabel":"object[]"}},"uniqueKey":"to.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","description":"Unique identifier of a subscriber in your systems","example":"SUBSCRIBER_ID","uniqueKey":"to.items.[INDEX].oneOf.1","typeLabel":"string"},{"type":"object","required":["topicKey","type"],"properties":{"topicKey":{"type":"string","example":"topic_key","isRequired":true,"uniqueKey":"to.items.[INDEX].oneOf.2.topicKey","typeLabel":"string"},"type":{"enum":["Subscriber","Topic"],"type":"string","example":"Topic","isRequired":true,"uniqueKey":"to.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"to.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"to.items.[INDEX]","typeLabel":"object · string · object"},"isRequired":true,"uniqueKey":"to","typeLabel":"object · string · object[]"},"payload":{"type":"object","description":"The payload object is used to pass additional custom information that could be used to render the workflow, or perform routing rules based on it. \n This data will also be available when fetching the notifications feed from the API to display certain parts of the UI.","example":{"comment_id":"string","post":{"text":"string"}},"uniqueKey":"payload","typeLabel":"object"},"overrides":{"type":"object","description":"This could be used to override provider specific configurations","example":{"fcm":{"data":{"key":"value"}}},"uniqueKey":"overrides","typeLabel":"object"},"transactionId":{"type":"string","description":"A unique identifier for this transaction, we will generated a UUID if not provided.","uniqueKey":"transactionId","typeLabel":"string"},"actor":{"oneOf":[{"type":"string","description":"It is used to display the Avatar of the provided actor's subscriber id or actor object.\n If a new actor object is provided, we will create a new subscriber in our system\n ","uniqueKey":"actor.oneOf.0","typeLabel":"string"},{"type":"object","description":"It is used to display the Avatar of the provided actor's subscriber id or actor object.\n If a new actor object is provided, we will create a new subscriber in our system\n ","required":["subscriberId"],"properties":{"subscriberId":{"type":"string","description":"The internal identifier you used to create this subscriber, usually correlates to the id the user in your systems","isRequired":true,"uniqueKey":"actor.oneOf.1.subscriberId","typeLabel":"string"},"email":{"type":"string","uniqueKey":"actor.oneOf.1.email","typeLabel":"string"},"firstName":{"type":"string","uniqueKey":"actor.oneOf.1.firstName","typeLabel":"string"},"lastName":{"type":"string","uniqueKey":"actor.oneOf.1.lastName","typeLabel":"string"},"phone":{"type":"string","uniqueKey":"actor.oneOf.1.phone","typeLabel":"string"},"avatar":{"type":"string","description":"An http url to the profile image of your subscriber","uniqueKey":"actor.oneOf.1.avatar","typeLabel":"string"},"locale":{"type":"string","uniqueKey":"actor.oneOf.1.locale","typeLabel":"string"},"data":{"type":"object","uniqueKey":"actor.oneOf.1.data","typeLabel":"object"},"channels":{"type":"array","items":{"type":"object","properties":{"providerId":{"type":"object","isRequired":true,"uniqueKey":"actor.oneOf.1.channels.items.[INDEX].providerId","typeLabel":"object"},"credentials":{"type":"object","properties":{"webhookUrl":{"type":"string","uniqueKey":"actor.oneOf.1.channels.items.[INDEX].credentials.webhookUrl","typeLabel":"string"},"deviceTokens":{"type":"array","items":{"type":"string","uniqueKey":"actor.oneOf.1.channels.items.[INDEX].credentials.deviceTokens.items.[INDEX]","typeLabel":"string"},"uniqueKey":"actor.oneOf.1.channels.items.[INDEX].credentials.deviceTokens","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"actor.oneOf.1.channels.items.[INDEX].credentials","typeLabel":"object"},"integrationIdentifier":{"type":"string","uniqueKey":"actor.oneOf.1.channels.items.[INDEX].integrationIdentifier","typeLabel":"string"}},"required":["providerId","credentials"],"uniqueKey":"actor.oneOf.1.channels.items.[INDEX]","typeLabel":"object"},"uniqueKey":"actor.oneOf.1.channels","typeLabel":"object[]"}},"uniqueKey":"actor.oneOf.1","typeLabel":"object"}],"uniqueKey":"actor","typeLabel":"string | object"},"tenant":{"oneOf":[{"type":"string","description":"It is used to specify a tenant context during trigger event.\n Existing tenants will be updated with the provided details.\n ","uniqueKey":"tenant.oneOf.0","typeLabel":"string"},{"type":"object","description":"It is used to specify a tenant context during trigger event.\n Existing tenants will be updated with the provided details.\n ","properties":{"identifier":{"type":"string","uniqueKey":"tenant.oneOf.1.identifier","typeLabel":"string"},"name":{"type":"string","uniqueKey":"tenant.oneOf.1.name","typeLabel":"string"},"data":{"type":"object","uniqueKey":"tenant.oneOf.1.data","typeLabel":"object"}},"uniqueKey":"tenant.oneOf.1","typeLabel":"object"}],"uniqueKey":"tenant","typeLabel":"string | object"}},"required":["name","to"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"workflow_identifier","to":[{"subscriberId":"\u003cstring>","email":"\u003cstring>","firstName":"\u003cstring>","lastName":"\u003cstring>","phone":"\u003cstring>","avatar":"\u003cstring>","locale":"\u003cstring>","data":{},"channels":[{"providerId":{},"credentials":{"webhookUrl":"\u003cstring>","deviceTokens":["\u003cstring>"]},"integrationIdentifier":"\u003cstring>"}]}],"payload":{"comment_id":"string","post":{"text":"string"}},"overrides":{"fcm":{"data":{"key":"value"}}},"transactionId":"\u003cstring>","actor":"\u003cstring>","tenant":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"69cdbe64-4c73-4998-bb55-a367ab2c2389":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"acknowledged":{"type":"boolean","description":"If trigger was acknowledged or not","isRequired":true,"uniqueKey":"acknowledged","typeLabel":"boolean"},"status":{"enum":["error","trigger_not_active","no_workflow_active_steps_defined","no_workflow_steps_defined","processed","subscriber_id_missing","no_tenant_found"],"type":"string","description":"Status for trigger","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"error":{"description":"In case of an error, this field will contain the error message","type":"array","items":{"type":"string","uniqueKey":"error.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error","typeLabel":"string[]"},"transactionId":{"type":"string","description":"Transaction id for trigger","uniqueKey":"transactionId","typeLabel":"string"}},"required":["acknowledged","status"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"acknowledged":true,"status":"error","error":["\u003cstring>"],"transactionId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4b2bf220-8fec-44d6-9ec5-df054500e08e":{"description":"The request could not be completed due to a conflict with the current state of the target resource.","content":{"application/json":{"schema":{"type":"string","example":"Request with key 3909d656-d4fe-4e80-ba86-90d3861afcd7 is currently being processed. Please retry after 1 second","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"Request with key 3909d656-d4fe-4e80-ba86-90d3861afcd7 is currently being processed. Please retry after 1 second"}},"exampleType":"generated"}},"exampleType":"generated"},"36d73ca8-4692-4584-94fa-e2a78c66b7ec":{"description":"The client has sent too many requests in a given amount of time. ","content":{"application/json":{"schema":{"type":"string","example":"API rate limit exceeded","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"API rate limit exceeded"}},"exampleType":"generated"}},"exampleType":"generated"},"db175da0-afe1-457b-8adb-071e39e1cff7":{"description":"The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.","content":{"application/json":{"schema":{"type":"string","example":"Please wait some time, then try again.","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"Please wait some time, then try again."}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"aee09524-3001-49dc-ae34-8a7ddc3ce6c0":{"api-key":{"type":"apiKey","in":"header","name":"Authorization","description":"API key authentication. Allowed headers-- \"Authorization: ApiKey \u003capi_key>\".","scopes":[]}}},"servers":{"ab5dfd93-1629-49d4-bf05-46d1f1ac4f80":{"url":"https://api.novu.co"},"2865ec2b-d37b-4f89-9008-1b99197b6084":{"url":"https://eu.api.novu.co"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"API key authentication. Allowed headers-- \"Authorization: ApiKey \u003capi_key>\".","scopes":[]},"schema":{"title":"Authorization","type":"string","description":"API key authentication. Allowed headers-- \"Authorization: ApiKey \u003capi_key>\".","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"api-key","name":"Authorization"}],"title":"api-key"}]},"originalFileLocation":"openapi.json"},"subdomain":"novu-v2-docs","siteName":"Novu","title":"Trigger event - Novu","navMaps":{"firstHrefInVersion":{"v0.24.x":{"href":"/api-reference/events/trigger-event","matchLevel":0},"v0.23.0":{"href":"/api-reference/events/trigger-event","matchLevel":0},"v0.22.0":{"href":"/api-reference/events/trigger-event","matchLevel":0},"v0.21.0":{"href":"/api-reference/events/trigger-event","matchLevel":0},"v0.20.0":{"href":"/api-reference/events/trigger-event","matchLevel":0},"v0.19.0":{"href":"/api-reference/events/trigger-event","matchLevel":0},"v0.18.0":{"href":"/api-reference/events/trigger-event","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T02:46:28.789Z","originalFileLocation":"api-reference/events/trigger-event.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below. To prevent duplicate triggers, you can optionally pass a transactionId in the request body. If the same transactionId is used again, the trigger will be ignored. The retention period depends on your billing tier.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Novu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Trigger event - Novu\">\u003cmeta data-mint-head property=\"og:description\" content=\"Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below. To prevent duplicate triggers, you can optionally pass a transactionId in the request body. If the same transactionId is used again, the trigger will be ignored. The retention period depends on your billing tier.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Novu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://v0.x-docs.novu.co/api-reference/events/trigger-event\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://novu.co/images/social-preview.jpg\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Trigger event - Novu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below. To prevent duplicate triggers, you can optionally pass a transactionId in the request body. If the same transactionId is used again, the trigger will be ignored. The retention period depends on your billing tier.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://novu.co/images/social-preview.jpg\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/novu-v2-docs/F-6tYbNQX3GIi-E2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Novu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0055ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://v0.x-docs.novu.co/api-reference/events/trigger-event\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/events/trigger-event.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://v0.x-docs.novu.co/#organization\",\"name\":\"Novu\",\"url\":\"https://v0.x-docs.novu.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/novu-v2-docs/VG9mq1_LJq1HEO4o/logo/novu-light.svg?fit=max\u0026auto=format\u0026n=VG9mq1_LJq1HEO4o\u0026q=85\u0026s=7eacd7fa5f8962ea593e8b499c2933e4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://v0.x-docs.novu.co#website\",\"name\":\"Novu\",\"url\":\"https://v0.x-docs.novu.co\",\"publisher\":{\"@id\":\"https://v0.x-docs.novu.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event#webpage\",\"url\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event\",\"name\":\"Trigger event\",\"description\":\"Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below. To prevent duplicate triggers, you can optionally pass a transactionId in the request body. If the same transactionId is used again, the trigger will be ignored. The retention period depends on your billing tier.\",\"dateModified\":\"2026-01-07T02:46:28.789Z\",\"isPartOf\":{\"@id\":\"https://v0.x-docs.novu.co#website\"},\"breadcrumb\":{\"@id\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Novu\",\"item\":\"https://v0.x-docs.novu.co\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Trigger event\",\"item\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event#apireference\",\"headline\":\"Trigger event\",\"name\":\"Trigger event\",\"description\":\"Trigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below. To prevent duplicate triggers, you can optionally pass a transactionId in the request body. If the same transactionId is used again, the trigger will be ignored. The retention period depends on your billing tier.\",\"url\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event\",\"mainEntityOfPage\":{\"@id\":\"https://v0.x-docs.novu.co/api-reference/events/trigger-event#webpage\"},\"image\":\"https://novu.co/images/social-preview.jpg\",\"dateModified\":\"2026-01-07T02:46:28.789Z\",\"publisher\":{\"@id\":\"https://v0.x-docs.novu.co/#organization\"},\"isPartOf\":{\"@id\":\"https://v0.x-docs.novu.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Novu\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Novu","nav":{"global":null,"versions":[{"version":"v0.24.x","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","tabs":[{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"API Rate Limiting","description":"In this page you can learn about how rate limiting works with Novu's API","href":"/api-reference/rate-limiting"}]},{"group":"Events","pages":[{"openapi":"post /v1/events/trigger","title":"Trigger event","href":"/api-reference/events/trigger-event"},{"openapi":"post /v1/events/trigger/bulk","title":"Bulk trigger event","description":"\n Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.\n The bulk API is limited to 100 events per request.\n ","href":"/api-reference/events/bulk-trigger-event"},{"openapi":"post /v1/events/trigger/broadcast","title":"Broadcast event to all","href":"/api-reference/events/broadcast-event-to-all"},{"openapi":"delete /v1/events/trigger/{transactionId}","title":"Cancel triggered event","href":"/api-reference/events/cancel-triggered-event"}]},{"group":"Subscribers","pages":[{"openapi":"get /v1/subscribers","title":"Get subscribers","href":"/api-reference/subscribers/get-subscribers"},{"openapi":"post /v1/subscribers","title":"Create subscriber","href":"/api-reference/subscribers/create-subscriber"},{"openapi":"post /v1/subscribers/bulk","title":"Bulk create subscribers","href":"/api-reference/subscribers/bulk-create-subscribers"},{"openapi":"get /v1/subscribers/{subscriberId}","title":"Get subscriber","href":"/api-reference/subscribers/get-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}","title":"Update subscriber","href":"/api-reference/subscribers/update-subscriber"},{"openapi":"delete /v1/subscribers/{subscriberId}","title":"Delete subscriber","href":"/api-reference/subscribers/delete-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}/credentials","title":"Update provider credentials","href":"/api-reference/subscribers/update-subscriber-credentials"},{"openapi":"delete /v1/subscribers/{subscriberId}/credentials/{providerId}","title":"Delete provider credentials","href":"/api-reference/subscribers/delete-subscriber-credentials-by-providerid"},{"openapi":"patch /v1/subscribers/{subscriberId}/online-status","title":"Update subscriber online status","href":"/api-reference/subscribers/update-subscriber-online-status"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences","title":"Get subscriber preferences","href":"/api-reference/subscribers/get-subscriber-preferences"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences/{level}","title":null,"href":"/api-reference/subscribers/get-subscriber-global-preferences"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences/{templateId}","title":null,"href":"/api-reference/subscribers/update-subscriber-preference"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences","title":"Update subscriber global preferences","href":"/api-reference/subscribers/update-subscriber-global-preference"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/feed","title":"Retrieve subscriber notifications","href":"/api-reference/subscribers/get-in-app-notification-feed-for-a-particular-subscriber"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/unseen","title":"Retrieve unseen notifications count","href":"/api-reference/subscribers/get-the-unseen-in-app-notifications-count-for-subscribers-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/markAs","title":null,"href":"/api-reference/subscribers/mark-a-subscriber-feed-message-as-seen"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/mark-all","title":"Update all notifications state","href":"/api-reference/subscribers/marks-all-the-subscriber-messages-as-read-unread-seen-or-unseen-optionally-you-can-pass-feed-id-or-array-to-mark-messages-of-a-particular-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}","title":"Update notification action status","href":"/api-reference/subscribers/mark-message-action-as-seen"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback","title":"Handle providers oauth redirect","href":"/api-reference/subscribers/handle-providers-oauth-redirect"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth","title":"Handle chat oauth","href":"/api-reference/subscribers/handle-chat-oauth"}]},{"group":"Topics","pages":[{"openapi":"get /v1/topics","title":"Filter topics","href":"/api-reference/topics/filter-topics"},{"openapi":"post /v1/topics","title":"Topic creation","href":"/api-reference/topics/topic-creation"},{"openapi":"post /v1/topics/{topicKey}/subscribers","title":"Subscribers addition","href":"/api-reference/topics/subscribers-addition"},{"openapi":"get /v1/topics/{topicKey}/subscribers/{externalSubscriberId}","title":"Check topic subscriber","href":"/api-reference/topics/check-topic-subscriber"},{"openapi":"post /v1/topics/{topicKey}/subscribers/removal","title":"Subscribers removal","href":"/api-reference/topics/subscribers-removal"},{"openapi":"get /v1/topics/{topicKey}","title":"Get topic","href":"/api-reference/topics/get-topic"},{"openapi":"delete /v1/topics/{topicKey}","title":"Delete topic","href":"/api-reference/topics/delete-topic"},{"openapi":"patch /v1/topics/{topicKey}","title":"Rename a topic","href":"/api-reference/topics/rename-a-topic"}]},{"group":"Notification","pages":[{"openapi":"get /v1/notifications","title":"List all events","href":"/api-reference/notification/get-notifications"},{"openapi":"get /v1/notifications/stats","title":"Get notification statistics","href":"/api-reference/notification/get-notification-statistics"},{"openapi":"get /v1/notifications/graph/stats","title":"Get notification graph statistics","href":"/api-reference/notification/get-notification-graph-statistics"},{"openapi":"get /v1/notifications/{notificationId}","title":"Retrieve an event","href":"/api-reference/notification/get-notification"}]},{"group":"Workflows","pages":[{"openapi":"get /v1/workflows","title":"Get workflows","href":"/api-reference/workflows/get-workflows"},{"openapi":"post /v1/workflows","title":"Create workflow","href":"/api-reference/workflows/create-workflow"},{"openapi":"get /v1/workflows/{workflowIdOrIdentifier}","title":null,"href":"/api-reference/workflows/get-workflow"},{"openapi":"put /v1/workflows/{workflowId}","title":"Update workflow","href":"/api-reference/workflows/update-workflow"},{"openapi":"delete /v1/workflows/{workflowId}","title":"Delete workflow","href":"/api-reference/workflows/delete-workflow"},{"openapi":"put /v1/workflows/{workflowId}/status","title":"Update workflow status","href":"/api-reference/workflows/update-workflow-status"}]},{"group":"Workflow Overrides","pages":[{"openapi":"post /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/create-workflow-overrides"},{"openapi":"get /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/get-workflow-overrides"},{"openapi":"get /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override"},{"openapi":"get /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override"},{"openapi":"delete /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/delete-workflow-override"}]},{"group":"Workflow groups","pages":[{"openapi":"get /v1/notification-groups","title":"Get workflow groups","href":"/api-reference/workflow-groups/get-workflow-groups"},{"openapi":"post /v1/notification-groups","title":"Create workflow group","href":"/api-reference/workflow-groups/create-workflow-group"},{"openapi":"get /v1/notification-groups/{id}","title":"Get workflow group","href":"/api-reference/workflow-groups/get-workflow-group"},{"openapi":"delete /v1/notification-groups/{id}","title":"Delete workflow group","href":"/api-reference/workflow-groups/delete-workflow-group"},{"openapi":"patch /v1/notification-groups/{id}","title":"Update workflow group","href":"/api-reference/workflow-groups/update-workflow-group"}]},{"group":"Integrations","pages":[{"openapi":"get /v1/integrations","title":"List all integrations","href":"/api-reference/integrations/get-integrations"},{"openapi":"post /v1/integrations","title":"Create an integration","href":"/api-reference/integrations/create-integration"},{"openapi":"get /v1/integrations/active","title":"List active integrations","href":"/api-reference/integrations/get-active-integrations"},{"openapi":"get /v1/integrations/webhook/provider/{providerId}/status","title":null,"href":"/api-reference/integrations/get-webhook-support-status-for-provider"},{"openapi":"put /v1/integrations/{integrationId}","title":"Update an integration","href":"/api-reference/integrations/update-integration"},{"openapi":"delete /v1/integrations/{integrationId}","title":"Delete an integration","href":"/api-reference/integrations/delete-integration"},{"openapi":"post /v1/integrations/{integrationId}/set-primary","title":"Update integration as primary","href":"/api-reference/integrations/set-integration-as-primary"}]},{"group":"Layouts","pages":[{"openapi":"get /v1/layouts","title":"Filter layouts","href":"/api-reference/layouts/filter-layouts"},{"openapi":"post /v1/layouts","title":"Layout creation","href":"/api-reference/layouts/layout-creation"},{"openapi":"get /v1/layouts/{layoutId}","title":"Get layout","href":"/api-reference/layouts/get-layout"},{"openapi":"delete /v1/layouts/{layoutId}","title":"Delete layout","href":"/api-reference/layouts/delete-layout"},{"openapi":"patch /v1/layouts/{layoutId}","title":"Update a layout","href":"/api-reference/layouts/update-a-layout"},{"openapi":"post /v1/layouts/{layoutId}/default","title":"Set default layout","href":"/api-reference/layouts/set-default-layout"}]},{"group":"Inbound Parse","pages":[{"openapi":"get /v1/inbound-parse/mx/status","title":null,"href":"/api-reference/inbound-parse/validate-the-mx-record-setup-for-the-inbound-parse-functionality"}]},{"group":"Environments","pages":[{"openapi":"get /v1/environments/me","title":"Get current environment","href":"/api-reference/environments/get-current-environment"},{"openapi":"get /v1/environments","title":"List all environments","href":"/api-reference/environments/get-environments"},{"openapi":"get /v1/environments/api-keys","title":"Get api keys","href":"/api-reference/environments/get-api-keys"},{"openapi":"post /v1/environments/api-keys/regenerate","title":"Regenerate api keys","href":"/api-reference/environments/regenerate-api-keys"}]},{"group":"Changes","pages":[{"openapi":"get /v1/changes","title":"Get changes","href":"/api-reference/changes/get-changes"},{"openapi":"get /v1/changes/count","title":"Get changes count","href":"/api-reference/changes/get-changes-count"},{"openapi":"post /v1/changes/bulk/apply","title":"Apply changes","href":"/api-reference/changes/apply-changes"},{"openapi":"post /v1/changes/{changeId}/apply","title":"Apply change","href":"/api-reference/changes/apply-change"}]},{"group":"Execution Details","pages":[{"openapi":"get /v1/execution-details","title":"Get execution details","href":"/api-reference/execution-details/get-execution-details"}]},{"group":"Feeds","pages":[{"openapi":"get /v1/feeds","title":"Get feeds","href":"/api-reference/feeds/get-feeds"},{"openapi":"post /v1/feeds","title":"Create feed","href":"/api-reference/feeds/create-feed"},{"openapi":"delete /v1/feeds/{feedId}","title":"Delete feed","href":"/api-reference/feeds/delete-feed"}]},{"group":"Tenants","pages":[{"openapi":"get /v1/tenants","title":"Get tenants","href":"/api-reference/tenants/get-tenants"},{"openapi":"post /v1/tenants","title":"Create tenant","href":"/api-reference/tenants/create-tenant"},{"openapi":"get /v1/tenants/{identifier}","title":"Get tenant","href":"/api-reference/tenants/get-tenant"},{"openapi":"patch /v1/tenants/{identifier}","title":"Update tenant","href":"/api-reference/tenants/update-tenant"},{"openapi":"delete /v1/tenants/{identifier}","title":"Delete tenant","href":"/api-reference/tenants/delete-tenant"}]},{"group":"Organizations","pages":[{"openapi":"post /v1/organizations","title":"Create an organization","href":"/api-reference/organizations/create-organization"},{"openapi":"get /v1/organizations","title":"Fetch all organizations","href":"/api-reference/organizations/get-all-organizations"},{"openapi":"get /v1/organizations/members","title":"Fetch all members of current organizations","href":"/api-reference/organizations/get-all-members-of-current-organization"},{"openapi":"get /v1/organizations/me","title":"Fetch current organization details","href":"/api-reference/organizations/get-current-organization"},{"openapi":"patch /v1/organizations","title":"Rename organization name","href":"/api-reference/organizations/rename-organization"},{"openapi":"put /v1/organizations/members/{memberId}/roles","title":null,"href":"/api-reference/organizations/update-member-role-to-admin"},{"openapi":"put /v1/organizations/branding","title":"Update organization branding details","href":"/api-reference/organizations/update-organization-branding"},{"openapi":"delete /v1/organizations/members/{memberId}","title":"Remove a member from organization using memberId","href":"/api-reference/organizations/delete-member-from-organization"}]},{"group":"Messages","pages":[{"openapi":"get /v1/messages","title":"List all messages","href":"/api-reference/messages/get-messages"},{"openapi":"delete /v1/messages/{messageId}","title":"Delete a message","href":"/api-reference/messages/delete-message"},{"openapi":"delete /v1/messages/transaction/{transactionId}","title":"Delete messages by transactionId","href":"/api-reference/messages/delete-message-by-transactionid"}]},{"group":"Blueprints","pages":[{"openapi":"get /v1/blueprints/group-by-category","title":null,"href":"/api-reference/get-v1blueprintsgroup-by-category"},{"openapi":"get /v1/blueprints/{templateId}","title":null,"href":"/api-reference/get-v1blueprints"}]}]}]},{"anchor":"Discord Support","icon":"discord","href":"https://discord.gg/novu?ref=docs-instant-help"}]},{"version":"v0.23.0","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","tabs":[{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"API Rate Limiting","description":"In this page you can learn about how rate limiting works with Novu's API","href":"/api-reference/rate-limiting"}]},{"group":"Events","pages":[{"openapi":"post /v1/events/trigger","title":"Trigger event","href":"/api-reference/events/trigger-event"},{"openapi":"post /v1/events/trigger/bulk","title":"Bulk trigger event","description":"\n Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.\n The bulk API is limited to 100 events per request.\n ","href":"/api-reference/events/bulk-trigger-event"},{"openapi":"post /v1/events/trigger/broadcast","title":"Broadcast event to all","href":"/api-reference/events/broadcast-event-to-all"},{"openapi":"delete /v1/events/trigger/{transactionId}","title":"Cancel triggered event","href":"/api-reference/events/cancel-triggered-event"}]},{"group":"Subscribers","pages":[{"openapi":"get /v1/subscribers","title":"Get subscribers","href":"/api-reference/subscribers/get-subscribers"},{"openapi":"post /v1/subscribers","title":"Create subscriber","href":"/api-reference/subscribers/create-subscriber"},{"openapi":"post /v1/subscribers/bulk","title":"Bulk create subscribers","href":"/api-reference/subscribers/bulk-create-subscribers"},{"openapi":"get /v1/subscribers/{subscriberId}","title":"Get subscriber","href":"/api-reference/subscribers/get-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}","title":"Update subscriber","href":"/api-reference/subscribers/update-subscriber"},{"openapi":"delete /v1/subscribers/{subscriberId}","title":"Delete subscriber","href":"/api-reference/subscribers/delete-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}/credentials","title":"Update provider credentials","href":"/api-reference/subscribers/update-subscriber-credentials"},{"openapi":"delete /v1/subscribers/{subscriberId}/credentials/{providerId}","title":"Delete provider credentials","href":"/api-reference/subscribers/delete-subscriber-credentials-by-providerid"},{"openapi":"patch /v1/subscribers/{subscriberId}/online-status","title":"Update subscriber online status","href":"/api-reference/subscribers/update-subscriber-online-status"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences","title":"Get subscriber preferences","href":"/api-reference/subscribers/get-subscriber-preferences"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences/{level}","title":null,"href":"/api-reference/subscribers/get-subscriber-global-preferences"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences/{templateId}","title":null,"href":"/api-reference/subscribers/update-subscriber-preference"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences","title":"Update subscriber global preferences","href":"/api-reference/subscribers/update-subscriber-global-preference"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/feed","title":"Retrieve subscriber notifications","href":"/api-reference/subscribers/get-in-app-notification-feed-for-a-particular-subscriber"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/unseen","title":"Retrieve unseen notifications count","href":"/api-reference/subscribers/get-the-unseen-in-app-notifications-count-for-subscribers-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/markAs","title":null,"href":"/api-reference/subscribers/mark-a-subscriber-feed-message-as-seen"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/mark-all","title":"Update all notifications state","href":"/api-reference/subscribers/marks-all-the-subscriber-messages-as-read-unread-seen-or-unseen-optionally-you-can-pass-feed-id-or-array-to-mark-messages-of-a-particular-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}","title":"Update notification action status","href":"/api-reference/subscribers/mark-message-action-as-seen"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback","title":"Handle providers oauth redirect","href":"/api-reference/subscribers/handle-providers-oauth-redirect"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth","title":"Handle chat oauth","href":"/api-reference/subscribers/handle-chat-oauth"}]},{"group":"Topics","pages":[{"openapi":"get /v1/topics","title":"Filter topics","href":"/api-reference/topics/filter-topics"},{"openapi":"post /v1/topics","title":"Topic creation","href":"/api-reference/topics/topic-creation"},{"openapi":"post /v1/topics/{topicKey}/subscribers","title":"Subscribers addition","href":"/api-reference/topics/subscribers-addition"},{"openapi":"get /v1/topics/{topicKey}/subscribers/{externalSubscriberId}","title":"Check topic subscriber","href":"/api-reference/topics/check-topic-subscriber"},{"openapi":"post /v1/topics/{topicKey}/subscribers/removal","title":"Subscribers removal","href":"/api-reference/topics/subscribers-removal"},{"openapi":"get /v1/topics/{topicKey}","title":"Get topic","href":"/api-reference/topics/get-topic"},{"openapi":"delete /v1/topics/{topicKey}","title":"Delete topic","href":"/api-reference/topics/delete-topic"},{"openapi":"patch /v1/topics/{topicKey}","title":"Rename a topic","href":"/api-reference/topics/rename-a-topic"}]},{"group":"Notification","pages":[{"openapi":"get /v1/notifications","title":"List all events","href":"/api-reference/notification/get-notifications"},{"openapi":"get /v1/notifications/stats","title":"Get notification statistics","href":"/api-reference/notification/get-notification-statistics"},{"openapi":"get /v1/notifications/graph/stats","title":"Get notification graph statistics","href":"/api-reference/notification/get-notification-graph-statistics"},{"openapi":"get /v1/notifications/{notificationId}","title":"Retrieve an event","href":"/api-reference/notification/get-notification"}]},{"group":"Workflows","pages":[{"openapi":"get /v1/workflows","title":"Get workflows","href":"/api-reference/workflows/get-workflows"},{"openapi":"post /v1/workflows","title":"Create workflow","href":"/api-reference/workflows/create-workflow"},{"openapi":"get /v1/workflows/{workflowIdOrIdentifier}","title":null,"href":"/api-reference/workflows/get-workflow"},{"openapi":"put /v1/workflows/{workflowId}","title":"Update workflow","href":"/api-reference/workflows/update-workflow"},{"openapi":"delete /v1/workflows/{workflowId}","title":"Delete workflow","href":"/api-reference/workflows/delete-workflow"},{"openapi":"put /v1/workflows/{workflowId}/status","title":"Update workflow status","href":"/api-reference/workflows/update-workflow-status"}]},{"group":"Workflow Overrides","pages":[{"openapi":"post /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/create-workflow-overrides"},{"openapi":"get /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/get-workflow-overrides"},{"openapi":"get /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override"},{"openapi":"get /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override"},{"openapi":"delete /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/delete-workflow-override"}]},{"group":"Workflow groups","pages":[{"openapi":"get /v1/notification-groups","title":"Get workflow groups","href":"/api-reference/workflow-groups/get-workflow-groups"},{"openapi":"post /v1/notification-groups","title":"Create workflow group","href":"/api-reference/workflow-groups/create-workflow-group"},{"openapi":"get /v1/notification-groups/{id}","title":"Get workflow group","href":"/api-reference/workflow-groups/get-workflow-group"},{"openapi":"delete /v1/notification-groups/{id}","title":"Delete workflow group","href":"/api-reference/workflow-groups/delete-workflow-group"},{"openapi":"patch /v1/notification-groups/{id}","title":"Update workflow group","href":"/api-reference/workflow-groups/update-workflow-group"}]},{"group":"Integrations","pages":[{"openapi":"get /v1/integrations","title":"List all integrations","href":"/api-reference/integrations/get-integrations"},{"openapi":"post /v1/integrations","title":"Create an integration","href":"/api-reference/integrations/create-integration"},{"openapi":"get /v1/integrations/active","title":"List active integrations","href":"/api-reference/integrations/get-active-integrations"},{"openapi":"get /v1/integrations/webhook/provider/{providerId}/status","title":null,"href":"/api-reference/integrations/get-webhook-support-status-for-provider"},{"openapi":"put /v1/integrations/{integrationId}","title":"Update an integration","href":"/api-reference/integrations/update-integration"},{"openapi":"delete /v1/integrations/{integrationId}","title":"Delete an integration","href":"/api-reference/integrations/delete-integration"},{"openapi":"post /v1/integrations/{integrationId}/set-primary","title":"Update integration as primary","href":"/api-reference/integrations/set-integration-as-primary"}]},{"group":"Layouts","pages":[{"openapi":"get /v1/layouts","title":"Filter layouts","href":"/api-reference/layouts/filter-layouts"},{"openapi":"post /v1/layouts","title":"Layout creation","href":"/api-reference/layouts/layout-creation"},{"openapi":"get /v1/layouts/{layoutId}","title":"Get layout","href":"/api-reference/layouts/get-layout"},{"openapi":"delete /v1/layouts/{layoutId}","title":"Delete layout","href":"/api-reference/layouts/delete-layout"},{"openapi":"patch /v1/layouts/{layoutId}","title":"Update a layout","href":"/api-reference/layouts/update-a-layout"},{"openapi":"post /v1/layouts/{layoutId}/default","title":"Set default layout","href":"/api-reference/layouts/set-default-layout"}]},{"group":"Inbound Parse","pages":[{"openapi":"get /v1/inbound-parse/mx/status","title":null,"href":"/api-reference/inbound-parse/validate-the-mx-record-setup-for-the-inbound-parse-functionality"}]},{"group":"Environments","pages":[{"openapi":"get /v1/environments/me","title":"Get current environment","href":"/api-reference/environments/get-current-environment"},{"openapi":"get /v1/environments","title":"List all environments","href":"/api-reference/environments/get-environments"},{"openapi":"get /v1/environments/api-keys","title":"Get api keys","href":"/api-reference/environments/get-api-keys"},{"openapi":"post /v1/environments/api-keys/regenerate","title":"Regenerate api keys","href":"/api-reference/environments/regenerate-api-keys"}]},{"group":"Changes","pages":[{"openapi":"get /v1/changes","title":"Get changes","href":"/api-reference/changes/get-changes"},{"openapi":"get /v1/changes/count","title":"Get changes count","href":"/api-reference/changes/get-changes-count"},{"openapi":"post /v1/changes/bulk/apply","title":"Apply changes","href":"/api-reference/changes/apply-changes"},{"openapi":"post /v1/changes/{changeId}/apply","title":"Apply change","href":"/api-reference/changes/apply-change"}]},{"group":"Execution Details","pages":[{"openapi":"get /v1/execution-details","title":"Get execution details","href":"/api-reference/execution-details/get-execution-details"}]},{"group":"Feeds","pages":[{"openapi":"get /v1/feeds","title":"Get feeds","href":"/api-reference/feeds/get-feeds"},{"openapi":"post /v1/feeds","title":"Create feed","href":"/api-reference/feeds/create-feed"},{"openapi":"delete /v1/feeds/{feedId}","title":"Delete feed","href":"/api-reference/feeds/delete-feed"}]},{"group":"Tenants","pages":[{"openapi":"get /v1/tenants","title":"Get tenants","href":"/api-reference/tenants/get-tenants"},{"openapi":"post /v1/tenants","title":"Create tenant","href":"/api-reference/tenants/create-tenant"},{"openapi":"get /v1/tenants/{identifier}","title":"Get tenant","href":"/api-reference/tenants/get-tenant"},{"openapi":"patch /v1/tenants/{identifier}","title":"Update tenant","href":"/api-reference/tenants/update-tenant"},{"openapi":"delete /v1/tenants/{identifier}","title":"Delete tenant","href":"/api-reference/tenants/delete-tenant"}]},{"group":"Organizations","pages":[{"openapi":"post /v1/organizations","title":"Create an organization","href":"/api-reference/organizations/create-organization"},{"openapi":"get /v1/organizations","title":"Fetch all organizations","href":"/api-reference/organizations/get-all-organizations"},{"openapi":"get /v1/organizations/members","title":"Fetch all members of current organizations","href":"/api-reference/organizations/get-all-members-of-current-organization"},{"openapi":"get /v1/organizations/me","title":"Fetch current organization details","href":"/api-reference/organizations/get-current-organization"},{"openapi":"patch /v1/organizations","title":"Rename organization name","href":"/api-reference/organizations/rename-organization"},{"openapi":"put /v1/organizations/members/{memberId}/roles","title":null,"href":"/api-reference/organizations/update-member-role-to-admin"},{"openapi":"put /v1/organizations/branding","title":"Update organization branding details","href":"/api-reference/organizations/update-organization-branding"},{"openapi":"delete /v1/organizations/members/{memberId}","title":"Remove a member from organization using memberId","href":"/api-reference/organizations/delete-member-from-organization"}]},{"group":"Messages","pages":[{"openapi":"get /v1/messages","title":"List all messages","href":"/api-reference/messages/get-messages"},{"openapi":"delete /v1/messages/{messageId}","title":"Delete a message","href":"/api-reference/messages/delete-message"},{"openapi":"delete /v1/messages/transaction/{transactionId}","title":"Delete messages by transactionId","href":"/api-reference/messages/delete-message-by-transactionid"}]},{"group":"Blueprints","pages":[{"openapi":"get /v1/blueprints/group-by-category","title":null,"href":"/api-reference/get-v1blueprintsgroup-by-category"},{"openapi":"get /v1/blueprints/{templateId}","title":null,"href":"/api-reference/get-v1blueprints"}]}]}]},{"anchor":"Discord Support","icon":"discord","href":"https://discord.gg/novu?ref=docs-instant-help"}]},{"version":"v0.22.0","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","tabs":[{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"API Rate Limiting","description":"In this page you can learn about how rate limiting works with Novu's API","href":"/api-reference/rate-limiting"}]},{"group":"Events","pages":[{"openapi":"post /v1/events/trigger","title":"Trigger event","href":"/api-reference/events/trigger-event"},{"openapi":"post /v1/events/trigger/bulk","title":"Bulk trigger event","description":"\n Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.\n The bulk API is limited to 100 events per request.\n ","href":"/api-reference/events/bulk-trigger-event"},{"openapi":"post /v1/events/trigger/broadcast","title":"Broadcast event to all","href":"/api-reference/events/broadcast-event-to-all"},{"openapi":"delete /v1/events/trigger/{transactionId}","title":"Cancel triggered event","href":"/api-reference/events/cancel-triggered-event"}]},{"group":"Subscribers","pages":[{"openapi":"get /v1/subscribers","title":"Get subscribers","href":"/api-reference/subscribers/get-subscribers"},{"openapi":"post /v1/subscribers","title":"Create subscriber","href":"/api-reference/subscribers/create-subscriber"},{"openapi":"post /v1/subscribers/bulk","title":"Bulk create subscribers","href":"/api-reference/subscribers/bulk-create-subscribers"},{"openapi":"get /v1/subscribers/{subscriberId}","title":"Get subscriber","href":"/api-reference/subscribers/get-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}","title":"Update subscriber","href":"/api-reference/subscribers/update-subscriber"},{"openapi":"delete /v1/subscribers/{subscriberId}","title":"Delete subscriber","href":"/api-reference/subscribers/delete-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}/credentials","title":"Update provider credentials","href":"/api-reference/subscribers/update-subscriber-credentials"},{"openapi":"delete /v1/subscribers/{subscriberId}/credentials/{providerId}","title":"Delete provider credentials","href":"/api-reference/subscribers/delete-subscriber-credentials-by-providerid"},{"openapi":"patch /v1/subscribers/{subscriberId}/online-status","title":"Update subscriber online status","href":"/api-reference/subscribers/update-subscriber-online-status"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences","title":"Get subscriber preferences","href":"/api-reference/subscribers/get-subscriber-preferences"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences/{level}","title":null,"href":"/api-reference/subscribers/get-subscriber-global-preferences"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences/{templateId}","title":null,"href":"/api-reference/subscribers/update-subscriber-preference"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences","title":"Update subscriber global preferences","href":"/api-reference/subscribers/update-subscriber-global-preference"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/feed","title":"Retrieve subscriber notifications","href":"/api-reference/subscribers/get-in-app-notification-feed-for-a-particular-subscriber"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/unseen","title":"Retrieve unseen notifications count","href":"/api-reference/subscribers/get-the-unseen-in-app-notifications-count-for-subscribers-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/markAs","title":null,"href":"/api-reference/subscribers/mark-a-subscriber-feed-message-as-seen"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/mark-all","title":"Update all notifications state","href":"/api-reference/subscribers/marks-all-the-subscriber-messages-as-read-unread-seen-or-unseen-optionally-you-can-pass-feed-id-or-array-to-mark-messages-of-a-particular-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}","title":"Update notification action status","href":"/api-reference/subscribers/mark-message-action-as-seen"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback","title":"Handle providers oauth redirect","href":"/api-reference/subscribers/handle-providers-oauth-redirect"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth","title":"Handle chat oauth","href":"/api-reference/subscribers/handle-chat-oauth"}]},{"group":"Topics","pages":[{"openapi":"get /v1/topics","title":"Filter topics","href":"/api-reference/topics/filter-topics"},{"openapi":"post /v1/topics","title":"Topic creation","href":"/api-reference/topics/topic-creation"},{"openapi":"post /v1/topics/{topicKey}/subscribers","title":"Subscribers addition","href":"/api-reference/topics/subscribers-addition"},{"openapi":"get /v1/topics/{topicKey}/subscribers/{externalSubscriberId}","title":"Check topic subscriber","href":"/api-reference/topics/check-topic-subscriber"},{"openapi":"post /v1/topics/{topicKey}/subscribers/removal","title":"Subscribers removal","href":"/api-reference/topics/subscribers-removal"},{"openapi":"get /v1/topics/{topicKey}","title":"Get topic","href":"/api-reference/topics/get-topic"},{"openapi":"delete /v1/topics/{topicKey}","title":"Delete topic","href":"/api-reference/topics/delete-topic"},{"openapi":"patch /v1/topics/{topicKey}","title":"Rename a topic","href":"/api-reference/topics/rename-a-topic"}]},{"group":"Notification","pages":[{"openapi":"get /v1/notifications","title":"List all events","href":"/api-reference/notification/get-notifications"},{"openapi":"get /v1/notifications/stats","title":"Get notification statistics","href":"/api-reference/notification/get-notification-statistics"},{"openapi":"get /v1/notifications/graph/stats","title":"Get notification graph statistics","href":"/api-reference/notification/get-notification-graph-statistics"},{"openapi":"get /v1/notifications/{notificationId}","title":"Retrieve an event","href":"/api-reference/notification/get-notification"}]},{"group":"Workflows","pages":[{"openapi":"get /v1/workflows","title":"Get workflows","href":"/api-reference/workflows/get-workflows"},{"openapi":"post /v1/workflows","title":"Create workflow","href":"/api-reference/workflows/create-workflow"},{"openapi":"get /v1/workflows/{workflowIdOrIdentifier}","title":null,"href":"/api-reference/workflows/get-workflow"},{"openapi":"put /v1/workflows/{workflowId}","title":"Update workflow","href":"/api-reference/workflows/update-workflow"},{"openapi":"delete /v1/workflows/{workflowId}","title":"Delete workflow","href":"/api-reference/workflows/delete-workflow"},{"openapi":"put /v1/workflows/{workflowId}/status","title":"Update workflow status","href":"/api-reference/workflows/update-workflow-status"}]},{"group":"Workflow Overrides","pages":[{"openapi":"post /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/create-workflow-overrides"},{"openapi":"get /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/get-workflow-overrides"},{"openapi":"get /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override"},{"openapi":"get /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override"},{"openapi":"delete /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/delete-workflow-override"}]},{"group":"Workflow groups","pages":[{"openapi":"get /v1/notification-groups","title":"Get workflow groups","href":"/api-reference/workflow-groups/get-workflow-groups"},{"openapi":"post /v1/notification-groups","title":"Create workflow group","href":"/api-reference/workflow-groups/create-workflow-group"},{"openapi":"get /v1/notification-groups/{id}","title":"Get workflow group","href":"/api-reference/workflow-groups/get-workflow-group"},{"openapi":"delete /v1/notification-groups/{id}","title":"Delete workflow group","href":"/api-reference/workflow-groups/delete-workflow-group"},{"openapi":"patch /v1/notification-groups/{id}","title":"Update workflow group","href":"/api-reference/workflow-groups/update-workflow-group"}]},{"group":"Integrations","pages":[{"openapi":"get /v1/integrations","title":"List all integrations","href":"/api-reference/integrations/get-integrations"},{"openapi":"post /v1/integrations","title":"Create an integration","href":"/api-reference/integrations/create-integration"},{"openapi":"get /v1/integrations/active","title":"List active integrations","href":"/api-reference/integrations/get-active-integrations"},{"openapi":"get /v1/integrations/webhook/provider/{providerId}/status","title":null,"href":"/api-reference/integrations/get-webhook-support-status-for-provider"},{"openapi":"put /v1/integrations/{integrationId}","title":"Update an integration","href":"/api-reference/integrations/update-integration"},{"openapi":"delete /v1/integrations/{integrationId}","title":"Delete an integration","href":"/api-reference/integrations/delete-integration"},{"openapi":"post /v1/integrations/{integrationId}/set-primary","title":"Update integration as primary","href":"/api-reference/integrations/set-integration-as-primary"}]},{"group":"Layouts","pages":[{"openapi":"get /v1/layouts","title":"Filter layouts","href":"/api-reference/layouts/filter-layouts"},{"openapi":"post /v1/layouts","title":"Layout creation","href":"/api-reference/layouts/layout-creation"},{"openapi":"get /v1/layouts/{layoutId}","title":"Get layout","href":"/api-reference/layouts/get-layout"},{"openapi":"delete /v1/layouts/{layoutId}","title":"Delete layout","href":"/api-reference/layouts/delete-layout"},{"openapi":"patch /v1/layouts/{layoutId}","title":"Update a layout","href":"/api-reference/layouts/update-a-layout"},{"openapi":"post /v1/layouts/{layoutId}/default","title":"Set default layout","href":"/api-reference/layouts/set-default-layout"}]},{"group":"Inbound Parse","pages":[{"openapi":"get /v1/inbound-parse/mx/status","title":null,"href":"/api-reference/inbound-parse/validate-the-mx-record-setup-for-the-inbound-parse-functionality"}]},{"group":"Environments","pages":[{"openapi":"get /v1/environments/me","title":"Get current environment","href":"/api-reference/environments/get-current-environment"},{"openapi":"get /v1/environments","title":"List all environments","href":"/api-reference/environments/get-environments"},{"openapi":"get /v1/environments/api-keys","title":"Get api keys","href":"/api-reference/environments/get-api-keys"},{"openapi":"post /v1/environments/api-keys/regenerate","title":"Regenerate api keys","href":"/api-reference/environments/regenerate-api-keys"}]},{"group":"Changes","pages":[{"openapi":"get /v1/changes","title":"Get changes","href":"/api-reference/changes/get-changes"},{"openapi":"get /v1/changes/count","title":"Get changes count","href":"/api-reference/changes/get-changes-count"},{"openapi":"post /v1/changes/bulk/apply","title":"Apply changes","href":"/api-reference/changes/apply-changes"},{"openapi":"post /v1/changes/{changeId}/apply","title":"Apply change","href":"/api-reference/changes/apply-change"}]},{"group":"Execution Details","pages":[{"openapi":"get /v1/execution-details","title":"Get execution details","href":"/api-reference/execution-details/get-execution-details"}]},{"group":"Feeds","pages":[{"openapi":"get /v1/feeds","title":"Get feeds","href":"/api-reference/feeds/get-feeds"},{"openapi":"post /v1/feeds","title":"Create feed","href":"/api-reference/feeds/create-feed"},{"openapi":"delete /v1/feeds/{feedId}","title":"Delete feed","href":"/api-reference/feeds/delete-feed"}]},{"group":"Tenants","pages":[{"openapi":"get /v1/tenants","title":"Get tenants","href":"/api-reference/tenants/get-tenants"},{"openapi":"post /v1/tenants","title":"Create tenant","href":"/api-reference/tenants/create-tenant"},{"openapi":"get /v1/tenants/{identifier}","title":"Get tenant","href":"/api-reference/tenants/get-tenant"},{"openapi":"patch /v1/tenants/{identifier}","title":"Update tenant","href":"/api-reference/tenants/update-tenant"},{"openapi":"delete /v1/tenants/{identifier}","title":"Delete tenant","href":"/api-reference/tenants/delete-tenant"}]},{"group":"Organizations","pages":[{"openapi":"post /v1/organizations","title":"Create an organization","href":"/api-reference/organizations/create-organization"},{"openapi":"get /v1/organizations","title":"Fetch all organizations","href":"/api-reference/organizations/get-all-organizations"},{"openapi":"get /v1/organizations/members","title":"Fetch all members of current organizations","href":"/api-reference/organizations/get-all-members-of-current-organization"},{"openapi":"get /v1/organizations/me","title":"Fetch current organization details","href":"/api-reference/organizations/get-current-organization"},{"openapi":"patch /v1/organizations","title":"Rename organization name","href":"/api-reference/organizations/rename-organization"},{"openapi":"put /v1/organizations/members/{memberId}/roles","title":null,"href":"/api-reference/organizations/update-member-role-to-admin"},{"openapi":"put /v1/organizations/branding","title":"Update organization branding details","href":"/api-reference/organizations/update-organization-branding"},{"openapi":"delete /v1/organizations/members/{memberId}","title":"Remove a member from organization using memberId","href":"/api-reference/organizations/delete-member-from-organization"}]},{"group":"Messages","pages":[{"openapi":"get /v1/messages","title":"List all messages","href":"/api-reference/messages/get-messages"},{"openapi":"delete /v1/messages/{messageId}","title":"Delete a message","href":"/api-reference/messages/delete-message"},{"openapi":"delete /v1/messages/transaction/{transactionId}","title":"Delete messages by transactionId","href":"/api-reference/messages/delete-message-by-transactionid"}]},{"group":"Blueprints","pages":[{"openapi":"get /v1/blueprints/group-by-category","title":null,"href":"/api-reference/get-v1blueprintsgroup-by-category"},{"openapi":"get /v1/blueprints/{templateId}","title":null,"href":"/api-reference/get-v1blueprints"}]}]}]},{"anchor":"Discord Support","icon":"discord","href":"https://discord.gg/novu?ref=docs-instant-help"}]},{"version":"v0.21.0","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","tabs":[{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"API Rate Limiting","description":"In this page you can learn about how rate limiting works with Novu's API","href":"/api-reference/rate-limiting"}]},{"group":"Events","pages":[{"openapi":"post /v1/events/trigger","title":"Trigger event","href":"/api-reference/events/trigger-event"},{"openapi":"post /v1/events/trigger/bulk","title":"Bulk trigger event","description":"\n Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.\n The bulk API is limited to 100 events per request.\n ","href":"/api-reference/events/bulk-trigger-event"},{"openapi":"post /v1/events/trigger/broadcast","title":"Broadcast event to all","href":"/api-reference/events/broadcast-event-to-all"},{"openapi":"delete /v1/events/trigger/{transactionId}","title":"Cancel triggered event","href":"/api-reference/events/cancel-triggered-event"}]},{"group":"Subscribers","pages":[{"openapi":"get /v1/subscribers","title":"Get subscribers","href":"/api-reference/subscribers/get-subscribers"},{"openapi":"post /v1/subscribers","title":"Create subscriber","href":"/api-reference/subscribers/create-subscriber"},{"openapi":"post /v1/subscribers/bulk","title":"Bulk create subscribers","href":"/api-reference/subscribers/bulk-create-subscribers"},{"openapi":"get /v1/subscribers/{subscriberId}","title":"Get subscriber","href":"/api-reference/subscribers/get-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}","title":"Update subscriber","href":"/api-reference/subscribers/update-subscriber"},{"openapi":"delete /v1/subscribers/{subscriberId}","title":"Delete subscriber","href":"/api-reference/subscribers/delete-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}/credentials","title":"Update provider credentials","href":"/api-reference/subscribers/update-subscriber-credentials"},{"openapi":"delete /v1/subscribers/{subscriberId}/credentials/{providerId}","title":"Delete provider credentials","href":"/api-reference/subscribers/delete-subscriber-credentials-by-providerid"},{"openapi":"patch /v1/subscribers/{subscriberId}/online-status","title":"Update subscriber online status","href":"/api-reference/subscribers/update-subscriber-online-status"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences","title":"Get subscriber preferences","href":"/api-reference/subscribers/get-subscriber-preferences"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences/{level}","title":null,"href":"/api-reference/subscribers/get-subscriber-global-preferences"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences/{templateId}","title":null,"href":"/api-reference/subscribers/update-subscriber-preference"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences","title":"Update subscriber global preferences","href":"/api-reference/subscribers/update-subscriber-global-preference"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/feed","title":"Retrieve subscriber notifications","href":"/api-reference/subscribers/get-in-app-notification-feed-for-a-particular-subscriber"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/unseen","title":"Retrieve unseen notifications count","href":"/api-reference/subscribers/get-the-unseen-in-app-notifications-count-for-subscribers-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/markAs","title":null,"href":"/api-reference/subscribers/mark-a-subscriber-feed-message-as-seen"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/mark-all","title":"Update all notifications state","href":"/api-reference/subscribers/marks-all-the-subscriber-messages-as-read-unread-seen-or-unseen-optionally-you-can-pass-feed-id-or-array-to-mark-messages-of-a-particular-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}","title":"Update notification action status","href":"/api-reference/subscribers/mark-message-action-as-seen"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback","title":"Handle providers oauth redirect","href":"/api-reference/subscribers/handle-providers-oauth-redirect"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth","title":"Handle chat oauth","href":"/api-reference/subscribers/handle-chat-oauth"}]},{"group":"Topics","pages":[{"openapi":"get /v1/topics","title":"Filter topics","href":"/api-reference/topics/filter-topics"},{"openapi":"post /v1/topics","title":"Topic creation","href":"/api-reference/topics/topic-creation"},{"openapi":"post /v1/topics/{topicKey}/subscribers","title":"Subscribers addition","href":"/api-reference/topics/subscribers-addition"},{"openapi":"get /v1/topics/{topicKey}/subscribers/{externalSubscriberId}","title":"Check topic subscriber","href":"/api-reference/topics/check-topic-subscriber"},{"openapi":"post /v1/topics/{topicKey}/subscribers/removal","title":"Subscribers removal","href":"/api-reference/topics/subscribers-removal"},{"openapi":"get /v1/topics/{topicKey}","title":"Get topic","href":"/api-reference/topics/get-topic"},{"openapi":"delete /v1/topics/{topicKey}","title":"Delete topic","href":"/api-reference/topics/delete-topic"},{"openapi":"patch /v1/topics/{topicKey}","title":"Rename a topic","href":"/api-reference/topics/rename-a-topic"}]},{"group":"Notification","pages":[{"openapi":"get /v1/notifications","title":"List all events","href":"/api-reference/notification/get-notifications"},{"openapi":"get /v1/notifications/stats","title":"Get notification statistics","href":"/api-reference/notification/get-notification-statistics"},{"openapi":"get /v1/notifications/graph/stats","title":"Get notification graph statistics","href":"/api-reference/notification/get-notification-graph-statistics"},{"openapi":"get /v1/notifications/{notificationId}","title":"Retrieve an event","href":"/api-reference/notification/get-notification"}]},{"group":"Workflows","pages":[{"openapi":"get /v1/workflows","title":"Get workflows","href":"/api-reference/workflows/get-workflows"},{"openapi":"post /v1/workflows","title":"Create workflow","href":"/api-reference/workflows/create-workflow"},{"openapi":"get /v1/workflows/{workflowIdOrIdentifier}","title":null,"href":"/api-reference/workflows/get-workflow"},{"openapi":"put /v1/workflows/{workflowId}","title":"Update workflow","href":"/api-reference/workflows/update-workflow"},{"openapi":"delete /v1/workflows/{workflowId}","title":"Delete workflow","href":"/api-reference/workflows/delete-workflow"},{"openapi":"put /v1/workflows/{workflowId}/status","title":"Update workflow status","href":"/api-reference/workflows/update-workflow-status"}]},{"group":"Workflow Overrides","pages":[{"openapi":"post /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/create-workflow-overrides"},{"openapi":"get /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/get-workflow-overrides"},{"openapi":"get /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override"},{"openapi":"get /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override"},{"openapi":"delete /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/delete-workflow-override"}]},{"group":"Workflow groups","pages":[{"openapi":"get /v1/notification-groups","title":"Get workflow groups","href":"/api-reference/workflow-groups/get-workflow-groups"},{"openapi":"post /v1/notification-groups","title":"Create workflow group","href":"/api-reference/workflow-groups/create-workflow-group"},{"openapi":"get /v1/notification-groups/{id}","title":"Get workflow group","href":"/api-reference/workflow-groups/get-workflow-group"},{"openapi":"delete /v1/notification-groups/{id}","title":"Delete workflow group","href":"/api-reference/workflow-groups/delete-workflow-group"},{"openapi":"patch /v1/notification-groups/{id}","title":"Update workflow group","href":"/api-reference/workflow-groups/update-workflow-group"}]},{"group":"Integrations","pages":[{"openapi":"get /v1/integrations","title":"List all integrations","href":"/api-reference/integrations/get-integrations"},{"openapi":"post /v1/integrations","title":"Create an integration","href":"/api-reference/integrations/create-integration"},{"openapi":"get /v1/integrations/active","title":"List active integrations","href":"/api-reference/integrations/get-active-integrations"},{"openapi":"get /v1/integrations/webhook/provider/{providerId}/status","title":null,"href":"/api-reference/integrations/get-webhook-support-status-for-provider"},{"openapi":"put /v1/integrations/{integrationId}","title":"Update an integration","href":"/api-reference/integrations/update-integration"},{"openapi":"delete /v1/integrations/{integrationId}","title":"Delete an integration","href":"/api-reference/integrations/delete-integration"},{"openapi":"post /v1/integrations/{integrationId}/set-primary","title":"Update integration as primary","href":"/api-reference/integrations/set-integration-as-primary"}]},{"group":"Layouts","pages":[{"openapi":"get /v1/layouts","title":"Filter layouts","href":"/api-reference/layouts/filter-layouts"},{"openapi":"post /v1/layouts","title":"Layout creation","href":"/api-reference/layouts/layout-creation"},{"openapi":"get /v1/layouts/{layoutId}","title":"Get layout","href":"/api-reference/layouts/get-layout"},{"openapi":"delete /v1/layouts/{layoutId}","title":"Delete layout","href":"/api-reference/layouts/delete-layout"},{"openapi":"patch /v1/layouts/{layoutId}","title":"Update a layout","href":"/api-reference/layouts/update-a-layout"},{"openapi":"post /v1/layouts/{layoutId}/default","title":"Set default layout","href":"/api-reference/layouts/set-default-layout"}]},{"group":"Inbound Parse","pages":[{"openapi":"get /v1/inbound-parse/mx/status","title":null,"href":"/api-reference/inbound-parse/validate-the-mx-record-setup-for-the-inbound-parse-functionality"}]},{"group":"Environments","pages":[{"openapi":"get /v1/environments/me","title":"Get current environment","href":"/api-reference/environments/get-current-environment"},{"openapi":"get /v1/environments","title":"List all environments","href":"/api-reference/environments/get-environments"},{"openapi":"get /v1/environments/api-keys","title":"Get api keys","href":"/api-reference/environments/get-api-keys"},{"openapi":"post /v1/environments/api-keys/regenerate","title":"Regenerate api keys","href":"/api-reference/environments/regenerate-api-keys"}]},{"group":"Changes","pages":[{"openapi":"get /v1/changes","title":"Get changes","href":"/api-reference/changes/get-changes"},{"openapi":"get /v1/changes/count","title":"Get changes count","href":"/api-reference/changes/get-changes-count"},{"openapi":"post /v1/changes/bulk/apply","title":"Apply changes","href":"/api-reference/changes/apply-changes"},{"openapi":"post /v1/changes/{changeId}/apply","title":"Apply change","href":"/api-reference/changes/apply-change"}]},{"group":"Execution Details","pages":[{"openapi":"get /v1/execution-details","title":"Get execution details","href":"/api-reference/execution-details/get-execution-details"}]},{"group":"Feeds","pages":[{"openapi":"get /v1/feeds","title":"Get feeds","href":"/api-reference/feeds/get-feeds"},{"openapi":"post /v1/feeds","title":"Create feed","href":"/api-reference/feeds/create-feed"},{"openapi":"delete /v1/feeds/{feedId}","title":"Delete feed","href":"/api-reference/feeds/delete-feed"}]},{"group":"Tenants","pages":[{"openapi":"get /v1/tenants","title":"Get tenants","href":"/api-reference/tenants/get-tenants"},{"openapi":"post /v1/tenants","title":"Create tenant","href":"/api-reference/tenants/create-tenant"},{"openapi":"get /v1/tenants/{identifier}","title":"Get tenant","href":"/api-reference/tenants/get-tenant"},{"openapi":"patch /v1/tenants/{identifier}","title":"Update tenant","href":"/api-reference/tenants/update-tenant"},{"openapi":"delete /v1/tenants/{identifier}","title":"Delete tenant","href":"/api-reference/tenants/delete-tenant"}]},{"group":"Organizations","pages":[{"openapi":"post /v1/organizations","title":"Create an organization","href":"/api-reference/organizations/create-organization"},{"openapi":"get /v1/organizations","title":"Fetch all organizations","href":"/api-reference/organizations/get-all-organizations"},{"openapi":"get /v1/organizations/members","title":"Fetch all members of current organizations","href":"/api-reference/organizations/get-all-members-of-current-organization"},{"openapi":"get /v1/organizations/me","title":"Fetch current organization details","href":"/api-reference/organizations/get-current-organization"},{"openapi":"patch /v1/organizations","title":"Rename organization name","href":"/api-reference/organizations/rename-organization"},{"openapi":"put /v1/organizations/members/{memberId}/roles","title":null,"href":"/api-reference/organizations/update-member-role-to-admin"},{"openapi":"put /v1/organizations/branding","title":"Update organization branding details","href":"/api-reference/organizations/update-organization-branding"},{"openapi":"delete /v1/organizations/members/{memberId}","title":"Remove a member from organization using memberId","href":"/api-reference/organizations/delete-member-from-organization"}]},{"group":"Messages","pages":[{"openapi":"get /v1/messages","title":"List all messages","href":"/api-reference/messages/get-messages"},{"openapi":"delete /v1/messages/{messageId}","title":"Delete a message","href":"/api-reference/messages/delete-message"},{"openapi":"delete /v1/messages/transaction/{transactionId}","title":"Delete messages by transactionId","href":"/api-reference/messages/delete-message-by-transactionid"}]},{"group":"Blueprints","pages":[{"openapi":"get /v1/blueprints/group-by-category","title":null,"href":"/api-reference/get-v1blueprintsgroup-by-category"},{"openapi":"get /v1/blueprints/{templateId}","title":null,"href":"/api-reference/get-v1blueprints"}]}]}]},{"anchor":"Discord Support","icon":"discord","href":"https://discord.gg/novu?ref=docs-instant-help"}]},{"version":"v0.20.0","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","tabs":[{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"API Rate Limiting","description":"In this page you can learn about how rate limiting works with Novu's API","href":"/api-reference/rate-limiting"}]},{"group":"Events","pages":[{"openapi":"post /v1/events/trigger","title":"Trigger event","href":"/api-reference/events/trigger-event"},{"openapi":"post /v1/events/trigger/bulk","title":"Bulk trigger event","description":"\n Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.\n The bulk API is limited to 100 events per request.\n ","href":"/api-reference/events/bulk-trigger-event"},{"openapi":"post /v1/events/trigger/broadcast","title":"Broadcast event to all","href":"/api-reference/events/broadcast-event-to-all"},{"openapi":"delete /v1/events/trigger/{transactionId}","title":"Cancel triggered event","href":"/api-reference/events/cancel-triggered-event"}]},{"group":"Subscribers","pages":[{"openapi":"get /v1/subscribers","title":"Get subscribers","href":"/api-reference/subscribers/get-subscribers"},{"openapi":"post /v1/subscribers","title":"Create subscriber","href":"/api-reference/subscribers/create-subscriber"},{"openapi":"post /v1/subscribers/bulk","title":"Bulk create subscribers","href":"/api-reference/subscribers/bulk-create-subscribers"},{"openapi":"get /v1/subscribers/{subscriberId}","title":"Get subscriber","href":"/api-reference/subscribers/get-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}","title":"Update subscriber","href":"/api-reference/subscribers/update-subscriber"},{"openapi":"delete /v1/subscribers/{subscriberId}","title":"Delete subscriber","href":"/api-reference/subscribers/delete-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}/credentials","title":"Update provider credentials","href":"/api-reference/subscribers/update-subscriber-credentials"},{"openapi":"delete /v1/subscribers/{subscriberId}/credentials/{providerId}","title":"Delete provider credentials","href":"/api-reference/subscribers/delete-subscriber-credentials-by-providerid"},{"openapi":"patch /v1/subscribers/{subscriberId}/online-status","title":"Update subscriber online status","href":"/api-reference/subscribers/update-subscriber-online-status"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences","title":"Get subscriber preferences","href":"/api-reference/subscribers/get-subscriber-preferences"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences/{level}","title":null,"href":"/api-reference/subscribers/get-subscriber-global-preferences"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences/{templateId}","title":null,"href":"/api-reference/subscribers/update-subscriber-preference"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences","title":"Update subscriber global preferences","href":"/api-reference/subscribers/update-subscriber-global-preference"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/feed","title":"Retrieve subscriber notifications","href":"/api-reference/subscribers/get-in-app-notification-feed-for-a-particular-subscriber"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/unseen","title":"Retrieve unseen notifications count","href":"/api-reference/subscribers/get-the-unseen-in-app-notifications-count-for-subscribers-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/markAs","title":null,"href":"/api-reference/subscribers/mark-a-subscriber-feed-message-as-seen"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/mark-all","title":"Update all notifications state","href":"/api-reference/subscribers/marks-all-the-subscriber-messages-as-read-unread-seen-or-unseen-optionally-you-can-pass-feed-id-or-array-to-mark-messages-of-a-particular-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}","title":"Update notification action status","href":"/api-reference/subscribers/mark-message-action-as-seen"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback","title":"Handle providers oauth redirect","href":"/api-reference/subscribers/handle-providers-oauth-redirect"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth","title":"Handle chat oauth","href":"/api-reference/subscribers/handle-chat-oauth"}]},{"group":"Topics","pages":[{"openapi":"get /v1/topics","title":"Filter topics","href":"/api-reference/topics/filter-topics"},{"openapi":"post /v1/topics","title":"Topic creation","href":"/api-reference/topics/topic-creation"},{"openapi":"post /v1/topics/{topicKey}/subscribers","title":"Subscribers addition","href":"/api-reference/topics/subscribers-addition"},{"openapi":"get /v1/topics/{topicKey}/subscribers/{externalSubscriberId}","title":"Check topic subscriber","href":"/api-reference/topics/check-topic-subscriber"},{"openapi":"post /v1/topics/{topicKey}/subscribers/removal","title":"Subscribers removal","href":"/api-reference/topics/subscribers-removal"},{"openapi":"get /v1/topics/{topicKey}","title":"Get topic","href":"/api-reference/topics/get-topic"},{"openapi":"delete /v1/topics/{topicKey}","title":"Delete topic","href":"/api-reference/topics/delete-topic"},{"openapi":"patch /v1/topics/{topicKey}","title":"Rename a topic","href":"/api-reference/topics/rename-a-topic"}]},{"group":"Notification","pages":[{"openapi":"get /v1/notifications","title":"List all events","href":"/api-reference/notification/get-notifications"},{"openapi":"get /v1/notifications/stats","title":"Get notification statistics","href":"/api-reference/notification/get-notification-statistics"},{"openapi":"get /v1/notifications/graph/stats","title":"Get notification graph statistics","href":"/api-reference/notification/get-notification-graph-statistics"},{"openapi":"get /v1/notifications/{notificationId}","title":"Retrieve an event","href":"/api-reference/notification/get-notification"}]},{"group":"Workflows","pages":[{"openapi":"get /v1/workflows","title":"Get workflows","href":"/api-reference/workflows/get-workflows"},{"openapi":"post /v1/workflows","title":"Create workflow","href":"/api-reference/workflows/create-workflow"},{"openapi":"get /v1/workflows/{workflowIdOrIdentifier}","title":null,"href":"/api-reference/workflows/get-workflow"},{"openapi":"put /v1/workflows/{workflowId}","title":"Update workflow","href":"/api-reference/workflows/update-workflow"},{"openapi":"delete /v1/workflows/{workflowId}","title":"Delete workflow","href":"/api-reference/workflows/delete-workflow"},{"openapi":"put /v1/workflows/{workflowId}/status","title":"Update workflow status","href":"/api-reference/workflows/update-workflow-status"}]},{"group":"Workflow Overrides","pages":[{"openapi":"post /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/create-workflow-overrides"},{"openapi":"get /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/get-workflow-overrides"},{"openapi":"get /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override"},{"openapi":"get /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override"},{"openapi":"delete /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/delete-workflow-override"}]},{"group":"Workflow groups","pages":[{"openapi":"get /v1/notification-groups","title":"Get workflow groups","href":"/api-reference/workflow-groups/get-workflow-groups"},{"openapi":"post /v1/notification-groups","title":"Create workflow group","href":"/api-reference/workflow-groups/create-workflow-group"},{"openapi":"get /v1/notification-groups/{id}","title":"Get workflow group","href":"/api-reference/workflow-groups/get-workflow-group"},{"openapi":"delete /v1/notification-groups/{id}","title":"Delete workflow group","href":"/api-reference/workflow-groups/delete-workflow-group"},{"openapi":"patch /v1/notification-groups/{id}","title":"Update workflow group","href":"/api-reference/workflow-groups/update-workflow-group"}]},{"group":"Integrations","pages":[{"openapi":"get /v1/integrations","title":"List all integrations","href":"/api-reference/integrations/get-integrations"},{"openapi":"post /v1/integrations","title":"Create an integration","href":"/api-reference/integrations/create-integration"},{"openapi":"get /v1/integrations/active","title":"List active integrations","href":"/api-reference/integrations/get-active-integrations"},{"openapi":"get /v1/integrations/webhook/provider/{providerId}/status","title":null,"href":"/api-reference/integrations/get-webhook-support-status-for-provider"},{"openapi":"put /v1/integrations/{integrationId}","title":"Update an integration","href":"/api-reference/integrations/update-integration"},{"openapi":"delete /v1/integrations/{integrationId}","title":"Delete an integration","href":"/api-reference/integrations/delete-integration"},{"openapi":"post /v1/integrations/{integrationId}/set-primary","title":"Update integration as primary","href":"/api-reference/integrations/set-integration-as-primary"}]},{"group":"Layouts","pages":[{"openapi":"get /v1/layouts","title":"Filter layouts","href":"/api-reference/layouts/filter-layouts"},{"openapi":"post /v1/layouts","title":"Layout creation","href":"/api-reference/layouts/layout-creation"},{"openapi":"get /v1/layouts/{layoutId}","title":"Get layout","href":"/api-reference/layouts/get-layout"},{"openapi":"delete /v1/layouts/{layoutId}","title":"Delete layout","href":"/api-reference/layouts/delete-layout"},{"openapi":"patch /v1/layouts/{layoutId}","title":"Update a layout","href":"/api-reference/layouts/update-a-layout"},{"openapi":"post /v1/layouts/{layoutId}/default","title":"Set default layout","href":"/api-reference/layouts/set-default-layout"}]},{"group":"Inbound Parse","pages":[{"openapi":"get /v1/inbound-parse/mx/status","title":null,"href":"/api-reference/inbound-parse/validate-the-mx-record-setup-for-the-inbound-parse-functionality"}]},{"group":"Environments","pages":[{"openapi":"get /v1/environments/me","title":"Get current environment","href":"/api-reference/environments/get-current-environment"},{"openapi":"get /v1/environments","title":"List all environments","href":"/api-reference/environments/get-environments"},{"openapi":"get /v1/environments/api-keys","title":"Get api keys","href":"/api-reference/environments/get-api-keys"},{"openapi":"post /v1/environments/api-keys/regenerate","title":"Regenerate api keys","href":"/api-reference/environments/regenerate-api-keys"}]},{"group":"Changes","pages":[{"openapi":"get /v1/changes","title":"Get changes","href":"/api-reference/changes/get-changes"},{"openapi":"get /v1/changes/count","title":"Get changes count","href":"/api-reference/changes/get-changes-count"},{"openapi":"post /v1/changes/bulk/apply","title":"Apply changes","href":"/api-reference/changes/apply-changes"},{"openapi":"post /v1/changes/{changeId}/apply","title":"Apply change","href":"/api-reference/changes/apply-change"}]},{"group":"Execution Details","pages":[{"openapi":"get /v1/execution-details","title":"Get execution details","href":"/api-reference/execution-details/get-execution-details"}]},{"group":"Feeds","pages":[{"openapi":"get /v1/feeds","title":"Get feeds","href":"/api-reference/feeds/get-feeds"},{"openapi":"post /v1/feeds","title":"Create feed","href":"/api-reference/feeds/create-feed"},{"openapi":"delete /v1/feeds/{feedId}","title":"Delete feed","href":"/api-reference/feeds/delete-feed"}]},{"group":"Tenants","pages":[{"openapi":"get /v1/tenants","title":"Get tenants","href":"/api-reference/tenants/get-tenants"},{"openapi":"post /v1/tenants","title":"Create tenant","href":"/api-reference/tenants/create-tenant"},{"openapi":"get /v1/tenants/{identifier}","title":"Get tenant","href":"/api-reference/tenants/get-tenant"},{"openapi":"patch /v1/tenants/{identifier}","title":"Update tenant","href":"/api-reference/tenants/update-tenant"},{"openapi":"delete /v1/tenants/{identifier}","title":"Delete tenant","href":"/api-reference/tenants/delete-tenant"}]},{"group":"Organizations","pages":[{"openapi":"post /v1/organizations","title":"Create an organization","href":"/api-reference/organizations/create-organization"},{"openapi":"get /v1/organizations","title":"Fetch all organizations","href":"/api-reference/organizations/get-all-organizations"},{"openapi":"get /v1/organizations/members","title":"Fetch all members of current organizations","href":"/api-reference/organizations/get-all-members-of-current-organization"},{"openapi":"get /v1/organizations/me","title":"Fetch current organization details","href":"/api-reference/organizations/get-current-organization"},{"openapi":"patch /v1/organizations","title":"Rename organization name","href":"/api-reference/organizations/rename-organization"},{"openapi":"put /v1/organizations/members/{memberId}/roles","title":null,"href":"/api-reference/organizations/update-member-role-to-admin"},{"openapi":"put /v1/organizations/branding","title":"Update organization branding details","href":"/api-reference/organizations/update-organization-branding"},{"openapi":"delete /v1/organizations/members/{memberId}","title":"Remove a member from organization using memberId","href":"/api-reference/organizations/delete-member-from-organization"}]},{"group":"Messages","pages":[{"openapi":"get /v1/messages","title":"List all messages","href":"/api-reference/messages/get-messages"},{"openapi":"delete /v1/messages/{messageId}","title":"Delete a message","href":"/api-reference/messages/delete-message"},{"openapi":"delete /v1/messages/transaction/{transactionId}","title":"Delete messages by transactionId","href":"/api-reference/messages/delete-message-by-transactionid"}]},{"group":"Blueprints","pages":[{"openapi":"get /v1/blueprints/group-by-category","title":null,"href":"/api-reference/get-v1blueprintsgroup-by-category"},{"openapi":"get /v1/blueprints/{templateId}","title":null,"href":"/api-reference/get-v1blueprints"}]}]}]},{"anchor":"Discord Support","icon":"discord","href":"https://discord.gg/novu?ref=docs-instant-help"}]},{"version":"v0.19.0","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","tabs":[{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"API Rate Limiting","description":"In this page you can learn about how rate limiting works with Novu's API","href":"/api-reference/rate-limiting"}]},{"group":"Events","pages":[{"openapi":"post /v1/events/trigger","title":"Trigger event","href":"/api-reference/events/trigger-event"},{"openapi":"post /v1/events/trigger/bulk","title":"Bulk trigger event","description":"\n Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.\n The bulk API is limited to 100 events per request.\n ","href":"/api-reference/events/bulk-trigger-event"},{"openapi":"post /v1/events/trigger/broadcast","title":"Broadcast event to all","href":"/api-reference/events/broadcast-event-to-all"},{"openapi":"delete /v1/events/trigger/{transactionId}","title":"Cancel triggered event","href":"/api-reference/events/cancel-triggered-event"}]},{"group":"Subscribers","pages":[{"openapi":"get /v1/subscribers","title":"Get subscribers","href":"/api-reference/subscribers/get-subscribers"},{"openapi":"post /v1/subscribers","title":"Create subscriber","href":"/api-reference/subscribers/create-subscriber"},{"openapi":"post /v1/subscribers/bulk","title":"Bulk create subscribers","href":"/api-reference/subscribers/bulk-create-subscribers"},{"openapi":"get /v1/subscribers/{subscriberId}","title":"Get subscriber","href":"/api-reference/subscribers/get-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}","title":"Update subscriber","href":"/api-reference/subscribers/update-subscriber"},{"openapi":"delete /v1/subscribers/{subscriberId}","title":"Delete subscriber","href":"/api-reference/subscribers/delete-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}/credentials","title":"Update provider credentials","href":"/api-reference/subscribers/update-subscriber-credentials"},{"openapi":"delete /v1/subscribers/{subscriberId}/credentials/{providerId}","title":"Delete provider credentials","href":"/api-reference/subscribers/delete-subscriber-credentials-by-providerid"},{"openapi":"patch /v1/subscribers/{subscriberId}/online-status","title":"Update subscriber online status","href":"/api-reference/subscribers/update-subscriber-online-status"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences","title":"Get subscriber preferences","href":"/api-reference/subscribers/get-subscriber-preferences"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences/{level}","title":null,"href":"/api-reference/subscribers/get-subscriber-global-preferences"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences/{templateId}","title":null,"href":"/api-reference/subscribers/update-subscriber-preference"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences","title":"Update subscriber global preferences","href":"/api-reference/subscribers/update-subscriber-global-preference"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/feed","title":"Retrieve subscriber notifications","href":"/api-reference/subscribers/get-in-app-notification-feed-for-a-particular-subscriber"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/unseen","title":"Retrieve unseen notifications count","href":"/api-reference/subscribers/get-the-unseen-in-app-notifications-count-for-subscribers-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/markAs","title":null,"href":"/api-reference/subscribers/mark-a-subscriber-feed-message-as-seen"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/mark-all","title":"Update all notifications state","href":"/api-reference/subscribers/marks-all-the-subscriber-messages-as-read-unread-seen-or-unseen-optionally-you-can-pass-feed-id-or-array-to-mark-messages-of-a-particular-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}","title":"Update notification action status","href":"/api-reference/subscribers/mark-message-action-as-seen"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback","title":"Handle providers oauth redirect","href":"/api-reference/subscribers/handle-providers-oauth-redirect"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth","title":"Handle chat oauth","href":"/api-reference/subscribers/handle-chat-oauth"}]},{"group":"Topics","pages":[{"openapi":"get /v1/topics","title":"Filter topics","href":"/api-reference/topics/filter-topics"},{"openapi":"post /v1/topics","title":"Topic creation","href":"/api-reference/topics/topic-creation"},{"openapi":"post /v1/topics/{topicKey}/subscribers","title":"Subscribers addition","href":"/api-reference/topics/subscribers-addition"},{"openapi":"get /v1/topics/{topicKey}/subscribers/{externalSubscriberId}","title":"Check topic subscriber","href":"/api-reference/topics/check-topic-subscriber"},{"openapi":"post /v1/topics/{topicKey}/subscribers/removal","title":"Subscribers removal","href":"/api-reference/topics/subscribers-removal"},{"openapi":"get /v1/topics/{topicKey}","title":"Get topic","href":"/api-reference/topics/get-topic"},{"openapi":"delete /v1/topics/{topicKey}","title":"Delete topic","href":"/api-reference/topics/delete-topic"},{"openapi":"patch /v1/topics/{topicKey}","title":"Rename a topic","href":"/api-reference/topics/rename-a-topic"}]},{"group":"Notification","pages":[{"openapi":"get /v1/notifications","title":"List all events","href":"/api-reference/notification/get-notifications"},{"openapi":"get /v1/notifications/stats","title":"Get notification statistics","href":"/api-reference/notification/get-notification-statistics"},{"openapi":"get /v1/notifications/graph/stats","title":"Get notification graph statistics","href":"/api-reference/notification/get-notification-graph-statistics"},{"openapi":"get /v1/notifications/{notificationId}","title":"Retrieve an event","href":"/api-reference/notification/get-notification"}]},{"group":"Workflows","pages":[{"openapi":"get /v1/workflows","title":"Get workflows","href":"/api-reference/workflows/get-workflows"},{"openapi":"post /v1/workflows","title":"Create workflow","href":"/api-reference/workflows/create-workflow"},{"openapi":"get /v1/workflows/{workflowIdOrIdentifier}","title":null,"href":"/api-reference/workflows/get-workflow"},{"openapi":"put /v1/workflows/{workflowId}","title":"Update workflow","href":"/api-reference/workflows/update-workflow"},{"openapi":"delete /v1/workflows/{workflowId}","title":"Delete workflow","href":"/api-reference/workflows/delete-workflow"},{"openapi":"put /v1/workflows/{workflowId}/status","title":"Update workflow status","href":"/api-reference/workflows/update-workflow-status"}]},{"group":"Workflow Overrides","pages":[{"openapi":"post /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/create-workflow-overrides"},{"openapi":"get /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/get-workflow-overrides"},{"openapi":"get /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override"},{"openapi":"get /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override"},{"openapi":"delete /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/delete-workflow-override"}]},{"group":"Workflow groups","pages":[{"openapi":"get /v1/notification-groups","title":"Get workflow groups","href":"/api-reference/workflow-groups/get-workflow-groups"},{"openapi":"post /v1/notification-groups","title":"Create workflow group","href":"/api-reference/workflow-groups/create-workflow-group"},{"openapi":"get /v1/notification-groups/{id}","title":"Get workflow group","href":"/api-reference/workflow-groups/get-workflow-group"},{"openapi":"delete /v1/notification-groups/{id}","title":"Delete workflow group","href":"/api-reference/workflow-groups/delete-workflow-group"},{"openapi":"patch /v1/notification-groups/{id}","title":"Update workflow group","href":"/api-reference/workflow-groups/update-workflow-group"}]},{"group":"Integrations","pages":[{"openapi":"get /v1/integrations","title":"List all integrations","href":"/api-reference/integrations/get-integrations"},{"openapi":"post /v1/integrations","title":"Create an integration","href":"/api-reference/integrations/create-integration"},{"openapi":"get /v1/integrations/active","title":"List active integrations","href":"/api-reference/integrations/get-active-integrations"},{"openapi":"get /v1/integrations/webhook/provider/{providerId}/status","title":null,"href":"/api-reference/integrations/get-webhook-support-status-for-provider"},{"openapi":"put /v1/integrations/{integrationId}","title":"Update an integration","href":"/api-reference/integrations/update-integration"},{"openapi":"delete /v1/integrations/{integrationId}","title":"Delete an integration","href":"/api-reference/integrations/delete-integration"},{"openapi":"post /v1/integrations/{integrationId}/set-primary","title":"Update integration as primary","href":"/api-reference/integrations/set-integration-as-primary"}]},{"group":"Layouts","pages":[{"openapi":"get /v1/layouts","title":"Filter layouts","href":"/api-reference/layouts/filter-layouts"},{"openapi":"post /v1/layouts","title":"Layout creation","href":"/api-reference/layouts/layout-creation"},{"openapi":"get /v1/layouts/{layoutId}","title":"Get layout","href":"/api-reference/layouts/get-layout"},{"openapi":"delete /v1/layouts/{layoutId}","title":"Delete layout","href":"/api-reference/layouts/delete-layout"},{"openapi":"patch /v1/layouts/{layoutId}","title":"Update a layout","href":"/api-reference/layouts/update-a-layout"},{"openapi":"post /v1/layouts/{layoutId}/default","title":"Set default layout","href":"/api-reference/layouts/set-default-layout"}]},{"group":"Inbound Parse","pages":[{"openapi":"get /v1/inbound-parse/mx/status","title":null,"href":"/api-reference/inbound-parse/validate-the-mx-record-setup-for-the-inbound-parse-functionality"}]},{"group":"Environments","pages":[{"openapi":"get /v1/environments/me","title":"Get current environment","href":"/api-reference/environments/get-current-environment"},{"openapi":"get /v1/environments","title":"List all environments","href":"/api-reference/environments/get-environments"},{"openapi":"get /v1/environments/api-keys","title":"Get api keys","href":"/api-reference/environments/get-api-keys"},{"openapi":"post /v1/environments/api-keys/regenerate","title":"Regenerate api keys","href":"/api-reference/environments/regenerate-api-keys"}]},{"group":"Changes","pages":[{"openapi":"get /v1/changes","title":"Get changes","href":"/api-reference/changes/get-changes"},{"openapi":"get /v1/changes/count","title":"Get changes count","href":"/api-reference/changes/get-changes-count"},{"openapi":"post /v1/changes/bulk/apply","title":"Apply changes","href":"/api-reference/changes/apply-changes"},{"openapi":"post /v1/changes/{changeId}/apply","title":"Apply change","href":"/api-reference/changes/apply-change"}]},{"group":"Execution Details","pages":[{"openapi":"get /v1/execution-details","title":"Get execution details","href":"/api-reference/execution-details/get-execution-details"}]},{"group":"Feeds","pages":[{"openapi":"get /v1/feeds","title":"Get feeds","href":"/api-reference/feeds/get-feeds"},{"openapi":"post /v1/feeds","title":"Create feed","href":"/api-reference/feeds/create-feed"},{"openapi":"delete /v1/feeds/{feedId}","title":"Delete feed","href":"/api-reference/feeds/delete-feed"}]},{"group":"Tenants","pages":[{"openapi":"get /v1/tenants","title":"Get tenants","href":"/api-reference/tenants/get-tenants"},{"openapi":"post /v1/tenants","title":"Create tenant","href":"/api-reference/tenants/create-tenant"},{"openapi":"get /v1/tenants/{identifier}","title":"Get tenant","href":"/api-reference/tenants/get-tenant"},{"openapi":"patch /v1/tenants/{identifier}","title":"Update tenant","href":"/api-reference/tenants/update-tenant"},{"openapi":"delete /v1/tenants/{identifier}","title":"Delete tenant","href":"/api-reference/tenants/delete-tenant"}]},{"group":"Organizations","pages":[{"openapi":"post /v1/organizations","title":"Create an organization","href":"/api-reference/organizations/create-organization"},{"openapi":"get /v1/organizations","title":"Fetch all organizations","href":"/api-reference/organizations/get-all-organizations"},{"openapi":"get /v1/organizations/members","title":"Fetch all members of current organizations","href":"/api-reference/organizations/get-all-members-of-current-organization"},{"openapi":"get /v1/organizations/me","title":"Fetch current organization details","href":"/api-reference/organizations/get-current-organization"},{"openapi":"patch /v1/organizations","title":"Rename organization name","href":"/api-reference/organizations/rename-organization"},{"openapi":"put /v1/organizations/members/{memberId}/roles","title":null,"href":"/api-reference/organizations/update-member-role-to-admin"},{"openapi":"put /v1/organizations/branding","title":"Update organization branding details","href":"/api-reference/organizations/update-organization-branding"},{"openapi":"delete /v1/organizations/members/{memberId}","title":"Remove a member from organization using memberId","href":"/api-reference/organizations/delete-member-from-organization"}]},{"group":"Messages","pages":[{"openapi":"get /v1/messages","title":"List all messages","href":"/api-reference/messages/get-messages"},{"openapi":"delete /v1/messages/{messageId}","title":"Delete a message","href":"/api-reference/messages/delete-message"},{"openapi":"delete /v1/messages/transaction/{transactionId}","title":"Delete messages by transactionId","href":"/api-reference/messages/delete-message-by-transactionid"}]},{"group":"Blueprints","pages":[{"openapi":"get /v1/blueprints/group-by-category","title":null,"href":"/api-reference/get-v1blueprintsgroup-by-category"},{"openapi":"get /v1/blueprints/{templateId}","title":null,"href":"/api-reference/get-v1blueprints"}]}]}]},{"anchor":"Discord Support","icon":"discord","href":"https://discord.gg/novu?ref=docs-instant-help"}]},{"version":"v0.18.0","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"anchor":"API Reference","icon":"square-terminal","tabs":[{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Overview","href":"/api-reference/overview"},{"title":"API Rate Limiting","description":"In this page you can learn about how rate limiting works with Novu's API","href":"/api-reference/rate-limiting"}]},{"group":"Events","pages":[{"openapi":"post /v1/events/trigger","title":"Trigger event","href":"/api-reference/events/trigger-event"},{"openapi":"post /v1/events/trigger/bulk","title":"Bulk trigger event","description":"\n Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.\n The bulk API is limited to 100 events per request.\n ","href":"/api-reference/events/bulk-trigger-event"},{"openapi":"post /v1/events/trigger/broadcast","title":"Broadcast event to all","href":"/api-reference/events/broadcast-event-to-all"},{"openapi":"delete /v1/events/trigger/{transactionId}","title":"Cancel triggered event","href":"/api-reference/events/cancel-triggered-event"}]},{"group":"Subscribers","pages":[{"openapi":"get /v1/subscribers","title":"Get subscribers","href":"/api-reference/subscribers/get-subscribers"},{"openapi":"post /v1/subscribers","title":"Create subscriber","href":"/api-reference/subscribers/create-subscriber"},{"openapi":"post /v1/subscribers/bulk","title":"Bulk create subscribers","href":"/api-reference/subscribers/bulk-create-subscribers"},{"openapi":"get /v1/subscribers/{subscriberId}","title":"Get subscriber","href":"/api-reference/subscribers/get-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}","title":"Update subscriber","href":"/api-reference/subscribers/update-subscriber"},{"openapi":"delete /v1/subscribers/{subscriberId}","title":"Delete subscriber","href":"/api-reference/subscribers/delete-subscriber"},{"openapi":"put /v1/subscribers/{subscriberId}/credentials","title":"Update provider credentials","href":"/api-reference/subscribers/update-subscriber-credentials"},{"openapi":"delete /v1/subscribers/{subscriberId}/credentials/{providerId}","title":"Delete provider credentials","href":"/api-reference/subscribers/delete-subscriber-credentials-by-providerid"},{"openapi":"patch /v1/subscribers/{subscriberId}/online-status","title":"Update subscriber online status","href":"/api-reference/subscribers/update-subscriber-online-status"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences","title":"Get subscriber preferences","href":"/api-reference/subscribers/get-subscriber-preferences"},{"openapi":"get /v1/subscribers/{subscriberId}/preferences/{level}","title":null,"href":"/api-reference/subscribers/get-subscriber-global-preferences"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences/{templateId}","title":null,"href":"/api-reference/subscribers/update-subscriber-preference"},{"openapi":"patch /v1/subscribers/{subscriberId}/preferences","title":"Update subscriber global preferences","href":"/api-reference/subscribers/update-subscriber-global-preference"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/feed","title":"Retrieve subscriber notifications","href":"/api-reference/subscribers/get-in-app-notification-feed-for-a-particular-subscriber"},{"openapi":"get /v1/subscribers/{subscriberId}/notifications/unseen","title":"Retrieve unseen notifications count","href":"/api-reference/subscribers/get-the-unseen-in-app-notifications-count-for-subscribers-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/markAs","title":null,"href":"/api-reference/subscribers/mark-a-subscriber-feed-message-as-seen"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/mark-all","title":"Update all notifications state","href":"/api-reference/subscribers/marks-all-the-subscriber-messages-as-read-unread-seen-or-unseen-optionally-you-can-pass-feed-id-or-array-to-mark-messages-of-a-particular-feed"},{"openapi":"post /v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}","title":"Update notification action status","href":"/api-reference/subscribers/mark-message-action-as-seen"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth/callback","title":"Handle providers oauth redirect","href":"/api-reference/subscribers/handle-providers-oauth-redirect"},{"openapi":"get /v1/subscribers/{subscriberId}/credentials/{providerId}/oauth","title":"Handle chat oauth","href":"/api-reference/subscribers/handle-chat-oauth"}]},{"group":"Topics","pages":[{"openapi":"get /v1/topics","title":"Filter topics","href":"/api-reference/topics/filter-topics"},{"openapi":"post /v1/topics","title":"Topic creation","href":"/api-reference/topics/topic-creation"},{"openapi":"post /v1/topics/{topicKey}/subscribers","title":"Subscribers addition","href":"/api-reference/topics/subscribers-addition"},{"openapi":"get /v1/topics/{topicKey}/subscribers/{externalSubscriberId}","title":"Check topic subscriber","href":"/api-reference/topics/check-topic-subscriber"},{"openapi":"post /v1/topics/{topicKey}/subscribers/removal","title":"Subscribers removal","href":"/api-reference/topics/subscribers-removal"},{"openapi":"get /v1/topics/{topicKey}","title":"Get topic","href":"/api-reference/topics/get-topic"},{"openapi":"delete /v1/topics/{topicKey}","title":"Delete topic","href":"/api-reference/topics/delete-topic"},{"openapi":"patch /v1/topics/{topicKey}","title":"Rename a topic","href":"/api-reference/topics/rename-a-topic"}]},{"group":"Notification","pages":[{"openapi":"get /v1/notifications","title":"List all events","href":"/api-reference/notification/get-notifications"},{"openapi":"get /v1/notifications/stats","title":"Get notification statistics","href":"/api-reference/notification/get-notification-statistics"},{"openapi":"get /v1/notifications/graph/stats","title":"Get notification graph statistics","href":"/api-reference/notification/get-notification-graph-statistics"},{"openapi":"get /v1/notifications/{notificationId}","title":"Retrieve an event","href":"/api-reference/notification/get-notification"}]},{"group":"Workflows","pages":[{"openapi":"get /v1/workflows","title":"Get workflows","href":"/api-reference/workflows/get-workflows"},{"openapi":"post /v1/workflows","title":"Create workflow","href":"/api-reference/workflows/create-workflow"},{"openapi":"get /v1/workflows/{workflowIdOrIdentifier}","title":null,"href":"/api-reference/workflows/get-workflow"},{"openapi":"put /v1/workflows/{workflowId}","title":"Update workflow","href":"/api-reference/workflows/update-workflow"},{"openapi":"delete /v1/workflows/{workflowId}","title":"Delete workflow","href":"/api-reference/workflows/delete-workflow"},{"openapi":"put /v1/workflows/{workflowId}/status","title":"Update workflow status","href":"/api-reference/workflows/update-workflow-status"}]},{"group":"Workflow Overrides","pages":[{"openapi":"post /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/create-workflow-overrides"},{"openapi":"get /v1/workflow-overrides","title":null,"href":"/api-reference/workflow-overrides/get-workflow-overrides"},{"openapi":"get /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override"},{"openapi":"get /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/get-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override-by-id"},{"openapi":"put /v1/workflow-overrides/workflows/{workflowId}/tenants/{tenantId}","title":null,"href":"/api-reference/workflow-overrides/update-workflow-override"},{"openapi":"delete /v1/workflow-overrides/{overrideId}","title":null,"href":"/api-reference/workflow-overrides/delete-workflow-override"}]},{"group":"Workflow groups","pages":[{"openapi":"get /v1/notification-groups","title":"Get workflow groups","href":"/api-reference/workflow-groups/get-workflow-groups"},{"openapi":"post /v1/notification-groups","title":"Create workflow group","href":"/api-reference/workflow-groups/create-workflow-group"},{"openapi":"get /v1/notification-groups/{id}","title":"Get workflow group","href":"/api-reference/workflow-groups/get-workflow-group"},{"openapi":"delete /v1/notification-groups/{id}","title":"Delete workflow group","href":"/api-reference/workflow-groups/delete-workflow-group"},{"openapi":"patch /v1/notification-groups/{id}","title":"Update workflow group","href":"/api-reference/workflow-groups/update-workflow-group"}]},{"group":"Integrations","pages":[{"openapi":"get /v1/integrations","title":"List all integrations","href":"/api-reference/integrations/get-integrations"},{"openapi":"post /v1/integrations","title":"Create an integration","href":"/api-reference/integrations/create-integration"},{"openapi":"get /v1/integrations/active","title":"List active integrations","href":"/api-reference/integrations/get-active-integrations"},{"openapi":"get /v1/integrations/webhook/provider/{providerId}/status","title":null,"href":"/api-reference/integrations/get-webhook-support-status-for-provider"},{"openapi":"put /v1/integrations/{integrationId}","title":"Update an integration","href":"/api-reference/integrations/update-integration"},{"openapi":"delete /v1/integrations/{integrationId}","title":"Delete an integration","href":"/api-reference/integrations/delete-integration"},{"openapi":"post /v1/integrations/{integrationId}/set-primary","title":"Update integration as primary","href":"/api-reference/integrations/set-integration-as-primary"}]},{"group":"Layouts","pages":[{"openapi":"get /v1/layouts","title":"Filter layouts","href":"/api-reference/layouts/filter-layouts"},{"openapi":"post /v1/layouts","title":"Layout creation","href":"/api-reference/layouts/layout-creation"},{"openapi":"get /v1/layouts/{layoutId}","title":"Get layout","href":"/api-reference/layouts/get-layout"},{"openapi":"delete /v1/layouts/{layoutId}","title":"Delete layout","href":"/api-reference/layouts/delete-layout"},{"openapi":"patch /v1/layouts/{layoutId}","title":"Update a layout","href":"/api-reference/layouts/update-a-layout"},{"openapi":"post /v1/layouts/{layoutId}/default","title":"Set default layout","href":"/api-reference/layouts/set-default-layout"}]},{"group":"Inbound Parse","pages":[{"openapi":"get /v1/inbound-parse/mx/status","title":null,"href":"/api-reference/inbound-parse/validate-the-mx-record-setup-for-the-inbound-parse-functionality"}]},{"group":"Environments","pages":[{"openapi":"get /v1/environments/me","title":"Get current environment","href":"/api-reference/environments/get-current-environment"},{"openapi":"get /v1/environments","title":"List all environments","href":"/api-reference/environments/get-environments"},{"openapi":"get /v1/environments/api-keys","title":"Get api keys","href":"/api-reference/environments/get-api-keys"},{"openapi":"post /v1/environments/api-keys/regenerate","title":"Regenerate api keys","href":"/api-reference/environments/regenerate-api-keys"}]},{"group":"Changes","pages":[{"openapi":"get /v1/changes","title":"Get changes","href":"/api-reference/changes/get-changes"},{"openapi":"get /v1/changes/count","title":"Get changes count","href":"/api-reference/changes/get-changes-count"},{"openapi":"post /v1/changes/bulk/apply","title":"Apply changes","href":"/api-reference/changes/apply-changes"},{"openapi":"post /v1/changes/{changeId}/apply","title":"Apply change","href":"/api-reference/changes/apply-change"}]},{"group":"Execution Details","pages":[{"openapi":"get /v1/execution-details","title":"Get execution details","href":"/api-reference/execution-details/get-execution-details"}]},{"group":"Feeds","pages":[{"openapi":"get /v1/feeds","title":"Get feeds","href":"/api-reference/feeds/get-feeds"},{"openapi":"post /v1/feeds","title":"Create feed","href":"/api-reference/feeds/create-feed"},{"openapi":"delete /v1/feeds/{feedId}","title":"Delete feed","href":"/api-reference/feeds/delete-feed"}]},{"group":"Tenants","pages":[{"openapi":"get /v1/tenants","title":"Get tenants","href":"/api-reference/tenants/get-tenants"},{"openapi":"post /v1/tenants","title":"Create tenant","href":"/api-reference/tenants/create-tenant"},{"openapi":"get /v1/tenants/{identifier}","title":"Get tenant","href":"/api-reference/tenants/get-tenant"},{"openapi":"patch /v1/tenants/{identifier}","title":"Update tenant","href":"/api-reference/tenants/update-tenant"},{"openapi":"delete /v1/tenants/{identifier}","title":"Delete tenant","href":"/api-reference/tenants/delete-tenant"}]},{"group":"Organizations","pages":[{"openapi":"post /v1/organizations","title":"Create an organization","href":"/api-reference/organizations/create-organization"},{"openapi":"get /v1/organizations","title":"Fetch all organizations","href":"/api-reference/organizations/get-all-organizations"},{"openapi":"get /v1/organizations/members","title":"Fetch all members of current organizations","href":"/api-reference/organizations/get-all-members-of-current-organization"},{"openapi":"get /v1/organizations/me","title":"Fetch current organization details","href":"/api-reference/organizations/get-current-organization"},{"openapi":"patch /v1/organizations","title":"Rename organization name","href":"/api-reference/organizations/rename-organization"},{"openapi":"put /v1/organizations/members/{memberId}/roles","title":null,"href":"/api-reference/organizations/update-member-role-to-admin"},{"openapi":"put /v1/organizations/branding","title":"Update organization branding details","href":"/api-reference/organizations/update-organization-branding"},{"openapi":"delete /v1/organizations/members/{memberId}","title":"Remove a member from organization using memberId","href":"/api-reference/organizations/delete-member-from-organization"}]},{"group":"Messages","pages":[{"openapi":"get /v1/messages","title":"List all messages","href":"/api-reference/messages/get-messages"},{"openapi":"delete /v1/messages/{messageId}","title":"Delete a message","href":"/api-reference/messages/delete-message"},{"openapi":"delete /v1/messages/transaction/{transactionId}","title":"Delete messages by transactionId","href":"/api-reference/messages/delete-message-by-transactionid"}]},{"group":"Blueprints","pages":[{"openapi":"get /v1/blueprints/group-by-category","title":null,"href":"/api-reference/get-v1blueprintsgroup-by-category"},{"openapi":"get /v1/blueprints/{templateId}","title":null,"href":"/api-reference/get-v1blueprints"}]}]}]},{"anchor":"Discord Support","icon":"discord","href":"https://discord.gg/novu?ref=docs-instant-help"}]}]},"basePath":"","title":"Trigger event - Novu","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}