--- title: "Date-based Consent for Email, SMS, and WhatsApp" slug: "date-based-consent-for-email-sms-and-whatsapp" description: "Insider One date-based consent stores email, SMS, and WhatsApp subscribe and unsubscribe dates per user, so the decision with the newest date wins." updated: 2026-12-04T12:36:00Z published: 2026-12-04T12:36:00Z canonical: "academy.insiderone.com/date-based-consent-for-email-sms-and-whatsapp" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Date-based Consent for Email, SMS, and WhatsApp Insider One keeps each user's consent for email, SMS, and WhatsApp together with the dates of the user's decisions. When consent arrives from several sources, the decision with the newest date wins, no matter in which order the requests reach Insider One. A delayed sync or a re-sent old list cannot undo a newer unsubscribe. Each user profile has one consent object per channel. It shows the subscription status, the last subscribe and unsubscribe dates, whether the user can be reached on the channel and, if not, why. Every change is recorded as an event that you can use in segments, journeys, and exports. > [!NOTE] > Date-based consent is turned on per channel for your account. Contact the Insider One team to turn it on. > [!NOTE] > **Available for new accounts.** Date-based consent can be turned on only for accounts that start using Insider One with it. Once it is on for a channel, it cannot be turned off. Everything in this article applies only to the channels that date-based consent is on for. On a channel where it is off, the panel and the APIs behave as they did before. **In this article:** - [Who uses it](/v1/docs/date-based-consent-for-email-sms-and-whatsapp#who-uses-it) - [How it works](/v1/docs/date-based-consent-for-email-sms-and-whatsapp#how-it-works) - [The consent object](/v1/docs/date-based-consent-for-email-sms-and-whatsapp#the-consent-object) - [Events Insider One records](/v1/docs/date-based-consent-for-email-sms-and-whatsapp#events-insider-one-records) - [User Profile](/v1/docs/date-based-consent-for-email-sms-and-whatsapp#user-profile) - [Use consent in segments, journeys, and exports](/v1/docs/date-based-consent-for-email-sms-and-whatsapp#use-consent-in-segments-journeys-and-exports) - [Things to know](/v1/docs/date-based-consent-for-email-sms-and-whatsapp#things-to-know) ## Who uses it - **Developers and integration teams** who send consent to Insider One through the APIs, an integration, or a file upload. - **Marketers** who build segments, journeys, and exports on subscription status, consent dates, and reachability. ## How it works #### The newer date wins If the last subscribe date is newer than the last unsubscribe date, the user is subscribed. Otherwise, the user is unsubscribed. A user with neither date is never_subscribed. #### On a tie, unsubscribe wins When both dates are the same, the user is unsubscribed, so no message goes out when the decision is unclear. #### An older date is kept as history A subscribe or unsubscribe date older than the one that decides the status does not change the status. #### A date alone is a decision last_unsubscription_date on its own means unsubscribe. last_subscription_date on its own means subscribe. If both arrive together, the newer one decides. #### optin without a date uses the time of the request If it changes the user's status, for example optin: false for a subscribed user, the request time becomes the date of the decision. If the user is already in that state, for example optin: true for a user who is already subscribed, nothing changes: the stored date stays, and no event fires. #### Dates must be valid Send dates as RFC 3339 strings, for example 2026-11-10T09:00:00Z. Insider One stores them in UTC. A date more than five minutes in the future is rejected. #### Consent belongs to an address Consent is given for a specific email address or phone number. When a user's email address or phone number changes, that channel resets to never_subscribed, and the user needs to give consent again for the new address. A consent dated before the address change is not applied to the new address. #### Consent and reachability are separate A user who bounced or marked a message as spam stays subscribed, because they never withdrew consent, but cannot be reached on the channel. The reason is shown in unreachability_reasons. ## The consent object Each profile has one object per channel: **email_subscription**, **sms_subscription**, and **whatsapp_subscription**. These are default attributes. They cannot be deleted and do not count against your attribute limits. | Key | Type | Who writes it | Meaning | | --- | --- | --- | --- | | subscription_status | string | Insider One | subscribed, unsubscribed, or never_subscribed, calculated from the dates | | optin | boolean | You | The current opt-in, always equal to what the dates say | | last_subscription_date | datetime | You | The last subscribe | | last_unsubscription_date | datetime | You | The last unsubscribe. Kept after the user subscribes again | | double_optin | string, email only | You | "pending", "true", or "false" | | unsubscribe_source | string | You | Where the unsubscribe came from, for example keyword | | reachable | boolean | Insider One | Whether the user can be reached on this channel | | unreachability_reasons | list | Insider One | Why the user cannot be reached | | reachability_change_date | datetime | Insider One | When reachable last changed | You cannot send the keys that Insider One calculates (**subscription_status**, **reachable**, **unreachability_reasons**, and **reachability_change_date**). You also cannot delete a single key, for example, only **last_unsubscription_date**. You can delete the whole object: the channel then resets to **never_subscribed**, and the **subscription_change** event fires with action: **consent_delete**. **Example profile:** ```json {  "email_subscription": {    "subscription_status": "unsubscribed",    "optin": false,    "last_subscription_date": "2026-11-01T09:00:00Z",    "last_unsubscription_date": "2026-11-10T09:00:00Z",    "unsubscribe_source": "link",    "reachable": false,    "unreachability_reasons": ["opted_out", "global_unsubscribe"],    "reachability_change_date": "2026-11-10T09:00:00Z"  } } ``` ### Double opt-in values **double_optin** is used only for email, and it affects reachability only if your account uses [email double opt-in](/v1/docs/introduction-to-email-double-opt-in). | double_optin | Meaning | Reachable on a double opt-in account? | | --- | --- | --- | | "pending" | The confirmation email was sent, and the user has not confirmed yet | No, reason double_optin_missing | | "true" | The user confirmed their email address | Yes, if nothing else blocks it | | "false" | The user declined the confirmation | No, reason double_opt_out | | Not set | No confirmation information yet | No, reason double_optin_missing | On a single opt-in account, **double_optin** is stored but does not change whether the user can be reached. ### Legacy opt-in attributes The existing opt-in attributes keep working. Insider One keeps them equal to the consent object on every write, in both directions. | Channel | Attributes | Subscribed | Unsubscribed | | --- | --- | --- | --- | | Email | email_optin + global_unsubscribe | true, 0 | false, 1 | | SMS | sms_optin + sms_opt_out_user | true, false | false, true | | WhatsApp | whatsapp_optin + wa_opt_out_user | true, false | false, true | ### Unreachability reasons A user is reachable only when the list is empty. Every reason that applies is listed. | Reason | Channel | When | | --- | --- | --- | | optin_missing | All | The user never subscribed | | opted_out | All | The user unsubscribed | | global_unsubscribe | Email | Shown with opted_out when the user unsubscribed from email | | gdpr_opted_out | All | The user's gdpr attribute is false | | bounced | Email | The address bounced | | spam | Email | The user marked a message as spam | | invalid_email | Email | The email address is invalid | | invalid_sms_number | SMS | The phone number is invalid for SMS | | address_missing | All | The profile has no address for the channel | | keyword_opt_out | SMS, WhatsApp | The user unsubscribed with a keyword such as STOP | | double_optin_missing | Email | Your account uses double opt-in, and the user has not confirmed yet | | double_opt_out | Email | Your account uses double opt-in, and double_optin is "false" | ## Events Insider One records Insider One records these two events for every consent change, whichever way the consent was sent: the consent object, the consent APIs, the SDKs, or a **subscription_change** event you sent. You can use them in segments, journeys, and exports. They are kept for seven years, even when the user's profile is deleted. To send a decision as an event, see [Send consent as a subscription_change event](/v1/docs/send-date-based-consent-with-the-upsert-api). ### subscription_change event Fires when the subscription status changes. A request that changes nothing fires no event. | Parameter | Meaning | | --- | --- | | subscription_channel | name, address, and address_type. The address is personal data and is not shown in segments | | action | subscribe, resubscribe, unsubscribe, address_change, consent_delete, anonymization | | status_change | previous and new status | | subscription_dates | Both dates after the change | | unsubscribe_source | On unsubscribes | | change_origin | direct, or shared_address when the change came from another profile with the same address | | effective_date | When the user made the decision | | received_date | When Insider One received it | | collection_point, source | Where the change came from | | reason, campaign_id, variant_id, campaign_name, source_event_id | Included when the write that caused the change carried them | **action** is **subscribe** when the user subscribes to the channel for the first time, and resubscribe when they subscribe again after an earlier unsubscribe. For example, use resubscribe to start a "welcome back" journey for returning subscribers and a welcome journey on subscribe for new ones. ### reachability_change event Fires when **reachable** changes. It carries the channel, **status_change** (**reachable** or **unreachable**), one main **trigger** (for example, **subscription_change** for a status change, **bounce**, or **double_optin_change**), the reasons added and removed, and the same date and origin parameters. You cannot send **reachability_change**, and you cannot change or delete either event. **Example: a first subscribe** A user subscribes to email for the first time. Insider One records both events with these parameters. **subscription_change**: ```json {  "subscription_channel": {    "name": "email",    "address": "jane@example.com",    "address_type": "email"  },  "action": "subscribe",  "status_change": {    "previous": "never_subscribed",    "new": "subscribed"  },  "effective_date": "2026-10-20T08:55:00Z",  "received_date": "2026-10-20T09:00:00Z" } ``` **reachability_change**: ```json {  "subscription_channel": {    "name": "email",    "address": "jane@example.com",    "address_type": "email"  },  "status_change": {    "previous": "unreachable",    "new": "reachable"  },  "trigger": "subscription_change",  "unreachability_reasons_change": {    "added": [],    "removed": ["optin_missing"]  },  "effective_date": "2026-10-20T08:55:00Z",  "received_date": "2026-10-20T09:00:00Z" } ``` ## User Profile ### Reachability tooltips The channel's reachability tooltip adds one line for the user's latest decision: - **Subscribed**: "Last Subscription Date: {date} (UTC)" - **Unsubscribed**: "Last Unsubscription Date: {date} (UTC)" Dates are shown as **DD.MM.YYYY HH:mm**. A user who never subscribed has no date line. ### View All User Attributes **Email Subscription**, **SMS Subscription**, and **WhatsApp Subscription** are pinned at the top as expandable objects, with these rows: - Subscription Status: Subscribed, Unsubscribed, Never subscribed, or Double opt-in pending - Opt-in - Last Subscription Date - Last Unsubscription Date - Unsubscribe Source - Double Opt-In (email only, when your account uses double opt-in) - Reachable - Unreachability Reasons - Reachability Change Date ### Consent events **Events > Consent** lists the user's consent changes, newest first, with the columns **Consent Date (UTC)**, **Consent Activity**, and **Source**. - A dated change reads, for example, "Email subscribed" or "SMS unsubscribed". - A change from a panel upload shows the source **Panel Upload**, with **Static Segment** or **Global Unsubscribe** under it. You can filter on **Panel Upload** in the **Sources** list. ## Use consent in segments, journeys, and exports - **Segment on dates:** for example, users who unsubscribed from email in the last 30 days (last_unsubscription_date), or who subscribed to SMS this week (last_subscription_date). - **Segment on reachability:** users who can be reached (reachable), or who cannot be reached for a given reason (unreachability_reasons, for example, bounced). - **Start a journey on a consent change:** for example, a win-back journey on the subscription_change event with action = unsubscribe, or a "welcome back" journey on action = resubscribe. - **Email double opt-in:** if your account uses double opt-in, a new subscriber is subscribed but not reachable until they confirm, with the reason double_optin_missing. The confirmation makes them reachable and fires reachability_change. Switching your account between single and double opt-in does not change anyone's status and fires no event. ## Things to know - **Reachability Change Date is empty for users who were never reachable.** It is set only when **reachable** changes. A new user starts as not reachable, so: - A user created with an opt-in becomes reachable, and the date is the time of the opt-in. - A user created already unsubscribed (for example, through Global Unsubscribe, an email_optin: false, or a global_unsubscribe: 1 request) stays not reachable, so the date stays empty and no reachability_change fires. - A user created with only an address and no consent is never_subscribed with the reason optin_missing, and the date stays empty. - A new reason added to a user who is already not reachable does not change the date. - **A consent object sent for a channel that is not turned on is ignored.** The legacy opt-in attributes in the same request are written as usual. - **Conflicting legacy attributes are read as an unsubscribe.** If a request sends a pair that disagrees with itself, for example email_optin: true with global_unsubscribe: 1, the user is unsubscribed, and both attributes are written to match. - **Legacy opt-in attributes carry no date.** An email_optin, sms_optin, or whatsapp_optin written through the API, the Web SDK, or the Mobile SDKs is dated at the time Insider One receives it, so the last write wins. To send a dated consent, use the consent object, the consent APIs, or the subscription_change event. - **With one email per user, a consent for a different email is rejected.** If your identity settings keep one email per user, a consent sent with a different email than the one on the profile is rejected. Update the email first, then send the consent. - **Without email suppression, profiles that share an email can differ.** If your account does not use address-level email suppression, a user who unsubscribes on one profile can stay subscribed on another profile with the same email. - **Dashboard counts use the legacy attributes.** Reachability counts in dashboards and statistics are calculated from the legacy opt-in attributes, not from the consent object. - **All panel dates are UTC.** Date fields, the upload time, and the dates shown on the profile and in lists are UTC. A date without a time is 00:00:00. - **The upload date fills only empty cells.** A date in your file always wins over the fill option. - **Global Unsubscribe needs a date.** A user without a valid unsubscribe date is not added to Global Unsubscribe. In Static Segment Upload, the same user is added to the segment, and only their subscription status is not updated. - **Old Global Unsubscribe rows have no date.** Users added before date-based consent was turned on show no Last Unsubscription Date until they are written again. - **A 200 from the consent APIs is not the final outcome.** Checks against the stored profile, for example, an older date, happen after the response and are recorded in upsert monitoring. - **WhatsApp is API and panel.** WhatsApp dates are supported in the consent APIs, Static Segment Upload, Add Single User, and Global Unsubscribe.