לפני קריאה ל-insert, צריך להציב את אסימון האימות של המשתמש המאומת באתר או בדומיין שלו. כשמבצעים קריאה ל-insert, שירות אימות האתר של Google שולח שאילתה לאתר או לדומיין ומחפש את האסימון.
אם Google תמצא את האסימון של המשתמש באתר או בדומיין, היא תתעד את האתר כמאומת.המשתמש המאומת יכול גם להאציל בעלות. כל כתובות האימייל שמציינים בשדה owners בגוף הבקשה מתועדות גם כבעלי אתרים מאומתים.
פרמטר השאילתה verificationMethod מציין את סוג אסימון האימות ש-Google צריכה לחפש.הערך של verificationMethod צריך להיות תואם לערך שהועבר בעבר אל getToken.
בקשה
בקשת HTTP
POST https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=method
[null,null,["עדכון אחרון: 2024-08-23 (שעון UTC)."],[[["The Site Verification API allows you to programmatically verify ownership of a website or domain using a verification token."],["Before verification, you need to place a verification token on your website, obtained via the `getToken` method."],["The API confirms ownership by checking for the token and records verified owners, including delegated ones."],["This process requires authorization with specific scopes related to site verification."],["A successful verification returns a WebResource resource, confirming the site or domain ownership."]]],["To verify website ownership, place the user's verification token, obtained via `getToken`, on the site. Send a POST request to `/site-verification/v1/webResource/insert` with the `verificationMethod` query parameter matching the token type. Google's service checks for the token and records the site as verified if found. You can also specify additional owners in the request body. Ownership is stored and visible to all current and future owners. This request requires authorization with specified scopes.\n"]]