prufy
Skip to the page

Setup linksRetrieve a claim by setup link

Setup links

Retrieve a claim by setup link

What the person helping gets to see: the record, the steps and the status.

GET/api/v1/setup/{token}

No session here on purpose. The token in the path is the whole credential, so this works from any device.

The response is a claim without its history: no events, no nameservers, no Domain Connect details.

The first time a link is opened, the owner's timeline records it.

Authentication

No cookie. The token in the request is the whole credential. How sessions work.

Path parameters

tokenstringrequired

The last part of a setup link's address.

Response

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

  • viewobject

    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.

    Show the 6 fields every shape hasFields every shape has
    • claimIdstring

      The claim's id.

    • domainAsciistring

      The domain as DNS stores it.

    • domainUnicodestring

      The domain as a person reads it.

    • statusstring

      The stored status. phase says more.

      • One of pendingverifiedat_risklapsedexpiredtransferredabandoned
    • dnsHostobject

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

      Show the 5 fields insideInside dnsHost
      • providerIdstring

        Who runs the DNS, judged by the nameservers.

        • One of godaddycloudflarenamecheaproute53vercelionossquarespacehostingerwixporkbungoogle_cloud_dnscpanelunknown
      • namestring | null

        The provider's name. Null when the nameservers aren't one we know.

      • settingsUrlstring | null

        A link to this domain's DNS settings there. Null when we have none.

      • nameserversarray of strings

        What the domain answers from. Empty until public DNS has nameservers for it.

      • parkedboolean

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

    • explanationobject

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

      Show the 4 fields insideInside explanation
      • headlinestring

        What happened, in one line.

      • whystring

        Why, in a sentence or two.

      • fixstring | null

        The one thing to do next. Null when there's nothing.

      • actionobject

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

        Show the 2 fields insideInside action
        • kindstring

          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_nowwaitnew_codenone
        • labelstring

          What to call that action on a button.

    view.phase is add_recordPending, and no check of the current code has run yet.
    • recordobject

      The one DNS record that proves ownership.

      Show the 5 fields insideInside record
      • type"TXT"
      • hoststring

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

      • fullNamestring

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

        • Starts with _prufy-challenge.
      • valuestring

        The value to paste, exactly.

        • Starts with prufy-domain-verification=
      • ttlinteger

        A suggested TTL, in seconds.

    • instructionsobject

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

      Show the 7 fields insideInside instructions
      • providerIdstring

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

        • One of godaddycloudflarenamecheaproute53vercelionossquarespacehostingerwixporkbungoogle_cloud_dnscpanelunknown
      • namestring

        The provider's name, or “your DNS provider” when unknown.

      • hostFieldLabelstring

        What this provider calls the host field.

      • valueFieldLabelstring

        What this provider calls the value field.

      • settingsUrlstring

        Where its DNS settings are.

      • stepsarray of strings

        How to get to the right screen, in order.

      • notesarray of strings

        What this provider does differently.

    • timingobject

      When things happened and when they'll happen next.

      Show the 4 fields insideInside timing
      • lastCheckedAtstring | null

        When the last check finished, if one has.

      • nextCheckAtstring | null

        When we'll look next on our own. Null when nothing is scheduled.

      • expiresAtstring

        When this code stops working: 7 days after it was issued.

      • canCheckNowAtstring | null

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

    view.phase is checkingPending, with a check running right now.
    • recordobject

      The one DNS record that proves ownership.

      Show the 5 fields insideInside record
      • type"TXT"
      • hoststring

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

      • fullNamestring

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

        • Starts with _prufy-challenge.
      • valuestring

        The value to paste, exactly.

        • Starts with prufy-domain-verification=
      • ttlinteger

        A suggested TTL, in seconds.

    • instructionsobject

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

      Show the 7 fields insideInside instructions
      • providerIdstring

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

        • One of godaddycloudflarenamecheaproute53vercelionossquarespacehostingerwixporkbungoogle_cloud_dnscpanelunknown
      • namestring

        The provider's name, or “your DNS provider” when unknown.

      • hostFieldLabelstring

        What this provider calls the host field.

      • valueFieldLabelstring

        What this provider calls the value field.

      • settingsUrlstring

        Where its DNS settings are.

      • stepsarray of strings

        How to get to the right screen, in order.

      • notesarray of strings

        What this provider does differently.

    • timingobject

      When things happened and when they'll happen next.

      Show the 4 fields insideInside timing
      • lastCheckedAtstring | null

        When the last check finished, if one has.

      • nextCheckAtstring | null

        When we'll look next on our own. Null when nothing is scheduled.

      • expiresAtstring

        When this code stops working: 7 days after it was issued.

      • canCheckNowAtstring | null

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

    view.phase is waiting_for_dnsPending. The record is right and DNS is still catching up.
    • recordobject

      The one DNS record that proves ownership.

      Show the 5 fields insideInside record
      • type"TXT"
      • hoststring

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

      • fullNamestring

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

        • Starts with _prufy-challenge.
      • valuestring

        The value to paste, exactly.

        • Starts with prufy-domain-verification=
      • ttlinteger

        A suggested TTL, in seconds.

    • instructionsobject

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

      Show the 7 fields insideInside instructions
      • providerIdstring

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

        • One of godaddycloudflarenamecheaproute53vercelionossquarespacehostingerwixporkbungoogle_cloud_dnscpanelunknown
      • namestring

        The provider's name, or “your DNS provider” when unknown.

      • hostFieldLabelstring

        What this provider calls the host field.

      • valueFieldLabelstring

        What this provider calls the value field.

      • settingsUrlstring

        Where its DNS settings are.

      • stepsarray of strings

        How to get to the right screen, in order.

      • notesarray of strings

        What this provider does differently.

    • timingobject

      When things happened and when they'll happen next.

      Show the 4 fields insideInside timing
      • lastCheckedAtstring | null

        When the last check finished, if one has.

      • nextCheckAtstring | null

        When we'll look next on our own. Null when nothing is scheduled.

      • expiresAtstring

        When this code stops working: 7 days after it was issued.

      • canCheckNowAtstring | null

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

    • outcomeobject

      What the last check concluded.

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

      Show the 1 field every shape hasFields every shape has
      • seenByarray of strings

        The servers that have the record.

      outcome.kind is propagatingThe record is right, and some servers don't have it yet. Nothing to fix.
      • notYetarray of strings

        The servers still waiting for it.

      outcome.kind is verifiedEvery server we asked has the record with the right value.

      Nothing beyond the shared fields.

    view.phase is fix_neededPending. The last check found something to change, and outcome says what.
    • recordobject

      The one DNS record that proves ownership.

      Show the 5 fields insideInside record
      • type"TXT"
      • hoststring

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

      • fullNamestring

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

        • Starts with _prufy-challenge.
      • valuestring

        The value to paste, exactly.

        • Starts with prufy-domain-verification=
      • ttlinteger

        A suggested TTL, in seconds.

    • instructionsobject

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

      Show the 7 fields insideInside instructions
      • providerIdstring

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

        • One of godaddycloudflarenamecheaproute53vercelionossquarespacehostingerwixporkbungoogle_cloud_dnscpanelunknown
      • namestring

        The provider's name, or “your DNS provider” when unknown.

      • hostFieldLabelstring

        What this provider calls the host field.

      • valueFieldLabelstring

        What this provider calls the value field.

      • settingsUrlstring

        Where its DNS settings are.

      • stepsarray of strings

        How to get to the right screen, in order.

      • notesarray of strings

        What this provider does differently.

    • timingobject

      When things happened and when they'll happen next.

      Show the 4 fields insideInside timing
      • lastCheckedAtstring | null

        When the last check finished, if one has.

      • nextCheckAtstring | null

        When we'll look next on our own. Null when nothing is scheduled.

      • expiresAtstring

        When this code stops working: 7 days after it was issued.

      • canCheckNowAtstring | null

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

    • outcomeobject

      What the last check concluded.

      2 shapes, told apart by kind.

      outcome.kind is mismatchThere's a record at the name, and its value isn't the code.
      • reasonstring

        How the value differs.

        • One of lookalike_charactertruncatedextra_quotesextra_whitespacewrong_prefixstale_tokendifferent_token
      • foundstring

        The value DNS holds.

      • expectedstring

        The value it should hold.

        • Starts with prufy-domain-verification=
      • diffAtinteger

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

      outcome.kind is not_foundNo record with the code at the name we check.
      • reasonstring

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

        • One of nothing_at_namehost_doubledwrong_namenot_at_authoritativecname_at_namenxdomain_zone
    view.phase is try_again_laterPending. DNS couldn't be reached, so we'll try again.
    • recordobject

      The one DNS record that proves ownership.

      Show the 5 fields insideInside record
      • type"TXT"
      • hoststring

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

      • fullNamestring

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

        • Starts with _prufy-challenge.
      • valuestring

        The value to paste, exactly.

        • Starts with prufy-domain-verification=
      • ttlinteger

        A suggested TTL, in seconds.

    • instructionsobject

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

      Show the 7 fields insideInside instructions
      • providerIdstring

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

        • One of godaddycloudflarenamecheaproute53vercelionossquarespacehostingerwixporkbungoogle_cloud_dnscpanelunknown
      • namestring

        The provider's name, or “your DNS provider” when unknown.

      • hostFieldLabelstring

        What this provider calls the host field.

      • valueFieldLabelstring

        What this provider calls the value field.

      • settingsUrlstring

        Where its DNS settings are.

      • stepsarray of strings

        How to get to the right screen, in order.

      • notesarray of strings

        What this provider does differently.

    • timingobject

      When things happened and when they'll happen next.

      Show the 4 fields insideInside timing
      • lastCheckedAtstring | null

        When the last check finished, if one has.

      • nextCheckAtstring | null

        When we'll look next on our own. Null when nothing is scheduled.

      • expiresAtstring

        When this code stops working: 7 days after it was issued.

      • canCheckNowAtstring | null

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

    • outcomeobject

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

      Show the 2 fields insideInside outcome
      • kind"lookup_error"
      • failuresarray of objects

        Each server that couldn't be asked.

        Show what each item hasEach item has
        • resolverstring

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

          • One of googlecloudflare, or a value added later
        • errorstring

          How the lookup went wrong.

          • One of timeoutservfailrefusednetworkbad_responseno_nameserver_address
    view.phase is verifiedOwnership is proven. The record has to stay, and we re-check it daily.
    • recordobject

      The one DNS record that proves ownership.

      Show the 5 fields insideInside record
      • type"TXT"
      • hoststring

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

      • fullNamestring

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

        • Starts with _prufy-challenge.
      • valuestring

        The value to paste, exactly.

        • Starts with prufy-domain-verification=
      • ttlinteger

        A suggested TTL, in seconds.

    • verifiedAtstring

      When ownership was first proven.

    • lastSeenAtstring

      When a check last found the record.

    • nextCheckAtstring | null

      When we'll look next on our own. Null when nothing is scheduled.

    • canCheckNowAtstring | null

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

    view.phase is at_riskVerified, but the record has gone missing. Put it back before lapsesAt.
    • recordobject

      The one DNS record that proves ownership.

      Show the 5 fields insideInside record
      • type"TXT"
      • hoststring

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

      • fullNamestring

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

        • Starts with _prufy-challenge.
      • valuestring

        The value to paste, exactly.

        • Starts with prufy-domain-verification=
      • ttlinteger

        A suggested TTL, in seconds.

    • instructionsobject

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

      Show the 7 fields insideInside instructions
      • providerIdstring

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

        • One of godaddycloudflarenamecheaproute53vercelionossquarespacehostingerwixporkbungoogle_cloud_dnscpanelunknown
      • namestring

        The provider's name, or “your DNS provider” when unknown.

      • hostFieldLabelstring

        What this provider calls the host field.

      • valueFieldLabelstring

        What this provider calls the value field.

      • settingsUrlstring

        Where its DNS settings are.

      • stepsarray of strings

        How to get to the right screen, in order.

      • notesarray of strings

        What this provider does differently.

    • verifiedAtstring

      When ownership was first proven.

    • atRiskSincestring

      When a check first found the record missing.

    • lapsesAtstring

      When ownership ends if the record isn't back: 7 days on.

    • nextCheckAtstring | null

      When we'll look next on our own. Null when nothing is scheduled.

    • canCheckNowAtstring | null

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

    view.phase is lapsedThe record stayed missing past the grace period. Get a new code to start over.
    • lapsedAtstring

      When ownership ended.

    • lastSeenAtstring

      When a check last found the record.

    view.phase is expiredThe code ran out before the record was found. Get a new code to carry on.
    • expiredAtstring

      When the code stopped working.

    view.phase is transferredAnother account proved this domain more recently. Final.
    • transferredAtstring

      When another account proved the domain.

    view.phase is abandonedStopped by its owner. Final.
    • abandonedAtstring

      When the claim was stopped.

  • zoneApexstring

    The zone the record belongs in. It decides what to type in the host field.

  • lastCheckobject | null

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

    Show the 8 fields insideInside lastCheck
    • idstring

      The check's id. It starts with chk_.

    • triggerstring

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

      • One of userschedulesystem, or a value added later
    • startedAtstring

      When the check started.

    • finishedAtstring | null

      When it finished. Null while it's running.

    • durationMsnumber | null

      How long it took, in milliseconds.

    • outcomeKindstring | null

      outcome.kind, repeated on its own.

      • One of verifiedpropagatingmismatchnot_foundlookup_error
    • outcomeobject | null

      What the check concluded.

      5 shapes, told apart by kind.

      outcome.kind is verifiedEvery server we asked has the record with the right value.
      • seenByarray of strings

        The servers that have the record.

      outcome.kind is propagatingThe record is right, and some servers don't have it yet. Nothing to fix.
      • seenByarray of strings

        The servers that have the record.

      • notYetarray of strings

        The servers still waiting for it.

      outcome.kind is mismatchThere's a record at the name, and its value isn't the code.
      • reasonstring

        How the value differs.

        • One of lookalike_charactertruncatedextra_quotesextra_whitespacewrong_prefixstale_tokendifferent_token
      • foundstring

        The value DNS holds.

      • expectedstring

        The value it should hold.

        • Starts with prufy-domain-verification=
      • diffAtinteger

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

      outcome.kind is not_foundNo record with the code at the name we check.
      • reasonstring

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

        • One of nothing_at_namehost_doubledwrong_namenot_at_authoritativecname_at_namenxdomain_zone
      outcome.kind is lookup_errorDNS couldn't be reached, so this check says nothing about the record.
      • failuresarray of objects

        Each server that couldn't be asked.

        Show what each item hasEach item has
        • resolverstring

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

          • One of googlecloudflare, or a value added later
        • errorstring

          How the lookup went wrong.

          • One of timeoutservfailrefusednetworkbad_responseno_nameserver_address
    • observationsarray of objects

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

      Show what each item hasEach item has
      • resolverstring

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

        • One of googlecloudflare, or a value added later
      • serverIpstring | null

        The address that was asked, when we know it.

      • qnamestring

        The name that was looked up.

      • qtypestring

        The record type that was asked for.

        • One of TXTNSSOACNAMEAAAAA
      • rcodestring | null

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

        • One of NOERRORNXDOMAINSERVFAILREFUSEDOTHER
      • answersarray of strings

        The values that came back, one per record.

      • cnameChainarray of strings

        Any CNAMEs followed on the way to the answer.

      • adboolean | null

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

      • latencyMsnumber

        How long the answer took, in milliseconds.

      • errorstring | null

        How the lookup went wrong, if it did.

        • One of timeoutservfailrefusednetworkbad_responseno_nameserver_address

Errors

StatusKindWhen
404not_foundThe link is malformed, unknown or more than 30 days old. All three get the same answer, so they can't be told apart.

Any route can also answer 500 with internal_error. Every error has the same shape, described in Errors.