> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# SMS Consent

> Admin interface for viewing and managing SMS consent records — filter by status, search by phone number, and export to CSV.

The SMS Consent page at `/ce/sms/consent` provides an administrative view of SMS consent records, enabling review and export of opt-in and opt-out status for contacts.

## Overview

Navigating to `/ce/sms/consent` loads `SmsConsentPage`, gated by `ce.sms.admin`. The page shows a search field (by phone number), a tab filter (All / Consented / Opted Out / Pending), and a `SmsConsentTable`. Tab counts update with the current filter. An **Export CSV** button downloads all visible consent records to a file with fields: Phone Number, Contact Name, Status, Consent Date, Consent Method, Opt-Out Date, Opt-Out Method. The export button is disabled when no records are loaded.

## Who it's for

Permission required: `ce.sms.admin`

## Before you start

* SMS consent records are created automatically when contacts opt in or out of messaging — no manual entry is needed for standard flows.
* Use this page for audit and compliance review.

## Steps

<Steps>
  <Step title="Open SMS Consent">
    Navigate to `/ce/sms/consent` from the CE SMS navigation.
  </Step>

  <Step title="Search by phone number">
    Enter a phone number in the search field to filter consent records.
  </Step>

  <Step title="Filter by status">
    Click a tab — **All**, **Consented**, **Opted Out**, or **Pending** — to filter by consent status. Tab labels include the current count.
  </Step>

  <Step title="Export records">
    Click **Export CSV** to download the current filtered consent records. The export is disabled when no records are present.
  </Step>
</Steps>

## Key concepts

* **Consent status** — Three values: `consented`, `opted_out`, `pending`. Shown as color-coded tabs.
* **CSV export fields** — Phone Number, Contact Name, Status, Consent Date, Consent Method, Opt-Out Date, Opt-Out Method.
* **PII note** — Phone numbers and contact names in this view are personally identifiable information. Access is restricted to `ce.sms.admin`.

## Related

<Columns cols={2}>
  <Card title="Community Engagement" icon="bullhorn" href="/ce/overview">
    Community Engagement core overview.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index" />
</Columns>

<Note>
  This page documents shipped product behavior. It is not medical, legal, or
  billing advice. Verify against your organization's policies and applicable
  regulations before using it for clinical, compliance, or billing decisions.
  Protected health information (PHI) shown in the product is governed by your
  tenant's access controls and is never exposed in this documentation.
</Note>

<Accordion title="Documentation sources">
  * src/routes/ce.tsx
  * src/cores/ce/pages/SmsConsentPage.tsx
  * src/cores/ce/hooks/useSmsConsent.ts
  * src/cores/ce/components/sms/SmsConsentTable.tsx
</Accordion>
