Country templates
Find the resources served at a theme's sitemap paths
Finds, for each path, the one resource of the company that the
storefront serves there, so the sitemap can offer to move a rule that
names only a path onto that resource. A path such as products/crunch
or shop/crunch names a product by its slug, and enrollments/<token>
names an enrollment pack that has no slug. Paths are matched as the
storefront router reads them, without regard to case and without a
leading slash, and each comes back in that form. Draft, scheduled,
inactive and archived resources are found too; deleted ones are not.
A path no resource is served at is left out, and so is a path more
than one resource is served at, such as one enrollment pack's token
that equals another pack's slug: the endpoint never guesses between
them. A path under the first segment of one of the theme's non-credit
custom routes, such as blog/<slug> while a non-credit rule sits on
blog/<slug>, is left out too, because the storefront serves the custom
route there and not the resource. Entries follow the order of the
requested paths, each path once. Requires theme view permission.
GET
/
api
/
v202604
/
themes
/
{theme_id}
/
country-templates
/
resources
Find the resources served at a theme's sitemap paths
curl --request GET \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/resources \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/resources"
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/resources', 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/resources",
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/resources"
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/resources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/resources")
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{
"resources": [
{
"route_path": "products/crunch",
"resource_type": "Product",
"resource_id": 30117,
"title": "Crunch"
},
{
"route_path": "enrollments/x7kq2mp9wd4hn3rt",
"resource_type": "EnrollmentPack",
"resource_id": 4471,
"title": "Starter Kit"
}
],
"status": 200,
"meta": {
"request_uuid": "9b3d5e17-2c84-4a6f-b1e0-7d4c8a2f6e53",
"timestamp": "2026-11-20T17:05:12Z"
}
}{
"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
Find the resources served at a theme's sitemap paths
curl --request GET \
--url https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/resources \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/resources"
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/resources', 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/resources",
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/resources"
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/resources")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v202604/themes/{theme_id}/country-templates/resources")
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{
"resources": [
{
"route_path": "products/crunch",
"resource_type": "Product",
"resource_id": 30117,
"title": "Crunch"
},
{
"route_path": "enrollments/x7kq2mp9wd4hn3rt",
"resource_type": "EnrollmentPack",
"resource_id": 4471,
"title": "Starter Kit"
}
],
"status": 200,
"meta": {
"request_uuid": "9b3d5e17-2c84-4a6f-b1e0-7d4c8a2f6e53",
"timestamp": "2026-11-20T17:05:12Z"
}
}{
"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"
}
}