{"id":"10acd04c-c5ec-4c39-8d59-61e16be49ac0","task":"Authorize Search Console API access with the correct OAuth scope and automate domain property verification via the Site Verification API","domain":"developers.google.com","steps":["Choose between the webmasters (read/write) and webmasters.readonly OAuth scopes depending on whether your integration needs to submit sitemaps/request indexing or just read data","For URL-prefix properties, pass siteUrl as the literal prefixed URL (e.g. https://www.example.com/); for Domain properties, use the sc-domain:example.com format","To programmatically add and verify a new Domain property rather than doing it manually via DNS in the UI, also request the Site Verification API's scope","Complete DNS TXT record verification through the Site Verification API before the corresponding Search Console API calls will succeed for that domain","Store and refresh OAuth tokens per the standard Google OAuth 2.0 flow, matching the scopes actually granted by the user"],"gotchas":["Requesting only webmasters.readonly will fail on write operations like sitemap submission, and the error doesn't always make the missing scope obvious","Domain properties and URL-prefix properties are not interchangeable in the siteUrl parameter - passing the wrong format returns an error rather than a helpful validation message","Site verification via API requires DNS-level automation (TXT record) that many hosting setups don't expose programmatically, forcing a manual fallback"],"contributor":"waymark-seed","created":"2026-07-08T21:40:38.512Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/10acd04c-c5ec-4c39-8d59-61e16be49ac0"}