{
"error": "authorUid: User with ID abc123 not found"
}
Subscribe to Events
Import Subscription (Subscribe to an Event)
Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:
{
"error": "authorUid: User with ID abc123 not found"
}
Required token scopes:Create scenarios, Manage scenarios on behalf of user (both are required)
url(required) - located under data.actions[0].params.url. Replace {{yourWebhookURL}} with the destination URL that should receive the events.
asStatus - keep "active" to enable the subscription immediately, "inactive" to save it as an inactive revision, or "draft" to save it as a draft.
Template-specific placeholders such as {{word1}}/{{word2}} (Messages with Specific Text) or {{targetLabelId}} (Specific Label Added).
Include an authorUid body field (a Texter user UID) to attribute the action to a specific user - recommended: when omitted, the action is attributed to an arbitrary user account.Every event also has its own page under Webhooks in the sidebar (e.g. All Messages) with the ready-to-send template, exactly what to change in it, and the payload your URL receives.If the provided templates don’t satisfy your needs, contact Texter Support and we’ll gladly help modify any triggers, conditions, or actions for your webhook.
API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.
Draft revisions of this scenario being edited. Same shape as a revision, but with status: "draft", no version/revisionComment, and metadata limited to authorUid/created/modified
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Texterchat","colors":{"primary":"#5B5FCF","light":"#7B7FE0","dark":"#7B7FE0"},"logo":"https://mintcdn.com/texter/u1h4IZ0dqx4BZ6zi/assets/favicon.svg?fit=max\u0026auto=format\u0026n=u1h4IZ0dqx4BZ6zi\u0026q=85\u0026s=5fbab3f5dc54b8e49a9f2e9f64e307b5","favicon":"https://mintcdn.com/texter/u1h4IZ0dqx4BZ6zi/assets/favicon.svg?fit=max\u0026auto=format\u0026n=u1h4IZ0dqx4BZ6zi\u0026q=85\u0026s=5fbab3f5dc54b8e49a9f2e9f64e307b5","api":{"params":{"expanded":"closed"},"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["bash","javascript","python"],"prefill":true},"url":"full"},"appearance":{"default":"light","strict":true},"footer":{"socials":{"facebook":"https://www.facebook.com/texterchat","website":"https://texterchat.com","instagram":"https://www.instagram.com/texterchatil","linkedin":"https://www.linkedin.com/company/whatsper"}},"search":{"prompt":"Search the Texter docs \u0026 API..."},"fonts":{"family":"Heebo"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"he","default":true,"navbar":{"links":[],"primary":{"type":"button","label":"תמיכה","href":"https://wa.me/972586640430"}},"href":"guides/welcome"},{"language":"en","navbar":{"links":[],"primary":{"type":"button","label":"Support","href":"https://wa.me/972586640430"}},"href":"en/guides/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"texter","hasAudioNarration":false,"actualSubdomain":"texter","customDomains":["help.texterchat.com"],"gitSource":{"type":"github","owner":"whatsper","repo":"helpcenter","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af49dae5854fd9188272437","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"en","tag":"API Reference","count":90},{"language":"he","tag":"API Reference","count":90},{"language":"en","tag":"Endpoints","count":57},{"language":"he","tag":"Endpoints","count":57},{"language":"en","tag":"Webhooks","count":21},{"language":"he","tag":"Webhooks","count":21},{"language":"en","tag":"Scenarios (Advanced)","count":13},{"language":"he","tag":"Scenarios (Advanced)","count":13},{"language":"en","tag":"Chat Events","count":11},{"language":"he","tag":"Chat Events","count":11},{"language":"en","tag":"Objects","count":9},{"language":"he","tag":"מדריכים","count":9},{"language":"he","tag":"Objects","count":9},{"language":"en","tag":"Guides","count":8},{"language":"en","tag":"Chats","count":7},{"language":"en","tag":"Manage Templates","count":7},{"language":"en","tag":"Message Events","count":7},{"language":"he","tag":"Chats","count":7},{"language":"he","tag":"Manage Templates","count":7},{"language":"he","tag":"Message Events","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","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}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"html #topbar-cta-button a>span:first-child{background-color:#22c55e!important}html #topbar-cta-button a:hover>span:first-child{background-color:#16a34a!important;opacity:1!important}html #topbar-cta-button a>div{color:#052e16;column-gap:0!important;gap:0!important;margin-left:0!important;margin-right:0!important}html #topbar-cta-button{margin-right:-1rem!important}html #topbar-cta-button a{padding-left:1rem!important;padding-right:1rem!important}html #topbar-cta-button a>div>:not([hidden]){margin-left:0!important;margin-right:0!important}html #topbar-cta-button a>div span{color:#052e16!important}html #topbar-cta-button a>div svg{color:#052e16!important}html #topbar-cta-button a>div>svg{display:none!important}html #topbar-cta-button a:hover>div,html #topbar-cta-button a:hover>div span,html #topbar-cta-button a:hover>div svg{color:#031f0f!important}html #topbar-cta-button a>div::before{background-color:currentColor;content:\"\";display:inline-block;height:1rem;margin-right:0.5rem;mask-image:url(\"/assets/whatsapp.svg\");mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-image:url(\"/assets/whatsapp.svg\");-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;position:relative;transform:translateX(-1px);width:1rem;z-index:10}html #topbar-cta-button a>div::after{content:\"\\203A\";display:inline-block;font-size:1rem;font-weight:600;line-height:1;margin-left:1rem;transform:translate(-3px, -1px);z-index:10}html #topbar-cta-button,html #topbar-cta-button a,html #topbar-cta-button a>div{direction:ltr!important;text-align:left!important;unicode-bidi:isolate}@media (min-width: 64rem){html #localization-select-trigger>svg{height:1.5rem!important;overflow:visible!important;width:0.5rem!important}html #localization-select-trigger>svg path{stroke-width:1.5!important}html #localization-select-trigger>svg[viewBox=\"0 0 18 18\"] path{stroke-width:3.375!important}}html #mobile-nav button[aria-haspopup=\"menu\"]>svg{height:1.5rem!important;overflow:visible!important;width:0.5rem!important}html #mobile-nav button[aria-haspopup=\"menu\"]>svg path{stroke-width:1.5!important}html #mobile-nav button[aria-haspopup=\"menu\"]>svg[viewBox=\"0 0 18 18\"] path{stroke-width:3.375!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #page-context-menu{direction:ltr;margin-left:0!important;margin-right:auto!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #page-context-menu-button{direction:rtl;unicode-bidi:isolate}html #page-title{font-size:1.5rem!important;font-weight:700!important;line-height:2rem!important}@media (min-width: 40rem){html #page-title{font-size:1.875rem!important;line-height:2.25rem!important}}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#header,#page-title,#content){direction:rtl;text-align:right}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#sidebar,aside,nav,[class*=\"sidebar\"i],[class*=\"navigation\"i]){direction:rtl;text-align:right}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#sidebar,aside,nav,[class*=\"sidebar\"i],[class*=\"navigation\"i]) :where(a,button,[role=\"link\"],[role=\"button\"]){direction:rtl;text-align:right;unicode-bidi:plaintext}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#header,#content) :where(h1,h2,h3,h4,h5,h6,p,blockquote,callout,table,th,td,field,prompt,api-section-heading,api-section-heading-title,api-section-heading-subtitle){direction:rtl;text-align:right;unicode-bidi:plaintext}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content :where(ul,ol){list-style:none!important;direction:rtl;margin-inline:0;padding-inline:0}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content li{direction:rtl;list-style:none!important;padding-left:0!important;padding-right:1.5rem!important;position:relative;text-align:right}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content li::marker{content:\"\"!important;font-size:0!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content ol{counter-reset:texter-rtl-list}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content ul>li::before{content:\"•\";left:auto;position:absolute;right:0}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content ol>li::before{content:counter(texter-rtl-list) \".\";counter-increment:texter-rtl-list;direction:ltr;left:auto;position:absolute;right:0}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content li :where(p,span,strong,a){direction:rtl;text-align:right;unicode-bidi:plaintext}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content blockquote{border-inline-end-width:0!important;border-inline-start-width:0.25rem!important;border-left-width:0!important;border-right-width:0.25rem!important;padding-inline-end:0!important;padding-inline-start:1rem!important;padding-left:0!important;padding-right:1rem!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content .callout,html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content .callout :where(div,span,p,ul,ol,li){direction:rtl!important;text-align:right!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content :where(kbd,code,pre,code-block,code-group,.code-block,[class*=\"code\"],[class*=\"Code\"],#request-example,#response-example,#api-playground-input,method-pill,method-nav-pill){direction:ltr;text-align:left;unicode-bidi:isolate}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content :where(input,textarea,iframe,img,video,svg){direction:ltr}"}],"page":{"pagePath":"api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event","slug":"/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event","pageMetadata":{"title":"Import Subscription (Subscribe to an Event)","description":"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:","openapi":"api-reference/openapi.json POST /scenarios/manage/import","href":"/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:\"\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={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required token scopes:`}),` `,_jsx(_components.code,{children:`Create scenarios`}),`, `,_jsx(_components.code,{children:`Manage scenarios on behalf of user`}),` (both are required)`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`url`})}),` `,_jsx(_components.em,{children:`(required)`}),` - located under `,_jsx(_components.code,{children:`data.actions[0].params.url`}),`. Replace `,_jsx(_components.code,{children:`{{yourWebhookURL}}`}),` with the destination URL that should receive the events.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`asStatus`})}),` - keep `,_jsx(_components.code,{children:`\"active\"`}),` to enable the subscription immediately, `,_jsx(_components.code,{children:`\"inactive\"`}),` to save it as an inactive revision, or `,_jsx(_components.code,{children:`\"draft\"`}),` to save it as a draft.`]}),`\n`,_jsxs(_components.li,{children:[`Template-specific placeholders such as `,_jsx(_components.code,{children:`{{word1}}`}),`/`,_jsx(_components.code,{children:`{{word2}}`}),` (Messages with Specific Text) or `,_jsx(_components.code,{children:`{{targetLabelId}}`}),` (Specific Label Added).`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Include an `,_jsx(_components.code,{children:`authorUid`}),` body field (a Texter user UID) to attribute the action to a specific user - `,_jsx(_components.strong,{children:`recommended`}),`: when omitted, the action is attributed to an arbitrary user account.`]}),`\n`,_jsxs(_components.p,{children:[`Every event also has its own page under `,_jsx(_components.strong,{children:`Webhooks`}),` in the sidebar (e.g. `,_jsx(_components.a,{href:`/api-reference/webhooks/message-events/all-messages`,children:`All Messages`}),`) with the ready-to-send template, exactly what to change in it, and the payload your URL receives.`]}),`\n`,_jsxs(_components.p,{children:[`If the provided templates don’t satisfy your needs, contact `,_jsx(_components.a,{href:`https://wa.me/972586640430`,children:`Texter Support`}),` and we’ll gladly help modify any triggers, conditions, or actions for your webhook.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Import Subscription (Subscribe to an Event)","description":"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:","openapi":"api-reference/openapi.json POST /scenarios/manage/import","href":"/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/texter/04420e0baa494887/rtl.js"],"openApiReferenceData":{"operation":{"operationId":"import-subscription","tags":["Subscribe to Events"],"summary":"Import Subscription (Subscribe to an Event)","description":"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:","requestBody":"06636197-a31f-4edc-8699-640cfe386090","responses":{"201":"24e26bcb-77e5-4acb-9e85-28b3e381e890","400":"9d0b9258-8490-458c-992b-efc66458f563","401":"f0e32cc6-7ba8-4d75-8186-3b0a34cbc7d5"},"method":"post","type":"path","servers":["1e77427e-3d2c-44d1-a12a-d165edeead2c"],"security":["612064e8-b689-4a56-a94e-bbca7a7c4da5"],"path":"/scenarios/manage/import","baseUrlOptions":["https://{projectID}.texterchat.com/server/api/v2"],"title":"Import Subscription (Subscribe to an Event)","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.data.version":"v1","body.data.name":"(SUB) All Messages","body.data.triggerEvents.items.0":"domain.message.created","body.data.loaders":{"beforeConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook for each new message (incoming \u0026 outgoing)","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) New Incoming Messages","body.data.triggerEvents.items.0":"domain.message.created","body.data.loaders":{"beforeConditions":[],"afterConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"body.data.conditions.items.0":[{"name":"filtrex","params":{"expression":"direction == \"incoming\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newIncomingMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook for each new incoming message","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Messages with Specific Text","body.data.triggerEvents.items.0":"domain.message.created","body.data.loaders":{"beforeConditions":[],"afterConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"body.data.conditions.items.0":[{"name":"filtrex","params":{"expression":"direction == \"incoming\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false},{"name":"filtrex","params":{"expression":"text == \"{{word1}}\" or text == \"{{word2}}\" ","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newMatchedMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a new incoming message includes a specific word(s).","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Messages with Attachments","body.data.triggerEvents.items.0":"domain.message.created","body.data.loaders":{"beforeConditions":[],"afterConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"body.data.conditions.items.0":[{"name":"filtrex","params":{"expression":"direction == \"incoming\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false},{"name":"filtrex","params":{"expression":"type == \"media\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newMediaMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a new incoming message includes a media item (image / video / document / audio / sticker)","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Messages Failed to Deliver","body.data.triggerEvents.items.0":"app.message.statusRequest","body.data.loaders":{"afterConditions":[{"name":"chat","alias":"chat","params":{"name":{"##provide":{"provider":"messageStatusRequest","key":"chat.name"}},"accountId":{"##provide":{"provider":"messageStatusRequest","key":"chat.accountId"}},"idByChannel":{"##provide":{"provider":"messageStatusRequest","key":"chat.id"}}},"confidentialData":false},{"name":"chatMessages","alias":"messages","params":{"chatId":"%chat:_id%"},"confidentialData":false},{"name":"staticData","alias":"messageLookup","params":{"data":{"externalId":"%messageStatusRequest:ids.0%","messages":"%messages:latest(5,-1,\"out\")%"}},"confidentialData":false}]},"body.data.conditions.items.0":[{"name":"compare","params":{"comparison":"Equal","compareTo":4,"value":{"##provide":{"provider":"messageStatusRequest","key":"status"}}},"confidentialData":false}],"body.data.conditions.items.1":[{"name":"compare","params":{"comparison":"Equal","compareTo":5,"value":{"##provide":{"provider":"messageStatusRequest","key":"status"}}},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"messageFailed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat","transform":[{"name":"omit","args":["crmData","previousBotSession"]}]}},"messageId":{"##provide":{"provider":"messageLookup","key":"data","keyArgs":[],"transform":[{"name":"hbTpl","args":["[{{#each messages}}{{#if ../externalId}}{{#when channelInfo.id 'eq' ../externalId}}\"{{_id}}\",{{/when}}{{/if}}{{/each}}null]"]},{"name":"jsonParse","args":[]},{"name":"get","args":["0"]}]}},"error":"%messageStatusRequest:error%","timestamp":"%messageStatusRequest:timestamp%","externalId":"%messageStatusRequest:ids%"}}},"confidentialData":false},"body.data.description":"Sends a webhook when an outgoing message fails to deliver (blocked by Meta)","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Messages Status Changed","body.data.triggerEvents.items.0":"app.message.statusRequest","body.data.loaders":{"beforeConditions":[{"name":"chat","alias":"chat","params":{"name":{"##provide":{"provider":"messageStatusRequest","key":"chat.name"}},"accountId":{"##provide":{"provider":"messageStatusRequest","key":"chat.accountId"}},"idByChannel":{"##provide":{"provider":"messageStatusRequest","key":"chat.id"}}},"confidentialData":false},{"name":"chatMessages","alias":"messages","params":{"chatId":"%chat:_id%"},"confidentialData":false},{"name":"staticData","alias":"messageLookup","params":{"data":{"externalId":"%messageStatusRequest:ids.0%","messages":"%messages:latest(5,-1,\"out\")%"}},"confidentialData":false}]},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"messageStatusChanged","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat","transform":[{"name":"omit","args":["crmData","previousBotSession"]}]}},"messageId":{"##provide":{"provider":"messageLookup","key":"data","keyArgs":[],"transform":[{"name":"hbTpl","args":["[{{#each messages}}{{#if ../externalId}}{{#when channelInfo.id 'eq' ../externalId}}\"{{_id}}\",{{/when}}{{/if}}{{/each}}null]"]},{"name":"jsonParse","args":[]},{"name":"get","args":["0"]}]}},"messageStatus":"%messageStatusRequest:status%","error":"%messageStatusRequest:error%","timestamp":"%messageStatusRequest:timestamp%","externalId":"%messageStatusRequest:ids%"}}},"confidentialData":false},"body.data.description":"Sends a webhook for all outgoing messages status changes (e.g., from \"Delivered\" to \"Seen\")","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Messages Delivered or Failed","body.data.triggerEvents.items.0":"app.message.statusRequest","body.data.loaders":{"afterConditions":[{"name":"chat","alias":"chat","params":{"name":"%messageStatusRequest:chat.name%","accountId":"%messageStatusRequest:chat.accountId%","idByChannel":"%messageStatusRequest:chat.id%"},"confidentialData":false},{"name":"chatMessages","alias":"messages","params":{"chatId":"%chat:_id%"},"confidentialData":false},{"name":"staticData","alias":"messageLookup","params":{"data":{"externalId":"%messageStatusRequest:ids.0%","messages":"%messages:latest(5,-1,\"out\")%"}},"confidentialData":false}]},"body.data.conditions.items.0":[{"name":"arrayIncludes","params":{"array":[2,4,5],"values":["%messageStatusRequest:status%"],"condType":"Includes any"},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"messageDeliveredOrFailed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat","transform":[{"name":"omit","args":["crmData","previousBotSession"]}]}},"messageId":{"##provide":{"provider":"messageLookup","key":"data","keyArgs":[],"transform":[{"name":"hbTpl","args":["[{{#each messages}}{{#if ../externalId}}{{#when channelInfo.id 'eq' ../externalId}}\"{{_id}}\",{{/when}}{{/if}}{{/each}}null]"]},{"name":"jsonParse","args":[]},{"name":"get","args":["0"]}]}},"messageStatus":"%messageStatusRequest:status%","error":"%messageStatusRequest:error%","timestamp":"%messageStatusRequest:timestamp%","externalId":"%messageStatusRequest:ids%"}}},"confidentialData":false},"body.data.description":"Sends a webhook when an outgoing message is delivered or fails, including its Texter message ID","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Unsubscribed","body.data.triggerEvents.items.0":"domain.chat.unsubscribed","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatUnsubscribed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat unsubscribed from receiving template messages (e.g., by replying \"הסר\")","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Subscribed","body.data.triggerEvents.items.0":"domain.chat.subscribed","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatSubscribed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat subscribes or opts back in to receiving template messages.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Assigned","body.data.triggerEvents.items.0":"domain.chat.assigned","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatAssigned","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}},"agent":{"id":{"##provide":{"provider":"agent","key":"_id"}},"crmId":{"##provide":{"provider":"agent","key":"crmId"}},"email":{"##provide":{"provider":"agent","key":"email"}},"displayName":{"##provide":{"provider":"agent","key":"displayName"}},"roles":{"##provide":{"provider":"agent","key":"roles"}}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat is assigned, with full chat data and a narrowed agent object.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Pending","body.data.triggerEvents.items.0":"domain.chat.pending","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatPending","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat moves to pending status (waiting for a human agent).","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Resolved","body.data.triggerEvents.items.0":"domain.chat.resolved","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatResolved","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat is resolved.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Resolved by Bot","body.data.triggerEvents.items.0":"domain.chat.resolved","body.data.loaders":{},"body.data.conditions.items.0":[{"name":"filtrex","params":{"expression":"not exists(agent.uid)","value":"%chat:chat%"},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatResolvedByBot","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat is resolved automatically by the bot (no human agent assigned).","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Resolved by Agent","body.data.triggerEvents.items.0":"domain.chat.resolved","body.data.loaders":{},"body.data.conditions.items.0":[{"name":"filtrex","params":{"expression":"exists(agent.uid)","value":"%chat:chat%"},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatResolvedByAgent","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat is resolved by a human agent.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Chat Labels Updated","body.data.triggerEvents.items.0":"domain.chat.labels","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatLabelsUpdated","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}},"oldLabels":{"##provide":{"provider":"oldLabels","key":"labels"}},"addedLabels":{"##provide":{"provider":"addedLabels","key":"labels"}},"removedLabels":{"##provide":{"provider":"removedLabels","key":"labels"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a chat's labels change, with the chat, previous labels, and the added/removed diff.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Specific Label Added","body.data.triggerEvents.items.0":"domain.chat.labels","body.data.loaders":{},"body.data.conditions.items.0":[{"name":"filtrex","params":{"expression":"inArray(addedLabels, \"{{targetLabelId}}\")","value":{"addedLabels":{"##provide":{"provider":"addedLabels","key":"labels"}}}},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatSpecificLabelAdded","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}},"oldLabels":{"##provide":{"provider":"oldLabels","key":"labels"}},"addedLabels":{"##provide":{"provider":"addedLabels","key":"labels"}},"removedLabels":{"##provide":{"provider":"removedLabels","key":"labels"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a specific label is added to a chat.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) External Bot Enabled","body.data.triggerEvents.items.0":"domain.chat.updated.externalBot","body.data.triggerEvents.items.1":"app.bot.chat.setExternal","body.data.loaders":{},"body.data.conditions.items.0":[{"name":"filtrex","params":{"expression":"exists(externalBot) and externalBot","value":{"##provide":{"provider":"chat","key":"chat"}}},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"externalBotEnabled","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when externalBot is set to true on a chat.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) External Bot Disabled","body.data.triggerEvents.items.0":"domain.chat.updated.externalBot","body.data.triggerEvents.items.1":"app.bot.chat.setExternal","body.data.loaders":{},"body.data.conditions.items.0":[{"name":"compare","params":{"comparison":"Equal","compareTo":false,"value":{"##provide":{"provider":"chat","key":"externalBot"}}},"confidentialData":false}],"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"externalBotDisabled","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when externalBot is set to false on a chat.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Channel Health Problem Created","body.data.triggerEvents.items.0":"domain.channel.health.problem.created","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"channelHealthProblemCreated","eventData":{"problem":{"##provide":{"provider":"problem","key":"problem"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a channel health problem is detected on a WhatsApp account.","body.data.options.unorderedActions":false,"body.asStatus":"active"},{"body.data.version":"v1","body.data.name":"(SUB) Channel Health Problem Resolved","body.data.triggerEvents.items.0":"domain.channel.health.problem.resolved","body.data.loaders":{},"body.data.actions.items.0":{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"channelHealthProblemResolved","eventData":{"problem":{"##provide":{"provider":"problem","key":"problem"}}}}},"confidentialData":false},"body.data.description":"Sends a webhook when a previously detected channel health problem is resolved.","body.data.options.unorderedActions":false,"body.asStatus":"active"}],"urlDisplay":"full"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"The scenario definition (use one of the provided templates)","properties":{"version":{"type":"string","enum":["v1","v1.1"],"isRequired":true,"uniqueKey":"data.version","typeLabel":"enum\u003cstring>"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"triggerEvents":{"type":"array","items":{"type":"string","uniqueKey":"data.triggerEvents.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.triggerEvents","typeLabel":"string[]"},"loaders":{"type":"object","additionalProperties":true,"description":"Loaders keyed by position (`afterEvents` / `beforeConditions` / `afterConditions` / `beforeActions`); each loader item requires `name`, `params` and `alias`. Component names must be registered (see the List Components endpoints)","isRequired":true,"uniqueKey":"data.loaders","typeLabel":"object"},"conditions":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"data.conditions.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"data.conditions","typeLabel":"any[]"},"actions":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"data.actions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.actions","typeLabel":"object[]"},"description":{"type":"string","uniqueKey":"data.description","typeLabel":"string"},"options":{"type":"object","properties":{"unorderedActions":{"type":"boolean","uniqueKey":"data.options.unorderedActions","typeLabel":"boolean"}},"uniqueKey":"data.options","typeLabel":"object"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"data.tags.items.[INDEX]","typeLabel":"string"},"description":"Free-form tags stored on the scenario","uniqueKey":"data.tags","typeLabel":"string[]"},"loops":{"type":"array","items":{"type":"object","uniqueKey":"data.loops.items.[INDEX]","typeLabel":"object"},"description":"`v1.1` only - loop definitions, each `{ loop, position }`","uniqueKey":"data.loops","typeLabel":"object[]"},"attachedData":{"type":"object","description":"`v1.1` only - free-form data attached to the revision","uniqueKey":"data.attachedData","typeLabel":"object"}},"required":["version","name","triggerEvents","loaders","conditions","actions"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"asStatus":{"type":"string","enum":["active","inactive","draft"],"isRequired":true,"uniqueKey":"asStatus","typeLabel":"enum\u003cstring>"},"authorUid":{"type":"string","description":"Texter user ID (UID) to attribute the subscription to - **recommended**. When omitted, the subscription is attributed to an arbitrary user account","uniqueKey":"authorUid","typeLabel":"string"}},"required":["data","asStatus"],"uniqueKey":"","typeLabel":"object"},"examples":{"All Messages":{"title":"All Messages","value":{"data":{"version":"v1","name":"(SUB) All Messages","description":"Sends a webhook for each new message (incoming \u0026 outgoing)","triggerEvents":["domain.message.created"],"loaders":{"beforeConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"New Incoming Messages":{"title":"New Incoming Messages","value":{"data":{"version":"v1","name":"(SUB) New Incoming Messages","description":"Sends a webhook for each new incoming message","triggerEvents":["domain.message.created"],"loaders":{"beforeConditions":[],"afterConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"conditions":[[{"name":"filtrex","params":{"expression":"direction == \"incoming\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newIncomingMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Messages with Specific Text":{"title":"Messages with Specific Text","value":{"data":{"version":"v1","name":"(SUB) Messages with Specific Text","description":"Sends a webhook when a new incoming message includes a specific word(s).","triggerEvents":["domain.message.created"],"loaders":{"beforeConditions":[],"afterConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"conditions":[[{"name":"filtrex","params":{"expression":"direction == \"incoming\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false},{"name":"filtrex","params":{"expression":"text == \"{{word1}}\" or text == \"{{word2}}\" ","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newMatchedMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Messages with Attachments":{"title":"Messages with Attachments","value":{"data":{"version":"v1","name":"(SUB) Messages with Attachments","description":"Sends a webhook when a new incoming message includes a media item (image / video / document / audio / sticker)","triggerEvents":["domain.message.created"],"loaders":{"beforeConditions":[],"afterConditions":[{"name":"chat","alias":"chat","params":{"id":{"##provide":{"provider":"message","key":"parent_chat"}}},"confidentialData":false}]},"conditions":[[{"name":"filtrex","params":{"expression":"direction == \"incoming\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false},{"name":"filtrex","params":{"expression":"type == \"media\"","value":{"##provide":{"provider":"message","key":"message"}}},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"newMediaMessage","eventData":{"message":{"##provide":{"provider":"message","key":"message"}},"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Messages Failed to Deliver":{"title":"Messages Failed to Deliver","value":{"data":{"version":"v1","name":"(SUB) Messages Failed to Deliver","description":"Sends a webhook when an outgoing message fails to deliver (blocked by Meta)","triggerEvents":["app.message.statusRequest"],"loaders":{"afterConditions":[{"name":"chat","alias":"chat","params":{"name":{"##provide":{"provider":"messageStatusRequest","key":"chat.name"}},"accountId":{"##provide":{"provider":"messageStatusRequest","key":"chat.accountId"}},"idByChannel":{"##provide":{"provider":"messageStatusRequest","key":"chat.id"}}},"confidentialData":false},{"name":"chatMessages","alias":"messages","params":{"chatId":"%chat:_id%"},"confidentialData":false},{"name":"staticData","alias":"messageLookup","params":{"data":{"externalId":"%messageStatusRequest:ids.0%","messages":"%messages:latest(5,-1,\"out\")%"}},"confidentialData":false}]},"conditions":[[{"name":"compare","params":{"comparison":"Equal","compareTo":4,"value":{"##provide":{"provider":"messageStatusRequest","key":"status"}}},"confidentialData":false}],[{"name":"compare","params":{"comparison":"Equal","compareTo":5,"value":{"##provide":{"provider":"messageStatusRequest","key":"status"}}},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"messageFailed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat","transform":[{"name":"omit","args":["crmData","previousBotSession"]}]}},"messageId":{"##provide":{"provider":"messageLookup","key":"data","keyArgs":[],"transform":[{"name":"hbTpl","args":["[{{#each messages}}{{#if ../externalId}}{{#when channelInfo.id 'eq' ../externalId}}\"{{_id}}\",{{/when}}{{/if}}{{/each}}null]"]},{"name":"jsonParse","args":[]},{"name":"get","args":["0"]}]}},"error":"%messageStatusRequest:error%","timestamp":"%messageStatusRequest:timestamp%","externalId":"%messageStatusRequest:ids%"}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Message Status Changed":{"title":"Message Status Changed","value":{"data":{"version":"v1","name":"(SUB) Messages Status Changed","description":"Sends a webhook for all outgoing messages status changes (e.g., from \"Delivered\" to \"Seen\")","triggerEvents":["app.message.statusRequest"],"loaders":{"beforeConditions":[{"name":"chat","alias":"chat","params":{"name":{"##provide":{"provider":"messageStatusRequest","key":"chat.name"}},"accountId":{"##provide":{"provider":"messageStatusRequest","key":"chat.accountId"}},"idByChannel":{"##provide":{"provider":"messageStatusRequest","key":"chat.id"}}},"confidentialData":false},{"name":"chatMessages","alias":"messages","params":{"chatId":"%chat:_id%"},"confidentialData":false},{"name":"staticData","alias":"messageLookup","params":{"data":{"externalId":"%messageStatusRequest:ids.0%","messages":"%messages:latest(5,-1,\"out\")%"}},"confidentialData":false}]},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"messageStatusChanged","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat","transform":[{"name":"omit","args":["crmData","previousBotSession"]}]}},"messageId":{"##provide":{"provider":"messageLookup","key":"data","keyArgs":[],"transform":[{"name":"hbTpl","args":["[{{#each messages}}{{#if ../externalId}}{{#when channelInfo.id 'eq' ../externalId}}\"{{_id}}\",{{/when}}{{/if}}{{/each}}null]"]},{"name":"jsonParse","args":[]},{"name":"get","args":["0"]}]}},"messageStatus":"%messageStatusRequest:status%","error":"%messageStatusRequest:error%","timestamp":"%messageStatusRequest:timestamp%","externalId":"%messageStatusRequest:ids%"}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Messages Delivered or Failed":{"title":"Messages Delivered or Failed","value":{"data":{"version":"v1","name":"(SUB) Messages Delivered or Failed","description":"Sends a webhook when an outgoing message is delivered or fails, including its Texter message ID","triggerEvents":["app.message.statusRequest"],"loaders":{"afterConditions":[{"name":"chat","alias":"chat","params":{"name":"%messageStatusRequest:chat.name%","accountId":"%messageStatusRequest:chat.accountId%","idByChannel":"%messageStatusRequest:chat.id%"},"confidentialData":false},{"name":"chatMessages","alias":"messages","params":{"chatId":"%chat:_id%"},"confidentialData":false},{"name":"staticData","alias":"messageLookup","params":{"data":{"externalId":"%messageStatusRequest:ids.0%","messages":"%messages:latest(5,-1,\"out\")%"}},"confidentialData":false}]},"conditions":[[{"name":"arrayIncludes","params":{"array":[2,4,5],"values":["%messageStatusRequest:status%"],"condType":"Includes any"},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"messageDeliveredOrFailed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat","transform":[{"name":"omit","args":["crmData","previousBotSession"]}]}},"messageId":{"##provide":{"provider":"messageLookup","key":"data","keyArgs":[],"transform":[{"name":"hbTpl","args":["[{{#each messages}}{{#if ../externalId}}{{#when channelInfo.id 'eq' ../externalId}}\"{{_id}}\",{{/when}}{{/if}}{{/each}}null]"]},{"name":"jsonParse","args":[]},{"name":"get","args":["0"]}]}},"messageStatus":"%messageStatusRequest:status%","error":"%messageStatusRequest:error%","timestamp":"%messageStatusRequest:timestamp%","externalId":"%messageStatusRequest:ids%"}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Unsubscribed from Template Messages":{"title":"Chat Unsubscribed from Template Messages","value":{"data":{"version":"v1","name":"(SUB) Chat Unsubscribed","description":"Sends a webhook when a chat unsubscribed from receiving template messages (e.g., by replying \"הסר\")","triggerEvents":["domain.chat.unsubscribed"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatUnsubscribed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Subscribed to Template Messages":{"title":"Chat Subscribed to Template Messages","value":{"data":{"version":"v1","name":"(SUB) Chat Subscribed","description":"Sends a webhook when a chat subscribes or opts back in to receiving template messages.","triggerEvents":["domain.chat.subscribed"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatSubscribed","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Taken":{"title":"Chat Taken","value":{"data":{"version":"v1","name":"(SUB) Chat Assigned","description":"Sends a webhook when a chat is assigned, with full chat data and a narrowed agent object.","triggerEvents":["domain.chat.assigned"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatAssigned","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}},"agent":{"id":{"##provide":{"provider":"agent","key":"_id"}},"crmId":{"##provide":{"provider":"agent","key":"crmId"}},"email":{"##provide":{"provider":"agent","key":"email"}},"displayName":{"##provide":{"provider":"agent","key":"displayName"}},"roles":{"##provide":{"provider":"agent","key":"roles"}}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Pending":{"title":"Chat Pending","value":{"data":{"version":"v1","name":"(SUB) Chat Pending","description":"Sends a webhook when a chat moves to pending status (waiting for a human agent).","triggerEvents":["domain.chat.pending"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatPending","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Resolved":{"title":"Chat Resolved","value":{"data":{"version":"v1","name":"(SUB) Chat Resolved","description":"Sends a webhook when a chat is resolved.","triggerEvents":["domain.chat.resolved"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatResolved","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Resolved by Bot":{"title":"Chat Resolved by Bot","value":{"data":{"version":"v1","name":"(SUB) Chat Resolved by Bot","description":"Sends a webhook when a chat is resolved automatically by the bot (no human agent assigned).","triggerEvents":["domain.chat.resolved"],"loaders":{},"conditions":[[{"name":"filtrex","params":{"expression":"not exists(agent.uid)","value":"%chat:chat%"},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatResolvedByBot","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Resolved by Agent":{"title":"Chat Resolved by Agent","value":{"data":{"version":"v1","name":"(SUB) Chat Resolved by Agent","description":"Sends a webhook when a chat is resolved by a human agent.","triggerEvents":["domain.chat.resolved"],"loaders":{},"conditions":[[{"name":"filtrex","params":{"expression":"exists(agent.uid)","value":"%chat:chat%"},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatResolvedByAgent","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Chat Labels Changed":{"title":"Chat Labels Changed","value":{"data":{"version":"v1","name":"(SUB) Chat Labels Updated","description":"Sends a webhook when a chat's labels change, with the chat, previous labels, and the added/removed diff.","triggerEvents":["domain.chat.labels"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatLabelsUpdated","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}},"oldLabels":{"##provide":{"provider":"oldLabels","key":"labels"}},"addedLabels":{"##provide":{"provider":"addedLabels","key":"labels"}},"removedLabels":{"##provide":{"provider":"removedLabels","key":"labels"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Specific Label Added to Chat":{"title":"Specific Label Added to Chat","value":{"data":{"version":"v1","name":"(SUB) Specific Label Added","description":"Sends a webhook when a specific label is added to a chat.","triggerEvents":["domain.chat.labels"],"loaders":{},"conditions":[[{"name":"filtrex","params":{"expression":"inArray(addedLabels, \"{{targetLabelId}}\")","value":{"addedLabels":{"##provide":{"provider":"addedLabels","key":"labels"}}}},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"chatSpecificLabelAdded","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}},"oldLabels":{"##provide":{"provider":"oldLabels","key":"labels"}},"addedLabels":{"##provide":{"provider":"addedLabels","key":"labels"}},"removedLabels":{"##provide":{"provider":"removedLabels","key":"labels"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"External Bot Enabled":{"title":"External Bot Enabled","value":{"data":{"version":"v1","name":"(SUB) External Bot Enabled","description":"Sends a webhook when externalBot is set to true on a chat.","triggerEvents":["domain.chat.updated.externalBot","app.bot.chat.setExternal"],"loaders":{},"conditions":[[{"name":"filtrex","params":{"expression":"exists(externalBot) and externalBot","value":{"##provide":{"provider":"chat","key":"chat"}}},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"externalBotEnabled","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"External Bot Disabled":{"title":"External Bot Disabled","value":{"data":{"version":"v1","name":"(SUB) External Bot Disabled","description":"Sends a webhook when externalBot is set to false on a chat.","triggerEvents":["domain.chat.updated.externalBot","app.bot.chat.setExternal"],"loaders":{},"conditions":[[{"name":"compare","params":{"comparison":"Equal","compareTo":false,"value":{"##provide":{"provider":"chat","key":"externalBot"}}},"confidentialData":false}]],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"externalBotDisabled","eventData":{"chat":{"##provide":{"provider":"chat","key":"chat"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Channel Health Problem Created":{"title":"Channel Health Problem Created","value":{"data":{"version":"v1","name":"(SUB) Channel Health Problem Created","description":"Sends a webhook when a channel health problem is detected on a WhatsApp account.","triggerEvents":["domain.channel.health.problem.created"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"channelHealthProblemCreated","eventData":{"problem":{"##provide":{"provider":"problem","key":"problem"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}},"Channel Health Problem Resolved":{"title":"Channel Health Problem Resolved","value":{"data":{"version":"v1","name":"(SUB) Channel Health Problem Resolved","description":"Sends a webhook when a previously detected channel health problem is resolved.","triggerEvents":["domain.channel.health.problem.resolved"],"loaders":{},"conditions":[],"actions":[{"name":"request","params":{"url":"{{yourWebhookURL}}","method":"post","json":true,"data":{"eventName":"channelHealthProblemResolved","eventData":{"problem":{"##provide":{"provider":"problem","key":"problem"}}}}},"confidentialData":false}],"options":{"unorderedActions":false}},"asStatus":"active"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"24e26bcb-77e5-4acb-9e85-28b3e381e890":{"description":"The created subscription (scenario object). Field-by-field reference: [The Scenario object](/api-reference/objects/scenario)","content":{"application/json":{"schema":{"type":"object","description":"An event subscription (scenario) in Texter","properties":{"_id":{"type":"string","description":"Unique identifier of the subscription/scenario","uniqueKey":"_id","typeLabel":"string"},"system":{"type":"string","description":"System scenario identifier. Present only on built-in system scenarios (returned when `includeSystem=true`)","uniqueKey":"system","typeLabel":"string"},"drafts":{"type":"array","description":"Draft revisions of this scenario being edited. Same shape as a revision, but with `status: \"draft\"`, no `version`/`revisionComment`, and metadata limited to `authorUid`/`created`/`modified`","items":{"type":"object","additionalProperties":true,"uniqueKey":"drafts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"drafts","typeLabel":"object[]"},"inactiveRevisions":{"type":"array","items":{"type":"object","description":"A specific snapshot of the scenario logic","properties":{"_id":{"type":"string","description":"Unique identifier of this specific revision","uniqueKey":"inactiveRevisions.items.[INDEX]._id","typeLabel":"string"},"scenarioId":{"type":"string","description":"Reference to the parent scenario ID","uniqueKey":"inactiveRevisions.items.[INDEX].scenarioId","typeLabel":"string"},"name":{"type":"string","description":"Human-readable name of the subscription/scenario","uniqueKey":"inactiveRevisions.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"inactiveRevisions.items.[INDEX].description","typeLabel":"string"},"status":{"type":"string","enum":["active","inactive"],"description":"The state of this specific revision","uniqueKey":"inactiveRevisions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"version":{"type":"number","description":"The version number of this revision","uniqueKey":"inactiveRevisions.items.[INDEX].version","typeLabel":"number"},"parentVersion":{"type":"number","description":"The version number this revision was based on","uniqueKey":"inactiveRevisions.items.[INDEX].parentVersion","typeLabel":"number"},"revisionComment":{"type":"string","uniqueKey":"inactiveRevisions.items.[INDEX].revisionComment","typeLabel":"string"},"triggerEvents":{"type":"array","items":{"type":"string","uniqueKey":"inactiveRevisions.items.[INDEX].triggerEvents.items.[INDEX]","typeLabel":"string"},"description":"Internal events that trigger this scenario","uniqueKey":"inactiveRevisions.items.[INDEX].triggerEvents","typeLabel":"string[]"},"conditions":{"type":"array","description":"Condition **groups**: an array of groups, each group an array of conditions. All conditions inside a group must pass (AND); the scenario fires if **any** group passes (OR between groups)","items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Condition component, e.g. `filtrex`, `compare`","uniqueKey":"inactiveRevisions.items.[INDEX].conditions.items.[INDEX].items.[INDEX].name","typeLabel":"string"},"params":{"description":"Component parameters","uniqueKey":"inactiveRevisions.items.[INDEX].conditions.items.[INDEX].items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"inactiveRevisions.items.[INDEX].conditions.items.[INDEX].items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"inactiveRevisions.items.[INDEX].conditions.items.[INDEX].items.[INDEX]","typeLabel":"object"},"uniqueKey":"inactiveRevisions.items.[INDEX].conditions.items.[INDEX]","typeLabel":"object[]"},"uniqueKey":"inactiveRevisions.items.[INDEX].conditions","typeLabel":"object[][]"},"loaders":{"type":"object","description":"Data loaders by position","properties":{"beforeConditions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Loader component, e.g. `chat`","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.beforeConditions.items.[INDEX].name","typeLabel":"string"},"alias":{"type":"string","description":"Name under which the loaded data is exposed","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.beforeConditions.items.[INDEX].alias","typeLabel":"string"},"params":{"description":"Loader parameters","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.beforeConditions.items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.beforeConditions.items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"inactiveRevisions.items.[INDEX].loaders.beforeConditions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inactiveRevisions.items.[INDEX].loaders.beforeConditions","typeLabel":"object[]"},"afterConditions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Loader component, e.g. `chat`","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.afterConditions.items.[INDEX].name","typeLabel":"string"},"alias":{"type":"string","description":"Name under which the loaded data is exposed","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.afterConditions.items.[INDEX].alias","typeLabel":"string"},"params":{"description":"Loader parameters","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.afterConditions.items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"inactiveRevisions.items.[INDEX].loaders.afterConditions.items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"inactiveRevisions.items.[INDEX].loaders.afterConditions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inactiveRevisions.items.[INDEX].loaders.afterConditions","typeLabel":"object[]"}},"uniqueKey":"inactiveRevisions.items.[INDEX].loaders","typeLabel":"object"},"actions":{"type":"array","description":"Actions to execute, e.g. the `request` webhook action","items":{"type":"object","properties":{"name":{"type":"string","description":"Action component, e.g. `request`","uniqueKey":"inactiveRevisions.items.[INDEX].actions.items.[INDEX].name","typeLabel":"string"},"params":{"description":"Action parameters","uniqueKey":"inactiveRevisions.items.[INDEX].actions.items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"inactiveRevisions.items.[INDEX].actions.items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"inactiveRevisions.items.[INDEX].actions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inactiveRevisions.items.[INDEX].actions","typeLabel":"object[]"},"loops":{"type":"array","description":"Loop definitions, when the scenario iterates over data","items":{"type":"object","properties":{"loop":{"type":"object","additionalProperties":true,"description":"Foreach definition: `input`, `as`, `foreachMode` (`sequential` with `itemDelay`/`breakOnError`, or `parallel` with `concurency`)","uniqueKey":"inactiveRevisions.items.[INDEX].loops.items.[INDEX].loop","typeLabel":"object"},"position":{"type":"string","enum":["afterEvents","beforeConditions","afterConditions","beforeActions"],"uniqueKey":"inactiveRevisions.items.[INDEX].loops.items.[INDEX].position","typeLabel":"enum\u003cstring>"}},"uniqueKey":"inactiveRevisions.items.[INDEX].loops.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inactiveRevisions.items.[INDEX].loops","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"inactiveRevisions.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"inactiveRevisions.items.[INDEX].tags","typeLabel":"string[]"},"attachedData":{"type":"object","additionalProperties":true,"description":"Free-form data attached when the revision was created","uniqueKey":"inactiveRevisions.items.[INDEX].attachedData","typeLabel":"object"},"system":{"type":"string","description":"System scenario identifier. Present only on built-in system scenarios","uniqueKey":"inactiveRevisions.items.[INDEX].system","typeLabel":"string"},"options":{"type":"object","properties":{"unorderedActions":{"type":"boolean","description":"If true, actions may run in parallel; if false, sequentially","uniqueKey":"inactiveRevisions.items.[INDEX].options.unorderedActions","typeLabel":"boolean"}},"uniqueKey":"inactiveRevisions.items.[INDEX].options","typeLabel":"object"},"metadata":{"type":"object","properties":{"authorUid":{"type":"string","description":"User ID of the person who created this revision","uniqueKey":"inactiveRevisions.items.[INDEX].metadata.authorUid","typeLabel":"string"},"created":{"type":"number","description":"Timestamp (ms) of revision creation","uniqueKey":"inactiveRevisions.items.[INDEX].metadata.created","typeLabel":"number"},"modified":{"type":"number","description":"Timestamp (ms) of the last draft modification","uniqueKey":"inactiveRevisions.items.[INDEX].metadata.modified","typeLabel":"number"},"activated":{"type":"number","description":"Timestamp (ms) of the most recent activation","uniqueKey":"inactiveRevisions.items.[INDEX].metadata.activated","typeLabel":"number"},"activations":{"type":"array","description":"History of activations","items":{"type":"object","properties":{"timestamp":{"type":"number","uniqueKey":"inactiveRevisions.items.[INDEX].metadata.activations.items.[INDEX].timestamp","typeLabel":"number"},"userUid":{"type":"string","uniqueKey":"inactiveRevisions.items.[INDEX].metadata.activations.items.[INDEX].userUid","typeLabel":"string"}},"uniqueKey":"inactiveRevisions.items.[INDEX].metadata.activations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inactiveRevisions.items.[INDEX].metadata.activations","typeLabel":"object[]"}},"uniqueKey":"inactiveRevisions.items.[INDEX].metadata","typeLabel":"object"}},"uniqueKey":"inactiveRevisions.items.[INDEX]","typeLabel":"object"},"description":"Inactive revisions","uniqueKey":"inactiveRevisions","typeLabel":"object[]"},"activeRevision":{"type":"object","description":"The currently active version of the scenario","properties":{"_id":{"type":"string","description":"Unique identifier of this specific revision","uniqueKey":"activeRevision._id","typeLabel":"string"},"scenarioId":{"type":"string","description":"Reference to the parent scenario ID","uniqueKey":"activeRevision.scenarioId","typeLabel":"string"},"name":{"type":"string","description":"Human-readable name of the subscription/scenario","uniqueKey":"activeRevision.name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"activeRevision.description","typeLabel":"string"},"status":{"type":"string","enum":["active","inactive"],"description":"The state of this specific revision","uniqueKey":"activeRevision.status","typeLabel":"enum\u003cstring>"},"version":{"type":"number","description":"The version number of this revision","uniqueKey":"activeRevision.version","typeLabel":"number"},"parentVersion":{"type":"number","description":"The version number this revision was based on","uniqueKey":"activeRevision.parentVersion","typeLabel":"number"},"revisionComment":{"type":"string","uniqueKey":"activeRevision.revisionComment","typeLabel":"string"},"triggerEvents":{"type":"array","items":{"type":"string","uniqueKey":"activeRevision.triggerEvents.items.[INDEX]","typeLabel":"string"},"description":"Internal events that trigger this scenario","uniqueKey":"activeRevision.triggerEvents","typeLabel":"string[]"},"conditions":{"type":"array","description":"Condition **groups**: an array of groups, each group an array of conditions. All conditions inside a group must pass (AND); the scenario fires if **any** group passes (OR between groups)","items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Condition component, e.g. `filtrex`, `compare`","uniqueKey":"activeRevision.conditions.items.[INDEX].items.[INDEX].name","typeLabel":"string"},"params":{"description":"Component parameters","uniqueKey":"activeRevision.conditions.items.[INDEX].items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"activeRevision.conditions.items.[INDEX].items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"activeRevision.conditions.items.[INDEX].items.[INDEX]","typeLabel":"object"},"uniqueKey":"activeRevision.conditions.items.[INDEX]","typeLabel":"object[]"},"uniqueKey":"activeRevision.conditions","typeLabel":"object[][]"},"loaders":{"type":"object","description":"Data loaders by position","properties":{"beforeConditions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Loader component, e.g. `chat`","uniqueKey":"activeRevision.loaders.beforeConditions.items.[INDEX].name","typeLabel":"string"},"alias":{"type":"string","description":"Name under which the loaded data is exposed","uniqueKey":"activeRevision.loaders.beforeConditions.items.[INDEX].alias","typeLabel":"string"},"params":{"description":"Loader parameters","uniqueKey":"activeRevision.loaders.beforeConditions.items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"activeRevision.loaders.beforeConditions.items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"activeRevision.loaders.beforeConditions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"activeRevision.loaders.beforeConditions","typeLabel":"object[]"},"afterConditions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Loader component, e.g. `chat`","uniqueKey":"activeRevision.loaders.afterConditions.items.[INDEX].name","typeLabel":"string"},"alias":{"type":"string","description":"Name under which the loaded data is exposed","uniqueKey":"activeRevision.loaders.afterConditions.items.[INDEX].alias","typeLabel":"string"},"params":{"description":"Loader parameters","uniqueKey":"activeRevision.loaders.afterConditions.items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"activeRevision.loaders.afterConditions.items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"activeRevision.loaders.afterConditions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"activeRevision.loaders.afterConditions","typeLabel":"object[]"}},"uniqueKey":"activeRevision.loaders","typeLabel":"object"},"actions":{"type":"array","description":"Actions to execute, e.g. the `request` webhook action","items":{"type":"object","properties":{"name":{"type":"string","description":"Action component, e.g. `request`","uniqueKey":"activeRevision.actions.items.[INDEX].name","typeLabel":"string"},"params":{"description":"Action parameters","uniqueKey":"activeRevision.actions.items.[INDEX].params","typeLabel":"any"},"confidentialData":{"type":"boolean","uniqueKey":"activeRevision.actions.items.[INDEX].confidentialData","typeLabel":"boolean"}},"uniqueKey":"activeRevision.actions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"activeRevision.actions","typeLabel":"object[]"},"loops":{"type":"array","description":"Loop definitions, when the scenario iterates over data","items":{"type":"object","properties":{"loop":{"type":"object","additionalProperties":true,"description":"Foreach definition: `input`, `as`, `foreachMode` (`sequential` with `itemDelay`/`breakOnError`, or `parallel` with `concurency`)","uniqueKey":"activeRevision.loops.items.[INDEX].loop","typeLabel":"object"},"position":{"type":"string","enum":["afterEvents","beforeConditions","afterConditions","beforeActions"],"uniqueKey":"activeRevision.loops.items.[INDEX].position","typeLabel":"enum\u003cstring>"}},"uniqueKey":"activeRevision.loops.items.[INDEX]","typeLabel":"object"},"uniqueKey":"activeRevision.loops","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"activeRevision.tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"activeRevision.tags","typeLabel":"string[]"},"attachedData":{"type":"object","additionalProperties":true,"description":"Free-form data attached when the revision was created","uniqueKey":"activeRevision.attachedData","typeLabel":"object"},"system":{"type":"string","description":"System scenario identifier. Present only on built-in system scenarios","uniqueKey":"activeRevision.system","typeLabel":"string"},"options":{"type":"object","properties":{"unorderedActions":{"type":"boolean","description":"If true, actions may run in parallel; if false, sequentially","uniqueKey":"activeRevision.options.unorderedActions","typeLabel":"boolean"}},"uniqueKey":"activeRevision.options","typeLabel":"object"},"metadata":{"type":"object","properties":{"authorUid":{"type":"string","description":"User ID of the person who created this revision","uniqueKey":"activeRevision.metadata.authorUid","typeLabel":"string"},"created":{"type":"number","description":"Timestamp (ms) of revision creation","uniqueKey":"activeRevision.metadata.created","typeLabel":"number"},"modified":{"type":"number","description":"Timestamp (ms) of the last draft modification","uniqueKey":"activeRevision.metadata.modified","typeLabel":"number"},"activated":{"type":"number","description":"Timestamp (ms) of the most recent activation","uniqueKey":"activeRevision.metadata.activated","typeLabel":"number"},"activations":{"type":"array","description":"History of activations","items":{"type":"object","properties":{"timestamp":{"type":"number","uniqueKey":"activeRevision.metadata.activations.items.[INDEX].timestamp","typeLabel":"number"},"userUid":{"type":"string","uniqueKey":"activeRevision.metadata.activations.items.[INDEX].userUid","typeLabel":"string"}},"uniqueKey":"activeRevision.metadata.activations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"activeRevision.metadata.activations","typeLabel":"object[]"}},"uniqueKey":"activeRevision.metadata","typeLabel":"object"}},"uniqueKey":"activeRevision","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"_id":"6970b3c1d2e3f40123456789","drafts":[],"inactiveRevisions":[],"activeRevision":{"_id":"6970b3c1d2e3f4012345678a","scenarioId":"6970b3c1d2e3f40123456789","name":"(SUB) New Incoming Messages","description":"Sends a webhook for each new incoming message","status":"active","version":1,"triggerEvents":["domain.message.created"],"conditions":[[{"name":"filtrex","params":{"expression":"direction == \"incoming\""},"confidentialData":false}]],"loaders":{"afterConditions":[{"name":"chat","alias":"chat","params":{},"confidentialData":false}]},"actions":[{"name":"request","params":{"url":"https://example.com/hook","method":"post","json":true},"confidentialData":false}],"options":{"unorderedActions":false},"metadata":{"authorUid":"4d170fc7-5cd6-4496-98e4-f4f03a11456e","created":1768314807488,"activated":1768314808000}}},"examples":{"Example":{"title":"Example","value":{"_id":"6970b3c1d2e3f40123456789","drafts":[],"inactiveRevisions":[],"activeRevision":{"_id":"6970b3c1d2e3f4012345678a","scenarioId":"6970b3c1d2e3f40123456789","name":"(SUB) New Incoming Messages","description":"Sends a webhook for each new incoming message","status":"active","version":1,"triggerEvents":["domain.message.created"],"conditions":[[{"name":"filtrex","params":{"expression":"direction == \"incoming\""},"confidentialData":false}]],"loaders":{"afterConditions":[{"name":"chat","alias":"chat","params":{},"confidentialData":false}]},"actions":[{"name":"request","params":{"url":"https://example.com/hook","method":"post","json":true},"confidentialData":false}],"options":{"unorderedActions":false},"metadata":{"authorUid":"4d170fc7-5cd6-4496-98e4-f4f03a11456e","created":1768314807488,"activated":1768314808000}}}}},"exampleType":"examples"}},"exampleType":"examples"},"9d0b9258-8490-458c-992b-efc66458f563":{"description":"Validation error, or `authorUid` user not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"authorUid: User with ID abc123 not found"},"examples":{"Example":{"title":"Example","value":{"error":"authorUid: User with ID abc123 not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"f0e32cc6-7ba8-4d75-8186-3b0a34cbc7d5":{"description":"Missing or invalid token, or missing required scopes","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"612064e8-b689-4a56-a94e-bbca7a7c4da5":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"1e77427e-3d2c-44d1-a12a-d165edeead2c":{"url":"https://{projectID}.texterchat.com/server/api/v2","description":"Your Texter environment. Replace projectID with your project subdomain","variables":{"projectID":{"default":"demo","description":"Your unique project subdomain. If your environment URL is https://demo.texterchat.com, your projectID is \"demo\""}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"texter","siteName":"Texterchat","title":"Import Subscription (Subscribe to an Event) - Texterchat","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"he":{"href":"/he/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event","matchLevel":1},"en":{"href":"/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event","matchLevel":0}}},"lastModified":"2026-08-11T10:30:13.530Z","originalFileLocation":"api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:\">\u003cmeta data-mint-head name=\"application-name\" content=\"Texterchat\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Import Subscription (Subscribe to an Event) - Texterchat\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Texterchat\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://texter.mintlify.site/_mintlify/api/og/v2?division=Subscribe+to+Events\u0026amp;title=Import+Subscription+%28Subscribe+to+an+Event%29\u0026amp;description=Create+an+event+subscription+by+importing+one+of+the+pre-defined+scenario+templates.+Pick+the+template+for+the+event+you+want+from+the+request+examples%2C+then+ch\u0026amp;theme=218c4e51ab145ec8f6f14c07\u0026amp;signature=487f2bda37b114e976526938519c74542bcbd851e00dc490848b8cff3c1e34fd\">\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=\"Import Subscription (Subscribe to an Event) - Texterchat\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://texter.mintlify.site/_mintlify/api/og/v2?division=Subscribe+to+Events\u0026amp;title=Import+Subscription+%28Subscribe+to+an+Event%29\u0026amp;description=Create+an+event+subscription+by+importing+one+of+the+pre-defined+scenario+templates.+Pick+the+template+for+the+event+you+want+from+the+request+examples%2C+then+ch\u0026amp;theme=218c4e51ab145ec8f6f14c07\u0026amp;signature=487f2bda37b114e976526938519c74542bcbd851e00dc490848b8cff3c1e34fd\">\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/texter/iOqFlT17WE3XZ92K/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Texterchat\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B5FCF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-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/subscribe-to-events/import-subscription-subscribe-to-an-event.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"he\" href=\"https://help.texterchat.com/he/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://help.texterchat.com/he/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.texterchat.com/#organization\",\"name\":\"Texterchat\",\"url\":\"https://help.texterchat.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/texter/u1h4IZ0dqx4BZ6zi/assets/favicon.svg?fit=max\u0026auto=format\u0026n=u1h4IZ0dqx4BZ6zi\u0026q=85\u0026s=5fbab3f5dc54b8e49a9f2e9f64e307b5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.texterchat.com#website\",\"name\":\"Texterchat\",\"url\":\"https://help.texterchat.com\",\"publisher\":{\"@id\":\"https://help.texterchat.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event#webpage\",\"url\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event\",\"name\":\"Import Subscription (Subscribe to an Event)\",\"description\":\"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:\",\"dateModified\":\"2026-08-11T10:30:13.530Z\",\"isPartOf\":{\"@id\":\"https://help.texterchat.com#website\"},\"breadcrumb\":{\"@id\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://help.texterchat.com/api-reference/manage-templates/create-new-template\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscribe to Events\",\"item\":\"https://help.texterchat.com/api-reference/subscribe-to-events/list-all-subscriptions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Import Subscription (Subscribe to an Event)\",\"item\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event#apireference\",\"headline\":\"Import Subscription (Subscribe to an Event)\",\"name\":\"Import Subscription (Subscribe to an Event)\",\"description\":\"Create an event subscription by importing one of the pre-defined scenario templates. Pick the template for the event you want from the request examples, then change only:\",\"url\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event\",\"mainEntityOfPage\":{\"@id\":\"https://help.texterchat.com/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event#webpage\"},\"dateModified\":\"2026-08-11T10:30:13.530Z\",\"publisher\":{\"@id\":\"https://help.texterchat.com/#organization\"},\"isPartOf\":{\"@id\":\"https://help.texterchat.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Texterchat\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Texterchat\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event.md","siteName":"Texterchat","nav":{"global":null,"languages":[{"language":"he","default":true,"navbar":{"links":[],"primary":{"type":"button","label":"תמיכה","href":"https://wa.me/972586640430"}},"pages":[{"title":"he","href":"/he/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event"}]},{"language":"en","navbar":{"links":[],"primary":{"type":"button","label":"Support","href":"https://wa.me/972586640430"}},"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":"/en/guides/welcome"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Enums \u0026 Common Fields","href":"/api-reference/enums"}]},{"group":"Endpoints","icon":"plug","pages":[{"group":"Manage Templates","icon":"file-text","pages":[{"title":"Create New Template","openapi":"api-reference/openapi.json POST /whatsapp/templates/{accountId}","href":"/api-reference/manage-templates/create-new-template"},{"title":"Create or Update Localization","openapi":"api-reference/openapi.json POST /whatsapp/templates/{accountId}/{templateName}/localizations","href":"/api-reference/manage-templates/create-or-update-localization"},{"title":"Submit Template for Approval","openapi":"api-reference/openapi.json POST /whatsapp/templates/{accountId}/{templateName}/localizations/{language}/submit","href":"/api-reference/manage-templates/submit-template-for-approval"},{"title":"Delete Template","openapi":"api-reference/openapi.json DELETE /whatsapp/templates/{accountId}/{templateName}","href":"/api-reference/manage-templates/delete-template"},{"title":"Update Existing Template","openapi":"api-reference/openapi.json PATCH /whatsapp/templates/{accountId}/{templateName}","href":"/api-reference/manage-templates/update-existing-template"},{"title":"Send Template Message","openapi":"api-reference/openapi.json POST /whatsapp/templates/send","href":"/api-reference/manage-templates/send-template-message"},{"title":"List All Templates","openapi":"api-reference/openapi.json GET /whatsapp/templates","href":"/api-reference/manage-templates/list-all-templates"}]},{"group":"Templates Subscriptions","icon":"bell-off","pages":[{"title":"Unsubscribe from Templates","openapi":"api-reference/openapi.json POST /whatsapp/templates/unsubscribe","href":"/api-reference/templates-subscriptions/unsubscribe-from-templates"},{"title":"Resubscribe to Templates","openapi":"api-reference/openapi.json POST /whatsapp/templates/subscribe","href":"/api-reference/templates-subscriptions/resubscribe-to-templates"},{"title":"List All Unsubscribed Users","openapi":"api-reference/openapi.json GET /whatsapp/templates/unsubscribed","href":"/api-reference/templates-subscriptions/list-all-unsubscribed-users"},{"title":"Unsubscribed from Specific Account","openapi":"api-reference/openapi.json GET /whatsapp/templates/unsubscribed/{accountId}","href":"/api-reference/templates-subscriptions/unsubscribed-from-specific-account"}]},{"group":"Messages","icon":"message-circle","pages":[{"title":"Get Messages of a Chat","openapi":"api-reference/openapi.json GET /messages/chat/{chatId}","href":"/api-reference/messages/get-messages-of-a-chat"},{"title":"Send a Message to Chat","openapi":"api-reference/openapi.json POST /messages/send/{chatId}","href":"/api-reference/messages/send-a-message-to-chat"},{"title":"Send a Message by Recipient","openapi":"api-reference/openapi.json POST /messages/send","href":"/api-reference/messages/send-a-message-by-recipient"}]},{"group":"Chats","icon":"messages-square","pages":[{"title":"Search Chats","openapi":"api-reference/openapi.json GET /chats/search","href":"/api-reference/chats/search-chats"},{"title":"Assign Chat","openapi":"api-reference/openapi.json POST /chats/assign","href":"/api-reference/chats/assign-chat"},{"title":"Get Chat by Chat ID","openapi":"api-reference/openapi.json GET /chats/{chatId}","href":"/api-reference/chats/get-chat-by-chat-id"},{"title":"Get Chat by Recipient","openapi":"api-reference/openapi.json GET /chats","href":"/api-reference/chats/get-chat-by-recipient"},{"title":"Update Chat Properties","openapi":"api-reference/openapi.json PATCH /chats/{chatId}","href":"/api-reference/chats/update-chat-properties"},{"title":"Resolve Chat","openapi":"api-reference/openapi.json POST /chats/{chatId}/resolve","href":"/api-reference/chats/resolve-chat"},{"title":"Update CRM Data","openapi":"api-reference/openapi.json POST /chats/{chatId}/crm-data","href":"/api-reference/chats/update-crm-data"}]},{"group":"Labels","icon":"tag","pages":[{"title":"List All Labels","openapi":"api-reference/openapi.json GET /labels","href":"/api-reference/labels/list-all-labels"},{"title":"Create Label","openapi":"api-reference/openapi.json POST /labels","href":"/api-reference/labels/create-label"},{"title":"Get Label Data","openapi":"api-reference/openapi.json GET /labels/{labelId}","href":"/api-reference/labels/get-label-data"},{"title":"Delete Label","openapi":"api-reference/openapi.json DELETE /labels/{labelId}","href":"/api-reference/labels/delete-label"},{"title":"Update Existing Label","openapi":"api-reference/openapi.json PATCH /labels/{labelId}","href":"/api-reference/labels/update-existing-label"},{"title":"Manage Labels in Chat","openapi":"api-reference/openapi.json POST /chats/{chatId}/labels","href":"/api-reference/labels/manage-labels-in-chat"}]},{"group":"Chat Notes","icon":"sticky-note","pages":[{"title":"List Chat Notes","openapi":"api-reference/openapi.json GET /chats/{chatId}/chat-notes","href":"/api-reference/chat-notes/list-chat-notes"},{"title":"Get Chat Note","openapi":"api-reference/openapi.json GET /chats/{chatId}/chat-notes/{noteId}","href":"/api-reference/chat-notes/get-chat-note"},{"title":"Create Chat Note","openapi":"api-reference/openapi.json POST /chats/{chatId}/chat-notes","href":"/api-reference/chat-notes/create-chat-note"},{"title":"Update Chat Note","openapi":"api-reference/openapi.json PATCH /chats/{chatId}/chat-notes/{noteId}","href":"/api-reference/chat-notes/update-chat-note"},{"title":"Delete Chat Note","openapi":"api-reference/openapi.json DELETE /chats/{chatId}/chat-notes/{noteId}","href":"/api-reference/chat-notes/delete-chat-note"}]},{"group":"Channels","icon":"radio","pages":[{"title":"List Channel Health Problems","openapi":"api-reference/openapi.json GET /channels/health/problems","href":"/api-reference/channels/list-channel-health-problems"},{"title":"Resolve Channel Health Problem","openapi":"api-reference/openapi.json POST /channels/health/problems/{problemId}/resolve","href":"/api-reference/channels/resolve-channel-health-problem"}]},{"group":"Quick Replies","icon":"reply","pages":[{"title":"Get Existing Quick Replies","openapi":"api-reference/openapi.json GET /quick-replies","href":"/api-reference/quick-replies/get-existing-quick-replies"},{"title":"Create Quick Reply","openapi":"api-reference/openapi.json POST /quick-replies","href":"/api-reference/quick-replies/create-quick-reply"},{"title":"Delete Quick Reply","openapi":"api-reference/openapi.json DELETE /quick-replies/{quickReplyId}","href":"/api-reference/quick-replies/delete-quick-reply"},{"title":"Update Existing Quick Reply","openapi":"api-reference/openapi.json PATCH /quick-replies/{quickReplyId}","href":"/api-reference/quick-replies/update-existing-quick-reply"}]},{"group":"Files","icon":"file","pages":[{"title":"Generate Public Media URL","openapi":"api-reference/openapi.json POST /files/share/{fileId}","href":"/api-reference/files/generate-public-media-url"}]},{"group":"Subscribe to Events","icon":"bell","pages":[{"title":"List All Subscriptions","description":"Retrieve a list of all existing event subscriptions and scenarios in Texter. All subscription scenarios created from the templates in this section start with the prefix `(SUB)` in their name.","openapi":"api-reference/openapi.json GET /scenarios/manage","href":"/api-reference/subscribe-to-events/list-all-subscriptions"},{"title":"Import Subscription (Subscribe to an Event)","openapi":"api-reference/openapi.json POST /scenarios/manage/import","href":"/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event"},{"title":"Inactivate Subscription","description":"Pause a subscription. The scenario remains in your account but stops triggering webhooks until reactivated.","openapi":"api-reference/openapi.json POST /scenarios/manage/{scenarioId}/revisions/inactivate","href":"/api-reference/subscribe-to-events/inactivate-subscription"},{"title":"Activate Subscription","openapi":"api-reference/openapi.json POST /scenarios/manage/{scenarioId}/revisions/{version}/activate","href":"/api-reference/subscribe-to-events/activate-subscription"},{"title":"Delete Subscription","openapi":"api-reference/openapi.json DELETE /scenarios/manage/{scenarioId}","href":"/api-reference/subscribe-to-events/delete-subscription"}]},{"group":"Scenarios (Advanced)","icon":"route","pages":[{"title":"Create Empty Scenario","openapi":"api-reference/openapi.json POST /scenarios/manage","href":"/api-reference/scenarios-advanced/create-empty-scenario"},{"title":"Copy Scenario","openapi":"api-reference/openapi.json POST /scenarios/manage/{scenarioId}/copy","href":"/api-reference/scenarios-advanced/copy-scenario"},{"title":"Create Draft","openapi":"api-reference/openapi.json POST /scenarios/manage/{scenarioId}/draft","href":"/api-reference/scenarios-advanced/create-draft"},{"title":"Delete Draft","openapi":"api-reference/openapi.json DELETE /scenarios/manage/{scenarioId}/draft","href":"/api-reference/scenarios-advanced/delete-draft"},{"title":"Update Draft","openapi":"api-reference/openapi.json PATCH /scenarios/manage/{scenarioId}/draft","href":"/api-reference/scenarios-advanced/update-draft"},{"title":"Create Revision (Publish Draft)","openapi":"api-reference/openapi.json POST /scenarios/manage/{scenarioId}/revisions","href":"/api-reference/scenarios-advanced/create-revision-publish-draft"},{"title":"Delete Revision","openapi":"api-reference/openapi.json DELETE /scenarios/manage/{scenarioId}/revisions/{version}","href":"/api-reference/scenarios-advanced/delete-revision"},{"title":"List Scenario Runs","openapi":"api-reference/openapi.json GET /scenarios/runs","href":"/api-reference/scenarios-advanced/list-scenario-runs"},{"title":"List Components - Events","openapi":"api-reference/openapi.json GET /scenarios/components/events","href":"/api-reference/scenarios-advanced/list-components--events"},{"title":"List Components - Conditions","openapi":"api-reference/openapi.json GET /scenarios/components/conditions","href":"/api-reference/scenarios-advanced/list-components--conditions"},{"title":"List Components - Loaders","openapi":"api-reference/openapi.json GET /scenarios/components/loaders","href":"/api-reference/scenarios-advanced/list-components--loaders"},{"title":"List Components - Actions","openapi":"api-reference/openapi.json GET /scenarios/components/actions","href":"/api-reference/scenarios-advanced/list-components--actions"},{"title":"Inbound Webhook Trigger","openapi":"api-reference/openapi.json POST /scenarios/webhooks","href":"/api-reference/scenarios-advanced/inbound-webhook-trigger"}]}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Webhooks Overview","href":"/api-reference/webhooks-guide"},{"group":"Message Events","icon":"message-square","pages":[{"title":"All Messages","href":"/api-reference/webhooks/message-events/all-messages"},{"title":"New Incoming Messages","href":"/api-reference/webhooks/message-events/new-incoming-messages"},{"title":"Messages with Specific Text","href":"/api-reference/webhooks/message-events/messages-with-specific-text"},{"title":"Messages with Attachments","href":"/api-reference/webhooks/message-events/messages-with-attachments"},{"title":"Messages Failed to Deliver","href":"/api-reference/webhooks/message-events/messages-failed-to-deliver"},{"title":"Message Status Changed","href":"/api-reference/webhooks/message-events/message-status-changed"},{"title":"Messages Delivered or Failed","href":"/api-reference/webhooks/message-events/messages-delivered-or-failed"}]},{"group":"Chat Events","icon":"messages-square","pages":[{"title":"Chat Unsubscribed from Template Messages","href":"/api-reference/webhooks/chat-events/chat-unsubscribed"},{"title":"Chat Subscribed to Template Messages","href":"/api-reference/webhooks/chat-events/chat-subscribed"},{"title":"Chat Taken","href":"/api-reference/webhooks/chat-events/chat-taken"},{"title":"Chat Pending","href":"/api-reference/webhooks/chat-events/chat-pending"},{"title":"Chat Resolved","href":"/api-reference/webhooks/chat-events/chat-resolved"},{"title":"Chat Resolved by Bot","href":"/api-reference/webhooks/chat-events/chat-resolved-by-bot"},{"title":"Chat Resolved by Agent","href":"/api-reference/webhooks/chat-events/chat-resolved-by-agent"},{"title":"Chat Labels Changed","href":"/api-reference/webhooks/chat-events/chat-labels-changed"},{"title":"Specific Label Added to Chat","href":"/api-reference/webhooks/chat-events/specific-label-added"},{"title":"External Bot Enabled","href":"/api-reference/webhooks/chat-events/external-bot-enabled"},{"title":"External Bot Disabled","href":"/api-reference/webhooks/chat-events/external-bot-disabled"}]},{"group":"Channel Health Events","icon":"activity","pages":[{"title":"Channel Health Problem Created","href":"/api-reference/webhooks/channel-health-events/channel-health-problem-created"},{"title":"Channel Health Problem Resolved","href":"/api-reference/webhooks/channel-health-events/channel-health-problem-resolved"}]}]},{"group":"Objects","icon":"box","pages":[{"title":"The Chat object","href":"/api-reference/objects/chat"},{"title":"The Message object","href":"/api-reference/objects/message"},{"title":"The Template object","href":"/api-reference/objects/template"},{"title":"The Problem object","href":"/api-reference/objects/problem"},{"title":"The Label object","href":"/api-reference/objects/label"},{"title":"The Chat Note object","href":"/api-reference/objects/chat-note"},{"title":"The Scenario object","href":"/api-reference/objects/scenario"},{"title":"The Scenario Run object","href":"/api-reference/objects/scenario-run"},{"title":"The Quick Reply object","href":"/api-reference/objects/quick-reply"}]}]},{"tab":"Bot Documentation","icon":"book-a","href":"https://whatsper.github.io/texterdocs/"},{"tab":"Changelog","icon":"timeline","href":"https://docs.texterchat.com/changelog"}]}]},"basePath":"","title":"Import Subscription (Subscribe to an Event) - Texterchat","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DDP9JXtj.js","utils-8yQyvEtx.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CBCFR8Sn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-rQaXkUHa.js","snippetPresets-J5KpBTgV.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BVxVH4Cj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BxdQ2vIi.js","shallow-BjV2tFiD.js","getApiPlaygroundDisplay-C_55tL4O.js","CodeSnippet-C0JpiCOC.js","CodeSnippets-w9Ps7djG.js","Page-DTNSD-0M.js","getPastedJson-BDfB-H8d.js","icon-g-kUkkO9.js","MethodPill-v4l6fq0h.js","DuplicateIcon-CvLo-CfU.js","createIcon-165clrrV.js","DynamicMarkdown-D3RQ-fEj.js","SectionHeading-vvo-3yLf.js","axios-vUo_bRtp.js","Markdown-CMT1uFWQ.js","clsx-C8f2yC9R.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI2D8R2Y.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-k78Wrw_e.js"]}