Inspect a term and find content types
Look up a term by key, list content types such as article, or look up a content type by its numeric ID.
| Task | Operation | Result |
|---|---|---|
| Inspect a known term | GET /api/v1/admin/terms/{key} | Term ID, key and title |
| Browse content types | GET /api/v1/admin/content-types | Paged type IDs and keys |
| Inspect a content type | GET /api/v1/admin/content-types/{id} | One type ID and key |
Context and examples
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; not a numeric record ID or secret. |
| token | Required header, existing eligible token string | ADMIN_TOKEN in examples. |
| key | Term-detail path, string | Stored term key within the selected publication. |
| id | Content-type-detail path, digit string | Numeric content-type record identifier within the selected publication. |
Use the assigned eligible credentials in the intended active publication context. For term detail, the caller must be active and their current publication relationship, when present, must be unlocked and unsuspended. Applicable session checks can reject revoked, expired or compromised tokens. See shared errors.
Examples use fictional term 7201/culture and type 7301/article with illustrative responses. These keys are configuration, not an enum. 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.
Inspect a term by key
GET /api/v1/admin/terms/{key}
Read a publication term without selecting a group or parent links. Unlinked or blank-title terms can appear.
Before you call
Send the token, publication key and stored term 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 and sort are ignored. Use culture, not ID 7201 or group key category.
Response fields
HTTP 200 returns three fields at the top level, without items/paginator:
| Field | Type / presence | Meaning |
|---|---|---|
| id | Stored numeric identifier; always returned | Term ID; output is not explicitly converted to a JSON number. |
| key | URL-decoded text; always returned | Display key; not globally unique. Decoded output may differ from stored spelling. |
| title | URL-decoded text; always returned | Blank/null stored titles are not excluded; null preservation is unspecified. |
Unlike the term list, detail includes id. It adds no resource_id, timestamps, parent group, link ID, Plan rules or content relationships.
Example: Read the culture term
curl "${WALLKIT_API_BASE}/api/v1/admin/terms/culture" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/terms/culture`);
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/terms/culture"
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": 7201,
"key": "culture",
"title": "Culture"
}
The term exists here. Use group detail to inspect links.
Alternative: No matching term
HTTP 404 response:
{
"error": "invalid_term_key",
"error_description": "Term key not exists",
"req_guid": "synthetic-request-reference"
}
This term-detail error differs from taxonomy_not_exists and does not establish global absence.
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 404 | invalid_term_key / Term key not exists | No term matches the trimmed key and publication. | Check publication and stored term key; do not substitute a taxonomy key or numeric ID. |
| Varies / no guaranteed JSON | Lookup/serialization/transport failure | Error formats can vary. | Keep any request reference and ask the integration operator to inspect the failure. |
See shared errors. Read group detail for links.
Browse content types
GET /api/v1/admin/content-types
List configured publication types, not only types in use or available to a reader.
Before you call
Send the token and publication key. No term, group, content or reader is required. article is a configured key, not a fixed enum.
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 map or JSON-string field map | Metadata-derived content-type fields. For example filter[ContentTypes.key] performs a case-insensitive substring match against stored text, not guaranteed exact equality to decoded output. Unknown/invalid fields are not uniformly rejected. |
Use this route’s filters below; standalone term filtering differs. No group-key selector, Plan expansion or reader-access filter is defined.
Response fields
HTTP 200 returns items and the common paginator. Items have two fields:
| Field | Type / presence | Meaning |
|---|---|---|
| id | Numeric model identifier; always selected; no explicit output cast | Content-type record ID; use it for type-detail lookup. |
| key | URL-decoded text; always selected; exact null coercion not promised | Configured type key. No global uniqueness or stored/decoded key round-trip guarantee. |
No title, resource_id, created_at, content, Plans, counts or rules are included. items is an array, not a key-indexed map. Totals are not a full snapshot of configured/in-use types.
Example: Read the first content-type page
curl "${WALLKIT_API_BASE}/api/v1/admin/content-types" \
-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/content-types`);
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/content-types"
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": [
{
"id": 7301,
"key": "article"
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
Use ID 7301 for detail, not key article.
Alternative: No selected content types
HTTP 200 excerpt, paginator omitted:
{
"items": []
}
No rows matched this publication/page/query. Failed requests do not always return empty success.
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | items[] empty, with paginator | No selected type records. | Check publication, page and intended filters; display an empty list. |
| Varies / no guaranteed JSON | Filter/query/response-format/transport failure | A failed request may not return a normal empty page. | Use known fields, retain any request reference and ask the integration operator to inspect the failure. |
Inspect a content type by ID
GET /api/v1/admin/content-types/{id}
Read a publication type by numeric ID. A key such as article cannot replace the digit path value.
Before you call
Send the token, publication key and numeric ID. Lookup converts digits to integer and matches publication. Zero reaches lookup and can return not found. Nondigit paths do not match or guarantee this JSON error.
Request
No body, filter, pagination, sort or Plan-expansion input is consumed.
Response fields
HTTP 200 returns id and key at the top level, without items/paginator.
| Field | Type / presence | Meaning |
|---|---|---|
| id | Numeric model identifier; always selected; no explicit output cast | Content-type record ID. Integer conversion of the request does not establish a separate output cast. |
| key | URL-decoded text; always selected; exact null coercion not promised | Configured type key, without global uniqueness or decoded-key round-trip guarantees. |
Fields match list items. No title, created_at, resource_id, Plans, content or rules are added. Reader access is separate.
Example: Read type 7301
curl "${WALLKIT_API_BASE}/api/v1/admin/content-types/7301" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/content-types/7301`);
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/content-types/7301"
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": 7301,
"key": "article"
}
Alternative: No matching type in this publication
HTTP 404 response:
{
"error": "content_type_not_exists",
"error_description": "Content type not found",
"req_guid": "synthetic-request-reference"
}
No ID matched a type here. The ID/key may exist elsewhere.
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 404 | content_type_not_exists / Content type not found | No type matches ID and publication. | Check publication and numeric type ID from the list. Do not pass the type key as id. |
| Routing-dependent | No guaranteed action-level JSON | Nondigit path does not match this numeric route. | Use a known digit ID; do not infer the detail error contract for unmatched routes. |
| Varies / no guaranteed JSON | Lookup/serialization/transport failure | Error formats can vary. | Keep any request reference and ask the integration operator to inspect the failure. |
See shared errors. Read content metadata for a record’s type and classification.