Skip to content
Use case · SMS and telephone marketing consent

Build SMS marketing consent into your own app

To build SMS marketing consent into your own app, ask for it with its own unchecked box, state the seller and the number in the wording, and send both as facts on the session. Esign Comply records each consent with the exact language, the named seller and the number, and seals it. You send the texts: it sends none.

Read the prompt

Free plan: 10 live signatures a month and a full test mode. No card required.

Last updated

POST /v1/sessions · test mode
curl https://esigncomply.com/v1/sessions \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: text-consent-cust_7c1d" \
  -d @- <<JSON
{
  "profile": "$ESC_PROFILE_ID",
  "signer": {
    "external_id": "cust_7c1d",
    "email": "dana@example.org",
    "phone": "+13055550123",
    "class": "consumer",
    "country": "US",
    "region": "US-FL"
  },
  "documents": [
    {
      "document": "$ESC_TEXT_MESSAGE_MARKETING_CONSENT_DOCUMENT_ID",
      "version": "current"
    }
  ],
  "context": {
    "url": "http://localhost:3000/consent/texts",
    "locale": "en-US",
    "purpose": "other",
    "facts": {
      "document_category": "telemarketing_consent",
      "solicitation.seller_name": "Acme, Inc.",
      "solicitation.telephone_number": "+13055550123"
    }
  }
}
JSON
The prompt · from the generator

Which prompt builds SMS marketing consent in your AI coding tool?

The Esign Comply prompt generator produced this for marketing consent by consumers, with a Text Message Marketing Consent of type consent, on Next.js App Router with Supabase and Vercel. Three rule packs are selected, U.S. Federal, Florida and Texas, and the document category is answered as telemarketing_consent. Paste it into Cursor, Claude Code, v0, Lovable, Bolt or Replit.

The generator has no separate use case for texts and calls: this page maps to its marketing consent use case, with the Florida and Texas packs selected because they carry the rules for telephone and text solicitation. The prompt tells your tool which context.facts keys to send on every session. IDs in angle brackets are placeholders the prompt tells your tool to ask for.

Generate it for your own regions and stack
esigncomply-sms-marketing-consent-prompt.md · 2,360 words
# Esign Comply integration: marketing consent
Prompt esc_prompt_e825333129a2 · blocks 2026.11 · guidance bundled · region US
Jurisdictions: US-FED, US-FL, US-TX · mode auto · unknown U.S. state: base_only

You are adding legally significant acceptance flows to this Next.js App Router application (TypeScript, Supabase Auth and Postgres, deployed on Vercel). Esign Comply is the independent record keeper. You build every screen. The Esign Comply SDK observes the screens you build and seals the record.

Follow this prompt exactly. If something here conflicts with existing code, or you are unsure how to implement a step, stop and ask. Do not invent API methods, packages, or legal wording.

This prompt has four kinds of instruction. Keep them apart:
- "Required for the record": build all of it. Esign Comply checks these.
- "Your obligations": duties the law places on {Company}. Esign Comply does not check them. Build what code can do and list the rest in your report.
- "Recommendations": suggestions. Ask the developer before applying any that changes the product.
- "What you can send us": optional reports {Company} may file with Esign Comply.

## Context
- Packages (the only ones that exist): `esigncomply` (server), `@esigncomply/browser` (client), `@esigncomply/react` (optional hooks).
- API host: https://esigncomply.com/v1
- Environment variables (server only, never NEXT_PUBLIC_): ESIGNCOMPLY_API_KEY, ESIGNCOMPLY_WEBHOOK_SECRET
- Profiles: marketing consent = `<profile ID for marketing consent>`
- Documents: Text Message Marketing Consent = `<document ID for Text Message Marketing Consent>`
- An ID in angle brackets does not exist yet. Ask the developer for it. Do not invent IDs.
- Rule pack versions: US-FED 2026-11-22; US-FL, US-TX 2026-11-21.
- Server SDK calls return `{ data, error }` and do not throw. Check `error` every time.

## Required for the record
1. Create every session on the server with the secret key. Send only `client_token` to the browser.
2. Read `required_steps` and `advised_steps` from the session and satisfy every one. Do not hard-code steps.
3. Show the notice text directly above the action button, in the same container, visible without scrolling at 390 x 844 (CR-04).
4. Notice wording for marketing consent, verbatim, with links:
   "By checking the box and clicking Confirm, you agree to the [Text Message Marketing Consent]." (CR-02, CR-03)
5. Links to documents must be underlined and use a colour that differs from the surrounding text with a contrast ratio of at least 3:1, and at least 4.5:1 against the background. Notice text is at least 14px and never lighter than body text (CR-05, CR-06).
6. Every checkbox starts unchecked (CR-01).
7. Only one primary button inside the assent container. Any other action sits outside it (CR-07).
8. Serve each document at a stable page on this domain that renders the registered version fetched from Esign Comply, unmodified (CR-08).
9. Treat the browser result as untrusted. Grant access only after the server has confirmed the record with the secret key (step 5 below).
10. Pass an `Idempotency-Key` on session creation.
11. State routing (CR-19, CR-20): send the signer's state as `signer.region` from this application's own data, never from an IP address. Never decide in code which state's rules apply: render a state step only when `required_steps` contains it, and take state wording verbatim from `required_strings`.
12. Send these `context.facts` keys on every session (CR-24): `arbitration.act`, `document_category` (wizard answer: telemarketing_consent), `solicitation.seller_name`, `solicitation.telephone_number`. They are {Company}'s own facts, read from its plan and account data. Never guess a value.
13. State packs follow under their own labels, here and under the next three headings. None addresses every law of its state (JR-15).

US-FL Florida · pack 2026-11-21
- FL-01 (block): Esign Comply adds two exclusions to the section 9.5 screen: transactions governed by the Uniform Computer Information Transactions Act, and transactions governed by rules of judicial procedure. A blocked category returns `document_type_excluded` with this rule ID. The UCC screen notes that Florida UETA excludes the UCC except s. 671.107 and chapters 672 and 680, while the UCC's own 2025 definition of "sign" includes an electronic symbol, sound or process.
- FL-06 (block): Esign Comply refuses to seal a `consent` session unless it records the phone number authorized, an affirmative signing or checkbox act, and customer-declared disclosure text in the assent region covering automated delivery and that consent is not a condition of purchase. Send `solicitation.seller_name`, `solicitation.telephone_number`.
- FL-09 (warn): The dashboard warns if the customer turns these capture limits off.

US-TX Texas · pack 2026-11-21
- TX-01 (block): The exclusion screen blocks two Texas categories: documents produced by court reporters or shorthand-reporting firms for judicial use, and documents governed by Texas Supreme Court rules, including the court e-filing system.
- TX-11 (block): Esign Comply refuses to seal a session that captures a retina or iris scan, fingerprint, voiceprint or hand or face geometry for a commercial purpose unless notice before capture and the signer's consent are recorded.
- Not inlined (TX-05, TX-08): fetch https://esigncomply.com/docs/jurisdictions/us-tx.md

### Never
- Never pre-check a box, auto-submit, or call `.click()` on the user's behalf.
- Never treat sign-in, scrolling, or continued use as acceptance.
- Never use "By continuing" or "By clicking below" wording.
- Never put the secret key, or any call that uses it, in a client component.
- Never proxy `@esigncomply/browser` calls through this application's server.
- Never cache or copy document text into the repository. Always render the registered version.
- Never write to `esign_acceptances` from the browser.
- Never show "signed" or "accepted" in the interface before step 5 confirms it.
- Never write or change the text of the Text Message Marketing Consent.

## Your obligations
These are {Company}'s duties under the rule packs selected. Esign Comply lists them and does not perform, monitor, or verify them. The list is not exhaustive.

US-FED · pack 2026-11-22
- Customer: where another law requires {Company} to keep a record, keep an accurate, accessible copy for that period, including after export (US-31); before offering a record in court, give the adverse party reasonable written notice and access to the record and declaration (US-38). Outside this codebase.

US-FL Florida · pack 2026-11-21
- Telephone solicitor: stop text solicitations to a person within 15 days after that person replies "STOP" (FL-06). Build the on-screen part; the rest is outside this codebase.
- Business that sells sensitive personal data: obtain the consumer's prior consent and post the s. 501.715(2) notice (FL-10). Build the on-screen part; the rest is outside this codebase.

US-TX Texas · pack 2026-11-21
- Seller making telephone or text solicitations to Texas purchasers: hold a chapter 302 registration unless an exemption applies, and be able to prove any exemption claimed (TX-08). Build the on-screen part; the rest is outside this codebase.
- Person capturing a biometric identifier for a commercial purpose: inform the individual first, obtain consent, do not sell the identifier outside the statutory exceptions, and destroy it within the statutory period (TX-11). Build the on-screen part; the rest is outside this codebase.
- Controller: obtain the consumer's consent before processing sensitive data; a controller that sells sensitive data posts the s. 541.102(b) notice (TX-12). Build the on-screen part; the rest is outside this codebase.

## Recommendations
Esign Comply recommends the following. Ask the developer which to apply.

- Give the signer a clear way to decline (US-04).
- Before a material update to a document takes effect, notify signers in advance and ask for a fresh acceptance (US-18).
- Keep saving and printing open wherever a signed record is shown (US-29).
- Where minors may sign, consider an age attestation checkbox: `ceremony.ageAttested({ checkbox })` (US-42).

US-TX Texas · pack 2026-11-21
- Not inlined (TX-05): fetch https://esigncomply.com/docs/jurisdictions/us-tx.md

## What you can send us
Optional. Each report is sealed with Esign Comply's receipt time and marked as supplied by {Company}; Esign Comply does not verify it. Every field is optional and any text, JSON, or file is accepted.
Reports never affect recording, and a failed one never blocks the user's action. Suggested `data` per type: `esc.supplements.types()`.

- When the terms-update notice email is sent:
  `esc.supplements.create({ subject: { signer: signerId }, type: "notice.sent", rule_ids: ["US-18"], text, data: { channel: "email", template } })`
- Anything else worth keeping (support ticket, screenshot, policy in force): type `note`, or omit `type`.

US-FL Florida · pack 2026-11-21
- Coverage of this pack (JR-15): covers exclusions, esign_statute, online_assent, auto_renewal, cancellation, employment, marketing_consent, language, evidence_wording, evidence, privacy_capture, sector_routing. Not covered: remote_online_notarization, sellers_exempt_from_501_165, digital_bill_of_rights_large_controller_duties, breach_notice_duties, statute_of_frauds_health_care_guarantees.

US-TX Texas · pack 2026-11-21
- Coverage of this pack (JR-15): covers exclusions, attribution, evidence, contract_clauses, employment, copies, marketing_consent, evidence_wording, privacy_capture, sector_routing. Not covered: remote_online_notarization, health_spa_contracts, commercial_choice_of_law_rules, state_agency_record_rules, biometric_identifier_destruction_schedule, processor_contract_terms.

Only wire these if the developer says yes.

## Build steps

### 1. Install and configure
`npm install esigncomply @esigncomply/browser`
Create `lib/esigncomply.ts`:
```ts
import "server-only";
import { EsignComply } from "esigncomply";
export const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY!);
```
Keys go in `.env.local` and the Vercel project settings, never in chat.
Run commands in the integrated terminal. Rules file: `.cursor/rules/esigncomply.mdc`.

### 2. Database (Supabase migration)
```sql
create table public.esign_acceptances (
  id uuid primary key default gen_random_uuid(),
  user_id uuid references auth.users(id) on delete cascade,
  signer_id uuid not null,
  record_id text not null unique,
  document_id text not null,
  version_id text not null,
  purpose text not null,
  signed_at timestamptz not null,
  created_at timestamptz not null default now()
);
alter table public.esign_acceptances enable row level security;
create policy "read own" on public.esign_acceptances
  for select using (auth.uid() = user_id);
-- No insert, update, or delete policies. Only the service role writes.
```
Add `signer_id uuid unique` to the profile table.

### 3. Document pages
Create `app/legal/[slug]/page.tsx` for `text-message-marketing-consent`. Resolve `current` on session creation only. Fetch with `esc.documents.versions.getContent(documentId, versionId)`; render, print and download by the exact version ID returned on the session; the cache key includes that ID. Render inside `<article data-esc-document>` and reject stale versions before the final action. Give users a real opportunity to read the terms.

### 4. Marketing consent ceremony (`/consent/marketing`)
Server action `startMarketingConsentCeremony()`:
- `signerId` is the signed-in user's `signer_id`; create and store one with `crypto.randomUUID()` if it is missing. Never accept it from the browser. `attemptId` is a UUID made when the page first renders and reused on retry.
- Call:
```ts
const { data, error } = await esc.sessions.create({
  profile: "<profile ID for marketing consent>",
  signer: { external_id: signerId, email, class: "consumer", country, region },
  documents: [
    { document: "<document ID for Text Message Marketing Consent>", version: "current" },
  ],
  context: { url: `${origin}/consent/marketing`, locale, purpose: "other", facts },
}, { idempotencyKey: `marketing-${attemptId}` });
```
- Obtain `country` and applicable jurisdiction from the form/customer configuration; do not guess from IP.
- For U.S. signers, `region` is the state from the State field of this application's form or account data, as an ISO code such as "US-FL" or "US-TX". Add that field if it does not exist. If the state is unknown, omit `region`; Esign Comply then applies Federal rules only. Do not hard-code which state rules apply. Read `data.applied_jurisdictions`, `data.rules_fired`, and `data.required_strings` from the response and render every required string verbatim in the slot named.
- `facts` holds the keys listed under "Required for the record".
- A state without a pack returns the warning `state_pack_unavailable:<code>` and runs on Federal rules. Do not tell the user the flow meets that state's law.
- Return `data.client_token` and `data.documents` to the client.

Client component `MarketingConsentForm`:
```tsx
"use client";
import { EsignComply } from "@esigncomply/browser";
// after the server action returns clientToken:
const ceremony = await EsignComply.attach({ clientToken });
await ceremony.presentDocument({ versionId: textMessageMarketingConsentVersionId, mode: "hyperlink", link: textMessageMarketingConsentLinkRef.current });
ceremony.observeAssent({
  region: assentRef.current,    // contains notice, links, checkbox, button
  checkbox: checkboxRef.current,
  submit: submitRef.current,
});
// in the submit handler, from the user's real click:
try {
  const result = await ceremony.complete();                  // { recordId, receipt, verifyUrl }
  await finishMarketingConsent(formData, result.recordId);   // server action, step 5
} catch (err) {
  showError(err.message);                                    // typed error with rule ID
}
```
Disable the button until `ceremony.remainingSteps()` contains only "signature.applied".
Start the ceremony when the page renders, not on submit.

### 5. Server confirmation (the only place access is granted)
Server action `finishMarketingConsent(formData, recordId)`:
- `const { data: record, error } = await esc.records.get(recordId);`
- Require: no error; `record.status` is "recorded", "timestamped", or "anchored"; `record.signer.external_id` equals the signed-in user's `signer_id`; `record.livemode` equals `process.env.VERCEL_ENV === "production"`; the record lists the exact versions pinned in that session.
- Only then record the marketing preference, and insert one `esign_acceptances` row per document using the service-role client.
- If checks are inconclusive, do not record the marketing preference. Show: "We could not confirm whether your acceptance was recorded. Please wait while we check." Reconcile the existing session before requesting another act.

### 6. Webhook
`app/api/esigncomply/webhook/route.ts`, Node.js runtime. Read the raw body, then `esc.webhooks.verify(rawBody, request.headers, process.env.ESIGNCOMPLY_WEBHOOK_SECRET!)`.
Reject on failure with 400. Handle idempotently by `webhook-id`:
- `record.completed`: upsert `esign_acceptances` (covers a browser that closed early).
- `record.disputed`: flag the row and notify the admin email.
- Ignore event types you do not recognise and return 200.
Return 200 within 5 seconds.

### 7. Errors
- `ceremony.complete()` rejected with a rule ID: show the message, keep the form, do not retry automatically.
- Network failure or 5xx: show "We could not confirm whether your acceptance was recorded. Please wait while we check." Reconcile the same session and idempotency key before requesting another act. Never proceed without a record.
- `client_token_expired`: create a new session and re-attach.
- `jurisdiction_fact_required`: the error names the missing `context.facts` key and the rule. Send the fact from {Company}'s data; never invent a value.

## Verify before you report success
1. `npm run build` passes and no file under `app/**` marked "use client" imports `esigncomply` or reads ESIGNCOMPLY_API_KEY.
2. Run `npx esigncomply check --url http://localhost:3000/consent/marketing`. Repeat with `--region US-FL --region US-TX`. Fix every finding marked "block", re-running until none is left. List every finding marked "warn" in your report.
3. Confirm by test that submitting with the box unchecked does nothing, and that calling `finishMarketingConsent` with a made-up record ID does not record the marketing preference.
4. Report: files created or changed, anything in this prompt you did not implement and why, the conformance summary, each item under "Your obligations" with "built", "partly built", or "needs a process outside this codebase", and each recommendation with the developer's decision.

5 required steps

Which steps does Esign Comply require for an SMS marketing consent?

A session for a consumer in Florida on the recommended profile returns these five required_steps. The Florida pack adds no step: it adds facts the session has to carry.

Esign Comply's guidance for SMS marketing consent

An unchecked checkbox, the seller and the number

For consent to marketing texts and calls, Esign Comply recommends the checkbox method at level L1 in a ceremony of its own. The wording in the assent area names the seller, covers automated delivery, and says that consent is not a condition of purchase. Your server sends the seller's name and the authorized number as facts, and the person's state as `signer.region`.

  • Document typeconsent
  • MethodCheckbox and button
  • LevelL1, no identity step
  • method: checkboxassurance_level: L1purpose: other
  1. 01

    The SDK attaches to your opt-in

    client.attached
    The signer sees

    Your text opt-in, where the person has entered or confirmed their mobile number.

    Esign Comply records

    The page address, the SDK version, the viewport, the browser language and the time zone, reported from the signer's browser.

  2. 02

    The consent text is linked

    document.presented:<version_id>
    The signer sees

    An underlined link to your Text Message Marketing Consent page.

    Esign Comply records

    The pinned version ID, the link text and address, how the link looked on the page, and whether the signer opened it.

  3. 03

    The notice is captured

    notice.captured
    The signer sees

    The notice directly above the button, with your disclosure beside it: "By checking the box and clicking Confirm, you agree to the Text Message Marketing Consent."

    Esign Comply records

    The visible text of the assent area, the checkbox label and its unchecked starting state, the button label, the document links and the layout measurements.

  4. 04

    The person ticks the box

    intent.captured
    The signer sees

    An unchecked box labelled with the seller, the kind of messages and the number they will go to.

    Esign Comply records

    The tick, the label text, the box's starting state, and whether a real user event changed it. An untick is recorded too.

  5. 05

    The consent is given

    signature.applied
    The signer sees

    The Confirm button. Your server starts sending after it confirms the record.

    Esign Comply records

    The final act with Esign Comply's server time. The API seals the record and returns a signed receipt.

For a signer in Florida the session also returns the opt-out keyword in required_strings: STOP. It is the word a person replies with after consenting, not wording for the assent area.

Code · run before publishing

How do you record an SMS marketing consent with the Esign Comply API?

SMS marketing consent takes three pieces of code: the consent text and the profile you register once, the session your server creates with the person's state, number and the seller's name, and the ceremony the browser SDK runs on the link, the checkbox and the Confirm button.

import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY!);

export async function startTextConsentSession(origin: string, customer: { signerId: string; email: string; state: string; mobile: string }) {
  const { data: session, error } = await esc.sessions.create(
    {
      profile: process.env.ESC_PROFILE_ID!,
      signer: { external_id: customer.signerId, email: customer.email, phone: customer.mobile, class: "consumer", country: "US", region: customer.state },
      documents: [{ document: process.env.ESC_TEXT_MESSAGE_MARKETING_CONSENT_DOCUMENT_ID!, version: "current" }],
      context: { url: `${origin}/consent/texts`, locale: "en-US", purpose: "other", facts: { document_category: "telemarketing_consent", "solicitation.seller_name": "Acme, Inc.", "solicitation.telephone_number": customer.mobile } },
    },
    { idempotencyKey: `text-consent-${customer.signerId}` },
  );
  if (error) throw new Error(`${error.code}: ${error.message}`);
  // Only the client token, the API base for it and the pinned versions go to the browser.
  return { clientToken: session.client_token, apiUrl: session.api_url, documents: session.documents };
}
The number on the record

One detail of this flow

signer.phone and the fact solicitation.telephone_number are recorded exactly as your server sends them, tagged as asserted. Esign Comply sends nothing to that number and does not verify it. Leave the two Florida facts out and the session comes back with the warnings fact_missing:solicitation.seller_name and fact_missing:solicitation.telephone_number.

How the three files fit

Register once, then one session per signer

The state comes from your own form or account data, never from an IP address. Start sending from your server after esc.records.get(recordId) returns the record, and stop when the person replies STOP.

session.ts reads the profile from ESC_PROFILE_ID and the document from ESC_TEXT_MESSAGE_MARKETING_CONSENT_DOCUMENT_ID: the IDs register.ts returned. Every sample is run as printed against the API in test mode, and ceremony.ts in a real browser.

You vibe code · Esign Comply handles

What do you build for SMS marketing consent, and what does Esign Comply handle?

The messages, the sending number and your messaging provider are yours. Esign Comply records the consent event: the wording the person saw, the seller it names and the number it covers.

The opt-in

You vibe code

An unchecked box of its own, with wording that names the seller, covers automated messages and says consent is not a condition of purchase.

Esign Comply handles

Records the assent area as the browser rendered it, with the label and the unchecked starting state of the box.

The seller and the number

You vibe code

Send the seller's name and the authorized number as context.facts, and the number as signer.phone.

Esign Comply handles

Seals them in the record as asserted, and warns when a fact that a pack rule reads is missing.

The person's state

You vibe code

Send the state from your own form as signer.region. Never infer it from an IP address.

Esign Comply handles

Applies the state pack that covers that signer and returns the rules that fired on the session.

Sending and stopping

You vibe code

Send from your messaging provider, honor STOP, and report the withdrawal from your server.

Esign Comply handles

Sends no text messages. Adds a consent_withdrawn annotation to the record when you report a withdrawal.

The record

What does the Esign Comply record of an SMS marketing consent show?

One person, one consent to texts or calls, one sealed record. It labels every field as observed by Esign Comply or asserted by your app, and here that line matters: the number is yours to stand behind.

observed

Observed by Esign Comply

  • The exact version of the consent text, by SHA-256 hash, and whether the person opened the link.
  • The wording of the assent area as rendered, the checkbox label, its unchecked starting state and the person's own tick.
  • The rule packs that applied and the rules that fired for the signer's state.
  • Esign Comply's server time for every step, in order.
  • A receipt signed with ES256 keys you do not hold, an RFC 3161 timestamp from an outside authority, and an entry in a hash-chained ledger.
asserted

Asserted by your app

  • The telephone number, as signer.phone and as the fact solicitation.telephone_number.
  • The seller's name, as the fact solicitation.seller_name, and the document category.
  • The person's signer ID, email, country and state.

Your server supplies these, and the record marks them as supplied by you. Esign Comply stores them and does not verify them.

  • Signed receiptStore it in your text consents tablecomplete() returns the receipt in the browser, and your server reads the record again with esc.records.get(recordId). Save the record ID and the receipt on the row.
  • PDF, per recordEvidence reportGET /v1/records/{id}/report shows the exact wording the person agreed to, the seller and the number you supplied, the packs that applied, and the time of the consent.
  • verify_urlVerification pageEvery record has a public verification page. With an email on the session and receipts on, Esign Comply also sends the person a copy with that link.
  • ZIP, verifies offlineEvidence packageThe record, the receipt, the timestamp token, the ledger proof and the exact document bytes. Anyone you hand it to runs the open-source esigncomply-verify with no account and no network.
Your obligations · from the generator

What are your obligations when you collect an SMS marketing consent?

Consent to marketing texts and calls comes with duties on the sender in each state. These are the ones the U.S. Federal, Florida and Texas rule packs place on your company for this flow, in the prompt generator's words. Esign Comply lists them, and your team carries them out.

US-FED · pack 2026-11-22
  • Customer: where another law requires your company to keep a record, keep an accurate, accessible copy for that period, including after export (US-31); before offering a record in court, give the adverse party reasonable written notice and access to the record and declaration (US-38). Outside this codebase.
US-FL Florida · pack 2026-11-21
  • Telephone solicitor: stop text solicitations to a person within 15 days after that person replies "STOP" (FL-06). Build the on-screen part; the rest is outside this codebase.
  • Business that sells sensitive personal data: obtain the consumer's prior consent and post the s. 501.715(2) notice (FL-10). Build the on-screen part; the rest is outside this codebase.
US-TX Texas · pack 2026-11-21
  • Seller making telephone or text solicitations to Texas purchasers: hold a chapter 302 registration unless an exemption applies, and be able to prove any exemption claimed (TX-08). Build the on-screen part; the rest is outside this codebase.
  • Person capturing a biometric identifier for a commercial purpose: inform the individual first, obtain consent, do not sell the identifier outside the statutory exceptions, and destroy it within the statutory period (TX-11). Build the on-screen part; the rest is outside this codebase.
  • Controller: obtain the consumer's consent before processing sensitive data; a controller that sells sensitive data posts the s. 541.102(b) notice (TX-12). Build the on-screen part; the rest is outside this codebase.

Each line names who owes the duty and the rule it comes from, and ends with what the prompt tells your AI tool to build. "Outside this codebase" marks a duty that no code performs: it is a process your team runs. An obligation never blocks a session and never adds a step. How rules are split into classes.

Rule packs

Which rule packs change how you collect an SMS marketing consent?

Texts and calls are where state packs change a consent the most. The Florida pack requires the authorized number and the seller on the record and names the opt-out keyword. The Texas pack warns about seller registration for telephone and text solicitation. Send the person's state as signer.region and the session applies the right one.

Rule packs, their versions, how many of their rules apply to an SMS marketing consent, and the rules to know for this flow
Rule packPack versionRules that applyRules to know for this flow
United States, FederalUS-FED2026-11-2233US-08 Affirmative act of assent
CaliforniaUS-CA2026-11-211The pack's general rules
New YorkUS-NY2026-11-211The pack's general rules
FloridaUS-FL2026-11-214FL-06 Telemarketing written consentFL-10 Geolocation default and sensitive-data sale notice
TexasUS-TX2026-11-216TX-08 Telemarketing and text solicitation consent
DelawareUS-DE2026-11-211The pack's general rules
VirginiaUS-VA2026-11-212The pack's general rules
MassachusettsUS-MA2026-11-215The pack's general rules
European Union and EEAEU2026-11-2120The pack's general rules
United KingdomUK2026-11-2118The pack's general rules
SwitzerlandCH2026-11-219The pack's general rules

The counts are the rules the prompt generator resolves for this flow when a pack is selected. The prompt on this page is generated for United States, Federal, Florida, Texas (US-FED, US-FL, US-TX). Enable more packs on the profile, send the signer's country and state on the session, and the API applies the packs that cover that signer and returns the rules that fired. United States, Europe, jurisdictions guide.

Limits

When is an SMS marketing consent blocked or flagged?

Telephone marketing consent is supported as a recorded consent event, with the exact language, the named seller and the number. These are the limits of the flow.

  • By design

    Esign Comply sends no text messages

    It sends no marketing texts and no verification codes by text. Signer verification, where you turn it on, is a one-time code by email.

  • By design

    The number is asserted, not verified

    Esign Comply records the number your server sends and does not check that the person controls it. Confirm the number with your messaging provider before you rely on it.

  • Flagged

    Florida and Texas signers

    For a consumer in Florida, rule FL-06 reads the seller and the number: without them the session carries fact_missing warnings, and on a domain with blocking on it is refused. For a consumer in Texas, rule TX-08 adds a warning about seller registration.

  • Blocked

    Florida contracts made on a telephone sales call

    A consent to receive texts is not a contract of sale. A contract made from a telephone sales call, declared with document_category: "telephone_sale", is blocked for a Florida signer unless the statement Florida requires is in the assent area.

SMS and telephone marketing consent: questions developers ask

How do I record consent to marketing text messages?

Register the consent text as a document of type consent and create a session with the person's state, their number, and the facts that name the seller and the authorized number. The browser SDK records the unchecked box, the wording and the tick. The API seals one record of the consent event.

Read the quickstart

Does Esign Comply send the text messages or verify the phone number?

No. Esign Comply sends no text messages at all, and it records the number as supplied by you. You send from your own messaging provider and confirm the number there.

What does the Florida rule pack add to SMS marketing consent?

Rule FL-06. For a consumer in Florida the record has to carry the authorized number and the seller, an affirmative act, and disclosure wording in the assent area that covers automated delivery and says consent is not a condition of purchase. The pack also lists the duty to stop texts within 15 days of a STOP reply.

The U.S. rule packs

What does the Texas rule pack add to SMS marketing consent?

Rule TX-08. For a consumer in Texas the session carries a warning that seller registration for telephone and text solicitation may apply unless an exemption fits. The consent record itself follows the Federal rule on an affirmative act.

Can SMS marketing consent share a checkbox with my terms?

No. Give it its own unchecked box and its own session, apart from your terms and apart from email marketing consent. Each consent is then one clear question with one record.

Marketing consent

How do I record an opt-out from marketing texts?

Honor the STOP reply in your messaging provider, then call POST /v1/signers/{external_id}/consents/withdraw from your server with a scope such as marketing_sms. Esign Comply adds a consent_withdrawn annotation to the consent record, with its own timestamp.

Build the text opt-in yourself. Leave the record to us.

Free plan: 10 live signatures a month and a full test mode. No card required.

Cursor, Supabase, Vercel and the other product names on this page are trademarks of their owners. Esign Comply is not affiliated with them.

Working with an AI tool? This page is also available as Markdown: /use-cases/sms-marketing-consent.md