Complete Google Verification
🔵 POST - Complete Google Verification
Complete Google Verification
Verify domain ownership and submit sitemap to Google Search Console
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
- Verify domain ownership with Google Site Verification API
- Add site to Google Search Console
- Submit sitemap (
/sitemap.xml) to Google
Path Parameters
string
required
The Clerk organization ID (e.g.,
org_xxx)Response
string
success or errorboolean
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 inai_sites:
google_verification_status: Set toVERIFIEDgoogle_sitemap_submitted_at: Current timestamp
google_verification_status: Set toFAILED
Prerequisites
Must call/start-google-verification/{org_id} first to get the TXT record token.