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.

TaskOperationResult
Inspect a known termGET /api/v1/admin/terms/{key}Term ID, key and title
Browse content typesGET /api/v1/admin/content-typesPaged type IDs and keys
Inspect a content typeGET /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.

InputLocation / typeMeaning
resourceRequired header, publication public-key stringSelects the publication; not a numeric record ID or secret.
tokenRequired header, existing eligible token stringADMIN_TOKEN in examples.
keyTerm-detail path, stringStored term key within the selected publication.
idContent-type-detail path, digit stringNumeric 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:

FieldType / presenceMeaning
idStored numeric identifier; always returnedTerm ID; output is not explicitly converted to a JSON number.
keyURL-decoded text; always returnedDisplay key; not globally unique. Decoded output may differ from stored spelling.
titleURL-decoded text; always returnedBlank/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 statusAPI code / shapeCauseNext action
404invalid_term_key / Term key not existsNo 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 JSONLookup/serialization/transport failureError 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 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 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:

FieldType / presenceMeaning
idNumeric model identifier; always selected; no explicit output castContent-type record ID; use it for type-detail lookup.
keyURL-decoded text; always selected; exact null coercion not promisedConfigured 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 statusAPI code / shapeCauseNext action
200items[] empty, with paginatorNo selected type records.Check publication, page and intended filters; display an empty list.
Varies / no guaranteed JSONFilter/query/response-format/transport failureA 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.

See shared errors. Read a type by ID.

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.

FieldType / presenceMeaning
idNumeric model identifier; always selected; no explicit output castContent-type record ID. Integer conversion of the request does not establish a separate output cast.
keyURL-decoded text; always selected; exact null coercion not promisedConfigured 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 statusAPI code / shapeCauseNext action
404content_type_not_exists / Content type not foundNo type matches ID and publication.Check publication and numeric type ID from the list. Do not pass the type key as id.
Routing-dependentNo guaranteed action-level JSONNondigit 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 JSONLookup/serialization/transport failureError 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.

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