## Returning devices and account links

Send a fresh, real browser event to /v1/evaluate with a live key. device.customer_history counts distinct verified events on your account only, over the last 90 days. It includes first and latest visits, returning status and the number of associated accounts. The dashboard shows the 50 most recently seen devices under Events → Investigate. History starts after this feature is enabled on the service; old events are not backfilled. Repeated event submissions count once. Missing device evidence means no history—not a new or safe device.

For account links, your backend must set accountId from its own authenticated user/session, never copy a claimed account ID from the browser. Use a pseudonymous ID, not an email. Accounts sharing a device are context, not proof of fraud. Test-key traffic is excluded from this new history. Legacy times_seen, returning and first_seen fields keep their existing shared-counter meaning; use customer_history for your own visitors.

```
// Your backend: accountId comes from YOUR authenticated session.
const response = await fetch('https://maskbreak.com/v1/evaluate', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer ' + process.env.MASKBREAK_API_KEY,
    'Content-Type': 'application/json'
  },
  signal: AbortSignal.timeout(8000),
  body: JSON.stringify({
    token: req.body.token || req.body.monocle,
    fingerprintEventId: req.body.fingerprintEventId || req.body.sentinel_fp,
    accountId: req.user ? String(req.user.id) : undefined,
  })
});
if (!response.ok) throw new Error('Visitor check unavailable');
const result = await response.json();
const history = result.device?.customer_history;
// history: {visits, returning, first_seen, last_seen, accounts, window_days:90}
// Use your existing decision/review policy. History is not authorization.
```
