# Compliance: consent, do-not-call, disclosures and Shabbat

> What MoreVoice checks before every outbound call in Israel: the call's purpose, §30A marketing consent, the do-not-call list and national registry, AI and recording disclosure, opt-out, and calling hours around Shabbat and holidays; and how to keep consent and the do-not-call list in sync over the API.

Israel's Communications Law (§30A, the "spam law") governs marketing calls, and it applies to calls an AI makes just as it does to people. MoreVoice builds the rules into the dialer: **every outbound call leg passes one compliance decision before it is placed**, whether a campaign dials it, the AI places it, a person dials it, or it is a transfer, consultation or added participant.

> **You are the advertiser**
>
> MoreVoice gives you the controls and keeps the records. Under §30A the business that makes the call is the advertiser and stays responsible for having consent and for the content of its calls. This page explains how the product behaves; it isn't legal advice. Have counsel review your use, and read the [Acceptable Use Policy](https://morevoice.ai/en/legal/aup/), which every outbound call must follow.

Your supervisors set these rules up in the app; the help centre's [§30A compliance article](https://help.morevoice.ai/en/campaigns/compliance/) walks them through it, and [the national registry article](https://help.morevoice.ai/en/campaigns/national-registry/) connects the registry. This page is the developer's view: what the platform enforces, and [the API](#over-the-api) that keeps your consent records and do-not-call list in sync with your systems.

## The call's purpose

Every outbound call has a purpose, and the purpose decides which checks run:

| Check | `marketing` | `service` | `survey` |
|---|---|---|---|
| Internal do-not-call list | Blocks | Blocks | Blocks |
| §30A consent on record | Required | — | — |
| National do-not-call registry (Israeli numbers) | Blocks registered numbers | — | — |
| AI and recording disclosure | On by default | Optional | Optional |

A campaign has one purpose for all its calls. A call placed by the AI or by a person is a `service` call unless it says otherwise. Destinations that aren't phone numbers (a SIP address or an internal extension) aren't checked against the lists.

## The decision, step by step

1. **Internal do-not-call list.** If the number is on your list, the call is blocked, whatever its purpose. If the list can't be read, the call is blocked too: MoreVoice never dials when it can't check.

   A supervisor can allow **one** call to a listed number, placed by a person or by the AI at a person's request, within the next 30 minutes and with a written reason. The override is recorded in the audit log, and it never applies to campaigns or to the national registry.

2. **Consent (marketing only).** The number needs an active marketing consent record. Campaigns check consent per contact, from the consent column of the import or a consent record; contacts without it are skipped with the reason `no-consent`. This can't be turned off.

3. **National registry (marketing to Israeli numbers only).** Once you connect the registry in **National do-not-call registry**, MoreVoice checks marketing numbers against it:
   - a registered number is blocked;
   - an answer is reused for up to 14 days (configurable up to 15, the legal limit) and checked again after that;
   - an hourly pre-flight checks the next 24 hours of campaign contacts ahead of time, so dialling rarely waits;
   - if the registry can't answer and there is no recent answer, the call is blocked by default (**Block when the registry can't answer**).

A blocked call isn't placed. It is written to the audit log (`outbound.blocked`, with the reason `dnc`, `no-consent`, `registry` or `registry-unavailable`), and the app's dial request answers `403`.

Over the API, `POST /v1/calls` requires a `purpose`, and a blocked call answers `403` with an error of type `compliance_error` whose `code` names the rule (`dnc_listed`, `consent_missing`, `registry_listed`, `registry_unavailable` or `compliance_blocked`) and whose `details.verdict` lists every check: see [outbound calls](https://docs.morevoice.ai/guides/outbound-calls/#purpose-and-compliance).

## Do-not-call list

The list is checked when a contact list is imported and again right before every dial, because a number may have been added in between. Adding a number also takes it out of every campaign where it is still waiting to be called.

Numbers reach the list by hand, from an imported file, through the API, or when the person on a call opts out (below). You manage the list under **Settings › Compliance**.

## Opt-out during a call

On campaign calls, people can ask not to be called again in three ways:

- **Saying it.** A list of opt-out phrases ("תורידו אותי", "הסירו אותי", "אל תתקשרו אליי" and more) is matched in what the person says, ignoring punctuation and niqqud. "לא להסיר אותי" is not an opt-out.
- **Pressing a key.** `9` by default; a campaign can choose its own key.
- **Asking the AI in other words.** The AI agent has an opt-out tool for wordings the phrase list doesn't cover.

Any of the three adds the number to the do-not-call list at once, speaks a confirmation ("בסדר גמור, הסרנו את המספר שלך מרשימת החיוג…"), ends the call (end reason `opted-out`), and records the outcome. Your webhook endpoints receive a [`contact.opted_out`](https://docs.morevoice.ai/webhooks/events/#contact.opted_out) event (`dnc.added` in the legacy names), so your CRM can stop calling too.

## Disclosure

On campaign calls, the AI can say a disclosure line before its first message. The default is "שלום, זוהי שיחה ממערכת בינה מלאכותית, והשיחה מוקלטת" ("Hello, this is a call from an artificial-intelligence system, and the call is recorded"). It is on by default for marketing campaigns; service and survey campaigns can turn it on, and you can change the text.

## Calling hours, Shabbat and holidays

Campaigns dial only when every time rule allows it:

- **Global calling hours**, which no campaign can exceed. The default is Sunday to Thursday 08:00–21:00 and Friday 08:00–14:00, Israel time.
- **The campaign's own windows**, in each contact's time zone. They can only narrow the global hours.
- **Shabbat and Yom Tov.** No calls from candle lighting until havdalah, on the Israeli calendar, with an extra margin before candle lighting (60 minutes by default). Multi-day holidays next to Shabbat count as one period.
- **The campaign's start and end dates.**

When a rule says no, the dialer waits for the next moment every rule allows. A campaign whose windows never overlap the global hours in the next three weeks can't start. Scheduled callbacks follow the same calling hours unless you give them their own.

## Over the API

Your CRM, sign-up forms and unsubscribe links are where consent is given and withdrawn. Keep MoreVoice in step with them through `/v1/consents` and `/v1/dnc`, and the dialer enforces whatever they say on the next call. The key needs the `consents:write` and `dnc:write` scopes (the **Campaigns integration** preset has both).

> **Live keys only for changes**
>
> The do-not-call list and consent records are your live compliance data: the dialer reads them for every call. A test key can read them and run checks, but adding or removing an entry needs a live key (`403 live_only`), so a test integration can never add consent evidence or lift an opt-out by mistake.

### Record consent

Record a marketing consent when the person gives it, with where it was given and what proves it: the form's URL and the tick box, a recording reference, a signed document's ID. Up to 1,000 numbers per request, in any common format:

**cURL**

```sh
# Record the marketing consent (§30A) your sign-up form collected, with what proves it.
curl https://api.morevoice.ai/v1/consents \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phones": ["+972501234567", "052-765-4321"],
    "source": "web_form",
    "evidence": "https://example.com/forms/newsletter (checkbox, IP 198.51.100.7)",
    "granted_at": "2026-10-30T12:00:00.000Z"
  }'
```

**Node.js**

```ts title="record-consent.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

// Record the marketing consent (§30A) your sign-up form collected, with what proves it.
const batch = await mv.consents.create({
	phones: ["+972501234567", "052-765-4321"],
	source: "web_form",
	evidence: "https://example.com/forms/newsletter (checkbox, IP 198.51.100.7)",
	granted_at: "2026-10-30T12:00:00.000Z",
});
console.log("recorded", batch.recorded, "invalid", batch.invalid);
```

**Python**

```python title="record_consent.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}

# Record the marketing consent (§30A) your sign-up form collected, with what proves it.
response = requests.post(
    f"{API}/consents",
    headers=HEADERS,
    json={
        "phones": ["+972501234567", "052-765-4321"],
        "source": "web_form",
        "evidence": "https://example.com/forms/newsletter (checkbox, IP 198.51.100.7)",
        "granted_at": "2026-10-30T12:00:00.000Z",
    },
    timeout=30,
)
response.raise_for_status()
batch = response.json()
print("recorded", batch["recorded"], "invalid", batch["invalid"])
```

The answer lists the numbers `recorded` and those that are `invalid`. `granted_at` is when the person agreed (by default, now; never in the future). Each record sends a [`consent.recorded`](https://docs.morevoice.ai/webhooks/events/#consent.recorded) event, and so does each revocation (with `revoked: true`). Campaign contacts imported without consent are dialled once their consent is recorded.

### Honour an opt-out

When someone opts out anywhere else (an unsubscribe link, a reply to a text, your agents' CRM), add the number to the do-not-call list. No call of any purpose reaches it afterwards, and it is taken out of every campaign where it is still waiting:

**cURL**

```sh
# Someone opted out in your CRM: no call of any purpose reaches these numbers from now on.
curl https://api.morevoice.ai/v1/dnc \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phones": ["+972501234567"],
    "reason": "Opted out in the CRM"
  }'
```

**Node.js**

```ts title="add-to-dnc.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

// Someone opted out in your CRM: no call of any purpose reaches these numbers from now on.
const batch = await mv.dnc.create({ phones: ["+972501234567"], reason: "Opted out in the CRM" });
console.log("added", batch.added, "already listed", batch.already_listed);
```

**Python**

```python title="add_to_dnc.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}

# Someone opted out in your CRM: no call of any purpose reaches these numbers from now on.
response = requests.post(
    f"{API}/dnc",
    headers=HEADERS,
    json={"phones": ["+972501234567"], "reason": "Opted out in the CRM"},
    timeout=30,
)
response.raise_for_status()
batch = response.json()
print("added", batch["added"], "already listed", batch["already_listed"])
```

Each number added sends one `contact.opted_out` event, just as an opt-out during a call does, so one webhook handler keeps your CRM's flag and MoreVoice's list the same in both directions. `DELETE /v1/dnc/{phone}` removes a number (marketing calls still need consent and the registry), and `GET /v1/dnc?phone=…` looks one up.

### Withdraw consent

When a person withdraws their consent, revoke it. The record stays, with `revoked_at`, as evidence of what you held and when:

**cURL**

```sh
# The person withdrew their consent. The record stays, with revoked_at, as evidence. URL-encode the + as %2B.
curl -X DELETE https://api.morevoice.ai/v1/consents/%2B972501234567 \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```

**Node.js**

```ts title="revoke-consent.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

// The person withdrew their consent. The record stays, with revoked_at, as evidence.
const revocation = await mv.consents.delete("+972501234567");
console.log(revocation.phone, "revoked at", revocation.revoked_at);
```

**Python**

```python title="revoke_consent.py"
import os
from urllib.parse import quote

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}

# The person withdrew their consent. The record stays, with revoked_at, as evidence. URL-encode the + as %2B.
phone = quote("+972501234567", safe="")
response = requests.delete(f"{API}/consents/{phone}", headers=HEADERS, timeout=30)
response.raise_for_status()
revocation = response.json()
print(revocation["phone"], "revoked at", revocation["revoked_at"])
```

Phone numbers in a path are URL-encoded: `+972501234567` becomes `%2B972501234567`. The SDKs do it for you.

### Check numbers before calling

`POST /v1/dnc/check` answers, for up to 100 numbers and a purpose, whether a call would be allowed now: the do-not-call list, recorded consent and the national registry, combined into `callable`, with `reasons` when it isn't. It reads only; nothing is recorded:

**cURL**

```sh
# Would a marketing call to these numbers be allowed? Your do-not-call list, consent and the national registry.
curl https://api.morevoice.ai/v1/dnc/check \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phones": ["+972501234567", "0527654321"],
    "purpose": "marketing"
  }'
```

**Node.js**

```ts title="check-numbers.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

// Would a marketing call to these numbers be allowed? Your do-not-call list, consent and the national registry.
const check = await mv.dnc.check({ phones: ["+972501234567", "0527654321"], purpose: "marketing" });
for (const r of check.results) {
	console.log(r.phone ?? r.input, r.callable ? "callable" : `blocked: ${r.reasons.join(", ")}`, `registry: ${r.registry.status}`);
}
```

**Python**

```python title="check_numbers.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}

# Would a marketing call to these numbers be allowed? Your do-not-call list, consent and the national registry.
response = requests.post(
    f"{API}/dnc/check",
    headers=HEADERS,
    json={"phones": ["+972501234567", "0527654321"], "purpose": "marketing"},
    timeout=30,
)
response.raise_for_status()
for r in response.json()["results"]:
    verdict = "callable" if r["callable"] else "blocked: " + ", ".join(r["reasons"])
    print(r["phone"] or r["input"], verdict, "registry:", r["registry"]["status"])
```

| `reasons` | Why the call isn't allowed |
| --- | --- |
| `invalid_number` | Not a phone number. |
| `dnc_listed` | On your do-not-call list. |
| `consent_missing` | Marketing without an active consent record. |
| `registry_listed` | Marketing to a number on the national registry. |
| `registry_unavailable` | Marketing, and the registry couldn't answer and has no recent answer cached. |

Live keys look a number up in the registry when there is no recent answer; test keys use cached answers only, and a missing answer doesn't block them. Calling hours aren't part of the check: the dialer applies them when it dials.

### Campaigns

A campaign checks all of this per contact, just before each call. `GET /v1/campaigns/{id}/preflight` lists what would stop a campaign from starting (no recorded consent, no registry for a marketing campaign, no open calling window in the next three weeks), and contacts that are skipped carry a `skip_reason` such as `no_consent`, `dnc_dial_time` or `registry`. See [campaigns](https://docs.morevoice.ai/guides/campaigns/#start-the-campaign).

## Where it is configured

| Setting | In the app |
|---|---|
| Calling hours, Shabbat and holiday rules, disclosure, opt-out phrases and key, do-not-call list | **Settings › Compliance** |
| National registry connection and its policy | **Settings › Compliance › National do-not-call registry** |
| A campaign's purpose, windows, disclosure and opt-out key | The campaign's setup |
