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.

TaskOperationResult
List event assignmentsGET /api/v1/admin/ti-event/{id}/assign-user-idsuser_ids array; repeats are possible
Read a ticket's base pass recordsGET /api/v1/admin/ti-event/ticket/{ticket_id}/passesitems 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.

HeaderType / requirementMeaning
resourceRequired stringPublication public key, supplied as RESOURCE_KEY.
tokenRequired stringExisting 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 IDOwner IDAssigned-reader IDStored active setting
900191019201true
900291029201false
90039101nulltrue

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.

InputLocation / typeRequirement and meaning
idPath, decimal event IDRequired 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]}
FieldType / presenceMeaning
user_idsAlways an arrayStored 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 statusAPI code / shapeCauseNext action
200Empty user_idsNo non-null assignments were selected.Show an empty assignment list; inspect the ticket's passes if you need owner/unassigned state.
404ti_event_not_found; Ti event not foundEvent was not found in the selected publication.Verify the publication key and event ID.
Variesinvalid_ti_event, descriptionEvent 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 responseFailed or incomplete responseInventory 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.

InputLocation / typeRequirement and meaning
ticket_idPath, decimal ticket-definition IDRequired 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.

FieldType / presenceMeaning
itemsArray, empty when no passesAll selected ticket pass records; unpaginated, with ordering unspecified.
items[].idStored numeric identifierPass ID, distinct from the path's ticket-definition ID.
items[].owner_idStored numeric reference / nullable valuePass owner. Ownership does not imply assignment.
items[].assign_idStored numeric reference / nullAssigned person; null indicates no stored assignment.
items[].extraDecoded JSON or stored value / nullAdditional stored pass data; its schema and sensitivity depend on stored contents. See base-pass JSON handling.
items[].activeStored flag / nullable valuePass'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 statusAPI code / shapeCauseNext action
200Empty itemsTicket exists without pass records.Show an empty inventory; do not report the ticket as missing.
409invalid_ticket, descriptionTicket or parent-event lookup/validation failed.Confirm publication and ticket ID using event or ticket detail.
Varies / no complete responseFailed or incomplete responseRelated 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.

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