Find taxonomies and terms
Find a classification group such as Categories and list the terms linked to it, such as Culture or Sports. You can also browse terms across your publication.
| Task | Operation | Result |
|---|---|---|
| Browse classification groups | GET /api/v1/admin/taxonomies | Paged taxonomies, with terms by default |
| Inspect a known group | GET /api/v1/admin/taxonomies/{key} | One taxonomy with a term array |
| Browse term records | GET /api/v1/admin/terms | Paged term keys and titles, without parent mappings |
Context and identifiers
Allowed roles: readonly, manager, support, admin, partner; root is also permitted. Send the assigned token and publication key. Service accounts cannot use these routes, including those with full_access. Keep privileged calls in trusted server code.
| Input | Location / type | Meaning |
|---|---|---|
| resource | Required header, publication public-key string | Selects the publication. This is not a numeric record ID or secret. |
| token | Required header, existing eligible token string | ADMIN_TOKEN in the examples. |
| key | Taxonomy-detail path, string | Known taxonomy key within the selected publication; not a term key or numeric ID. |
The caller must be active; their current publication relationship, when present, must not be locked or suspended. Choose the intended publication. See shared errors.
A taxonomy is a group. A term is a separate record that can link to several groups. Group, term and link IDs differ; keys are not globally unique.
Examples use fictional taxonomy 7101/category and term 7201/culture with illustrative responses. Requests use cURL, Node.js 18+ fetch in an ES module (.mjs), and Python 3 urllib. Set WALLKIT_API_BASE to scheme and host only, plus RESOURCE_KEY and ADMIN_TOKEN. Plain labels avoid depending on identical decoding across responses.
Browse taxonomies
GET /api/v1/admin/taxonomies
List groups in this publication with nonnull, nonblank stored titles. A group excluded by its title can still be read by key.
Before you call
Send the token and publication key. Terms expand by default. No reader or content record is needed.
Request
No body is needed.
| Query input | Type / requirement | Meaning and constraints |
|---|---|---|
| page | Optional integer; send 1 explicitly | Send a positive page, such as 1; the omitted-page default is unspecified. |
| limit | Optional integer; default 10 | Send a positive page size, such as 10. No maximum is specified here. |
| by | Optional known field string; default id | Sort field. No order alias or stable tie order is promised. |
| sort | Optional direction string; default DESC | Use ASC or DESC. |
| filter | Optional bracket map or JSON-string field map | Metadata-derived taxonomy fields. For example filter[Taxonomies.title] performs a case-insensitive substring match against stored text. Unknown/invalid fields are not uniformly rejected. |
| with_terms | Optional boolean; default true | Use literal false to omit terms from each taxonomy. Other nonempty words such as off are not equivalent to false. |
Response fields
HTTP 200 returns items and the common paginator. with_terms:false omits terms.
| Field | Type / presence | Meaning |
|---|---|---|
| id | Stored numeric identifier; always returned | Group ID. Output is not explicitly converted to a JSON number. |
| key | Text; always returned | Stored key, without automatic lowercase/slug conversion. |
| title | URL-decoded text; always returned | Display label. Decoding can differ from other responses; null preservation is unspecified. |
| terms[] | Array; default in list, absent with with_terms=false; always in detail | Empty if no eligible terms. Rows contain id, key and title. |
| terms[].id | Stored numeric identifier; in each term | Term ID, not group/link ID; no explicit JSON-number conversion. |
| terms[].key | Text; in each term | Related key; decoded output may not reproduce stored spelling. |
| terms[].title | URL-decoded text; in each term | Term label, without parent maps, Plan rules or reader access. |
Expanded terms belong to this group/publication and have nonblank, nonnull titles. Order, uniqueness and deduplication are unspecified. Results are arrays, not key-indexed maps. Totals count groups, not terms.
Example: Read groups with their terms
The request explicitly enables the default expansion.
curl "${WALLKIT_API_BASE}/api/v1/admin/taxonomies" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}" \
--get \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10' \
--data-urlencode 'by=id' \
--data-urlencode 'sort=ASC' \
--data-urlencode 'with_terms=true'
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/taxonomies`);
url.search = new URLSearchParams({"page": "1", "limit": "10", "by": "id", "sort": "ASC", "with_terms": "true"}).toString();
const response = await fetch(url, {
method: "GET",
headers: {"resource": process.env.RESOURCE_KEY, "token": process.env.ADMIN_TOKEN}
});
console.log(response.status, await response.json());
import os, json
from urllib.request import Request, urlopen
from urllib.error import HTTPError
from urllib.parse import urlencode
url = os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/taxonomies"
url += "?" + urlencode({'page': '1', 'limit': '10', 'by': 'id', 'sort': 'ASC', 'with_terms': 'true'})
request = Request(
url,
headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
method="GET"
)
try:
with urlopen(request) as response:
print(response.status, json.load(response))
except HTTPError as error:
print(error.code, json.load(error))
HTTP 200 response:
{
"items": [
{
"id": 7101,
"key": "category",
"title": "Category",
"terms": [
{
"id": 7201,
"key": "culture",
"title": "Culture"
}
]
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
Use category for group detail. Nested ID 7201 identifies a term.
Alternative: Omit expansion or show an empty page
With with_terms:false, items have only id, key and title. Excerpt without paginator:
{
"items": [
{
"id": 7101,
"key": "category",
"title": "Category"
}
]
}
Absent terms means expansion was omitted, not no links. A page with no matching groups returns empty items and a paginator:
{
"items": []
}
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | items[] empty, with paginator | No selected taxonomy matches, including the nonblank-title restriction. | Check publication, page and filters; display an empty list. Use a known key for detail when appropriate. |
| 200 | Taxonomy items without terms | with_terms=false omitted expansion. | Request expansion or read the known taxonomy detail; do not treat omission as an empty relationship set. |
| Varies / no guaranteed JSON | Query/filter/related-data/transport failure | Failures are not uniformly converted into an empty success. | Use known fields, keep any request reference and ask the integration operator to inspect the failure. |
See shared errors. Read group detail for linked terms.
Inspect a taxonomy by key
GET /api/v1/admin/taxonomies/{key}
Read a group and terms by publication key. Unlike the list, detail does not exclude a blank group title.
Before you call
Send the token, publication key and stored group key. Lookup sanitizes/trims without lowercase/slug conversion. Use the exact stored key and encode it as one path segment; arbitrary slash-containing keys are not guaranteed.
Request
Body, filter, pagination, sort and with_terms are ignored. Use group key category, not ID 7101 or term key culture.
Response fields
HTTP 200 returns id, key, title and terms at the top level, using list field meanings. There is no items/paginator wrapper. terms is always an array of id/key/title records from this publication with nonblank titles. It can be empty despite links to excluded rows. No parent map or Plan/access rules are added.
Example: Read the category group
curl "${WALLKIT_API_BASE}/api/v1/admin/taxonomies/category" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/taxonomies/category`);
const response = await fetch(url, {
method: "GET",
headers: {"resource": process.env.RESOURCE_KEY, "token": process.env.ADMIN_TOKEN}
});
console.log(response.status, await response.json());
import os, json
from urllib.request import Request, urlopen
from urllib.error import HTTPError
url = os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/taxonomies/category"
request = Request(
url,
headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
method="GET"
)
try:
with urlopen(request) as response:
print(response.status, json.load(response))
except HTTPError as error:
print(error.code, json.load(error))
HTTP 200 response:
{
"id": 7101,
"key": "category",
"title": "Category",
"terms": [
{
"id": 7201,
"key": "culture",
"title": "Culture"
}
]
}
The array shows selected links at read time, not every publication term or reader access.
Alternative: The taxonomy is not found
HTTP 404 response:
{
"error": "taxonomy_not_exists",
"error_description": "Taxonomy not found",
"req_guid": "synthetic-request-reference"
}
No group matched this key/publication. A found group without eligible terms returns 200 with terms[].
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 404 | taxonomy_not_exists / Taxonomy not found | No taxonomy matches the trimmed key and selected publication. | Check the taxonomy key and publication; do not substitute a term key or numeric ID. |
| 200 | terms[] empty | No eligible same-publication, nonblank-title linked term rows. | Show the group without terms; do not label the taxonomy missing. |
| Varies / no guaranteed JSON | Query/related-data/transport failure | Error formats can vary. | Keep any request reference and ask the integration operator to inspect the failure. |
See shared errors. Browse terms without choosing a group.
Browse standalone terms
GET /api/v1/admin/terms
List publication terms, including unlinked or blank-title records. No group/parent map is selected; group expansion’s title filter does not apply.
Before you call
Send the token and publication key. Use group detail for links. No group key, reader or content is required.
Request
No body is needed. The primary example omits filters.
| Query input | Type / requirement | Meaning and constraints |
|---|---|---|
| page | Optional integer; send 1 explicitly | Send a positive page, such as 1; the omitted-page default is unspecified. |
| limit | Optional integer; default 10 | Send a positive page size, such as 10. No maximum is specified here. |
| by | Optional known field string; default id | Sort field; no order alias or stable tie order is promised. |
| sort | Optional direction string; default DESC | Use ASC or DESC. |
| filter | Optional bracket field map | Term-field filtering; behavior differs from taxonomy-list filtering. Do not assume its JSON-string syntax, model prefixes, text matching or invalid-field handling applies here. No taxonomy-key relationship filter is established. |
Response fields
HTTP 200 returns items and the common paginator. Items have two fields:
| Field | Type / presence | Meaning |
|---|---|---|
| key | URL-decoded text; always selected | No universal encoded-key round-trip or global uniqueness guarantee. |
| title | URL-decoded display text; always selected; null preservation not guaranteed | Blank/null stored titles are not excluded by this list; decoding governs the returned value. |
IDs and parent maps are absent. Stored-field filters can differ from decoded display values. A selected term can disappear before lookup; failures do not always become empty pages.
Example: Read the first term page
curl "${WALLKIT_API_BASE}/api/v1/admin/terms" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}" \
--get \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10' \
--data-urlencode 'by=id' \
--data-urlencode 'sort=ASC'
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/terms`);
url.search = new URLSearchParams({"page": "1", "limit": "10", "by": "id", "sort": "ASC"}).toString();
const response = await fetch(url, {
method: "GET",
headers: {"resource": process.env.RESOURCE_KEY, "token": process.env.ADMIN_TOKEN}
});
console.log(response.status, await response.json());
import os, json
from urllib.request import Request, urlopen
from urllib.error import HTTPError
from urllib.parse import urlencode
url = os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/terms"
url += "?" + urlencode({'page': '1', 'limit': '10', 'by': 'id', 'sort': 'ASC'})
request = Request(
url,
headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
method="GET"
)
try:
with urlopen(request) as response:
print(response.status, json.load(response))
except HTTPError as error:
print(error.code, json.load(error))
HTTP 200 response:
{
"items": [
{
"key": "culture",
"title": "Culture"
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
This is a publication term; the response does not identify its groups.
Alternative: No selected term records
HTTP 200 excerpt, paginator omitted:
{
"items": []
}
No rows matched this publication/page/query. This says nothing about whether a group exists or has links.
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | items[] empty, with paginator | No selected term rows. | Check publication, page and intended field filters; display an empty list. |
| Varies / no guaranteed JSON | Filter/query/selected-record lookup/transport failure | No uniform conversion of failures into an empty page. | Use known term fields, retain any request reference and ask the integration operator to inspect the failure. |
See shared errors. Read a taxonomy for group-to-term links.