Find event and ticket configurations
Browse your publication's events, inspect one event's configuration, or read its ticket definitions. A ticket definition describes a ticket option; a pass is a separate record held by a person. These calls read configuration. They do not buy tickets, create passes or decide admission.
| Task | Operation | Response |
|---|---|---|
| Find event IDs and browse their tickets | GET /api/v1/admin/ti-events | Paginated event items |
| Inspect one event and its targeting settings | GET /api/v1/admin/ti-event/{id} | Event object with tickets, taxonomies and content types |
| Read an event's ticket definitions | GET /api/v1/admin/ti-event/{id}/tickets | Event object containing tickets |
Before you start
A resource is the publication selected by its public key. Use an existing publication-staff token authorized for the intended publication. Allowed roles are readonly, manager, support, admin and partner; root is also permitted. Service-account credentials are not supported by these routes. Keep these calls in trusted server code.
The caller must be active and permitted to use the selected publication. Send these headers on every request:
| Name | Location / type | Requirement and meaning |
|---|---|---|
resource | Header, string | Required publication public key, supplied as RESOURCE_KEY. It is not the numeric event ID. |
token | Header, string | Required existing eligible token, supplied as ADMIN_TOKEN. |
Examples use fictional event 5001, ticket definition 5101, and discount record 5201. Requests use cURL, Node.js 18+ built-in fetch in an ES module (.mjs), and Python 3 urllib. Set WALLKIT_API_BASE to the API scheme and host only, plus RESOURCE_KEY and ADMIN_TOKEN. See example conventions; all examples are synthetic and unexecuted.
For a read-through workflow:
- List events with an explicit page and page size. Use an event's
id, such as 5001, for either detail route. - Read event 5001 to inspect its ticket definitions and taxonomy/content-type settings together.
- Use the event's
/ticketsroute when you need the event and ticket definitions without those targeting arrays. Ticket ID 5101 belongs to the nested definition; it is not the path ID for this call.
To set up an event or change its settings, continue with create, copy and edit events. Those operations require admin or partner permissions; discovery permissions alone do not permit writes.
An active event or ticket flag does not establish current sale availability, remaining capacity or a person's access. For attendee-side tasks, continue with the separate customer event and pass operations.
Shared event fields
All three operations return these event fields. The list nests each event under items; the two detail routes put the event at the response root. Stored scalar values are not uniformly converted: numeric values may retain their stored representation, flags are not guaranteed JSON booleans, and stored nulls are not replaced with defaults. Array order is unspecified unless the operation states otherwise.
| Field | Type / presence | Meaning |
|---|---|---|
id | Stored numeric identifier | Event ID; use it for event-detail and event-ticket requests. |
slug | Stored text / nullable value | Event's stored slug. |
title | Stored text / nullable value | Event name. |
description | Stored text / nullable value | Event description. |
location | Stored text / nullable value | Location supplied in the event configuration. |
timezone | Stored text / nullable value | Configured timezone value; it does not convert the returned dates. |
registration_page | Stored text / nullable value | Configured registration-page value. |
url | Stored text / nullable value | Configured event URL. |
contact_email | Stored text / nullable value | Event contact address. |
status | Stored scalar / nullable value | Configured status; a complete status enum is unspecified here. |
start_date | Stored date/time value / null | Configured start; timestamp format and timezone normalization are unspecified. |
end_date | Stored date/time value / null | Configured end; this response does not evaluate whether the event is current. |
active | Stored flag / nullable value | Event's active setting. These Admin reads can include inactive events. |
is_virtual | Stored flag | Event's virtual-event setting. |
photo | Always an array | Related photo media; [] when none. |
photo[].slug | Stored text / nullable value | Photo's stored slug. |
photo[].url | Stored text / nullable value | Photo's stored URL. |
tickets | Always an array | Related ticket definitions, including inactive/private definitions; [] when none. |
These projections do not include event resource_id or created/updated timestamps. Only event detail adds the targeting arrays.
Shared ticket-definition fields
Each tickets[] object has these fields. Stored quantity and price settings describe configuration; they are not a computed stock balance or checkout quote.
| Field | Type / presence | Meaning |
|---|---|---|
id | Stored numeric identifier | Ticket-definition ID, distinct from an event or purchased pass ID. |
ti_event_id | Stored numeric identifier | Parent event ID. |
title | Stored text / nullable value | Ticket name. |
slug | Stored text / nullable value | Ticket's stored slug. |
description | Stored text / nullable value | Ticket description. |
quantity | Stored numeric value / null | Configured quantity, not remaining capacity. |
price | Stored numeric value / null | Configured price; monetary units are unspecified here. |
currency | Stored text / nullable value | Stored currency value; no conversion is performed. |
min_quantity_order | Stored numeric value / null | Configured minimum quantity per order. |
max_quantity_order | Stored numeric value / null | Configured maximum quantity per order. |
status | Stored scalar / nullable value | Configured ticket status; no complete response enum is specified. |
start_date | Stored date/time value / null | Configured ticket start; not an evaluated sale window. |
end_date | Stored date/time value / null | Configured ticket end; timezone normalization is unspecified. |
is_private | Stored flag / nullable value | Private-ticket setting. Private definitions remain visible in these Admin results. |
active | Stored flag / nullable value | Active setting; inactive definitions remain visible. |
is_applied_vat | Stored flag / nullable value | Configured VAT setting, without a tax calculation. |
vat_percent | Stored numeric value / null | Configured VAT percentage value, not a calculated tax amount. |
extra | Decoded JSON or stored value / null | Additional stored data without a fixed property schema. Nonempty strings other than "0" are JSON-decoded; empty string and "0" remain unchanged. Invalid JSON can become null. |
plan_discounts | Always an array | Stored discounts linked to Plans; [] when none. No eligibility or discount calculation is performed. |
plan_discounts[].id | Stored numeric identifier | Discount-record ID. |
plan_discounts[].ti_event_ticket_id | Stored numeric identifier / null | Ticket definition referenced by the discount record. |
plan_discounts[].plan_id | Stored numeric identifier / null | Referenced Plan ID. A Plan groups catalog subscription choices; it is not a purchased pass or a reader's membership. |
plan_discounts[].discount | Stored numeric value / null | Configured discount value; units and effective amount are unspecified here. |
plan_discounts[].discount_type | Stored scalar / nullable value | Stored discount type; a complete enum is unspecified. |
plan_discounts[].currency | Stored scalar / nullable value | Stored discount currency value. |
plan_discounts[].active | Stored flag / nullable value | Stored discount setting; inactive records are not removed from this array. |
No passes, computed available, or nested ti_event object is added to these ticket definitions. Discount records do not include an expanded Plan object.
Browse event configurations
GET /api/v1/admin/ti-events
Find event IDs and inspect their configured tickets in the selected publication. The list includes inactive events and does not restrict events or nested tickets to a current date window.
Request
Send the shared headers. No body or existing event ID is needed.
| Query input | Type / requirement | Meaning and constraints |
|---|---|---|
page | Optional integer; use an explicit positive value | Select a page, such as 1. The omitted-page behavior is unspecified. |
limit | Optional integer; configured default 10 | Page size. Send a positive value such as 10; no maximum is specified here. |
order | Optional known event-field string | Sort field. The example uses active, as the Admin event list does. Omission does not establish a stable result order. |
by | Optional known event-field string | Alternative sort-field input; order takes precedence when supplied. |
sort | Optional direction string; default DESC | Use ASC or DESC with the selected sort field. No tie order is promised. |
filter | Optional field map, JSON string or bracket parameters | Filter supported event fields. Text matching is case-insensitive and searches within the stored text. Omit filter when no additional filtering is needed. |
Result
HTTP 200 returns the following envelope. Pagination counts events, not nested tickets.
| Field | Type / presence | Meaning |
|---|---|---|
items | Array | Event objects with ticket definitions; [] for a page with no matching events. |
paginator.current_page | Integer | Current page reported by pagination. |
paginator.page | Integer | Current page, also exposed under this key. |
paginator.total_pages | Integer | Number of pages reported by pagination. |
paginator.total_items | Integer | Total matching events. |
paginator.limit | Integer | Reported page size. |
The list omits taxonomies and content_types. Use event detail when you need those settings. Pagination does not promise a fixed snapshot across requests.
Example: Find event 5001
Browse the first ten events with active events ordered first. Event 5001 contains ticket definition 5101; its presence describes stored configuration.
curl --get "${WALLKIT_API_BASE}/api/v1/admin/ti-events" \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}" \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10' \
--data-urlencode 'order=active' \
--data-urlencode 'sort=desc'
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/ti-events`);
url.search = new URLSearchParams({page: "1", limit: "10", order: "active", sort: "desc"}).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/ti-events"
url += "?" + urlencode({"page": "1", "limit": "10", "order": "active", "sort": "desc"})
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))
Synthetic HTTP 200 excerpt; other event/ticket fields are defined above:
{
"items": [
{
"id": 5001,
"title": "Example Session",
"photo": [],
"tickets": [
{"id": 5101, "ti_event_id": 5001, "title": "General admission", "plan_discounts": [{"id": 5201, "ti_event_ticket_id": 5101, "plan_id": 5301}]}
]
}
],
"paginator": {"current_page": 1, "page": 1, "total_pages": 1, "total_items": 1, "limit": 10}
}
Use event ID 5001 for either detail operation. Ticket ID 5101 identifies the ticket definition inside that event.
Empty page and recovery
A page without matching events returns HTTP 200 with items: [] and a paginator. Excerpt:
{"items": []}
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | Empty items, with paginator | No matching events on this page. | Check publication, page and filters; show an empty state. |
| 409 | error; Error get TiEvents list | A query or read failed. | Check supported inputs; keep the request reference and contact the integration operator if unresolved. An error can include fields collected before the failure; do not treat them as a complete successful page. |
| Varies / no guaranteed JSON | Incomplete or failed response | Related data or transport failed outside the ordinary error response. | Treat the request as failed; do not convert it to an empty list. |
Also see shared credential errors. Next, inspect the event for targeting settings, or read its tickets.
Inspect one event
GET /api/v1/admin/ti-event/{id}
Read one event's configuration, ticket definitions and targeting settings. A known inactive event can still be read; this is not an availability check.
Request
Send the shared headers and a numeric event ID from the list. No body, pagination or expansion input is needed.
| Input | Location / type | Requirement and meaning |
|---|---|---|
id | Path, decimal event ID | Required existing event in the selected publication, such as 5001. Do not substitute ticket ID 5101. |
Result
HTTP 200 returns the event fields at the root, including tickets, plus the targeting arrays below. There is no items, data or paginator wrapper. No tickets means tickets: []; it does not mean the event is missing.
| Added field | Type / presence | Meaning |
|---|---|---|
taxonomies | Always an array | Configured taxonomy groups, [] when no relationships. |
taxonomies[].id | Stored numeric identifier | Taxonomy group ID. |
taxonomies[].key | Stored text / nullable value | Group key. |
taxonomies[].title | Stored text / nullable value | Group display title. |
taxonomies[].terms | Array | Terms configured under this group. |
taxonomies[].terms[].id | Stored numeric identifier | Term ID, distinct from the group ID. |
taxonomies[].terms[].key | Stored text / nullable value | Term key. |
taxonomies[].terms[].title | Stored text / nullable value | Term display title. |
taxonomies[].terms[].exclude | Boolean | Stored exclusion setting for this term relationship. |
content_types | Always an array | Configured content types, [] when no relationships. |
content_types[].id | Stored numeric identifier | Content-type ID. |
content_types[].key | Stored text / nullable value | Content-type key. |
content_types[].exclude | Boolean | Stored exclusion setting for this content-type relationship. |
These are targeting settings, not a computed access decision for a reader.
Example: Inspect event 5001
Read the event discovered above. This excerpt shows the ticket and empty targeting arrays.
curl "${WALLKIT_API_BASE}/api/v1/admin/ti-event/5001" \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const response = await fetch(`${process.env.WALLKIT_API_BASE}/api/v1/admin/ti-event/5001`, {
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
request = Request(os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/ti-event/5001",
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))
Synthetic HTTP 200 excerpt:
{
"id": 5001,
"title": "Example Session",
"photo": [],
"tickets": [
{"id": 5101, "ti_event_id": 5001, "title": "General admission", "plan_discounts": [{"id": 5201, "ti_event_ticket_id": 5101, "plan_id": 5301}]}
],
"taxonomies": [],
"content_types": []
}
Missing event and recovery
A missing event, including an ID belonging to a different selected publication, returns HTTP 404. Synthetic error excerpt:
{"error": "ti_event_not_found", "error_description": "Ti event not found"}
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | Root event with tickets: [] | Event exists without related ticket definitions. | Show the event with no tickets; do not report it as missing. |
| 404 | ti_event_not_found | No event matches this ID and publication. | Verify the publication key and event ID; rediscover the ID in the event list. |
| Varies | invalid_ti_event with description | Event lookup failed; status is not uniformly 409. | Check the request, retain its reference and contact the integration operator if unresolved. |
| Varies / no guaranteed JSON | Related-data or transport failure | Event configuration could not be fully returned. | Treat it as a failed detail read, not missing or empty configuration. |
Also see shared credential errors. To retrieve the event and ticket definitions without targeting arrays, use the event's ticket route.
Read an event's ticket definitions
GET /api/v1/admin/ti-event/{id}/tickets
Read ticket definitions together with their parent event. Despite the path's final segment, the response is an event object containing tickets, not a bare ticket array or a list of passes.
Request
Send the shared headers. No body, filter or pagination input is used for this operation.
| Input | Location / type | Requirement and meaning |
|---|---|---|
id | Path, decimal event ID | Required existing event in the selected publication. Use 5001 from event discovery, not ticket definition 5101. |
Result
HTTP 200 returns the event fields at the response root, with tickets containing the ticket-definition fields. There is no items, data or paginator wrapper, and no taxonomies or content_types expansion. An existing event without ticket definitions returns tickets: [].
Ticket definitions include stored discounts linked to Plans, without active/private/date filtering or computed availability. This read does not create or activate a purchased pass.
Example: Read tickets for event 5001
The same event and ticket IDs carry through this request. This excerpt includes one stored discount record to show its nesting; other discount fields are defined in the shared table.
curl "${WALLKIT_API_BASE}/api/v1/admin/ti-event/5001/tickets" \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const response = await fetch(`${process.env.WALLKIT_API_BASE}/api/v1/admin/ti-event/5001/tickets`, {
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
request = Request(os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/ti-event/5001/tickets",
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))
Synthetic HTTP 200 excerpt:
{
"id": 5001,
"title": "Example Session",
"photo": [],
"tickets": [
{
"id": 5101,
"ti_event_id": 5001,
"title": "General admission",
"plan_discounts": [{"id": 5201, "ti_event_ticket_id": 5101, "plan_id": 5301}]
}
]
}
Empty tickets, invalid event and recovery
HTTP 200 excerpt for an existing event without ticket definitions:
{"id": 5001, "tickets": []}
A missing event ID normally returns HTTP 409 invalid_ticket, rather than the event-detail route's 404. Synthetic error excerpt:
{"error": "invalid_ticket", "error_description": "invalid_ti_event_id Message:Incorrect TiEvent ID"}
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | Root event with tickets: [] | Event exists without related ticket definitions. | Show an empty ticket list within the event. |
| 409 | invalid_ticket; description includes Incorrect TiEvent ID | Event could not be validated. | Check that the path contains an event ID from discovery. |
| 409 | invalid_ticket; description includes Incorrect Resource | Event does not match the selected publication. | Verify the resource key and choose an event from that publication. |
| 409 | invalid_ticket, other description | Validation or event lookup failed. | Preserve the description/request reference; investigate the configuration with the integration operator. |
| Varies / no guaranteed JSON | Related-data or transport failure | Event/ticket configuration could not be fully returned. | Treat it as a failed read, not a successful empty ticket list. |
Also see shared credential errors. Use this configuration to identify the event and ticket definition. For a person's owned or assigned passes, follow the separate customer ticket/pass workflow; configuration alone does not establish their access.
Shared credential errors
Errors include error, error_description and a req_guid request reference. An HTTP success confirms the configuration read, not a purchase or admission decision.
| HTTP status | API code | Cause | Next action |
|---|---|---|---|
| 404 | resource_not_exists | Publication key is missing or invalid. | Check the resource header and intended publication. |
| 401 | auth_failed | Caller is not authorized. | Check the assigned token with the integration administrator. |
| 401 | auth_access_fail | Caller or current publication access is inactive, locked or suspended. | Ask the publication administrator to review the caller's access. |
| 401 | token_expired | Existing session token expired. | Obtain a valid token through the integration's established authentication process. |
| 401 | token_compromised | Token was revoked or compromised. | Stop using that token and contact the integration administrator. |
| 401 or 403 | access | Caller lacks the required access context or role. | Confirm the publication and an eligible staff role; do not substitute a customer or service-account token. |
| 409 | initialize_failed | Request context could not be initialized. | Retain the request reference and contact the integration operator. |