Domain verification

Verify a DNS token for a domain

Changed on

Available on Pro subscriptions. Checks the hibp-verify TXT record on the requested domain and, if it matches the previously generated token, marks the domain as verified for domain search.

post/domainverification/verifydnstoken

Request

  • Base URL
    https://haveibeenpwned.com/api/v3
  • Auth
    API key in header hibp-api-key

Headers

user-agentstring required

User agent identifying the consuming application. Required for authenticated APIs. Use your application name and optionally its version. Browsers may supply their own User-Agent instead of a custom value.

Request body

DomainNamestring required

Domain name to generate or verify a domain-verification token for.

Response

The domain was successfully verified.

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property message from the response with the status

    5 more changes in this revision