Page Summary
-
A WebResource represents a verified website or domain and includes its ID, URL/domain, and a list of owners, which always includes the authenticated user.
-
You can verify ownership, retrieve, update, and delete WebResources using the provided methods.
-
WebResource data includes an ID, owner list, and site information containing the identifier and type (e.g., website, Android app, domain).
-
site.identifiercan be a domain name, a URL, or an Android app URL depending on thesite.type. -
Several methods are available to manage WebResources, including inserting (verifying ownership), retrieving data, updating owner lists, deleting, listing all verified resources, and getting a verification token.
A WebResource is a representation of a verified website or domain.
It contains the canonical ID of a site or domain, the URL or domain name, and a list of owners. Note that the owners list always includes the authenticated user, because the only people who can access a WebResource are authenticated users who are owners of that site or domain.
For a list of methods for this resource, see the end of this page.
Resource representations
{ "id" : string , "site" : { "type" : string , "identifier" : string } , "owners" : [ string ] }
id
string
owners[]
list
site
object
site.
identifier
string
type
property. site.
type
string
Acceptable values are:
- "
ANDROID_APP": Setidentifierto an Android app URL. Example: "android-app://com.google.android.youtube/" - "
INET_DOMAIN": Setidentifierto a domain name. Examples: "www.example.com", "example.com" or "subdomain.example.com" - "
SITE": Setidentifierto a fully-qualified URL for your site root, ending in a / mark. Examples: "https://www.example.com/" or "https://www.example.com/subsite/"
Methods
Use the insert method to verify the authenticated user's ownership of a website or domain. Use the get , update , and delete methods to retrieve or modify a resource that has already been verified for the authenticated user.
You can see all verified resources for the authenticated user with list , and you can get a token to place on the authenticated user's site with getToken .
- delete
- Unverifies the user's ownership of a website or domain.
- get
- Retrieves the most current data for a website or domain.
- getToken
- Gets a verification token for the authenticated user to place on a website or domain.
- insert
- Verifies ownership of a website or domain.
- list
- Gets the list of the authenticated user's verified websites and domains.
- update
- Modifies the list of owners for a website or domain.

