Country templates
List a theme's resource country templates for the sitemap
Lists every country template the company's resources hold in one of
its themes, so the sitemap can show them beside its own rules. Each
entry names the resource and every storefront path it is served at
(for a product, products/<slug> and shop/<slug>), the template and the
countries it is tagged with, and the sitemap rules visitors from those
countries get instead: active rules of the theme on one of the
resource's paths, or rendering the resource, whose region code equals
one of the template's country codes exactly. A resource's main template
is never listed. Entries are ordered by resource type, resource id,
then template id. The listing is not paginated; filter it to the rows
on screen with route_path. Requires theme view permission.
GET
/
api
/
v202604
/
themes
/
{theme_id}
/
country-templates
/
sitemap
List a theme's resource country templates for the sitemap
curl --request GET \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/sitemap \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/sitemap"
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/sitemap', 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/sitemap",
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/sitemap"
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/sitemap")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/sitemap")
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{
"country_templates": [
{
"resource_type": "Product",
"resource_id": 30117,
"resource_title": "Crunch",
"paths": [
"products/crunch",
"shop/crunch"
],
"template_id": 902377,
"template_name": "Mexico Product",
"country_isos": [
"MX"
],
"overridden_by": [
{
"region_rule_id": 51207,
"route_path": "products/crunch",
"region_code": "MX"
}
]
},
{
"resource_type": "Page",
"resource_id": 8812,
"resource_title": "About us",
"paths": [
"pages/about-us",
"page/about-us"
],
"template_id": 902391,
"template_name": "Canada Page",
"country_isos": [
"CA"
],
"overridden_by": []
}
],
"status": 200,
"meta": {
"request_uuid": "2a7f3c18-5d94-4e6b-a0c2-8f1e9b4d7a65",
"timestamp": "2026-11-19T16:44:05Z"
}
}{
"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 a theme's resource country templates for the sitemap
curl --request GET \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/sitemap \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/sitemap"
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/sitemap', 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/sitemap",
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/sitemap"
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/sitemap")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/sitemap")
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{
"country_templates": [
{
"resource_type": "Product",
"resource_id": 30117,
"resource_title": "Crunch",
"paths": [
"products/crunch",
"shop/crunch"
],
"template_id": 902377,
"template_name": "Mexico Product",
"country_isos": [
"MX"
],
"overridden_by": [
{
"region_rule_id": 51207,
"route_path": "products/crunch",
"region_code": "MX"
}
]
},
{
"resource_type": "Page",
"resource_id": 8812,
"resource_title": "About us",
"paths": [
"pages/about-us",
"page/about-us"
],
"template_id": 902391,
"template_name": "Canada Page",
"country_isos": [
"CA"
],
"overridden_by": []
}
],
"status": 200,
"meta": {
"request_uuid": "2a7f3c18-5d94-4e6b-a0c2-8f1e9b4d7a65",
"timestamp": "2026-11-19T16:44:05Z"
}
}{
"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"
}
}