Services such as Google Search Console, Google Merchant Center, Meta and Pinterest confirm that a merchant owns a store by looking for a <meta> tag on its home page. Each tag added here is shown on the home page of every storefront in the store, on all of its domains, as soon as it is added.
Only the listed providers are accepted, and only plain tokens: the storefront writes the tag itself, so markup sent to this API is never rendered. Send provider and token, or send the whole <meta> tag a service shows in tag and the provider is read from it.
An app token owns the tags it adds. Adding the same tag again returns it unchanged, so setup can be retried safely; an app can remove only its own tags, while the merchant can remove any tag in Store Admin. Uninstalling an app removes its tags. Most services re-check ownership from time to time, so remove a tag only when the service no longer needs it.
Endpoints#
List site verification tags
List the store's site verification tags and the services they can verify.
Every tag is shown as a <meta> tag on the home page of every storefront in the store, on all of its domains. providers is the closed list of services a tag can name. source is merchant or app; source_label says who added it in English. max is the store's limit.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Add a site verification tag
Add one verification tag to every storefront home page.
Send provider and token, or only tag with the whole <meta name="…" content="…"> the service gave you. Only listed providers and plain tokens are accepted; markup is never rendered. Adding a tag your app already added returns the existing tag. The tag appears on storefront home pages at once.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
provider
|
string |
Tag name of a listed service, for example google-site-verification. Required unless |
token
|
string |
The verification token. Required unless |
tag
|
string |
The whole tag the service shows, instead of provider and token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400SITE_VERIFICATION_PROVIDER_UNKNOWNThe provider is not one of the listed services.
-
400SITE_VERIFICATION_PROVIDER_MISMATCHA pasted tag names a different provider than
provider. -
400SITE_VERIFICATION_TOKEN_INVALIDThe token is empty, too long, or contains characters other than letters, digits and _ - . : = + /.
-
409SITE_VERIFICATION_LIMIT_REACHEDThe store already has the maximum number of tags.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Remove a site verification tag
Remove one verification tag.
App tokens can remove only the tags their app added; the merchant can remove any tag in Store Admin. Remove a tag only after the service no longer needs it: most services re-check ownership from time to time.
Path parameters
| Name | Type | Description |
|---|---|---|
tagId
required
|
uuid |
Verification tag id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
403SITE_VERIFICATION_NOT_OWNERAn app token may only remove tags that app added.
-
404SITE_VERIFICATION_NOT_FOUNDNo tag with this id exists in the store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.