Requires authorization
Verifies ownership of a website or domain. Try it now.
Before calling insert, place the authenticated user's verification token on their website or domain. When you call insert, Google's Site Verification service queries the website or domain and looks for the token.If Google finds the user's token on the website or domain, it records the site as verified. The authenticated user can also delegate ownership; any email addresses you specify in the owners
field in the request body are also recorded as verified site owners.
The verificationMethod
query parameter specifies the verification token type that Google should check for. The value of verificationMethod
should match the value previously passed to getToken.
Request
HTTP request
POST https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=method
Parameters
Parameter name | Value | Description |
---|---|---|
Required query parameters | ||
verificationMethod |
string |
The method to use for verifying a site or domain. |
Authorization
This request requires authorization with at least one of the following scopes (read more about authentication and authorization).
Scope |
---|
https://www.googleapis.com/auth/siteverification |
https://www.googleapis.com/auth/siteverification.verify_only |
Request body
In the request body, supply a WebResource resource.
Response
If successful, this method returns a WebResource resource in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.