You can create an SMS template while creating an Event with SMS enabled. You can
easily create/update the template content by editing the event.An SMS message is a simple plain text message. The character limit for a single
SMS message is 160 characters. When you send a SMS message over 160 characters,
the message will be split into segments of 153. For example, a 161-character
message will be sent as two messages, one with 153 characters and the second
with 8 characters. The recipient’s device will then rebuild the messages and
show as one.If you include
non-GSM characters,
such as (Hindi, Greek, Korean or Arabic etc), in SMS messages, Raven will send
those messages with Unicode encoding. Such messages are limited to 70 characters
and > 70 characters will be concatenated into 67 character message segments.
For SMS sent in India, the templates need to be registered on any of the DLT
platforms. You should add the registered DLT Template ID in the SMS template.
To pass dynamic or custom data in the SMS template like invoice number, user
name, tracking link etc., you should wrap it within
handlebars .
Raven uses Handlebars.js to parse the template and all handlebar operations are
supported. Following Handlebars expressions are supported within templates:
Nested objects
#if, #each, #with
You will need to pass the value of the variables in the data object of
Send Event API.ExampleSMS Template:
Hey {{user_name}}, Thank you for your Order Id #{{order.id}} of amount{{order.amount}}. {{#if premium}} Glad to have you as our Premium customer.{{/if}} data object in API:
Apart from the SMS text, you can also send additional fields in the template.
This is useful if you want to override the “From”/“Sender ID”/“Header” that you
configured while setting up the integration.
Field
Description
sender
Name of the message sender (same as “From”/“Sender ID”/“Header”)
This is how you can pass it in the Send Event API.
Check the API doc for the complete request.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Raven","colors":{"primary":"#536DFE","light":"#8A9CFF","dark":"#3F51B5"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/logo/light.webp?fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=5bc105dd674d24adef55e1d1d4d1e94b","dark":"https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/logo/dark.webp?fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=cc775919aaae3b42596cbbd9bb430c77"},"api":{"mdx":{"server":"https://api.ravenapp.dev","auth":{"method":"key","name":"Authorization"}}},"navbar":{"links":[{"label":"Login","href":"https://console.raven.dev/get-started"}],"primary":{"type":"button","label":"Get Access","href":"https://raven.dev"}},"footer":{"socials":{"github":"https://github.com/ravenappdev","discord":"https://discord.gg/MPNgtSZkgK","twitter":"https://twitter.com/ravenappdev","youtube":"https://www.youtube.com/channel/UCOsyJ8EitxcbsAfimuDkycw"}},"integrations":{"mixpanel":{"projectToken":"a6ba159e99d7245792eed927cb1b7cf3"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"raven","hasAudioNarration":false,"actualSubdomain":"raven","customDomains":["docs.raven.dev"],"gitSource":{"type":"github","owner":"ravenappdev","repo":"docs","deployBranch":"main","contentDirectory":"docs","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae913e62d7f769a0cf3b7a6:success","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Documentation","count":75},{"language":"default","tag":"SMS","count":18},{"language":"default","tag":"SMS Integrations","count":14},{"language":"default","tag":"Platform","count":12},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Push","count":9},{"language":"default","tag":"WhatsApp","count":8},{"language":"default","tag":"Email","count":7},{"language":"default","tag":"Client SDK","count":7},{"language":"default","tag":"WhatsApp Integrations","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"sms/sms-template","slug":"/sms/sms-template","pageMetadata":{"title":"SMS Template","description":null,"href":"/sms/sms-template"},"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`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,OptimizedImage,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`You can create an SMS template while creating an Event with SMS enabled. You can\neasily create/update the template content by editing the event.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/images/sample-sms.png?fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=163c1ab4ed57ce5aa421a78fca490f25`,alt:`Sample SMS Template`,\"data-og-width\":`1029`,width:`1029`,\"data-og-height\":`300`,height:`300`,\"data-path\":`images/sample-sms.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/images/sample-sms.png?w=280\u0026fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=779d368a5b7c8bfb09c4485b0c31adb6 280w, https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/images/sample-sms.png?w=560\u0026fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=3267181ebb6e35c3e7e3dd885a40e0ea 560w, https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/images/sample-sms.png?w=840\u0026fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=b07a99f11adc46aea5cd3049dbb7c386 840w, https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/images/sample-sms.png?w=1100\u0026fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=cc0b8b1a5588fca9cd462152b00d8577 1100w, https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/images/sample-sms.png?w=1650\u0026fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=eddf308392d113fbe0b696185f9026cf 1650w, https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/images/sample-sms.png?w=2500\u0026fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=af905d26dad2a784e2cb4e543dde96a1 2500w`}),`\n`,_jsx(_components.p,{children:`An SMS message is a simple plain text message. The character limit for a single\nSMS message is 160 characters. When you send a SMS message over 160 characters,\nthe message will be split into segments of 153. For example, a 161-character\nmessage will be sent as two messages, one with 153 characters and the second\nwith 8 characters. The recipient’s device will then rebuild the messages and\nshow as one.`}),`\n`,_jsxs(_components.p,{children:[`If you include\n`,_jsx(_components.a,{href:`https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding`,children:`non-GSM characters`}),`,\nsuch as (Hindi, Greek, Korean or Arabic etc), in SMS messages, Raven will send\nthose messages with Unicode encoding. Such messages are limited to 70 characters\nand > 70 characters will be concatenated into 67 character message segments.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`For SMS sent in India, the templates need to be registered on any of the DLT\nplatforms. You should add the registered DLT Template ID in the SMS template.`})}),`\n`,_jsx(Heading,{level:`3`,id:`dynamic-content`,children:`Dynamic Content`}),`\n`,_jsxs(_components.p,{children:[`To pass dynamic or custom data in the SMS template like invoice number, user\nname, tracking link etc., you should wrap it within\n`,_jsxs(_components.a,{href:`https://handlebarsjs.com/guide/#what-is-handlebars`,children:[`handlebars `,{user_name}]}),`.\nRaven uses Handlebars.js to parse the template and all handlebar operations are\nsupported. Following Handlebars expressions are supported within templates:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Nested objects`}),`\n`,_jsx(_components.li,{children:`#if, #each, #with`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`You will need to pass the value of the variables in the data object of\n`,_jsx(_components.a,{href:`/api-reference/send-event`,children:`Send Event API`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example`})}),`\n`,_jsx(_components.p,{children:`SMS Template:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`markdown`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`markdown`,children:_jsxs(_components.code,{language:`markdown`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Hey {{user_name}}, Thank you for your Order Id #{{order.id}} of amount`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{{order.amount}}. {{#if premium}} Glad to have you as our Premium customer.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{{/if}} data object in API:`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`...,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Joe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`745`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"premium\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`additional-fields`,children:`Additional fields`}),`\n`,_jsx(_components.p,{children:`Apart from the SMS text, you can also send additional fields in the template.\nThis is useful if you want to override the “From”/“Sender ID”/“Header” that you\nconfigured while setting up the integration.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sender`})}),_jsx(_components.td,{children:`Name of the message sender (same as “From”/“Sender ID”/“Header”)`})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(_components.p,{children:[`This is how you can pass it in the `,_jsx(_components.a,{href:`/api-reference/send-event`,children:`Send Event API`}),`.\nCheck the API doc for the complete request.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`...,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"override\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` : {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:` ...,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` : {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sender\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` : `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"SMS Template","description":null,"href":"/sms/sms-template"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[3516,3517,""],[3600,3634,"`handlebars `}),`.\nR"]]},"mdxExtracts":{"tableOfContents":[{"title":"Dynamic Content","slug":"dynamic-content","depth":3,"children":[]},{"title":"Additional fields","slug":"additional-fields","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"raven","siteName":"Raven","title":"SMS Template - Raven","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T22:41:01.335Z","originalFileLocation":"sms/sms-template.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Raven\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/raven/eeRWVL43X4IHgqiq/_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/raven/eeRWVL43X4IHgqiq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/raven/eeRWVL43X4IHgqiq/_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/raven/eeRWVL43X4IHgqiq/_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/raven/eeRWVL43X4IHgqiq/_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/raven/eeRWVL43X4IHgqiq/_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/raven/eeRWVL43X4IHgqiq/_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/raven/eeRWVL43X4IHgqiq/_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/raven/eeRWVL43X4IHgqiq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"SMS Template - Raven\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Raven\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.raven.dev/sms/sms-template\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://raven.mintlify.site/_mintlify/api/og/v2?division=SMS\u0026amp;title=SMS+Template\u0026amp;theme=0a6bb37d80cbc0eb7086153e\u0026amp;signature=af44664ffcdad9b61c5cea6fb6fef56400baa00cb5de530cef8f338a0d9523dd\">\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=\"SMS Template - Raven\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://raven.mintlify.site/_mintlify/api/og/v2?division=SMS\u0026amp;title=SMS+Template\u0026amp;theme=0a6bb37d80cbc0eb7086153e\u0026amp;signature=af44664ffcdad9b61c5cea6fb6fef56400baa00cb5de530cef8f338a0d9523dd\">\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/raven/eeRWVL43X4IHgqiq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Raven\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#536DFE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.raven.dev/sms/sms-template\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sms/sms-template.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.raven.dev/#organization\",\"name\":\"Raven\",\"url\":\"https://docs.raven.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/raven/kmn_wV2dGv3NIOgZ/logo/light.webp?fit=max\u0026auto=format\u0026n=kmn_wV2dGv3NIOgZ\u0026q=85\u0026s=5bc105dd674d24adef55e1d1d4d1e94b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.raven.dev#website\",\"name\":\"Raven\",\"url\":\"https://docs.raven.dev\",\"publisher\":{\"@id\":\"https://docs.raven.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.raven.dev/sms/sms-template#webpage\",\"url\":\"https://docs.raven.dev/sms/sms-template\",\"name\":\"SMS Template\",\"dateModified\":\"2026-01-06T22:41:01.335Z\",\"isPartOf\":{\"@id\":\"https://docs.raven.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.raven.dev/sms/sms-template#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.raven.dev/sms/sms-template#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SMS\",\"item\":\"https://docs.raven.dev/sms/sending-sms\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SMS Template\",\"item\":\"https://docs.raven.dev/sms/sms-template\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.raven.dev/sms/sms-template#article\",\"headline\":\"SMS Template\",\"name\":\"SMS Template\",\"url\":\"https://docs.raven.dev/sms/sms-template\",\"mainEntityOfPage\":{\"@id\":\"https://docs.raven.dev/sms/sms-template#webpage\"},\"dateModified\":\"2026-01-06T22:41:01.335Z\",\"publisher\":{\"@id\":\"https://docs.raven.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.raven.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Raven\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Raven","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Introduction","pages":[{"title":"Home","href":"/introduction"}]},{"group":"API Reference","pages":[{"title":"Idempotent Requests","href":"/api-reference/idempotent-requests"},{"title":"Authentication ","href":"/api-reference/authentication"},{"group":"Send Event API","pages":[{"title":"Send Event","api":"POST https://api.ravenapp.dev/v1/apps/{app_id}/events/send","href":"/api-reference/send-event"},{"title":"Send Event Bulk","api":"POST https://api.ravenapp.dev/v1/apps/{app_id}/events/bulk_send","href":"/api-reference/send-event-bulk"}]},{"group":"Users API","pages":[{"title":"Create Or Update User","api":"POST https://api.ravenapp.dev/v1/apps/:app_id/users","href":"/api-reference/create-user"},{"title":"Get User Profile","api":"GET https://api.ravenapp.dev/v1/apps/{app_id}/users/{user_id}","href":"/api-reference/get-user-profile"},{"title":"Add Device","api":"POST https://api.ravenapp.dev/v1/apps/{app_id}/users/{user_id}/devices","href":"/api-reference/add-device"},{"title":"Update Device","api":"PUT https://api.ravenapp.dev/v1/apps/{app_id}/users/{user_id}/devices/{device_id}","href":"/api-reference/update-device"},{"title":"Delete Device","api":"DELETE https://api.ravenapp.dev/v1/apps/{app_id}/users/{user_id}/devices/{device_id}","href":"/api-reference/delete-device"}]}]},{"group":"Platform","pages":[{"title":"Overview","href":"/platform/overview"},{"title":"RBAC","href":"/platform/account/roles"},{"title":"Apps","href":"/platform/apps/apps"},{"title":"Environment","href":"/platform/apps/environment"},{"title":"Integrations","href":"/platform/integrations/integrations"},{"title":"Integration Rule","href":"/platform/integrations/integration-rule"},{"title":"Events","href":"/platform/events/events"},{"title":"Channel Fallback","href":"/platform/events/channel-fallback"},{"title":"Users","href":"/platform/users"},{"title":"Logs \u0026 Metrics","href":"/platform/logs-and-metrics"},{"group":"Extensions","pages":[{"title":"Overview","href":"/platform/extensions/overview"},{"title":"Razorpay","href":"/platform/extensions/razorpay"}]}]},{"group":"SMS","pages":[{"title":"Sending SMS","href":"/sms/sending-sms"},{"title":"Delivery Status","description":"Description of delivery statuses tracked for SMS.","href":"/sms/delivery-status"},{"title":"SMS Template","href":"/sms/sms-template"},{"title":"DLT Registration Steps","description":null,"href":"/sms/dlt-registration"},{"group":"SMS Integrations","pages":[{"title":"Exotel","href":"/sms/integrations/exotel"},{"title":"Gupshup","href":"/sms/integrations/gupshup"},{"title":"Kaleyra","href":"/sms/integrations/kaleyra"},{"title":"MSG91","href":"/sms/integrations/msg91"},{"title":"MessageBird","href":"/sms/integrations/message_bird"},{"title":"Plivo","href":"/sms/integrations/plivo"},{"title":"TextLocal","href":"/sms/integrations/text_local"},{"title":"Twilio","href":"/sms/integrations/twilio"},{"title":"ValueFirst","href":"/sms/integrations/valuefirst"},{"title":"Sinch","href":"/sms/integrations/sinch"},{"title":"Route Mobile","href":"/sms/integrations/route_mobile"},{"title":"Raven","href":"/sms/integrations/raven"},{"title":"2Factor","href":"/sms/integrations/2factor"},{"title":"ClickSend","href":"/sms/integrations/clicksend"}]}]},{"group":"Email","pages":[{"title":"Sending Email","href":"/email/sending-email"},{"title":"Email Template","href":"/email/email-template"},{"group":"Email Integrations","pages":[{"title":"AWS SES","href":"/email/integrations/aws_ses"},{"title":"Mailgun","href":"/email/integrations/mailgun"},{"title":"SendGrid","href":"/email/integrations/sendgrid"},{"title":"Postmark","href":"/email/integrations/postmark"},{"title":"Raven","href":"/email/integrations/raven"}]}]},{"group":"Push","pages":[{"title":"Sending Push","href":"/push/sending-push"},{"title":"Push Template","href":"/push/push-template"},{"group":"Push Integrations","pages":[{"title":"Firebase","href":"/push/integrations/fcm"},{"title":"OneSignal","href":"/push/integrations/onesignal"}]},{"group":"Client SDK","pages":[{"title":"Android SDK","href":"/push/client-sdk/android"},{"title":"iOS SDK","href":"/push/client-sdk/ios"},{"title":"Web","href":"/push/client-sdk/web"},{"title":"Flutter SDK","href":"/push/client-sdk/flutter"},{"title":"Flutter Demo App","href":"/push/client-sdk/flutter-demo-app"},{"title":"React(Web) SDK","href":"/push/client-sdk/react-js"}]}]},{"group":"WhatsApp","pages":[{"title":"Sending a WhatsApp Message","href":"/whatsapp/sending-whatsapp-message"},{"title":"WhatsApp Template","href":"/whatsapp/whatsapp-template"},{"group":"WhatsApp Integrations","pages":[{"title":"Gupshup WhatsApp","href":"/whatsapp/integrations/gupshup"},{"title":"Kaleyra WhatsApp","href":"/whatsapp/integrations/kaleyra"},{"title":"Smooch WhatsApp","href":"/whatsapp/integrations/smooch"},{"title":"Twilio WhatsApp","href":"/whatsapp/integrations/twilio"},{"title":"ValueFirst WhatsApp","href":"/whatsapp/integrations/valuefirst"},{"title":"Route Mobile WhatsApp","href":"/whatsapp/integrations/route mobile"}]}]},{"group":"Voice","pages":[{"group":"Voice Integrations","pages":[{"title":"Exotel Voice","href":"/voice/integrations/exotel"},{"title":"Twilio Voice","href":"/voice/integrations/twilio"}]}]},{"group":"In-App","pages":[{"title":"Send an In-App message","href":"/in-app/send-in-app-message"},{"title":"In-App Template","href":"/in-app/in-app-template"},{"group":"In-App Integrations","pages":[{"title":"Raven","href":"/in-app/integrations/raven"}]},{"group":"Client SDK","pages":[{"title":"Angular SDK","href":"/in-app/client-sdk/angular"},{"title":"React SDK","href":"/in-app/client-sdk/react"}]}]},{"group":"Chat","pages":[{"group":"Slack","pages":[{"title":"Send Slack Message","href":"/chat/slack/send-slack-message"},{"title":"Slack Template","href":"/chat/slack/slack-template"}]},{"group":"Telegram","pages":[{"title":"Send Telegram Message","href":"/chat/telegram/send-telegram-message"},{"title":"Telegram Template","href":"/chat/telegram/telegram-template"}]}]}]},{"anchor":"Status","href":"https://status.ravenapp.dev","icon":"wave-pulse"},{"anchor":"Channels","href":"https://raven.dev/channels","icon":"paper-plane"},{"anchor":"Support","href":"mailto:support@ravenapp.dev","icon":"envelope","color":{"light":"#0285c7","dark":"#0285c7"}}]},"basePath":"","title":"SMS Template - Raven","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BFbLClTf.js","lightbox-handle-r17bVUz3.js"]}