Read event assignments and pass inventory
List the stored assigned-reader IDs for an event, or read the base pass records under one ticket definition. Use these staff records to review assignments and ownership. They do not decide admission.
| Task | Operation | Result |
|---|---|---|
| List event assignments | GET /api/v1/admin/ti-event/{id}/assign-user-ids | user_ids array; repeats are possible |
| Read a ticket's base pass records | GET /api/v1/admin/ti-event/ticket/{ticket_id}/passes | items array with five base fields per pass |
Before you start
Use an existing token authorized for the selected publication. Eligible roles are readonly, manager, support, admin and partner; root is also permitted. The caller must be active and authorized there. Service-account credentials are not supported. Keep these staff calls in trusted server code. See shared credential errors.
| Header | Type / requirement | Meaning |
|---|---|---|
resource | Required string | Publication public key, supplied as RESOURCE_KEY. |
token | Required string | Existing eligible staff token, supplied as ADMIN_TOKEN. |
Find the event and ticket IDs through event discovery. Neither request has a body, filter or pagination input; ordering is unspecified. Event IDs and ticket-definition IDs are different.
Examples use cURL, Node.js 18+ built-in 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. See example conventions. All examples are synthetic and unexecuted.
Inventory event 5001 has ticket 5101 with these fictional pass records:
| Pass ID | Owner ID | Assigned-reader ID | Stored active setting |
|---|---|---|---|
| 9001 | 9101 | 9201 | true |
| 9002 | 9102 | 9201 | false |
| 9003 | 9101 | null | true |
Owners and assigned readers have different roles. Reader 9201 is assigned two passes, one inactive. Pass 9003 has an owner but no assigned reader. These stored settings do not establish current membership or admission.
List assigned-reader IDs for an event
GET /api/v1/admin/ti-event/{id}/assign-user-ids
Read stored non-null assignments across the event's ticket passes. Reader IDs can repeat, including assignments on inactive passes. Owners are not included merely because they own a pass, and an unassigned pass contributes no assigned-reader ID.
This is not a unique attendee count, owner list or current membership/admission determination. Interpret the returned IDs as assignment records.
| Input | Location / type | Requirement and meaning |
|---|---|---|
id | Path, decimal event ID | Required event such as 5001 in the selected publication. It is not ticket 5101 or pass 9001. |
Example: Read assignments for event 5001
The inventory fixture has two assignments to reader 9201, on passes 9001 and 9002. The latter pass is inactive; pass 9003 is unassigned.
curl -X GET "${WALLKIT_API_BASE}/api/v1/admin/ti-event/5001/assign-user-ids" \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const response = await fetch(`${process.env.WALLKIT_API_BASE}/api/v1/admin/ti-event/5001/assign-user-ids`, {
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/assign-user-ids",
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 response excerpt:
{"user_ids": [9201, 9201]}
| Field | Type / presence | Meaning |
|---|---|---|
user_ids | Always an array | Stored assigned-reader identifiers. Repeats are retained; ordering is unspecified. [] when no assignments are selected. There is no items, profile, pass-object or paginator expansion. |
The repeated ID is one reader appearing through two assigned passes, not two distinct people. No active-pass or caller-owner-only subset is applied by this inventory.
Empty assignments and recovery
An existing event without selected assignments returns HTTP 200:
{"user_ids": []}
This does not establish that the event has no ticket definitions, owners, unassigned passes or possible access.
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | Empty user_ids | No non-null assignments were selected. | Show an empty assignment list; inspect the ticket's passes if you need owner/unassigned state. |
| 404 | ti_event_not_found; Ti event not found | Event was not found in the selected publication. | Verify the publication key and event ID. |
| Varies | invalid_ti_event, description | Event lookup or assignment query failed. | Retain the description/request reference and contact the integration operator if unresolved; there is no single fixed error status for this case. |
| Varies / no complete response | Failed or incomplete response | Inventory could not be fully returned. | Treat it as a failed read, not an empty successful list. |
Next, inspect ticket 5101's pass records to distinguish owners, assignments and inactive records.
Inspect a ticket's pass inventory
GET /api/v1/admin/ti-event/ticket/{ticket_id}/passes
Read the pass records under one ticket definition in the selected publication. Inactive, unassigned and non-caller-owned records are included. This is a staff inventory, not an owner-only customer read or a current access decision.
| Input | Location / type | Requirement and meaning |
|---|---|---|
ticket_id | Path, decimal ticket-definition ID | Required definition such as 5101 under event 5001. It is not a pass or reader ID. |
Example: Read ticket 5101's passes
Use the inventory ticket, which remains present. The three returned records match the fixture above; extra is null in this example.
curl -X GET "${WALLKIT_API_BASE}/api/v1/admin/ti-event/ticket/5101/passes" \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const response = await fetch(`${process.env.WALLKIT_API_BASE}/api/v1/admin/ti-event/ticket/5101/passes`, {
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/ticket/5101/passes",
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 response:
{
"items": [
{"id": 9001, "owner_id": 9101, "assign_id": 9201, "extra": null, "active": true},
{"id": 9002, "owner_id": 9102, "assign_id": 9201, "extra": null, "active": false},
{"id": 9003, "owner_id": 9101, "assign_id": null, "extra": null, "active": true}
]
}
Response fields
items is always an array, with exactly these five fields per pass. Ticket context comes from the path. ID and flag values can use different stored scalar types.
| Field | Type / presence | Meaning |
|---|---|---|
items | Array, empty when no passes | All selected ticket pass records; unpaginated, with ordering unspecified. |
items[].id | Stored numeric identifier | Pass ID, distinct from the path's ticket-definition ID. |
items[].owner_id | Stored numeric reference / nullable value | Pass owner. Ownership does not imply assignment. |
items[].assign_id | Stored numeric reference / null | Assigned person; null indicates no stored assignment. |
items[].extra | Decoded JSON or stored value / null | Additional stored pass data; its schema and sensitivity depend on stored contents. See base-pass JSON handling. |
items[].active | Stored flag / nullable value | Pass's active setting, not an evaluated admission result. Inactive records remain in the inventory. |
No names/emails, owner/assignee profiles, timestamps, nested ticket/event, credentials or authentication-link expansion is added. There is no paginator or data wrapper. The sample's numeric IDs/boolean flags illustrate the fixture, not a universal normalization rule.
Empty pass inventory and recovery
An existing ticket with no passes returns HTTP 200:
{"items": []}
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 200 | Empty items | Ticket exists without pass records. | Show an empty inventory; do not report the ticket as missing. |
| 409 | invalid_ticket, description | Ticket or parent-event lookup/validation failed. | Confirm publication and ticket ID using event or ticket detail. |
| Varies / no complete response | Failed or incomplete response | Related data or the inventory response could not be fully returned. | Treat it as a failed read, not an empty success; retain any request reference for the integration operator. |
Next, read ticket 5101's definition for its configured event, price and quantity settings. Those settings and this pass inventory do not by themselves decide a person's admission.