prufy
Skip to the page

ClaimsCreate a claim

Claims

Create a claim

Start proving a domain is yours, and get the one DNS record to add.

POST/api/v1/claims

Send whatever the person typed: a bare domain, a URL or an email address all work. The response says what we made of it in normalized, and view.record is the TXT record to add.

This is the one route that can start a session. When the request carries no session cookie, the response sets one, and that cookie is what makes the claim yours. Keep it and send it with every later request.

Asking again for a domain you already have an open claim on returns that claim with existing: true and a 200, so it's safe to retry.

warning is verified_by_another_account when someone else has already proven this name. You can still go ahead: the newest proof wins.

Authentication

Send the session cookie if you have one. If you don't, the response sets one. How sessions work.

Body

JSON, with content-type: application/json.

  • inputstringrequired

    The domain, as typed. A URL or an email address works too: we keep the host.

    • At most 2,000 characters

Response

201 Created or 200 OK, with the same body either way. Times are ISO 8601 strings in UTC.

  • claimIdstring

    The claim's id. It starts with clm_.

  • existingboolean

    True when you already had an open claim on this domain and got it back.

  • normalizedobject

    What we made of the input.

    Show the 5 fields insideInside normalized
    • asciistring

      The name as DNS stores it: lowercase, in punycode if needed.

    • unicodestring

      The name as a person reads it.

    • registrableDomainstring

      The part someone registered: acme.co.uk for mail.acme.co.uk.

    • isSubdomainboolean

      True when the name is below its registrable domain.

    • warningsarray of objects

      Things worth a second look. They never stop a claim.

      Show what each item hasEach item has
      • kind"mixed_script"
      • labelstring

        The part of the name that mixes alphabets.

      • scriptsarray of strings

        The alphabets found in it, like Latin and Cyrillic.

      • messagestring

        The warning in plain words.

  • 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.

  • warning"verified_by_another_account" | null

    Set when another account has already proven this domain. You can still go on.

Errors

StatusKindWhen
400bad_requestThe body isn't JSON, or doesn't match the shape below. message names the first field to fix, and fields lists each one with its path.
401unauthorizedThe request carries a session cookie we don't know, because it ended or is from another Prufy. Nothing is created, and the response clears the cookie, so sending it again starts a new session.
413payload_too_largeThe body is over 16 KB. No route takes anything near that.
422emptyThe input is blank. This and the seven kinds below are a 422, each with a message that says what to type instead.
422invalid_charactersThe input has characters a domain can't contain.
422label_too_longOne part between dots is longer than 63 characters.
422too_longThe whole name is longer than 253 characters.
422ip_addressThe input is an IP address, not a domain.
422reserved_tldThe ending is set aside, like .test or .localhost.
422public_suffixThe input is a suffix many people share, like co.uk, not a domain under it.
422single_labelThe input has no dot, so there's no ending to look up.
429rate_limitedThe account has started 20 claims in the last hour, or this network has started 10 new sessions in the last hour.

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