Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.
A consent flow is the mechanism by which someone explicitly agrees to receive text messages from you. The TCPA and the carriers require documented, explicit consent before you send any SMS — not just marketing or promotional traffic. Getting this right is the most common source of campaign rejection.
Keep an audit trail
You’re responsible for proving consent if a carrier audits your campaign or you face a TCPA complaint.According to CTIA guidelines, for every phone number you message, retain:
Exact disclosure text they saw at the time of opt-in
Specific campaign for which consent was provided
Phone number for which consent was granted
Method of consent (web form, keyword, paper form, verbal)
Any identifiers for the individual who provided consent (username, email, etc.)
Timestamp of when consent was given
Most platforms store this as a row per opt-in event in their own database. Surge does not store this for you.
Why consent matters
Carriers treat undocumented consent as no consent. Reviewers will only approve campaigns with a clear opt-in mechanism. After approval, high opt out rates and spam reports lead the carriers to doubt consent was received, and lead to heavy filtering of your messages. Good consent practices reduce spam complaints to keep your deliverability healthy.
Types of opt-in
Method
Description
When to use
Web form
User enters phone number on a web page, typically with a visible consent checkbox
Checkout, signup, contact forms
Keyword
User texts a keyword (e.g., JOIN) to your number
Physical signage, social media CTA
Paper form
User signs a physical form
In-person service businesses
Verbal
User provides consent verbally (with your documentation of it)
Call center, in-person interactions
What makes a consent flow valid
A valid web form consent flow has three components:
A phone number input: users enter the number they want messages sent to
An explicit, unchecked checkbox: labeled something like “I agree to receive text messages from Acme Corp”
SMS consent must be separate from general terms acceptance. You cannot use “I agree to the terms of service” as your consent mechanism for text messages. Carriers require an explicit, optional opt-in.
”Optional” is non-negotiable
The opt-in must be genuinely optional: the user must be able to complete the form or flow without providing SMS consent. This is one of the most common causes of campaign rejection.What “optional” looks like in practice:
Unchecked checkbox on a signup form — the form submits whether the box is ticked or not
A secondary option alongside SMS, such as a “More options” button offering a phone call for verification codes instead of an SMS code
A “No thanks” button or close (×) on a dedicated SMS consent prompt
Anything that forces the user to consent to SMS in order to use your product (a required checkbox, a flow that won’t proceed without opt-in) will be rejected.
Writing your consent_flow description
The consent_flow field in your campaign registration is a plain-English description of your opt-in mechanism. It should be specific enough that a reviewer could find the opt-in on your website and verify it matches your description.What to include:
Where the opt-in happens (URL, form type)
The exact wording of the checkbox or prompt
Whether the checkbox is pre-checked or unchecked by default (must be unchecked)
What disclosures are shown and where
“Users opt in on our website” is acceptable only if you include a direct link to the page where the opt-in lives, and reviewers can find the opt-in mechanism on that page. If you provide a screenshot in place of a link, explain why — usually because the form sits behind authentication. A specific description like the example below passes review:
“Users enter their phone number and provide consent during the account signup process at acme.com/signup.”
Keyword opt-in
For keyword-based opt-ins, the consent flow description should explain where the keyword appears (physical sign, website, etc.) and what the keyword is. It can be helpful to include a photo or mockup of the sign or website where the phone number and keyword are advertised.
Some high-stakes use cases (medical, financial) benefit from double opt-in, where after the user submits their number, they receive a confirmation text asking them to reply YES. This creates an additional record of consent. It’s not required by TCR but can reduce disputes.
What happens when someone opts out
When a contact texts STOP, Surge records the opt-out and fires a contact.opted_out webhook event. Sending to an opted-out contact returns an opted_out error. You cannot legally re-subscribe someone who has opted out without their explicit new consent (typically by having them text START).The HELP and START keywords are handled automatically by Surge. When a contact texts HELP, they receive a help message configured on the phone number. When they text START, they’re re-subscribed.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Surge","colors":{"primary":"#8200ff","light":"#a684ff","dark":"#7f22fe"},"logo":{"light":"https://mintcdn.com/surge-67d47b03/1YdD2Aq20HHnJtCK/logo.svg?fit=max\u0026auto=format\u0026n=1YdD2Aq20HHnJtCK\u0026q=85\u0026s=fb53e91d462980a01e9b7c046c98f339","dark":"https://mintcdn.com/surge-67d47b03/1YdD2Aq20HHnJtCK/logo.svg?fit=max\u0026auto=format\u0026n=1YdD2Aq20HHnJtCK\u0026q=85\u0026s=fb53e91d462980a01e9b7c046c98f339"},"favicon":"https://mintcdn.com/surge-67d47b03/TCCrlfgdQylYa0Zn/favicon.png?fit=max\u0026auto=format\u0026n=TCCrlfgdQylYa0Zn\u0026q=85\u0026s=9026e6be7d30dc29237a92585de3ae74","api":{"openapi":"openapi.documented.json"},"navbar":{"links":[{"href":"mailto:support@surge.app","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://hq.surge.app"}},"footer":{"socials":{"x":"https://x.com/surgeapi","github":"https://github.com/surgeapi","linkedin":"https://www.linkedin.com/company/surgeapi"}},"seo":{"metatags":{"og:image":"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d"},"indexing":"navigable"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"surge-67d47b03","hasAudioNarration":false,"actualSubdomain":"surge-67d47b03","customDomains":["docs.surge.app"],"gitSource":{"type":"github","owner":"surgeapi","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afce457b74e9cc4f2fc86cd","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"API Reference","count":64},{"language":"default","tag":"Endpoints","count":45},{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"Webhooks","count":16},{"language":"default","tag":"Events","count":14},{"language":"default","tag":"Phone numbers","count":10},{"language":"default","tag":"SDKs","count":10},{"language":"default","tag":"Register your business","count":9},{"language":"default","tag":"Accounts","count":6},{"language":"default","tag":"Users","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".nav-logo{height:2rem}"}],"page":{"pagePath":"concepts/consent-flows","slug":"/concepts/consent-flows","pageMetadata":{"title":"Consent Flows: How Users Opt In","description":"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.","href":"/concepts/consent-flows"},"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: \"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.\"\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`,blockquote:`blockquote`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A consent flow is the mechanism by which someone explicitly agrees to receive text messages from you. The TCPA and the carriers require documented, explicit consent before you send `,_jsx(_components.strong,{children:`any`}),` SMS — not just marketing or promotional traffic. Getting this right is the most common source of campaign rejection.`]}),`\n`,_jsx(Heading,{level:`2`,id:`keep-an-audit-trail`,children:`Keep an audit trail`}),`\n`,_jsx(_components.p,{children:`You’re responsible for proving consent if a carrier audits your campaign or you face a TCPA complaint.`}),`\n`,_jsx(_components.p,{children:`According to CTIA guidelines, for every phone number you message, retain:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Exact disclosure text`}),` they saw at the time of opt-in`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Specific campaign`}),` for which consent was provided`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Phone number`}),` for which consent was granted`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Method`}),` of consent (web form, keyword, paper form, verbal)`]}),`\n`,_jsxs(_components.li,{children:[`Any `,_jsx(_components.strong,{children:`identifiers`}),` for the individual who provided consent (username, email, etc.)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Timestamp`}),` of when consent was given`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Most platforms store this as a row per opt-in event in their own database. Surge does not store this for you.`}),`\n`,_jsx(Heading,{level:`2`,id:`why-consent-matters`,children:`Why consent matters`}),`\n`,_jsx(_components.p,{children:`Carriers treat undocumented consent as no consent. Reviewers will only approve campaigns with a clear opt-in mechanism. After approval, high opt out rates and spam reports lead the carriers to doubt consent was received, and lead to heavy filtering of your messages. Good consent practices reduce spam complaints to keep your deliverability healthy.`}),`\n`,_jsx(Heading,{level:`2`,id:`types-of-opt-in`,children:`Types of opt-in`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`When to use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Web form`})}),_jsx(_components.td,{children:`User enters phone number on a web page, typically with a visible consent checkbox`}),_jsx(_components.td,{children:`Checkout, signup, contact forms`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Keyword`})}),_jsx(_components.td,{children:`User texts a keyword (e.g., JOIN) to your number`}),_jsx(_components.td,{children:`Physical signage, social media CTA`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Paper form`})}),_jsx(_components.td,{children:`User signs a physical form`}),_jsx(_components.td,{children:`In-person service businesses`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Verbal`})}),_jsx(_components.td,{children:`User provides consent verbally (with your documentation of it)`}),_jsx(_components.td,{children:`Call center, in-person interactions`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-makes-a-consent-flow-valid`,children:`What makes a consent flow valid`}),`\n`,_jsx(_components.p,{children:`A valid web form consent flow has three components:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A phone number input`}),`: users enter the number they want messages sent to`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`An explicit, unchecked checkbox`}),`: labeled something like “I agree to receive text messages from Acme Corp”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Required disclosures`}),` shown near the checkbox (see `,_jsx(_components.a,{href:`/concepts/required-disclosures`,children:`Required Disclosures`}),`)`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`SMS consent must be separate from general terms acceptance.`}),` You cannot use “I agree to the terms of service” as your consent mechanism for text messages. Carriers require an explicit, optional opt-in.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`”optional”-is-non-negotiable`,children:`”Optional” is non-negotiable`}),`\n`,_jsxs(_components.p,{children:[`The opt-in must be genuinely optional: the user must be able to complete the form or flow `,_jsx(_components.strong,{children:`without`}),` providing SMS consent. This is one of the most common causes of campaign rejection.`]}),`\n`,_jsx(_components.p,{children:`What “optional” looks like in practice:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unchecked checkbox`}),` on a signup form — the form submits whether the box is ticked or not`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A secondary option`}),` alongside SMS, such as a “More options” button offering a phone call for verification codes instead of an SMS code`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A “No thanks” button or close (×)`}),` on a dedicated SMS consent prompt`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Anything that forces the user to consent to SMS in order to use your product (a required checkbox, a flow that won’t proceed without opt-in) will be rejected.`}),`\n`,_jsxs(Heading,{level:`2`,id:`writing-your-consent_flow-description`,children:[`Writing your `,_jsx(_components.code,{children:`consent_flow`}),` description`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`consent_flow`}),` field in your campaign registration is a plain-English description of your opt-in mechanism. It should be specific enough that a reviewer could find the opt-in on your website and verify it matches your description.`]}),`\n`,_jsx(_components.p,{children:`What to include:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Where the opt-in happens (URL, form type)`}),`\n`,_jsx(_components.li,{children:`The exact wording of the checkbox or prompt`}),`\n`,_jsx(_components.li,{children:`Whether the checkbox is pre-checked or unchecked by default (must be unchecked)`}),`\n`,_jsx(_components.li,{children:`What disclosures are shown and where`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`“Users opt in on our website” is acceptable `,_jsx(_components.strong,{children:`only`}),` if you include a direct link to the page where the opt-in lives, and reviewers can find the opt-in mechanism on that page. If you provide a screenshot in place of a link, explain why — usually because the form sits behind authentication. A specific description like the example below passes review:`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`“Users enter their phone number and provide consent during the account signup process at acme.com/signup.”`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`keyword-opt-in`,children:`Keyword opt-in`}),`\n`,_jsx(_components.p,{children:`For keyword-based opt-ins, the consent flow description should explain where the keyword appears (physical sign, website, etc.) and what the keyword is. It can be helpful to include a photo or mockup of the sign or website where the phone number and keyword are advertised.`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`“Users consent by texting JOIN to +18015559876 after seeing our in-store signage. Signs look like this: `,_jsx(_components.a,{href:`https://drive.google.com/file/d/eXaMpLeFiLeId/view?usp=sharing`,children:`https://drive.google.com/file/d/eXaMpLeFiLeId/view?usp=sharing`}),`”`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`double-opt-in`,children:`Double opt-in`}),`\n`,_jsx(_components.p,{children:`Some high-stakes use cases (medical, financial) benefit from double opt-in, where after the user submits their number, they receive a confirmation text asking them to reply YES. This creates an additional record of consent. It’s not required by TCR but can reduce disputes.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-happens-when-someone-opts-out`,children:`What happens when someone opts out`}),`\n`,_jsxs(_components.p,{children:[`When a contact texts STOP, Surge records the opt-out and fires a `,_jsx(_components.a,{href:`/api-reference/webhooks/contact/opted_out`,children:_jsx(_components.code,{children:`contact.opted_out`})}),` webhook event. Sending to an opted-out contact returns an `,_jsx(_components.code,{children:`opted_out`}),` error. You cannot legally re-subscribe someone who has opted out without their explicit new consent (typically by having them text START).`]}),`\n`,_jsx(_components.p,{children:`The HELP and START keywords are handled automatically by Surge. When a contact texts HELP, they receive a help message configured on the phone number. When they text START, they’re re-subscribed.`})]})}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":"Consent Flows: How Users Opt In","description":"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.","href":"/concepts/consent-flows"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Keep an audit trail","slug":"keep-an-audit-trail","depth":2,"children":[]},{"title":"Why consent matters","slug":"why-consent-matters","depth":2,"children":[]},{"title":"Types of opt-in","slug":"types-of-opt-in","depth":2,"children":[]},{"title":"What makes a consent flow valid","slug":"what-makes-a-consent-flow-valid","depth":2,"children":[{"title":"”Optional” is non-negotiable","slug":"”optional”-is-non-negotiable","depth":3,"children":[]}]},{"title":"Writing your consent_flow description","slug":"writing-your-consent_flow-description","depth":2,"children":[]},{"title":"Keyword opt-in","slug":"keyword-opt-in","depth":2,"children":[]},{"title":"Double opt-in","slug":"double-opt-in","depth":2,"children":[]},{"title":"What happens when someone opts out","slug":"what-happens-when-someone-opts-out","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"surge-67d47b03","siteName":"Surge","title":"Consent Flows: How Users Opt In - Surge","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T18:40:51.652Z","originalFileLocation":"concepts/consent-flows.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Surge\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Consent Flows: How Users Opt In - Surge\">\u003cmeta data-mint-head property=\"og:description\" content=\"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Surge\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.surge.app/concepts/consent-flows\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d\">\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=\"Consent Flows: How Users Opt In - Surge\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d\">\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/surge-67d47b03/sXzShSiekorghOlZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Surge\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8200ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.surge.app/concepts/consent-flows\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/consent-flows.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.surge.app/#organization\",\"name\":\"Surge\",\"url\":\"https://docs.surge.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/surge-67d47b03/1YdD2Aq20HHnJtCK/logo.svg?fit=max\u0026auto=format\u0026n=1YdD2Aq20HHnJtCK\u0026q=85\u0026s=fb53e91d462980a01e9b7c046c98f339\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.surge.app#website\",\"name\":\"Surge\",\"url\":\"https://docs.surge.app\",\"publisher\":{\"@id\":\"https://docs.surge.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.surge.app/concepts/consent-flows#webpage\",\"url\":\"https://docs.surge.app/concepts/consent-flows\",\"name\":\"Consent Flows: How Users Opt In\",\"description\":\"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.\",\"dateModified\":\"2026-11-15T18:40:51.652Z\",\"isPartOf\":{\"@id\":\"https://docs.surge.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.surge.app/concepts/consent-flows#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.surge.app/concepts/consent-flows#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Concepts\",\"item\":\"https://docs.surge.app/concepts/sms-segments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Consent Flows: How Users Opt In\",\"item\":\"https://docs.surge.app/concepts/consent-flows\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.surge.app/concepts/consent-flows#article\",\"headline\":\"Consent Flows: How Users Opt In\",\"name\":\"Consent Flows: How Users Opt In\",\"description\":\"Valid opt-in methods, what makes a consent flow carrier-compliant, and how to write the consent_flow description.\",\"url\":\"https://docs.surge.app/concepts/consent-flows\",\"mainEntityOfPage\":{\"@id\":\"https://docs.surge.app/concepts/consent-flows#webpage\"},\"image\":\"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d\",\"dateModified\":\"2026-11-15T18:40:51.652Z\",\"publisher\":{\"@id\":\"https://docs.surge.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.surge.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Surge\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Surge\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/consent-flows.md","siteName":"Surge","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Get started","pages":[{"title":"What is Surge","href":"/overview/what-is-surge"},{"title":"How Surge is Organized","href":"/overview/how-surge-is-organized"},{"title":"Send Your First Message","href":"/quickstart"}]},{"group":"Register your business","pages":[{"title":"Register Your Business","href":"/registration/index"},{"title":"Register via API","href":"/registration/api-walkthrough"},{"title":"Canonical Schema Reference","href":"/registration/schema-reference"},{"title":"Register via Dashboard","href":"/registration/dashboard"},{"title":"Building on Surge: One Account per Customer","href":"/registration/one-account-per-customer"},{"title":"Avoiding Rejection: Patterns from Real Registration Reviews","href":"/registration/avoiding-rejection"},{"title":"Sole Proprietor Path","href":"/registration/sole-proprietor"},{"title":"Toll-Free Verification","href":"/registration/toll-free"},{"title":"Fixing a Rejected or Changes-Needed Campaign","href":"/registration/fixing-rejected"}]},{"group":"Sending messages","pages":[{"title":"Send to One Person","href":"/sending/send-one"},{"title":"Send to Many People","href":"/sending/send-many"},{"title":"Ongoing Conversations","href":"/sending/conversations"},{"title":"Track Message Delivery","href":"/sending/track-delivery"},{"title":"Handle Failures","href":"/sending/handle-failures"}]},{"group":"Receiving messages \u0026 webhooks","pages":[{"title":"Receiving Messages \u0026 Webhooks","href":"/receiving/index"},{"title":"Webhook Events","href":"/receiving/events"},{"title":"Two-Way Messaging Patterns","href":"/receiving/two-way"}]},{"group":"Phone numbers","pages":[{"title":"Purchasing a Number","href":"/phone-numbers/purchasing"},{"title":"Importing a Number","href":"/phone-numbers/importing"},{"title":"International Numbers","href":"/phone-numbers/international"},{"title":"Attaching a Number to a Campaign","href":"/phone-numbers/attaching"}]},{"group":"Verifications","pages":[{"title":"Send and verify a code","href":"/verifications/send-and-verify"},{"title":"Usage patterns and delivery gotchas","href":"/verifications/usage-patterns"}]},{"group":"Channels roadmap","pages":[{"title":"RCS and WhatsApp","href":"/channels-roadmap/rcs-and-whatsapp"},{"title":"Voice","href":"/channels-roadmap/voice"}]},{"group":"Embeddable UI components","pages":[{"title":"Embeddable UI Components","href":"/embeddable/index"},{"title":"Working with Users","href":"/embeddable/users"},{"title":"Inbox component","href":"/embeddable/inbox"},{"title":"Conversation Component","href":"/embeddable/conversation"},{"title":"Unread Count Component","href":"/embeddable/unread-count"}]},{"group":"Concepts","pages":[{"title":"SMS Segments \u0026 Encoding","href":"/concepts/sms-segments"},{"title":"The Campaign Registry (TCR) and Becoming a CSP","description":"What TCR is, how Surge submits your registrations as your CSP, and when becoming a CSP yourself makes sense.","href":"/concepts/tcr"},{"title":"Consent Flows: How Users Opt In","href":"/concepts/consent-flows"},{"title":"Required Disclosures and Opt-In Templates","description":"The three required SMS disclosures, where to place them, and copy-ready opt-in templates for common use cases.","href":"/concepts/required-disclosures"},{"title":"Deliverability","href":"/concepts/deliverability"}]}]},{"anchor":"SDKs","icon":"code","pages":[{"title":"SDKs","href":"/sdks"}]},{"anchor":"API Reference","icon":"terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"anchor":"Resources","icon":"folder-open","pages":[{"title":"Resources","href":"/resources/hipaa"}]}]},"basePath":"","title":"Consent Flows: How Users Opt In - Surge","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}