## Call the Evaluate Endpoint

POST `https://maskbreak.com/v1/evaluate`

Call this from your **backend server** — never from the browser. Pass the token from the client and your secret API key.

### Request Body

token string for full network checks

The encrypted network token from `Sentinel.collect()` or `input[name="monocle"]` (that field's own name, `monocle`, is accepted too; `token` wins when both are sent). Send it for full network intelligence. Raw HTTP accepts a missing or empty token as a degraded evaluation; a non-string or provider-rejected token returns 400. The Node, Python and PHP server SDKs require a non-empty token locally (from Node 0.5.0, Python 0.4.0 and PHP 0.3.0 the account events `password_change`, `verification`, `logout` and `account_change` may go without one), so use raw HTTP for this fallback. Send the body as `application/json`; a JSON object sent with another Content-Type (or none), or a form body (`token=…&fingerprintEventId=…`), is read the same way.

fingerprintEventId string

The device-intelligence event id — the SDK captures it and injects it as `sentinel_fp`; forward it here (either name is accepted) to unlock the `device.*` signals (antidetect, automation, emulator, …). Omit it and you get a network-only verdict.

accountId string

Optional: your own account/user id for this session. Combined with `fingerprintEventId`, Maskbreak counts how many distinct accounts this device has been linked to under your API key and returns `device.linked_accounts` / `device.multi_account` — multi-accounting detection with zero extra integration. Maskbreak keeps a keyed hash and an encrypted copy that only your console shows, deleted 90 days after the account was last checked; since 18 October 2026 it also fills the `account` object. Since 5 November 2026 a check with `event` `"login"`, `"verification"` or `"password_change"` whose `loginSucceeded` (or `succeeded`) is not `true` is a sign-in attempt for the `account` object: it still counts in `device_accounts_24h` and `ip_accounts_24h`, but adds nothing to that account’s own devices, addresses or connected accounts. A check without `event` counts as the account’s own use, as before, so at sign-in send `accountId` only once the password (or other credential) was accepted, or with `event: "login"` and `loginSucceeded`.

email string

Optional: the email the visitor is signing up with. Adds `email.disposable` to the response — checked against a continuously refreshed feed of thousands of burner/disposable domains. A disposable hit adds the `disposable_email` reason, raises `risk_score`, and escalates `allow` to `review`. The address is checked transiently and never stored or logged; with email and phone intelligence on (below) it is also sent to our email- and phone-intelligence provider.

tz string

Optional: the visitor's IANA timezone, e.g. `Europe/Tallinn`. Our client SDK sends it automatically as `sentinel_tz`, which this endpoint also accepts; on your own you can read it with `Intl.DateTimeFormat().resolvedOptions().timeZone` — no permission prompt and no geolocation involved. Adds a `timezone` block to the response. When the connection looks ordinary but the browser's clock belongs to a different country, that is the shape of a residential proxy the network layer did not catch: it adds the `timezone_mismatch` reason, raises `risk_score`, and escalates `allow` to `review`. Deliberately **not** raised on a VPN, proxy, Tor or datacenter exit — disagreeing with the clock is what those do — and never enough to `block` on its own, because travellers and expatriates land here legitimately. Forward the tz returned by Sentinel.collect() with your request: the server SDKs send it from Node 0.5.0, Python 0.4.0 and PHP 0.3.0; with an older version, use raw HTTP for this field.

phone string

**Email and phone intelligence** (since 23 October 2026, included in every plan): on by default for accounts created on or after 23 October 2026, off for older accounts until you turn it on in Settings (any account can turn it off there); while it is on, the `email` you send, and the visitor's phone number sent as `phone` (international format, such as +44 20 7946 0958), go to our email- and phone-intelligence provider (United States; see /sub-processors), and the answer gains on `email` and in a new `phone` object: `checked`, a `score` from 0 to 100, `risk` (`low` below 50, `medium` 50 to 79, `high` 80 and up), `signals` by name (for example `disposable`, `free_provider`, `no_online_accounts`, `young_domain`, `undeliverable`, `breaches`, `fraud_reports`) and a few facts (`online_accounts`, `breaches`, `deliverable`, `free_provider`, `domain_created`; for a number `valid`, `line_type`, `carrier`, `country`, `disposable`, `online_accounts`). A high score adds `email_high_risk` or `phone_high_risk` and raises `allow` to `review`, never to `block`; the “Email risk” and “Phone risk” rows under Signals & rules can relax or tighten that. Each address or number scored uses one of your plan's daily email-and-phone checks (Free 3, Starter 20, Growth 50, Scale 150 a day, a custom or public-interest account 50, shared with the console's Email & phone tab); past it `checked` is `false` with `why: "quota"`, which on Free can also mean the day's shared total for all Free accounts is used up. An address or number that cannot be read (`invalid`) uses none. One the provider was asked about but did not score (`busy`, `unavailable`, or `invalid` from the provider) uses none either, up to your plan's daily number of such checks a day (since 5 November 2026); after that each one uses a check. The address and number are never stored or logged; the stored check keeps the scores. Test keys, test tokens, the sandbox and the console's own checks never send anything there. The server SDKs send `phone` from Node 0.5.0, Python 0.4.0 and PHP 0.3.0.

**Testing without a browser:** send a deterministic test token — `test_clean`, `test_vpn`, `test_proxy`, `test_datacenter`, or `test_tor` — to exercise your allow / review / block handling end-to-end. Test calls are authenticated like real ones and limited to 1,000 an hour for each account; they are never counted toward your monthly allowance or webhooked, and the response carries `"test": true`. They are not stored either, except those the console sends with your live key (see [Test tokens](https://maskbreak.com/api#test-tokens)).

**CI & staging without an account:** the public sandbox key `sk_test_sandbox` accepts the same `test_*` tokens and returns the same deterministic shapes — no signup, nothing billed, nothing stored, never touches a real quota. It only answers test tokens (live traffic still needs your real key) and is rate-limited per IP. `curl -X POST https://maskbreak.com/v1/evaluate -H "Authorization: Bearer sk_test_sandbox" -H "Content-Type: application/json" -d '{"token":"test_vpn"}'`

**Your own test key (full pipeline):** every account also has a personal `sk_test_…` key (Settings → API keys), and unlike the sandbox it runs the *complete* live pipeline — real tokens, real device intelligence, your rules and exception pins included. Events it creates are badged as test in the console, left out of your stats, never fire webhooks, and the response carries `"test": true`. Its checks count toward your monthly allowance, like the console’s own checks; the fixed test tokens above do not. Login protection, email and phone intelligence and the account network do not run for it (they answer `why: "test"`, and the `account` object is left out), and since 27 October 2026 it adds nothing to a device's `times_seen` or to your device links, like the console's own checks: `device.times_seen`, `returning`, `first_seen`, `linked_accounts` and `multi_account` are left out of its answers. It is deliberately exempt from the IP allowlist, so CI and laptops can exercise the pipeline without punching holes in your production restriction.

```
// Your backend. Form fields -> API names: monocle -> token,
// sentinel_fp -> fingerprintEventId, sentinel_tz -> tz (collect() already uses them).
// Watch mode (start here) sends every submission, a missing field included.
const b = req.body || {};
let data = null;
try {
  const response = await fetch('https://maskbreak.com/v1/evaluate', {
    method: 'POST',
    signal: AbortSignal.timeout(5000),
    headers: {
      'Authorization': 'Bearer ' + process.env.MASKBREAK_API_KEY,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      token: b.token || b.monocle,
      fingerprintEventId: b.fingerprintEventId || b.sentinel_fp,
      tz: b.tz || b.sentinel_tz
    })
  });
  data = response.ok ? await response.json() : null;
} catch {
  data = null; // unavailable: watch mode continues
}

// data.decision → 'allow' | 'review' | 'block' (covers VPN, proxy,
// datacenter, Tor, antidetect, automation) — route on this
// data.reasons  → machine-readable why
console.log('[maskbreak]', data ? data.decision : 'no answer');
```

```
# Your backend (Flask shown): JSON from Sentinel.collect(), or a posted form.
# Form fields -> API names; watch mode (start here) sends every submission.
import os, requests

body = request.get_json(silent=True) or request.form
try:
    data = requests.post(
        "https://maskbreak.com/v1/evaluate",
        headers={"Authorization": "Bearer " + os.environ.get("MASKBREAK_API_KEY", "")},
        json={
            "token": body.get("token") or body.get("monocle"),
            "fingerprintEventId": body.get("fingerprintEventId") or body.get("sentinel_fp"),
            "tz": body.get("tz") or body.get("sentinel_tz"),
        },
        timeout=5,
    ).json()
except (requests.RequestException, ValueError):
    data = None  # unavailable: watch mode continues

# data["decision"] → 'allow' | 'review' | 'block' — route on this
# data["reasons"]  → machine-readable why
print("[maskbreak]", (data or {}).get("decision", "no answer"))
```

```
curl -X POST 'https://maskbreak.com/v1/evaluate' \
  -H 'Authorization: Bearer sk_live_YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"token": "YOUR_BROWSER_TOKEN", "fingerprintEventId": "YOUR_DEVICE_EVENT", "tz": "Europe/Tallinn"}'
```

```
// Your backend: JSON from Sentinel.collect(), or a posted form.
// Form fields -> API names; watch mode (start here) sends every submission.
$in = json_decode(file_get_contents('php://input'), true) ?: $_POST;
$ch = curl_init('https://maskbreak.com/v1/evaluate');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 5,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('MASKBREAK_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'token' => $in['token'] ?? $in['monocle'] ?? null,
        'fingerprintEventId' => $in['fingerprintEventId'] ?? $in['sentinel_fp'] ?? null,
        'tz' => $in['tz'] ?? $in['sentinel_tz'] ?? null,
    ]),
]);
$data = json_decode((string) curl_exec($ch), true); // null when unavailable: watch mode continues

// $data['decision'] → 'allow' | 'review' | 'block' — route on this
// $data['reasons']  → machine-readable why
error_log('[maskbreak] ' . ($data['decision'] ?? 'no answer'));
```

These examples log the result in watch mode. To enforce decisions, follow the [integration guide](https://maskbreak.com/integrate.md) for handling review, block, incomplete evidence, test results and API errors.
