Domain verification

Generate a DNS verification token for a domain

Changed on

Available on Pro subscriptions. Generates the domain-specific TXT record value used to verify control of a domain via DNS before it can be searched through the domain search APIs.

post/domainverification/generatednstoken

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 TXT record value to publish on the domain.

txtRecordValuestring required

TXT record value to publish on the domain before calling verifydnstoken.

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