---
title: "Generate a home page verification meta tag"
method: POST
path: "/domainverification/generatemetatag"
tags: ["Domain verification"]
---

# Generate a home page verification meta tag

`POST /domainverification/generatemetatag`

## Request

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

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

## Headers

- `user-agent` string, required

## Request body

- DomainVerificationRequest
  - `DomainName` string, required: Domain name to generate or verify a domain-verification token for.

## Response `200`

The meta tag to publish.

- DomainVerificationMetaTagResponse
  - `metaTag` string, required: Meta tag to publish in the home page head before calling verifymetatag.

## Other responses

- `400`: Bad request - the request body was invalid, the domain was invalid, or the domain cannot be verified.
- `401`: Unauthorized - the hibp-api-key header was missing, malformed, or invalid.
- `403`: Forbidden - no user agent has been specified in the request, or the current subscription does not include permission to add domains via the API.

## Changes

- **2026-11-19** `52f578954670`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3/changes/domainverification/generatemetatag/post.md)

---

[API](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3.md) - [All operations](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3/revisions/52f578954670?raw)
