# Run a check by setup link

Look for the record now, on behalf of whoever holds the link.

POST `/api/v1/setup/{token}/checks`

**cURL**

```shell
curl -X POST 'https://www.prufy.dev/api/v1/setup/hVx6J3zTcbYj4346Es7BIgP90GoSrAFEw_PCGOjUwlQ/checks'
```

**Node.js**

```javascript
const response = await fetch("https://www.prufy.dev/api/v1/setup/hVx6J3zTcbYj4346Es7BIgP90GoSrAFEw_PCGOjUwlQ/checks", {
  method: "POST",
})
const data = await response.json()
```

**Python**

```python
import requests

response = requests.post("https://www.prufy.dev/api/v1/setup/hVx6J3zTcbYj4346Es7BIgP90GoSrAFEw_PCGOjUwlQ/checks")
data = response.json()
```

Response 200 OK

```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": "pending",
    "explanation": {
      "headline": "Usually a few minutes: public DNS is catching up",
      "why": "Namecheap has your record. We're waiting on Google Public DNS, Cloudflare DNS to see it.",
      "fix": "Nothing to do. We'll keep checking automatically.",
      "action": {
        "kind": "wait",
        "label": "Checking automatically"
      }
    },
    "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."
      ]
    },
    "timing": {
      "lastCheckedAt": "2026-11-10T09:34:12.480Z",
      "nextCheckAt": "2026-11-10T09:34:42.480Z",
      "expiresAt": "2026-11-17T09:30:00.000Z",
      "canCheckNowAt": "2026-11-10T09:34:22.471Z"
    },
    "phase": "waiting_for_dns",
    "outcome": {
      "kind": "propagating",
      "seenBy": [
        "authoritative:dns1.registrar-servers.com",
        "authoritative:dns2.registrar-servers.com"
      ],
      "notYet": [
        "google",
        "cloudflare"
      ]
    }
  },
  "zoneApex": "yourcompany.com",
  "lastCheck": {
    "id": "chk_2a9d1c6e-7f40-4b0e-9a55-0c1d3e8f6b27",
    "trigger": "user",
    "startedAt": "2026-11-10T09:34:12.392Z",
    "finishedAt": "2026-11-10T09:34:12.480Z",
    "durationMs": 88,
    "outcomeKind": "propagating",
    "outcome": {
      "kind": "propagating",
      "seenBy": [
        "authoritative:dns1.registrar-servers.com",
        "authoritative:dns2.registrar-servers.com"
      ],
      "notYet": [
        "google",
        "cloudflare"
      ]
    },
    "observations": [
      {
        "resolver": "authoritative:dns1.registrar-servers.com",
        "serverIp": "192.0.2.53",
        "qname": "_prufy-challenge.yourcompany.com",
        "qtype": "TXT",
        "rcode": "NOERROR",
        "answers": [
          "prufy-domain-verification=xwqyp4hnsmgqxceo2xd6orgeay"
        ],
        "cnameChain": [],
        "ad": null,
        "latencyMs": 18,
        "error": null
      },
      {
        "resolver": "authoritative:dns2.registrar-servers.com",
        "serverIp": "192.0.2.53",
        "qname": "_prufy-challenge.yourcompany.com",
        "qtype": "TXT",
        "rcode": "NOERROR",
        "answers": [
          "prufy-domain-verification=xwqyp4hnsmgqxceo2xd6orgeay"
        ],
        "cnameChain": [],
        "ad": null,
        "latencyMs": 18,
        "error": null
      },
      {
        "resolver": "google",
        "serverIp": null,
        "qname": "_prufy-challenge.yourcompany.com",
        "qtype": "TXT",
        "rcode": "NXDOMAIN",
        "answers": [],
        "cnameChain": [],
        "ad": false,
        "latencyMs": 31,
        "error": null
      },
      {
        "resolver": "cloudflare",
        "serverIp": null,
        "qname": "_prufy-challenge.yourcompany.com",
        "qtype": "TXT",
        "rcode": "NXDOMAIN",
        "answers": [],
        "cnameChain": [],
        "ad": false,
        "latencyMs": 31,
        "error": null
      }
    ]
  }
}
```

The same check the owner can run, and it shares the owner's limit: one check per claim every 10 seconds, whoever asks.

The audit log records the link as the one who asked, not the owner.

## Authentication

No cookie. The token in the request is the whole credential. [How sessions work](https://www.prufy.dev/docs/authentication.md).

## Path parameters

`token` string required

The last part of a setup link's address.

## Response

`200 OK`, with every field below present. Times are ISO 8601 strings in UTC.

- `view` object

  The claim as it stands right now. Switch on `phase`.

  11 shapes, told apart by `phase`. Every one has the fields below, plus its own.

  - `claimId` string

    The claim's id.
  - `domainAscii` string

    The domain as DNS stores it.
  - `domainUnicode` string

    The domain as a person reads it.
  - `status` string

    The stored status. `phase` says more.

    - One of `pending` `verified` `at_risk` `lapsed` `expired` `transferred` `abandoned`
  - `dnsHost` object

    Who answers for this domain's DNS, and where to go to change it. On every view.

    - `providerId` string

      Who runs the DNS, judged by the nameservers.

      - One of `godaddy` `cloudflare` `namecheap` `route53` `vercel` `ionos` `squarespace` `hostinger` `wix` `porkbun` `google_cloud_dns` `cpanel` `unknown`
    - `name` string | null

      The provider's name. Null when the nameservers aren't one we know.
    - `settingsUrl` string | null

      A link to this domain's DNS settings there. Null when we have none.
    - `nameservers` array of strings

      What the domain answers from. Empty until public DNS has nameservers for it.
    - `parked` boolean

      True when the nameservers belong to a parking service, which usually can't hold records.
  - `explanation` object

    Where the claim stands, in plain words. Written to be shown as it is.

    - `headline` string

      What happened, in one line.
    - `why` string

      Why, in a sentence or two.
    - `fix` string | null

      The one thing to do next. Null when there's nothing.
    - `action` object

      The next step, as something a client can act on.

      - `kind` string

        `check_now` to run a check, `wait` when we're checking on our own, `new_code` to get a new code, `none` when it's done.

        - One of `check_now` `wait` `new_code` `none`
      - `label` string

        What to call that action on a button.

  `add_record` Pending, and no check of the current code has run yet.

  - `record` object

    The one DNS record that proves ownership.

    - `type` "TXT"
    - `host` string

      What to type in the provider's host field. Already adjusted for providers that add the domain themselves.
    - `fullName` string

      The record's full name, which is where we look.

      - Starts with `_prufy-challenge.`
    - `value` string

      The value to paste, exactly.

      - Starts with `prufy-domain-verification=`
    - `ttl` integer

      A suggested TTL, in seconds.
  - `instructions` object

    How to add the record at this domain's provider, in that provider's words.

    - `providerId` string

      Who runs this domain's DNS, as far as we can tell.

      - One of `godaddy` `cloudflare` `namecheap` `route53` `vercel` `ionos` `squarespace` `hostinger` `wix` `porkbun` `google_cloud_dns` `cpanel` `unknown`
    - `name` string

      The provider's name, or “your DNS provider” when unknown.
    - `hostFieldLabel` string

      What this provider calls the host field.
    - `valueFieldLabel` string

      What this provider calls the value field.
    - `settingsUrl` string

      Where its DNS settings are.
    - `steps` array of strings

      How to get to the right screen, in order.
    - `notes` array of strings

      What this provider does differently.
  - `timing` object

    When things happened and when they'll happen next.

    - `lastCheckedAt` string | null

      When the last check finished, if one has.
    - `nextCheckAt` string | null

      When we'll look next on our own. Null when nothing is scheduled.
    - `expiresAt` string

      When this code stops working: 7 days after it was issued.
    - `canCheckNowAt` string | null

      When Run a check is allowed again. Null means now.

  `checking` Pending, with a check running right now.

  - `record` object

    The one DNS record that proves ownership.

    - `type` "TXT"
    - `host` string

      What to type in the provider's host field. Already adjusted for providers that add the domain themselves.
    - `fullName` string

      The record's full name, which is where we look.

      - Starts with `_prufy-challenge.`
    - `value` string

      The value to paste, exactly.

      - Starts with `prufy-domain-verification=`
    - `ttl` integer

      A suggested TTL, in seconds.
  - `instructions` object

    How to add the record at this domain's provider, in that provider's words.

    - `providerId` string

      Who runs this domain's DNS, as far as we can tell.

      - One of `godaddy` `cloudflare` `namecheap` `route53` `vercel` `ionos` `squarespace` `hostinger` `wix` `porkbun` `google_cloud_dns` `cpanel` `unknown`
    - `name` string

      The provider's name, or “your DNS provider” when unknown.
    - `hostFieldLabel` string

      What this provider calls the host field.
    - `valueFieldLabel` string

      What this provider calls the value field.
    - `settingsUrl` string

      Where its DNS settings are.
    - `steps` array of strings

      How to get to the right screen, in order.
    - `notes` array of strings

      What this provider does differently.
  - `timing` object

    When things happened and when they'll happen next.

    - `lastCheckedAt` string | null

      When the last check finished, if one has.
    - `nextCheckAt` string | null

      When we'll look next on our own. Null when nothing is scheduled.
    - `expiresAt` string

      When this code stops working: 7 days after it was issued.
    - `canCheckNowAt` string | null

      When Run a check is allowed again. Null means now.

  `waiting_for_dns` Pending. The record is right and DNS is still catching up.

  - `record` object

    The one DNS record that proves ownership.

    - `type` "TXT"
    - `host` string

      What to type in the provider's host field. Already adjusted for providers that add the domain themselves.
    - `fullName` string

      The record's full name, which is where we look.

      - Starts with `_prufy-challenge.`
    - `value` string

      The value to paste, exactly.

      - Starts with `prufy-domain-verification=`
    - `ttl` integer

      A suggested TTL, in seconds.
  - `instructions` object

    How to add the record at this domain's provider, in that provider's words.

    - `providerId` string

      Who runs this domain's DNS, as far as we can tell.

      - One of `godaddy` `cloudflare` `namecheap` `route53` `vercel` `ionos` `squarespace` `hostinger` `wix` `porkbun` `google_cloud_dns` `cpanel` `unknown`
    - `name` string

      The provider's name, or “your DNS provider” when unknown.
    - `hostFieldLabel` string

      What this provider calls the host field.
    - `valueFieldLabel` string

      What this provider calls the value field.
    - `settingsUrl` string

      Where its DNS settings are.
    - `steps` array of strings

      How to get to the right screen, in order.
    - `notes` array of strings

      What this provider does differently.
  - `timing` object

    When things happened and when they'll happen next.

    - `lastCheckedAt` string | null

      When the last check finished, if one has.
    - `nextCheckAt` string | null

      When we'll look next on our own. Null when nothing is scheduled.
    - `expiresAt` string

      When this code stops working: 7 days after it was issued.
    - `canCheckNowAt` string | null

      When Run a check is allowed again. Null means now.
  - `outcome` object

    What the last check concluded.

    2 shapes, told apart by `kind`. Every one has the fields below, plus its own.

    - `seenBy` array of strings

      The servers that have the record.

    `propagating` The record is right, and some servers don't have it yet. Nothing to fix.

    - `notYet` array of strings

      The servers still waiting for it.

    `verified` Every server we asked has the record with the right value.

    Nothing beyond the shared fields.

  `fix_needed` Pending. The last check found something to change, and `outcome` says what.

  - `record` object

    The one DNS record that proves ownership.

    - `type` "TXT"
    - `host` string

      What to type in the provider's host field. Already adjusted for providers that add the domain themselves.
    - `fullName` string

      The record's full name, which is where we look.

      - Starts with `_prufy-challenge.`
    - `value` string

      The value to paste, exactly.

      - Starts with `prufy-domain-verification=`
    - `ttl` integer

      A suggested TTL, in seconds.
  - `instructions` object

    How to add the record at this domain's provider, in that provider's words.

    - `providerId` string

      Who runs this domain's DNS, as far as we can tell.

      - One of `godaddy` `cloudflare` `namecheap` `route53` `vercel` `ionos` `squarespace` `hostinger` `wix` `porkbun` `google_cloud_dns` `cpanel` `unknown`
    - `name` string

      The provider's name, or “your DNS provider” when unknown.
    - `hostFieldLabel` string

      What this provider calls the host field.
    - `valueFieldLabel` string

      What this provider calls the value field.
    - `settingsUrl` string

      Where its DNS settings are.
    - `steps` array of strings

      How to get to the right screen, in order.
    - `notes` array of strings

      What this provider does differently.
  - `timing` object

    When things happened and when they'll happen next.

    - `lastCheckedAt` string | null

      When the last check finished, if one has.
    - `nextCheckAt` string | null

      When we'll look next on our own. Null when nothing is scheduled.
    - `expiresAt` string

      When this code stops working: 7 days after it was issued.
    - `canCheckNowAt` string | null

      When Run a check is allowed again. Null means now.
  - `outcome` object

    What the last check concluded.

    2 shapes, told apart by `kind`.

    `mismatch` There's a record at the name, and its value isn't the code.

    - `reason` string

      How the value differs.

      - One of `lookalike_character` `truncated` `extra_quotes` `extra_whitespace` `wrong_prefix` `stale_token` `different_token`
    - `found` string

      The value DNS holds.
    - `expected` string

      The value it should hold.

      - Starts with `prufy-domain-verification=`
    - `diffAt` integer

      The position of the first character that differs, counting from 0.

    `not_found` No record with the code at the name we check.

    - `reason` string

      Where the record is, or why it can't be there.

      - One of `nothing_at_name` `host_doubled` `wrong_name` `not_at_authoritative` `cname_at_name` `nxdomain_zone`

  `try_again_later` Pending. DNS couldn't be reached, so we'll try again.

  - `record` object

    The one DNS record that proves ownership.

    - `type` "TXT"
    - `host` string

      What to type in the provider's host field. Already adjusted for providers that add the domain themselves.
    - `fullName` string

      The record's full name, which is where we look.

      - Starts with `_prufy-challenge.`
    - `value` string

      The value to paste, exactly.

      - Starts with `prufy-domain-verification=`
    - `ttl` integer

      A suggested TTL, in seconds.
  - `instructions` object

    How to add the record at this domain's provider, in that provider's words.

    - `providerId` string

      Who runs this domain's DNS, as far as we can tell.

      - One of `godaddy` `cloudflare` `namecheap` `route53` `vercel` `ionos` `squarespace` `hostinger` `wix` `porkbun` `google_cloud_dns` `cpanel` `unknown`
    - `name` string

      The provider's name, or “your DNS provider” when unknown.
    - `hostFieldLabel` string

      What this provider calls the host field.
    - `valueFieldLabel` string

      What this provider calls the value field.
    - `settingsUrl` string

      Where its DNS settings are.
    - `steps` array of strings

      How to get to the right screen, in order.
    - `notes` array of strings

      What this provider does differently.
  - `timing` object

    When things happened and when they'll happen next.

    - `lastCheckedAt` string | null

      When the last check finished, if one has.
    - `nextCheckAt` string | null

      When we'll look next on our own. Null when nothing is scheduled.
    - `expiresAt` string

      When this code stops working: 7 days after it was issued.
    - `canCheckNowAt` string | null

      When Run a check is allowed again. Null means now.
  - `outcome` object

    DNS couldn't be reached, so this check says nothing about the record.

    - `kind` "lookup_error"
    - `failures` array of objects

      Each server that couldn't be asked.

      - `resolver` string

        Who answered: `authoritative:<nameserver>` for one of the domain's own servers, or a public resolver.

        - One of `google` `cloudflare`, or a value added later
      - `error` string

        How the lookup went wrong.

        - One of `timeout` `servfail` `refused` `network` `bad_response` `no_nameserver_address`

  `verified` Ownership is proven. The record has to stay, and we re-check it daily.

  - `record` object

    The one DNS record that proves ownership.

    - `type` "TXT"
    - `host` string

      What to type in the provider's host field. Already adjusted for providers that add the domain themselves.
    - `fullName` string

      The record's full name, which is where we look.

      - Starts with `_prufy-challenge.`
    - `value` string

      The value to paste, exactly.

      - Starts with `prufy-domain-verification=`
    - `ttl` integer

      A suggested TTL, in seconds.
  - `verifiedAt` string

    When ownership was first proven.
  - `lastSeenAt` string

    When a check last found the record.
  - `nextCheckAt` string | null

    When we'll look next on our own. Null when nothing is scheduled.
  - `canCheckNowAt` string | null

    When Run a check is allowed again. Null means now.

  `at_risk` Verified, but the record has gone missing. Put it back before `lapsesAt`.

  - `record` object

    The one DNS record that proves ownership.

    - `type` "TXT"
    - `host` string

      What to type in the provider's host field. Already adjusted for providers that add the domain themselves.
    - `fullName` string

      The record's full name, which is where we look.

      - Starts with `_prufy-challenge.`
    - `value` string

      The value to paste, exactly.

      - Starts with `prufy-domain-verification=`
    - `ttl` integer

      A suggested TTL, in seconds.
  - `instructions` object

    How to add the record at this domain's provider, in that provider's words.

    - `providerId` string

      Who runs this domain's DNS, as far as we can tell.

      - One of `godaddy` `cloudflare` `namecheap` `route53` `vercel` `ionos` `squarespace` `hostinger` `wix` `porkbun` `google_cloud_dns` `cpanel` `unknown`
    - `name` string

      The provider's name, or “your DNS provider” when unknown.
    - `hostFieldLabel` string

      What this provider calls the host field.
    - `valueFieldLabel` string

      What this provider calls the value field.
    - `settingsUrl` string

      Where its DNS settings are.
    - `steps` array of strings

      How to get to the right screen, in order.
    - `notes` array of strings

      What this provider does differently.
  - `verifiedAt` string

    When ownership was first proven.
  - `atRiskSince` string

    When a check first found the record missing.
  - `lapsesAt` string

    When ownership ends if the record isn't back: 7 days on.
  - `nextCheckAt` string | null

    When we'll look next on our own. Null when nothing is scheduled.
  - `canCheckNowAt` string | null

    When Run a check is allowed again. Null means now.

  `lapsed` The record stayed missing past the grace period. Get a new code to start over.

  - `lapsedAt` string

    When ownership ended.
  - `lastSeenAt` string

    When a check last found the record.

  `expired` The code ran out before the record was found. Get a new code to carry on.

  - `expiredAt` string

    When the code stopped working.

  `transferred` Another account proved this domain more recently. Final.

  - `transferredAt` string

    When another account proved the domain.

  `abandoned` Stopped by its owner. Final.

  - `abandonedAt` string

    When the claim was stopped.
- `zoneApex` string

  The zone the record belongs in. It decides what to type in the host field.
- `lastCheck` object | null

  The latest check of the current code. Null until one has run.

  - `id` string

    The check's id. It starts with `chk_`.
  - `trigger` string

    Who asked: `user` for Run a check, `schedule` for our own, `system` otherwise.

    - One of `user` `schedule` `system`, or a value added later
  - `startedAt` string

    When the check started.
  - `finishedAt` string | null

    When it finished. Null while it's running.
  - `durationMs` number | null

    How long it took, in milliseconds.
  - `outcomeKind` string | null

    `outcome.kind`, repeated on its own.

    - One of `verified` `propagating` `mismatch` `not_found` `lookup_error`
  - `outcome` object | null

    What the check concluded.

    5 shapes, told apart by `kind`.

    `verified` Every server we asked has the record with the right value.

    - `seenBy` array of strings

      The servers that have the record.

    `propagating` The record is right, and some servers don't have it yet. Nothing to fix.

    - `seenBy` array of strings

      The servers that have the record.
    - `notYet` array of strings

      The servers still waiting for it.

    `mismatch` There's a record at the name, and its value isn't the code.

    - `reason` string

      How the value differs.

      - One of `lookalike_character` `truncated` `extra_quotes` `extra_whitespace` `wrong_prefix` `stale_token` `different_token`
    - `found` string

      The value DNS holds.
    - `expected` string

      The value it should hold.

      - Starts with `prufy-domain-verification=`
    - `diffAt` integer

      The position of the first character that differs, counting from 0.

    `not_found` No record with the code at the name we check.

    - `reason` string

      Where the record is, or why it can't be there.

      - One of `nothing_at_name` `host_doubled` `wrong_name` `not_at_authoritative` `cname_at_name` `nxdomain_zone`

    `lookup_error` DNS couldn't be reached, so this check says nothing about the record.

    - `failures` array of objects

      Each server that couldn't be asked.

      - `resolver` string

        Who answered: `authoritative:<nameserver>` for one of the domain's own servers, or a public resolver.

        - One of `google` `cloudflare`, or a value added later
      - `error` string

        How the lookup went wrong.

        - One of `timeout` `servfail` `refused` `network` `bad_response` `no_nameserver_address`
  - `observations` array of objects

    What each DNS server answered. The evidence behind the outcome.

    - `resolver` string

      Who answered: `authoritative:<nameserver>` for one of the domain's own servers, or a public resolver.

      - One of `google` `cloudflare`, or a value added later
    - `serverIp` string | null

      The address that was asked, when we know it.
    - `qname` string

      The name that was looked up.
    - `qtype` string

      The record type that was asked for.

      - One of `TXT` `NS` `SOA` `CNAME` `A` `AAAA`
    - `rcode` string | null

      The DNS response code. Null when no response arrived at all.

      - One of `NOERROR` `NXDOMAIN` `SERVFAIL` `REFUSED` `OTHER`
    - `answers` array of strings

      The values that came back, one per record.
    - `cnameChain` array of strings

      Any CNAMEs followed on the way to the answer.
    - `ad` boolean | null

      The DNSSEC authenticated-data flag. Null when the server can't report it.
    - `latencyMs` number

      How long the answer took, in milliseconds.
    - `error` string | null

      How the lookup went wrong, if it did.

      - One of `timeout` `servfail` `refused` `network` `bad_response` `no_nameserver_address`

## Errors

| Status | Kind | When |
| --- | --- | --- |
| 404 | `not_found` | The link is malformed, unknown or more than 30 days old. All three get the same answer, so they can't be told apart. |
| 409 | `check_in_flight` | Another check of this claim is running right now. Try again in a few seconds. |
| 409 | `not_checkable` | The claim is lapsed, expired, transferred or abandoned, so there's nothing to look for. |
| 429 | `rate_limited` | A check ran on this claim in the last 10 seconds. `retryAfter` says how long is left. |

Any route can also answer `500` with `internal_error`. Every error has the same shape, described in [Errors](https://www.prufy.dev/docs/errors.md).

---

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