> ## Documentation Index
> Fetch the complete documentation index at: https://docs.searchcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete Google Verification

> Verify domain ownership and submit sitemap to Google Search Console

## Overview

This endpoint completes the Google Search Console verification process after the user has added the TXT record via Entri.

Call this endpoint in **parallel** with `/complete-certificate` after the user has added both TXT records.

## Steps Performed

1. **Verify domain ownership** with Google Site Verification API
2. **Add site** to Google Search Console
3. **Submit sitemap** (`/sitemap.xml`) to Google

## Path Parameters

<ParamField path="org_id" type="string" required>
  The Clerk organization ID (e.g., `org_xxx`)
</ParamField>

## Response

<ResponseField name="status" type="string">
  `success` or `error`
</ResponseField>

<ResponseField name="verified" type="boolean">
  Whether domain ownership was verified
</ResponseField>

<ResponseField name="added_to_search_console" type="boolean">
  Whether the site was added to Search Console
</ResponseField>

<ResponseField name="sitemap_submitted" type="boolean">
  Whether the sitemap was submitted
</ResponseField>

<ResponseField name="message" type="string">
  Success or error message
</ResponseField>

## Example Response

```json theme={null}
{
  "status": "success",
  "verified": true,
  "added_to_search_console": true,
  "sitemap_submitted": true,
  "message": "Domain verified and sitemap submitted to Google Search Console"
}
```

## Database Updates

On success, the following columns are updated in `ai_sites`:

* `google_verification_status`: Set to `VERIFIED`
* `google_sitemap_submitted_at`: Current timestamp

On failure:

* `google_verification_status`: Set to `FAILED`

## Prerequisites

Must call `/start-google-verification/{org_id}` first to get the TXT record token.
