# Keep a domain verified

Verified isn't the end. The record is the proof, so it has to stay, and we keep looking. This is what happens when it goes missing, how the owner hears about it, and how to get ownership back.

## After verified

Ownership is something kept, not granted once. Domains change hands, DNS gets cleaned up, and a record nobody remembers adding is the first thing to go. So a verified claim is re-checked every 1 day, and losing the record doesn't end ownership on the spot. There's a warning first, and 7 days to act on it.

1. The record is there

   Verified

   Re-checked every 1 day. Each pass updates `lastSeenAt` and nothing else.
2. A re-check finds it gone

   At risk

   Still the owner. We look every 6 hours, the owner gets an alert, and `lapsesAt` says when time runs out.
3. It comes back within the grace period

   Verified

   Any passing check puts the claim straight back to verified, with the same `verifiedAt` it always had.
4. Or 7 days pass without it

   Lapsed

   Ownership ends and checking stops. A new code starts the proof over.

## When the record goes missing

Only a clear answer starts the clock: a check that reached DNS and found the record gone or changed. A check that couldn't reach DNS, or found the record still spreading, changes nothing. An outage at a DNS provider never puts anyone's domain at risk.

An at-risk claim has everything needed to fix it. The record and the provider instructions are back in `view`, with the deadline beside them:

An at-risk claim's view

```json
{
  "view": {
    "claimId": "clm_4b1f7c1e-52e7-4c0a-9a3b-7d2f0c6e8a10",
    "domainAscii": "yourcompany.com",
    "domainUnicode": "yourcompany.com",
    "dnsHost": {
      "providerId": "namecheap",
      "name": "Namecheap",
      "settingsUrl": "https://ap.www.namecheap.com/Domains/DomainControlPanel/yourcompany.com/advancedns",
      "nameservers": [
        "dns1.registrar-servers.com",
        "dns2.registrar-servers.com"
      ],
      "parked": false
    },
    "status": "at_risk",
    "explanation": {
      "headline": "We can't see your record anymore",
      "why": "You have until 2026-12-01 to restore it. We're waiting on the record to reappear at Namecheap.",
      "fix": "In Namecheap, add the record back using the details below.",
      "action": {
        "kind": "check_now",
        "label": "Check now"
      }
    },
    "phase": "at_risk",
    "record": {
      "type": "TXT",
      "host": "_prufy-challenge",
      "fullName": "_prufy-challenge.yourcompany.com",
      "value": "prufy-domain-verification=xwqyp4hnsmgqxceo2xd6orgeay",
      "ttl": 300
    },
    "instructions": {
      "providerId": "namecheap",
      "name": "Namecheap",
      "hostFieldLabel": "Host",
      "valueFieldLabel": "Value",
      "settingsUrl": "https://ap.www.namecheap.com/Domains/DomainControlPanel/yourcompany.com/advancedns",
      "steps": [
        "Sign in to Namecheap and open Domain List.",
        "Click Manage next to your domain, then open the Advanced DNS tab.",
        "Click Add New Record and choose TXT Record."
      ],
      "notes": [
        "Namecheap adds your domain to the Host automatically. Enter only the part shown, without your domain."
      ]
    },
    "verifiedAt": "2026-11-10T09:41:03.115Z",
    "atRiskSince": "2026-11-24T09:41:08.300Z",
    "lapsesAt": "2026-12-01T09:41:08.300Z",
    "nextCheckAt": "2026-11-24T15:41:08.300Z",
    "canCheckNowAt": null
  }
}
```

| Field | What to do with it |
| --- | --- |
| `view.lapsesAt` | The deadline. Show it: it's the one date that matters here. |
| `view.atRiskSince` | When the record was first found missing. |
| `view.record` | The same record as before. The code doesn't change while a domain is verified or at risk. |
| `view.nextCheckAt` | When we'll look next: every 6 hours, and exactly at the deadline. |

## Getting it back

- While at risk: put the same record back. Our next check finds it and the claim is verified again. To not wait up to 6 hours, [run a check](https://www.prufy.dev/docs/api-reference/run-check.md).
- After it lapsed: [get a new code](https://www.prufy.dev/docs/api-reference/rotate-challenge.md). The claim goes back to pending with a new value, and it's the [same four steps](https://www.prufy.dev/docs/guides/verify-a-domain.md) as the first time. The old record no longer counts, so it can be deleted.
- To hand the fix to someone else: [create a setup link](https://www.prufy.dev/docs/api-reference/create-setup-link.md). It works for at-risk claims too.

## Alerts

Nobody watches a verified domain, so the owner has to be told. There are six moments worth an interruption, and routine checks never send anything.

| Alert | When | What it says |
| --- | --- | --- |
| `verified` | A pending claim's check passes. | yourcompany.com is verified We found your record everywhere we looked. Keep it in place: we check it every day. |
| `at_risk` | A re-check finds a verified domain's record gone. | We can't see yourcompany.com's record anymore Your domain is still verified, and you have until December 1 to put the record back. |
| `recovered` | The record comes back before the grace period ends. | yourcompany.com's record is back We can see your record again, so your domain stays verified. Nothing else to do. |
| `lapsed` | The grace period ends with the record still missing. | yourcompany.com is no longer verified The record was missing for 7 days. Get a new code to verify it again. |
| `expired` | A code runs out before the record is found. | Your code for yourcompany.com expired Codes last 7 days so an old one can't be used later. Get a new one to keep going. |
| `transferred` | Another account proves the same domain. | yourcompany.com moved to another account Someone with access to its DNS proved control of it. If that wasn't you, check who can edit this domain's DNS. |

Alerts go to one confirmed email address and any number of browsers. [Set the alert email](https://www.prufy.dev/docs/api-reference/set-alert-email.md) sends a confirmation link first, and nothing else reaches the address until its owner presses the button in it. [Send a test alert](https://www.prufy.dev/docs/api-reference/send-test-alert.md) shows what one looks like before anyone relies on it.

> **Alerts are best effort**
>
> An alert is sent once, after the change is saved. If the email or the push fails, it isn't retried. The claim is always the truth: a client that needs to be certain should read it, not wait to be told.

## When someone else proves it

A domain has one owner. If another account adds its own record and passes a check, the domain moves to them and this claim becomes `transferred`, whether it was verified or at risk. That's final for this claim, and the owner is alerted without being told who the other account is.

It's the right outcome when a domain was sold, and a warning when it wasn't: it means someone else can edit the domain's DNS. Proving it again takes a new claim, and the newest proof wins.

## Watch it happen locally

In [fixture mode](https://www.prufy.dev/docs/guides/verify-a-domain.md), claim `record-removed.prufy-demo.dev` and run a check four times, 10 seconds apart. It verifies, goes at risk on the second check, stays there on the third, and recovers on the fourth.

To see a lapse instead, stop after the second check and move the clock past the grace period:

Skip the grace period

```shell
# The demo domain's record disappears on its second check, which puts it at risk.
# Then skip the 7 days of grace and let the worker act on it.
curl -X POST 'http://localhost:5200/api/dev/clock' \
  -H 'content-type: application/json' \
  -d '{ "advanceMs": 604800000 }'

curl -X POST 'http://localhost:5200/api/dev/run-worker'
```

The claim is now `lapsed`. Both routes exist only outside production.

---

Every page of these docs, as a list: https://www.prufy.dev/llms.txt
