curl --request GET \
--url https://api.closedloop.sh/v1/themes \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.closedloop.sh/v1/themes"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.closedloop.sh/v1/themes', 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.closedloop.sh/v1/themes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.closedloop.sh/v1/themes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.closedloop.sh/v1/themes")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.closedloop.sh/v1/themes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-000000000001",
"title": "Payment interruption recovery",
"description": "Customers need clearer recovery paths after failed transactions.",
"ric_score": 7.8,
"status": "active"
}
],
"pagination": {
"total": 1,
"limit": 50,
"offset": 0
},
"search_mode": "semantic",
"min_similarity": 0.5
}List / search themes
List or search your product themes by status, product, area, date, text, or meaning, ranked by RIC score or by how much feedback each has.
curl --request GET \
--url https://api.closedloop.sh/v1/themes \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.closedloop.sh/v1/themes"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.closedloop.sh/v1/themes', 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.closedloop.sh/v1/themes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.closedloop.sh/v1/themes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.closedloop.sh/v1/themes")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.closedloop.sh/v1/themes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-000000000001",
"title": "Payment interruption recovery",
"description": "Customers need clearer recovery paths after failed transactions.",
"ric_score": 7.8,
"status": "active"
}
],
"pagination": {
"total": 1,
"limit": 50,
"offset": 0
},
"search_mode": "semantic",
"min_similarity": 0.5
}Authorizations
Team-scoped API key created in the app (Settings → API Keys).
Sent as X-API-Key: <key> on every request. The header name apikey
is also accepted as an alias.
Query Parameters
Has no effect; kept for compatibility.
Search text. Required when search_mode is semantic.
500lexical matches text (default); semantic matches by meaning.
lexical, semantic How close a semantic match must be, from 0.3 to 1. Semantic search only.
0.3 <= x <= 1Fall back to text search when semantic search is unavailable. Semantic search only.
Include merged themes, each with its replacement_theme_id.
Return themes with this status. Omit it for open themes.
active, declined, shipped, parked ric_score, insight_count, unique_customer_count, created_at Filter by one product ID from /products: the insights filed under it.
Filter by one buildable product feature ID from /features.
Filter by one parent product-area ID from /areas: the insights filed on it or on one of its feature areas.
Filter by one feature area from /areas (an area, not a feature ID): the insights filed on it.
Start date (inclusive), YYYY-MM-DD. Other formats return 400.
^\d{4}-\d{2}-\d{2}$End date (inclusive), YYYY-MM-DD. Other formats return 400.
^\d{4}-\d{2}-\d{2}$Page size (max 200).
1 <= x <= 200Number of records to skip.
x >= 0