curl --request GET \
--url https://app.solya.app/api/taxonomies/resolve \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.solya.app/api/taxonomies/resolve"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.solya.app/api/taxonomies/resolve', 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://app.solya.app/api/taxonomies/resolve",
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://app.solya.app/api/taxonomies/resolve"
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://app.solya.app/api/taxonomies/resolve")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/taxonomies/resolve")
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[
{
"fullPath": "Color/Blue/Turquoise",
"id": "taxonomy-color-turquoise",
"level": 3,
"matchSource": "ilike",
"path": [
"Color",
"Blue",
"Turquoise"
],
"score": 0.375,
"type": "color"
}
]Resolve a natural-language taxonomy term to its id/path
Resolve a natural-language taxonomy term (color, size, family, gender, …) to its taxonomy id and path for filtering. Runs a layered cascade: exact equality, then alias/abbreviation containment, then multi-token ILIKE (so ‘bleu turquoise’ resolves the ‘Turquoise’ node), then a semantic fallback. Omit type to search all 12 taxonomy types. NOTE: limit is applied PER taxonomy type, so omitting type can return up to 12 × limit nodes (default 60, max 240). Results are ordered by score desc.
curl --request GET \
--url https://app.solya.app/api/taxonomies/resolve \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.solya.app/api/taxonomies/resolve"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.solya.app/api/taxonomies/resolve', 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://app.solya.app/api/taxonomies/resolve",
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://app.solya.app/api/taxonomies/resolve"
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://app.solya.app/api/taxonomies/resolve")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/taxonomies/resolve")
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[
{
"fullPath": "Color/Blue/Turquoise",
"id": "taxonomy-color-turquoise",
"level": 3,
"matchSource": "ilike",
"path": [
"Color",
"Blue",
"Turquoise"
],
"score": 0.375,
"type": "color"
}
]Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Query Parameters
Natural-language taxonomy term to resolve, e.g. 'bleu turquoise', 'M', 'running'
1Restrict to one taxonomy type (size, color, family, gender, …); omit to search all 12 types
size, color, gender, category, family, sport, style, design, shape, brand_typology, brand_typology_by_style_and_target_audience, movement_type Maximum matches returned PER taxonomy type (1–20). With type omitted this applies to each of the 12 types, so the response can hold up to 12 × limit nodes (default 60, max 240).
1 <= x <= 20Restrict to a single language; omit to search all languages
en, fr 
