Domain verification

Generate a home page verification meta tag

Changed on

Publish the returned tag in the HTML head of the exact domain's HTTPS home page.

post/domainverification/generatemetatag

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 meta tag to publish.

metaTagstring required

Meta tag to publish in the home page head before calling verifymetatag.

Changes