Browse tag slugs and inspect bundles
Browse reader tags by slug or see which content and subscriptions a bundle includes. Reader tags label accounts. Content taxonomies classify articles.
| Task | Operation | Returned records |
|---|---|---|
| Browse tag slugs | GET /api/v1/admin/tags | Tag slugs across publication contexts |
| Browse bundles | GET /api/v1/admin/bundles | Bundles for the caller’s eligible partners, potentially across publications |
| Inspect one bundle | GET /api/v1/admin/bundles/{id} | One bundle in the caller’s eligible partner context |
Context and examples
Allowed roles: readonly, manager, support, admin, partner; root is also permitted. Send the assigned token. Service accounts cannot use these routes, including those with full_access. Keep privileged calls in trusted server code.
| Input | Location / type | Meaning |
|---|---|---|
| token | Required header, existing eligible token string | ADMIN_TOKEN in examples. |
| resource | Publication public-key header; required for bundle calls | Supplies current publication context. Returned records can span publications. The tag call does not require publication context. |
| id | Bundle-detail path, digit string | Known numeric bundle record ID, not a content key or subscription ID. |
The caller must be active; their current publication relationship, when present, must not be locked or suspended. Session checks can reject revoked, expired or compromised tokens. Bundles require publication context; tags do not. No target reader is selected.
Examples use fictional slug newsletter, bundle 8101, key example-article, subscription 3001 and Plan 5001, with existing eligible partner context. Responses are excerpts. 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 ADMIN_TOKEN and RESOURCE_KEY. Tag results can span publication contexts. example.com is stored metadata. See shared errors.
Browse tag slugs
GET /api/v1/admin/tags
Read tag slugs, not article taxonomies or one reader’s attached tags.
Before you call
Tag slugs can come from multiple publication contexts. Origin is not returned, and repeated slugs may appear. Use the reader tag read to inspect labels for an intended reader and publication.
Send an allowed Admin token. Publication context, reader ID and group key are not required.
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 tag fields. A slug text filter uses case-insensitive substring matching, not a unique lookup. Use a known slug filter and inspect returned text; slugs alone do not identify their publication or reader. |
by/sort/order are not used; order is unspecified. Some invalid filters can fail while unknown fields may be ignored.
Response fields
HTTP 200 returns items and the common paginator. Items contain only slug.
| Field | Type / presence | Meaning |
|---|---|---|
| items[].slug | Stored text / nullable model field; selected in each row | Tag slug. No universal decoding/normalization or null-coercion guarantee for this response. |
items is an object array, not strings or a key map. No tag ID, resource_id, reader link, timestamps, classification or origin flag is added.
Example: Read one tag page
curl "${WALLKIT_API_BASE}/api/v1/admin/tags" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}" \
--get \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10'
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/tags`);
url.search = new URLSearchParams({"page": "1", "limit": "10"}).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/tags"
url += "?" + urlencode({'page': '1', 'limit': '10'})
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": [
{
"slug": "newsletter"
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
The slug does not identify a publication, global origin or attached reader.
Alternative: No selected tag rows
HTTP 200 excerpt, paginator omitted:
{
"items": []
}
No rows matched this page/query. It says nothing about one publication’s or reader’s tags.
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | items[] empty, with paginator | No rows selected for the page/query. | Check page and intended fields; display an empty result without inferring publication/reader state. |
| 409 | invalid_{field}, with validation message | The filter's first reported validation/build error. Exact suffix/message depends on the failure. | Correct the reported input; do not assume all unknown fields produce this branch. |
| Varies / no guaranteed JSON | Query/response-format/transport failure | Not every failure is converted into a validation error or empty success. | Keep any request reference and ask the integration operator to inspect the failure. |
See shared errors. Browse taxonomies for article classification.
Browse bundles
GET /api/v1/admin/bundles
List bundles for the caller’s eligible partners.
Before you call
Selection is by caller-eligible partners, not the header publication alone. It uses qualifying administrator relationships with active publications/partners and caches the selection for 180 seconds. Root still uses this check; it does not automatically select every partner.
Send the token and publication context for an already eligible partner. Linked records can belong to other publications. Subscriptions and Plans can be inactive or private; content shows stored metadata and its publication timestamp. These are configured links, rather than purchase availability or reader access.
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 bundle fields; unknown/invalid fields are not uniformly rejected. Caller partner eligibility remains part of selection. |
Response
HTTP 200 returns items and the common paginator. Each uses bundle fields, content fields and subscription/Plan fields. Bundle items.content and items.subscriptions differ from the outer items array.
Example: Read configured bundles
Assume bundle 8101 has an eligible partner and valid links. Bundle/content and immediate Plan/child fields are complete; the subscription is an excerpt. Inactive subscription/Plan settings do not prevent this configuration read.
curl "${WALLKIT_API_BASE}/api/v1/admin/bundles" \
-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/bundles`);
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/bundles"
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 excerpt:
{
"items": [
{
"id": 8101,
"title": "Example bundle",
"price": 500,
"currency": "USD",
"created_at": "2026-10-01 12:00:00",
"items": {
"content": [
{
"key": "example-article",
"title": "Example article",
"description": "An illustrative 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": [],
"is_payable_content": false
}
],
"subscriptions": [
{
"id": 3001,
"title": "Example subscription",
"plan_id": 5001,
"price": 500,
"currency": "USD",
"active": false,
"private": false,
"public": true,
"next_subscription": null,
"downgrade_subscription": null,
"plan": {
"id": 5001,
"title": "Example Plan",
"slug": "example-plan",
"description": "Illustrative configuration.",
"full_access": false,
"predictive_paywall": false,
"predictive_percents": null,
"can_own_teams": false,
"priority": 1,
"private": false,
"active": false,
"extra": {},
"public": true,
"subscriptions": [
{
"id": 3001,
"title": "Example subscription",
"price": 500,
"currency": "USD",
"period": "1 month"
}
]
}
}
]
}
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
Alternative: No selected bundle rows
HTTP 200 excerpt, paginator omitted:
{
"items": []
}
This is the ordinary empty selection. Failed queries or invalid links may return differently. Existing bundles can also have empty content/subscription arrays.
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | outer items[] empty, with paginator | No selected bundle rows. | Check page and intended configuration with the integration operator; display an empty list. |
| Varies / no guaranteed JSON | Eligibility-query/filter/query/linked-data/transport failure | No universal failure-to-empty conversion, including empty helper selections. | Keep any request reference and ask the integration operator to inspect the failure. |
See shared errors. Read a bundle ID for detail.
Inspect a bundle by ID
GET /api/v1/admin/bundles/{id}
Read a bundle with its configured articles and subscriptions.
Before you call
Choose a known bundle ID from the caller’s cached eligible partner selection. Root uses the same eligibility rules. Missing or ineligible records share 404. Linked records can belong to other publications. Subscriptions and Plans can be inactive or private; content shows stored metadata and its publication timestamp.
Send the token, publication context and known numeric bundle ID from the list. Digit IDs are converted to integers; nondigit paths do not guarantee this JSON error.
Request
Body, filters, pagination, sorting and expansion options are ignored. Use bundle ID 8101, not a content key or catalog ID.
Response
HTTP 200 returns a bundle with 12-field content and subscriptions/expanded Plans, without outer items/paginator. Its own items object always contains content/subscriptions arrays, including empty ones. No sum, discount, checkout or access decision is added.
Example: Read bundle 8101
This uses the list’s fictional configuration and excerpt rules: full bundle/content and immediate Plan/child, partial general subscription.
curl "${WALLKIT_API_BASE}/api/v1/admin/bundles/8101" \
-X GET \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/bundles/8101`);
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/bundles/8101"
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:
{
"id": 8101,
"title": "Example bundle",
"price": 500,
"currency": "USD",
"created_at": "2026-10-01 12:00:00",
"items": {
"content": [
{
"key": "example-article",
"title": "Example article",
"description": "An illustrative 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": [],
"is_payable_content": false
}
],
"subscriptions": [
{
"id": 3001,
"title": "Example subscription",
"plan_id": 5001,
"price": 500,
"currency": "USD",
"active": false,
"private": false,
"public": true,
"next_subscription": null,
"downgrade_subscription": null,
"plan": {
"id": 5001,
"title": "Example Plan",
"slug": "example-plan",
"description": "Illustrative configuration.",
"full_access": false,
"predictive_paywall": false,
"predictive_percents": null,
"can_own_teams": false,
"priority": 1,
"private": false,
"active": false,
"extra": {},
"public": true,
"subscriptions": [
{
"id": 3001,
"title": "Example subscription",
"price": 500,
"currency": "USD",
"period": "1 month"
}
]
}
}
]
}
}
Alternative: Missing or ineligible bundle
HTTP 404 response:
{
"error": "bundle_not_found",
"error_description": "Bundle not found",
"req_guid": "synthetic-request-reference"
}
This response does not distinguish absent from partner-ineligible bundles or establish global absence.
Recovery
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 404 | bundle_not_found / Bundle not found | Bundle missing or its partner not eligible for the caller. | Check the known ID and expected configuration with the integration operator; retain the error reference. |
| 200 | items.content[] and/or items.subscriptions[] empty | No selected joined records in that group. | Display the bundle's recorded groups; do not label the bundle missing. |
| Routing-dependent | No guaranteed action-level JSON | Nondigit ID path does not match the registered route. | Use the known numeric ID from the list. |
| Varies / no guaranteed JSON | Eligibility-query/linked-data/query/transport failure | Errors can use different formats; missing linked records may cause failure. | Keep any request reference and ask the integration operator to inspect the failure. |
See shared errors. Read content detail for richer metadata when you know its publication/key. Bundle children do not supply a publication ID or access grant.
Bundle fields and linked records
Both bundle routes return these fields. The outer list’s items is an array; each bundle’s own items groups its linked records.
| Field | Type / presence | Meaning |
|---|---|---|
| id | Integer; present | Bundle ID. |
| title | Stored text / nullable; present | Bundle display name. |
| price | Integer; present | Stored bundle amount, currency units unspecified. No sum/discount calculation or price reconciliation is performed. |
| currency | Stored string / nullable; present | Currency code; no conversion. |
| created_at | Stored timestamp string; present | Bundle creation time; timezone unspecified. |
| items | Object; present | Exactly content and subscriptions arrays, each empty when no selected linked records exist. |
| items.content[] | Content object defined below | Linked content, potentially unpublished or from other publications. |
| items.subscriptions[] | Subscription object defined below | Linked subscriptions, potentially from other publications or with inactive/private settings. |
Bundle description, updated_at, partner_id, resource_id and VAT are absent. Links can span publications. Order and uniqueness are unspecified; missing links or malformed stored values may fail the response rather than be skipped.
Bundle content fields
Content children contain these 12 keys, without numeric content ID, taxonomy, VAT or content_type:
| Field | Type / presence | Meaning |
|---|---|---|
| key | Stored string; selected | Content key, not numeric record ID. |
| title | HTML-entity-decoded text; selected | Display title; exact null coercion not promised. |
| description | HTML-entity-decoded text; selected | Metadata description, not proof of protected article delivery. |
| price | Integer; selected | Stored amount, currency units unspecified. |
| currency | Stored string / nullable; selected | Currency code, without conversion. |
| extra | Decoded array-object; selected | Content-defined data, empty-object fallback; malformed/scalar stored JSON has no usable-schema guarantee. |
| link | Stored text / nullable; selected | Metadata link, not a tested reachable page or access credential. |
| created_at | Stored timestamp; selected | Record creation time, timezone unspecified. |
| updated_at | Stored timestamp; selected | Record update time, timezone unspecified. |
| published_at | Stored timestamp / nullable; selected | Publication metadata, not current visibility or an access grant. |
| images[] | Array; always present | Each image has exactly url,width,height,created_at. Empty if none; no ID/title/hash expansion or fetched-image availability claim. |
| is_payable_content | Boolean; present | Whether stored price exceeds zero; not a reader-access result. |
Image url is stored text/null. width/height are integer/null stored dimensions without a unit conversion. created_at is the image-row timestamp with unspecified timezone. None confirms file availability.
Bundle subscription fields
Use general subscription fields, including conditional Admin timestamps/country_vat and next/downgrade objects. Its immediate plan uses the expanded fields below. Next/downgrade Plans stay compact.
The immediate Plan has these 14 fields, matching catalog field meanings:
| Field | Type / presence | Meaning |
|---|---|---|
| id | Integer; present | Plan ID. |
| title, slug, description | Stored text / nullable; present | Plan name, label and description. |
| full_access | Boolean; present | Configured rule flag; reading it grants no access. |
| predictive_paywall | Stored flag; present | Predictive-rule setting, not uniformly normalized to boolean. |
| predictive_percents | Stored numeric / nullable; present | Predictive-rule percentage, not price. |
| can_own_teams | Stored flag; present | Configured team support, not caller privilege. |
| priority | Integer; present | Configured ranking, not a universal result order. |
| private, active | Boolean; present | Visibility/activation configuration; linked inactive/private records can be returned. |
| extra | Decoded JSON / nullable stored value; present | Application-defined Plan data, no closed schema. |
| public | Boolean; present | Inverse of private, independent of active. |
| subscriptions[] | Array; present | Lightweight child subscriptions of the returned Plan, exactly id,title,price,currency,period. These catalog choices can be inactive or private. |
Lightweight child id/price are integers; title/currency/period are stored text or null. Plan timestamps, resource_id and settings are absent. Missing Plan data can fail the response rather than fall back. Next subscription keeps its defined general fields; downgrade keeps its public fields, with compact Plans and nested limits.