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.

TaskOperationResult
Browse classification groupsGET /api/v1/admin/taxonomiesPaged taxonomies, with terms by default
Inspect a known groupGET /api/v1/admin/taxonomies/{key}One taxonomy with a term array
Browse term recordsGET /api/v1/admin/termsPaged 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.

InputLocation / typeMeaning
resourceRequired header, publication public-key stringSelects the publication. This is not a numeric record ID or secret.
tokenRequired header, existing eligible token stringADMIN_TOKEN in the examples.
keyTaxonomy-detail path, stringKnown 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 inputType / requirementMeaning and constraints
pageOptional integer; send 1 explicitlySend a positive page, such as 1; the omitted-page default is unspecified.
limitOptional integer; default 10Send a positive page size, such as 10. No maximum is specified here.
byOptional known field string; default idSort field. No order alias or stable tie order is promised.
sortOptional direction string; default DESCUse ASC or DESC.
filterOptional bracket map or JSON-string field mapMetadata-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_termsOptional boolean; default trueUse 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.

FieldType / presenceMeaning
idStored numeric identifier; always returnedGroup ID. Output is not explicitly converted to a JSON number.
keyText; always returnedStored key, without automatic lowercase/slug conversion.
titleURL-decoded text; always returnedDisplay label. Decoding can differ from other responses; null preservation is unspecified.
terms[]Array; default in list, absent with with_terms=false; always in detailEmpty if no eligible terms. Rows contain id, key and title.
terms[].idStored numeric identifier; in each termTerm ID, not group/link ID; no explicit JSON-number conversion.
terms[].keyText; in each termRelated key; decoded output may not reproduce stored spelling.
terms[].titleURL-decoded text; in each termTerm 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 statusAPI code / shapeCauseNext action
200items[] empty, with paginatorNo 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.
200Taxonomy items without termswith_terms=false omitted expansion.Request expansion or read the known taxonomy detail; do not treat omission as an empty relationship set.
Varies / no guaranteed JSONQuery/filter/related-data/transport failureFailures 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 statusAPI code / shapeCauseNext action
404taxonomy_not_exists / Taxonomy not foundNo taxonomy matches the trimmed key and selected publication.Check the taxonomy key and publication; do not substitute a term key or numeric ID.
200terms[] emptyNo eligible same-publication, nonblank-title linked term rows.Show the group without terms; do not label the taxonomy missing.
Varies / no guaranteed JSONQuery/related-data/transport failureError 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 inputType / requirementMeaning and constraints
pageOptional integer; send 1 explicitlySend a positive page, such as 1; the omitted-page default is unspecified.
limitOptional integer; default 10Send a positive page size, such as 10. No maximum is specified here.
byOptional known field string; default idSort field; no order alias or stable tie order is promised.
sortOptional direction string; default DESCUse ASC or DESC.
filterOptional bracket field mapTerm-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:

FieldType / presenceMeaning
keyURL-decoded text; always selectedNo universal encoded-key round-trip or global uniqueness guarantee.
titleURL-decoded display text; always selected; null preservation not guaranteedBlank/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 statusAPI code / shapeCauseNext action
200items[] empty, with paginatorNo selected term rows.Check publication, page and intended field filters; display an empty list.
Varies / no guaranteed JSONFilter/query/selected-record lookup/transport failureNo 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.

Full diagram

Use the arrow keys to scroll. Escape closes this view.

Search documentation

Enter at least 2 characters.

    ↑ ↓ move through results · Enter opens · Escape closes