Skip to main content
POST
Complete Google Verification

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

string
required
The Clerk organization ID (e.g., org_xxx)

Response

string
success or error
boolean
Whether domain ownership was verified
boolean
Whether the site was added to Search Console
boolean
Whether the sitemap was submitted
string
Success or error message

Example Response

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.