Country templates
List the sitemap rules that apply to a resource
Lists the active sitemap rules of one of the company's themes that
apply to a product, page or other themeable resource: rules saved on
any storefront path the resource is served at (for a product,
products/<slug> and shop/<slug>), and rules on other paths that render
the resource. Template, redirect and disabled rules are all listed.
Each rule says whether it fires on the resource's path or renders the
resource elsewhere, whether it reaches one country or every country
without a rule of its own, and which of the resource's country
templates it overrides for its country. Rules are ordered by path, then
priority, then age. Requires theme view permission.
GET
/
api
/
v202604
/
themes
/
{theme_id}
/
country-templates
/
rules
List the sitemap rules that apply to a resource
curl --request GET \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"region_rules": [
{
"id": 51207,
"route_path": "products/crunch",
"region_code": "MX",
"priority": 0,
"active": true,
"redirect_type": "template",
"redirect_url": null,
"redirect_status_code": 302,
"description": "Mexico product page",
"company_id": 1042,
"application_theme_id": 3381,
"application_theme_template_id": 902377,
"resource_type": null,
"resource_id": null,
"route_kind": "credit_prefixed",
"created_at": "2026-11-18T09:12:44Z",
"updated_at": "2026-11-18T09:12:44Z",
"relation": "resource_path",
"reach": "country",
"overrides": [
902391
]
},
{
"id": 51219,
"route_path": "shop/crunch",
"region_code": "US",
"priority": 0,
"active": true,
"redirect_type": "disabled",
"redirect_url": null,
"redirect_status_code": 302,
"description": null,
"company_id": 1042,
"application_theme_id": 3381,
"application_theme_template_id": null,
"resource_type": null,
"resource_id": null,
"route_kind": "credit_prefixed",
"created_at": "2026-11-18T09:20:03Z",
"updated_at": "2026-11-18T09:20:03Z",
"relation": "resource_path",
"reach": "fallback",
"overrides": []
}
],
"status": 200,
"meta": {
"request_uuid": "6c1d9e24-8b3f-4a57-9e10-2f4b7a8c5d36",
"timestamp": "2026-11-19T16:42:30Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"error": {
"message": "<string>",
"details": {
"type": "not_found",
"template_id": 123,
"country_ids": [
123
]
}
},
"status": 123,
"meta": {
"request_uuid": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"message": "<string>",
"details": {
"type": "not_found",
"template_id": 123,
"country_ids": [
123
]
}
},
"status": 123,
"meta": {
"request_uuid": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Path Parameters
Query Parameters
⌘I
List the sitemap rules that apply to a resource
curl --request GET \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"region_rules": [
{
"id": 51207,
"route_path": "products/crunch",
"region_code": "MX",
"priority": 0,
"active": true,
"redirect_type": "template",
"redirect_url": null,
"redirect_status_code": 302,
"description": "Mexico product page",
"company_id": 1042,
"application_theme_id": 3381,
"application_theme_template_id": 902377,
"resource_type": null,
"resource_id": null,
"route_kind": "credit_prefixed",
"created_at": "2026-11-18T09:12:44Z",
"updated_at": "2026-11-18T09:12:44Z",
"relation": "resource_path",
"reach": "country",
"overrides": [
902391
]
},
{
"id": 51219,
"route_path": "shop/crunch",
"region_code": "US",
"priority": 0,
"active": true,
"redirect_type": "disabled",
"redirect_url": null,
"redirect_status_code": 302,
"description": null,
"company_id": 1042,
"application_theme_id": 3381,
"application_theme_template_id": null,
"resource_type": null,
"resource_id": null,
"route_kind": "credit_prefixed",
"created_at": "2026-11-18T09:20:03Z",
"updated_at": "2026-11-18T09:20:03Z",
"relation": "resource_path",
"reach": "fallback",
"overrides": []
}
],
"status": 200,
"meta": {
"request_uuid": "6c1d9e24-8b3f-4a57-9e10-2f4b7a8c5d36",
"timestamp": "2026-11-19T16:42:30Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"error": {
"message": "<string>",
"details": {
"type": "not_found",
"template_id": 123,
"country_ids": [
123
]
}
},
"status": 123,
"meta": {
"request_uuid": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"message": "<string>",
"details": {
"type": "not_found",
"template_id": 123,
"country_ids": [
123
]
}
},
"status": 123,
"meta": {
"request_uuid": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}