Find content records and inspect their metadata
Find registered content or read an article’s metadata and classification by key.
| Task | Operation | Result |
|---|---|---|
| Find content records | GET /api/v1/admin/content | Paged metadata; do not rely on description being included |
| Inspect a known content key | GET /api/v1/admin/content/{key} | Top-level metadata including description |
Existing context, identifiers 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 for the outer content records. Not a numeric ID or secret. |
| token | Required header, existing eligible token string | ADMIN_TOKEN in examples. |
| key | Content-detail path value | Stored content key within the selected publication, not the numeric content record ID. Use a known key and URL-encode the path segment when replacing the safe example key. |
The caller must be active; their current publication relationship, when present, must not be locked or suspended. Select the intended publication and content records. Price, date and classification do not establish visibility, purchase eligibility or reader access.
Examples use fictional ID 9001, key example-article and configured article/category/culture labels, not an enum. Responses are illustrative. 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. example.com URLs are stored metadata. See response conventions.
Find stored content records
GET /api/v1/admin/content
List metadata for this publication. Keep returned keys for detail. The list is not restricted to published content or a reader’s allowed articles.
Before you call
Send the token and publication key. No target reader is needed. Publication date and reader access do not limit default selection.
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. |
| filter | Optional bracket map or JSON-string field map | Metadata-derived Content/ContentTypes filtering. For example filter[Content.title] is a case-insensitive text substring. Type filtering is not a taxonomy/reader-access filter. Unknown/invalid fields are not uniformly rejected. |
| by | Optional known field string; default Content.id | Sort field for this call. Do not assume the Plan list’s order alias applies. |
| sort | Optional direction string; default DESC | Use ASC/DESC. No stable tie order is promised. |
Response
HTTP 200 normally returns items and the common paginator. See metadata fields. Use detail when you need description; do not depend on it appearing in list items.
Selected records can disappear before later lookup. Failed queries or related-data lookups do not always return empty lists. Counts are not a complete inventory or access report.
Example: Read the first metadata page
This excerpt omits description and other fields; it does not define a fixed list field count.
curl "${WALLKIT_API_BASE}/api/v1/admin/content" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}" \
--get \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10' \
--data-urlencode 'by=Content.id' \
--data-urlencode 'sort=ASC'
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/content`);
url.search = new URLSearchParams({"page": "1", "limit": "10", "by": "Content.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"
url += "?" + urlencode({'page': '1', 'limit': '10', 'by': 'Content.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 excerpt:
{
"items": [
{
"id": 9001,
"key": "example-article",
"title": "Example & Culture",
"price": 0,
"currency": "USD",
"content_type": "article",
"taxonomies": [
{
"key": "category",
"title": "Category",
"terms": [
{
"key": "culture",
"title": "Culture"
}
]
}
]
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
Use key example-article for detail. Classification labels describe stored metadata.
No records match this page/query
HTTP 200 excerpt, paginator omitted:
{
"items": []
}
This is an ordinary empty page for the selected publication/query. Failed requests can return differently.
Recovery
| HTTP status | API code / response shape | Cause | Next action |
|---|---|---|---|
| 200 | items [] with paginator | No selected page/query results. | Check publication, page and intended filters; display an empty metadata state. |
| Varies / no guaranteed JSON | Filter/type/date, selected-record lookup, linked data, query or transport failure | The response format can vary; do not treat a failed request as an empty result. | Use known fields, retain any request reference and ask the integration operator to inspect the failure. |
See shared errors. Read content detail for description and full metadata.
Inspect a content record by key
GET /api/v1/admin/content/{key}
Read stored metadata and classification by publication key, not numeric ID. Missing content is not registered by this call.
Before you call
Send the token, publication key and stored content key. Lookup trims/sanitizes without automatic lowercase conversion. Empty values, including string 0, are rejected. There is no numeric-only or create-length rule here.
Request
Send the path key and headers. Body, filter, pagination and sort are ignored. Encode one path segment; arbitrary slash-containing keys are not guaranteed.
Response
HTTP 200 returns content metadata at the top level, including description. There is no items/paginator wrapper. content_type may be absent; taxonomies and images are arrays, even empty. Taxonomy groups/terms have keys and titles, not numeric IDs or Plan rules.
Example: Inspect the selected metadata
Assume type, classification and image links resolve. Stored text decodes to the displayed ampersand. Null published_at does not prevent this read.
curl "${WALLKIT_API_BASE}/api/v1/admin/content/example-article" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/content/example-article`);
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/example-article"
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:
{
"key": "example-article",
"title": "Example & Culture",
"description": "An illustrative article description.",
"price": 0,
"currency": "USD",
"extra": {},
"link": "https://example.com/articles/example-article",
"created_at": "2026-10-01 12:00:00",
"updated_at": "2026-11-01 12:00:00",
"published_at": null,
"images": [
{
"url": "https://example.com/images/example-article.jpg",
"width": 640,
"height": 360,
"created_at": "2026-10-01 12:00:00"
}
],
"is_payable_content": false,
"id": 9001,
"is_applied_vat": false,
"vat_percent": 0,
"content_type": "article",
"taxonomies": [
{
"key": "category",
"title": "Category",
"terms": [
{
"key": "culture",
"title": "Culture"
}
]
}
]
}
extra is an empty object and published_at is null. Image URLs are stored values; is_payable_content:false does not grant access.
The key is missing or belongs to another publication
HTTP 404 response:
{
"error": "content_not_exists",
"error_description": "Content not found",
"req_guid": "example-request"
}
No key matched this publication. Empty keys use the same code with Unknown content key. This does not establish global absence.
Recovery
| HTTP status | API code / response shape | Cause | Next action |
|---|---|---|---|
| 404 | content_not_exists / Unknown content key | Falsy path-key value reaches the action. | Supply the known intended nonempty key; do not substitute the numeric record ID. |
| 404 | content_not_exists / Content not found | No exact trimmed/sanitized key matches the selected publication. | Check the stored key, case, path encoding and intended publication context. |
| Varies / no guaranteed JSON | Linked data, malformed stored extra, query/response-format or transport failure | The response format can vary; do not treat a failed request as an empty result. | Retain any request reference and ask the integration operator to inspect the record and mappings. |
See shared errors. Use metadata for display/configuration; check reader access separately.
Content metadata and classification
Detail uses content-with-term-arrays fields: ID/key, decoded text, integer price with unspecified units, currency, extra, link, timestamps, images, payable/VAT settings and classification.
| Selection | Meaning and conditions |
|---|---|
| id versus key | id is the numeric record ID; key is used for the path lookup within the selected publication. The read trims/sanitizes key text, without an automatic lowercase/slug conversion promise. |
| description | Confirmed detail field. Do not rely on description being included in the list; use content detail when you need it. No fixed list field count is promised. |
| title / description | Display text with HTML entities decoded. These are metadata, not proof of protected full-article delivery. |
| price / currency / is_payable_content | Stored price normalized to integer, units unspecified; no currency conversion. is_payable_content means price exceeds zero, not that a reader is allowed or denied access. |
| extra | Content-defined decoded array-object with an empty-object fallback; no closed property schema or usable-schema guarantee for malformed/scalar stored JSON. |
| link / published_at | Stored link and optional publication timestamp. A link is not a tested reachable page or authorization credential, and publication time is not an access grant. |
| images[] | Exactly url, width, height and created_at as defined in the linked field definition. Empty array when none; no title/hash/record-ID expansion or fetched-image availability check. |
| is_applied_vat / vat_percent | Stored flag/null and percentage value; no universal flag conversion or tax calculation. |
| content_type | Added only when a related type key is defined; otherwise omitted, not guaranteed null. |
| taxonomies[] | Array, including [] when none. Each group has key, title and terms[]; each term has key and title. No numeric taxonomy/term IDs or Plan relationship-rule fields are added. |
Linked images and classification show current stored metadata, potentially from other publications. Order and uniqueness are unspecified; missing related data can fail the response. Reader tags, Plan rules, resource_id, content_type_id and access decisions are absent.