A URL redirect is considered only after the requested storefront route or resource returns not found, so it cannot replace a live product, page, policy, collection, or other route. Merchant-managed rows use manual for one path or prefix for a /* path family. auto_slug and system_prefix rows are generated by catalog and permalink changes; reads expose them for diagnosis, but write endpoints do not change or delete them.
Store logical paths whenever one redirect should apply across public addresses. Shared domains use /{locale}-{country} for non-primary countries; country-pinned domains use only /{locale} for secondary languages. Resolution checks the addressed path first and then the logical path with that recognized address prefix removed. External targets must use HTTPS.
Endpoints#
URL Redirect limits
Get redirect limits and current usage.
Returns live list, search, bulk-delete, merchant redirect, and prefix-rule limits. Automatic redirects are reported separately and do not consume the merchant redirect limit. kind_options lists every redirect kind for the list filter and create_kind_options the kinds you can create, each with a label in English.
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.
List URL redirects
List URL redirects for the store.
Search paths and targets or filter by kind. manual and prefix rows are merchant-managed. auto_slug and system_prefix rows explain platform-generated routing history and are read-only. Each row carries kind_display, its kind named in English. Usage fields come from storefront analytics: hit_count is the approximate number of times the redirect was served over the last 90 days, including responses served from the edge cache; counts are aggregated, may be sampled at high volume, and include new visits within a few minutes. last_used_at is the most recent counted use within the last 90 days and is omitted when there was none. Usage recorded before analytics-based counting is not carried over. When the counts can't be read, the redirect is still returned, with usage_available false, hit_count null and no last_used_at; otherwise usage_available is true.
Query parameters
| Name | Type | Description |
|---|---|---|
page
|
integer |
Page number. |
limit
|
integer |
Page size, bounded by the limits response. |
search
|
string |
Search path or target. |
kind
|
string |
Filter by manual, prefix, auto_slug, or system_prefix. |
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.
-
400REDIRECT_SEARCH_TOO_LONGThe search exceeds the live maximum.
-
400INVALID_INPUTkindis not manual, prefix, auto_slug or system_prefix;error.details.fieldiskind. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get a URL redirect
Get one store-scoped URL redirect.
Returns the redirect only when it belongs to the token's store. Usage fields come from storefront analytics: hit_count is the approximate number of times the redirect was served over the last 90 days, including responses served from the edge cache; counts are aggregated, may be sampled at high volume, and include new visits within a few minutes. last_used_at is the most recent counted use within the last 90 days and is omitted when there was none. Usage recorded before analytics-based counting is not carried over. When the counts can't be read, the redirect is still returned, with usage_available false, hit_count null and no last_used_at; otherwise usage_available is true.
Path parameters
| Name | Type | Description |
|---|---|---|
redirectId
required
|
string |
Redirect 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.
-
404REDIRECT_NOT_FOUNDThe redirect does not exist in this store.
-
400REDIRECT_ID_INVALIDThe redirect id is malformed.
-
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.
Create a URL redirect
Create a manual redirect or prefix rule.
Redirects are evaluated only after a storefront route returns not found, so they cannot shadow live content. Paths use the logical storefront path. On shared domains, regional addresses use /{locale}-{country}; country-pinned domains use /{locale} for non-default languages. The runtime checks both the addressed path and its logical path. External targets must use HTTPS without URL credentials. Internal targets start with a single slash; network-path URLs and backslashes are rejected. A redirect keeps the target you give it. When that target is itself a redirected dead path, the shopper is sent on through each redirect in turn, so changing a later redirect takes effect for every earlier one, and a step that becomes a live page ends the chain there. Cycles are rejected. Prefix rules may use a fixed target or a trailing /* target that preserves the unmatched suffix. Exact addressed and logical matches are checked before prefixes; the longest matching prefix wins and includes its base path. Paths are lowercased, repeated slashes collapsed, trailing slash removed, and query/fragment ignored. Source limits count UTF-8 bytes. Incoming query parameters survive only when the target does not specify a query; they precede any target fragment. Prefix and mixed exact/prefix loops are checked on writes, including CSV imports. The separate prefix usage count includes system prefixes. Source paths that the storefront edge answers as automated vulnerability scans are rejected with REDIRECT_PATH_SCAN_ANSWERED, including in CSV imports, because such a redirect could never be reached: any path segment starting with a dot (certificate-validation paths under /.well-known/acme-challenge/, /.well-known/pki-validation/ and /.well-known/cf-custom-hostname-challenge/ are allowed), any segment ending in .php, paths starting with /wp-admin, /wp-includes, /cgi-bin, /phpmyadmin, /vendor/phpunit or /@fs, the paths /null and /undefined, and private-key file names (id_rsa, id_dsa, id_ecdsa, id_ed25519, *.key, *.pem). Paths under /wp-content/ are allowed.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
kind
|
string |
manual (default) or prefix. |
path
required
|
string |
Dead logical path. Prefix rules must end in /*. |
target
required
|
string |
Internal path or full HTTPS URL. Prefix targets may end in /*. |
redirect_type
|
integer |
301 for permanent or 302 for temporary. |
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.
-
400INVALID_INPUTThe request body or pagination values are invalid.
-
400REDIRECT_PATH_REQUIREDA non-empty path is required.
-
400REDIRECT_PATH_TOO_LONGThe path exceeds path_max_length from the limits response.
-
400REDIRECT_TARGET_REQUIREDA non-empty target is required.
-
400REDIRECT_TARGET_TOO_LONGThe target exceeds target_max_length from the limits response.
-
400REDIRECT_TYPE_INVALIDredirect_type must be 301 or 302.
-
400REDIRECT_KIND_INVALIDOnly manual and prefix redirects can be created.
-
400REDIRECT_PREFIX_INVALIDA prefix path must end with /* and contain no other wildcards.
-
400REDIRECT_PATH_INVALIDThe path is empty, root, contains unsupported characters, or has an invalid wildcard.
-
400REDIRECT_PATH_SCAN_ANSWEREDThe storefront edge answers the path as an automated scan, so the redirect could never run.
-
400REDIRECT_TARGET_INVALIDThe target is not an internal path or full HTTPS URL.
-
400REDIRECT_SELF_TARGETThe redirect points to itself.
-
400REDIRECT_LOOP_DETECTEDThe change would create a redirect loop.
-
400REDIRECT_LIMIT_REACHEDThe merchant redirect or bulk request limit was reached.
-
400REDIRECT_PREFIX_LIMIT_REACHEDThe prefix-rule limit was reached.
-
409REDIRECT_DUPLICATE_PATHThe store already has a redirect for this locale and path.
-
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.
Update a URL redirect
Update a merchant-managed redirect.
Omitted fields stay unchanged. Platform-generated auto_slug and system_prefix rows cannot be changed.
Path parameters
| Name | Type | Description |
|---|---|---|
redirectId
required
|
string |
Redirect id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
path
|
string |
Dead logical path. Prefix rules must end in /*. |
target
|
string |
Internal path or full HTTPS URL. Prefix targets may end in /*. |
redirect_type
|
integer |
301 for permanent or 302 for temporary. |
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.
-
404REDIRECT_NOT_FOUNDThe redirect does not exist in this store.
-
400REDIRECT_ID_INVALIDThe redirect id is malformed.
-
400REDIRECT_GENERATED_IMMUTABLEA platform-generated redirect was selected for mutation.
-
400INVALID_INPUTThe request body or pagination values are invalid.
-
400REDIRECT_PATH_REQUIREDA non-empty path is required.
-
400REDIRECT_PATH_TOO_LONGThe path exceeds path_max_length from the limits response.
-
400REDIRECT_TARGET_REQUIREDA non-empty target is required.
-
400REDIRECT_TARGET_TOO_LONGThe target exceeds target_max_length from the limits response.
-
400REDIRECT_TYPE_INVALIDredirect_type must be 301 or 302.
-
400REDIRECT_KIND_INVALIDOnly manual and prefix redirects can be created.
-
400REDIRECT_PREFIX_INVALIDA prefix path must end with /* and contain no other wildcards.
-
400REDIRECT_PATH_INVALIDThe path is empty, root, contains unsupported characters, or has an invalid wildcard.
-
400REDIRECT_PATH_SCAN_ANSWEREDThe storefront edge answers the path as an automated scan, so the redirect could never run.
-
400REDIRECT_TARGET_INVALIDThe target is not an internal path or full HTTPS URL.
-
400REDIRECT_SELF_TARGETThe redirect points to itself.
-
400REDIRECT_LOOP_DETECTEDThe change would create a redirect loop.
-
409REDIRECT_DUPLICATE_PATHThe store already has a redirect for this locale and path.
-
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.
Delete a URL redirect
Delete a merchant-managed redirect.
Platform-generated auto_slug and system_prefix rows cannot be deleted.
Path parameters
| Name | Type | Description |
|---|---|---|
redirectId
required
|
string |
Redirect 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.
-
404REDIRECT_NOT_FOUNDThe redirect does not exist in this store.
-
400REDIRECT_ID_INVALIDThe redirect id is malformed.
-
400REDIRECT_GENERATED_IMMUTABLEA platform-generated redirect was selected for mutation.
-
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.
Bulk delete URL redirects
Delete several merchant-managed redirects in one request.
The configured bulk cap is returned by the limits endpoint. The request is atomic: an invalid or platform-generated id rejects the selection without deleting the other rows. Unknown ids are ignored, duplicate ids are deleted once, and deleted reports the actual count.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
ids
required
|
array<string> |
Redirect ids to delete. |
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.
-
404REDIRECT_NOT_FOUNDThe redirect does not exist in this store.
-
400REDIRECT_ID_INVALIDThe redirect id is malformed.
-
400REDIRECT_GENERATED_IMMUTABLEA platform-generated redirect was selected for mutation.
-
400INVALID_INPUTSend a non-empty ids array in a valid JSON body.
-
400REDIRECT_LIMIT_REACHEDThe request exceeds the bulk-delete limit.
-
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.
Webhook events#
Subscribe to redirect events to mirror every committed create, update, and delete.
Redirect created
Fired when a URL redirect is created — manually, by a slug change, or by a permalink rename.
Payload fields
| Field | Type | Description |
|---|---|---|
redirect.id |
string |
Always present |
redirect.kind |
string |
Selectable in the Payload builder |
redirect.locale |
string |
Selectable in the Payload builder
The store language the redirect applies in. Omitted when it applies in every language. |
redirect.path |
string |
Selectable in the Payload builder |
redirect.target |
string |
Selectable in the Payload builder |
redirect.redirect_type |
integer |
Selectable in the Payload builder |
redirect.created_at |
string |
Selectable in the Payload builder |
redirect.updated_at |
string |
Selectable in the Payload builder |
Redirect updated
Fired when a URL redirect is updated.
Payload fields
| Field | Type | Description |
|---|---|---|
redirect.id |
string |
Always present |
redirect.kind |
string |
Selectable in the Payload builder |
redirect.locale |
string |
Selectable in the Payload builder
The store language the redirect applies in. Omitted when it applies in every language. |
redirect.path |
string |
Selectable in the Payload builder |
redirect.target |
string |
Selectable in the Payload builder |
redirect.redirect_type |
integer |
Selectable in the Payload builder |
redirect.created_at |
string |
Selectable in the Payload builder |
redirect.updated_at |
string |
Selectable in the Payload builder |
Redirect deleted
Fired when a URL redirect is deleted.
Payload fields
| Field | Type | Description |
|---|---|---|
redirect.id |
string |
Always present |
redirect.path |
string |
Selectable in the Payload builder |