Site verification

Add the ownership tags Google, Meta and other services check on the storefront home page.

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

GET read_site_verification

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

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Add a site verification tag

POST write_site_verification

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 tag names it.

Example: google-site-verification
token string

The verification token. Required unless tag is sent.

Example: abc123XYZ
tag string

The whole tag the service shows, instead of provider and token.

Example: <meta name="google-site-verification" content="abc123XYZ">

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 SITE_VERIFICATION_PROVIDER_UNKNOWN

    The provider is not one of the listed services.

  • 400 SITE_VERIFICATION_PROVIDER_MISMATCH

    A pasted tag names a different provider than provider.

  • 400 SITE_VERIFICATION_TOKEN_INVALID

    The token is empty, too long, or contains characters other than letters, digits and _ - . : = + /.

  • 409 SITE_VERIFICATION_LIMIT_REACHED

    The store already has the maximum number of tags.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Remove a site verification tag

DELETE write_site_verification

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.

Example: 3d0f6a8e-5b1c-4f7a-9e2d-8c4b1a6f0e93

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 403 SITE_VERIFICATION_NOT_OWNER

    An app token may only remove tags that app added.

  • 404 SITE_VERIFICATION_NOT_FOUND

    No tag with this id exists in the store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.