Read team invitations and invitations a reader used
Find a team’s invitations or invitations used by an account. Intended contact, stored account activation and invitation creator are different relationships.
| Task | Operation | Allowed credentials |
|---|---|---|
| Read invitations attached to a team | GET /api/v1/admin/teams/{id}/invites | readonly, manager, support, admin or partner, or root |
| Read a reader’s used invitations without pagination | GET /api/v1/admin/users/{user_id}/invites | readonly, manager, support, admin or partner, or root |
| Page through distinct invitations a reader used | GET /api/v1/admin/users/{user_id}/invites/list | support, admin or partner, or root |
Choose the reader route by permission and collection behavior. They differ in pagination, duplicate records, account checks and empty responses.
Existing context and identifiers
Use the assigned API address, token and publication public key. Allowed roles appear in the task table. Service accounts cannot use these three routes, including those with full_access.
| Input | Location / type | Meaning |
|---|---|---|
| resource | Required header, publication public-key string | Selects publication context, not a numeric resource/partner ID or a secret. |
| token | Required header, existing authorized token string | ADMIN_TOKEN in examples is the eligible credential. readonly is inherited by manager/support/admin/partner; the paginated reader route starts at support, inherited by admin/partner. Root is permitted. |
| id | Required digits-only team path value | Team ID for team invitations; not an invitation ID. |
| user_id | Required digits-only reader path value | Global account whose stored invitation activations are selected; not an intended-contact email or creator ID. |
The caller must be active; their current publication relationship, when present, must not be locked or suspended. Choose the intended team or reader from your authorized records. Team visibility follows the partner association; reader queries select invitations for the header publication.
Example conventions
Examples use fictional team 7001, reader 1002, invitation 8001 and code EXAMPLE-INVITE-8001. 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 existing RESOURCE_KEY and ADMIN_TOKEN. Keep privileged calls in trusted server code.
Read invitations attached to a team
GET /api/v1/admin/teams/{id}/invites
Read invitations for a team associated with the publication’s partner. Shared teams can return invitations from several publications; check each invitation’s context before using it.
Before you call
Send an allowed Admin read token, publication key and intended team ID. Inactive teams and used or unavailable invitations can appear.
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 query map | Invitation fields depend on configured metadata; for example filter[Invites.email] is a case-insensitive substring of intended contact email. Unknown fields/failures are not uniformly rejected. |
| by | Optional known field string; default Invites.id | Sort field; no order alias established here. |
| sort | Optional direction string; default DESC | Use ASC/DESC; no stable tie order promised. |
Use bracket filters. Do not apply the paginated reader route’s JSON-string/range conventions here. The example omits filters.
Response
HTTP 200 returns invitation items and a common paginator. See invitation fields. available, used, activations and send_mails are absent. Invitation codes are redeemable and sensitive; share them only with intended recipients. Codes and invitation IDs cannot authenticate an Admin API call.
Example: Read a team’s invitation records
curl "${WALLKIT_API_BASE}/api/v1/admin/teams/7001/invites" \
--get \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}" \
--data-urlencode page=1 \
--data-urlencode limit=10 \
--data-urlencode by=Invites.id \
--data-urlencode sort=ASC
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/teams/7001/invites`);
url.search = new URLSearchParams({"page": "1", "limit": "10", "by": "Invites.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/teams/7001/invites"
url += "?" + urlencode({'page': '1', 'limit': '10', 'by': 'Invites.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; related team fields are also partial:
{
"items": [
{
"id": 8001,
"email": "reader@example.com",
"user_name": "River",
"title": "Example team invitation",
"description": "An illustrative invitation.",
"code": "EXAMPLE-INVITE-8001",
"start_date": "2026-10-01 00:00:00",
"end_date": "2026-10-31 23:59:59",
"activations_limit": 1,
"subscription_end_date": "2026-12-01 00:00:00",
"created_at": "2026-10-01 12:00:00",
"updated_at": "2026-10-02 12:00:00",
"team": {
"id": 7001,
"name": "Example team",
"users_count": 1,
"invites_count": 1
}
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
Invitation 8001 belongs to team 7001. Its cap and dates are stored settings, not a current availability check.
No invitations on this page
HTTP 200 excerpt:
{"items":[]}
Check page, filter and paginator. No selected rows does not establish whether invitations were revoked or used.
Recovery
Use shared recovery, plus:
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 404 | team_not_found | Team missing or outside selected partner-association visibility. | Confirm team ID and publication. |
| 200 | items:[] | No rows on this page/selection. | Check pagination and filter; do not infer delivery or current validity. |
| Not uniformly specified | Filter/query/related-record failure | This action does not normalize every such failure. | Use known bracket fields/explicit pagination; retain request context for the operator. |
Next task
Choose a reader used-invitations route below to inspect stored activations. Intended-contact email and team inclusion do not establish which account used an invitation.
Read invitations a reader used without pagination
GET /api/v1/admin/users/{user_id}/invites
Read invitations with an activation by this account in the selected publication. This is not invitations sent to its email or created by it. This earlier route remains unpaginated.
Before you call
Use an allowed Admin read token, publication key and intended account ID. The account must exist. Choose it from your existing reader records before reading its invitation activations.
Request
Send user_id in the path and the headers without a body. The result is unpaginated, with no filter or sort options. Order and duplicate suppression are unspecified: repeated activation rows can repeat an invitation.
Response
HTTP 200 adds invitation items when rows are read, without paginator. An empty result may be [], or an object with other response fields but no items. Handle missing items rather than assuming items: []. No activation timestamp/count, availability or mail detail is added.
Example: Read stored invitation use by reader 1002
curl "${WALLKIT_API_BASE}/api/v1/admin/users/1002/invites" \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/users/1002/invites`);
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/users/1002/invites"
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; related team fields are also partial:
{
"items": [
{
"id": 8001,
"email": "reader@example.com",
"user_name": "River",
"title": "Example team invitation",
"description": "An illustrative invitation.",
"code": "EXAMPLE-INVITE-8001",
"start_date": "2026-10-01 00:00:00",
"end_date": "2026-10-31 23:59:59",
"activations_limit": 1,
"subscription_end_date": "2026-12-01 00:00:00",
"created_at": "2026-10-01 12:00:00",
"updated_at": "2026-10-02 12:00:00",
"team": {
"id": 7001,
"name": "Example team",
"users_count": 1,
"invites_count": 1
}
}
]
}
Invitation 8001 was selected by account 1002’s stored activation, not the invitation’s contact fields. Display values and team details are current, not an activation-time snapshot. A repeated row may be the same invitation.
No invitation rows emitted
Nominal HTTP 200 empty response:
[]
Handle an absent items key with or without other response fields. This is not evidence of current invitation availability or past access. A missing global account has a separate 404 response.
Recovery
Use shared recovery, plus:
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 404 | user_not_exists | Path global account does not resolve. | Confirm the intended reader ID. |
| 200 | Empty array body or no items field | No invitation rows emitted. | Normalize the empty result in your client; do not assume items is present. |
| 200 | Repeated invitation IDs | Join can emit the same invitation for multiple stored activations. | Distinguish record ID from activation count; choose the paginated route if its distinct-invitation contract and permissions suit your task. |
| Not uniformly specified | Query/related-record failure | No uniform action-specific response for every failure. | Retain context for the operator; do not invent missing recipient/creator/delivery data. |
Next task
Use the paginated read for distinct invitations if you have its higher permission. Its roles and empty responses differ.
Page through distinct invitations a reader used
GET /api/v1/admin/users/{user_id}/invites/list
Read distinct invitations activated by this account in the publication. Grouping by invitation ID counts invitations, not uses or pending recipients.
Before you call
Use support, admin or partner token, or root, with the publication key and intended account ID. readonly/manager alone cannot use it. An unknown ID can return an empty page, as can a known account with no matching invitations.
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-encoded object | Fields from Invites/InviteActivations depend on configured metadata. For example Invites.email filters stored intended contact text, not creator or path-reader identity. Unknown/invalid fields are not uniformly rejected. |
| order, by | Optional known field strings | order takes precedence over by; default Invites.created_at. |
| sort | Optional direction string; default DESC | ASC or DESC; no stable tie ordering guaranteed. |
The example omits filters and sorts by invitation ID. Filters do not remove the path-account or invitation-publication restrictions.
Response
HTTP 200 returns invitation items and paginator. Grouping removes repeated invitation IDs; counts refer to groups, not uses. Empty selections return items: []. No available, mail or activation details are added.
Example: Page through reader 1002’s used invitations
curl "${WALLKIT_API_BASE}/api/v1/admin/users/1002/invites/list" \
--get \
-H "resource: ${RESOURCE_KEY}" \
-H "token: ${ADMIN_TOKEN}" \
--data-urlencode page=1 \
--data-urlencode limit=10 \
--data-urlencode order=Invites.id \
--data-urlencode sort=ASC
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/users/1002/invites/list`);
url.search = new URLSearchParams({"page": "1", "limit": "10", "order": "Invites.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/users/1002/invites/list"
url += "?" + urlencode({'page': '1', 'limit': '10', 'order': 'Invites.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; related team fields are also partial:
{
"items": [
{
"id": 8001,
"email": "reader@example.com",
"user_name": "River",
"title": "Example team invitation",
"description": "An illustrative invitation.",
"code": "EXAMPLE-INVITE-8001",
"start_date": "2026-10-01 00:00:00",
"end_date": "2026-10-31 23:59:59",
"activations_limit": 1,
"subscription_end_date": "2026-12-01 00:00:00",
"created_at": "2026-10-01 12:00:00",
"updated_at": "2026-10-02 12:00:00",
"team": {
"id": 7001,
"name": "Example team",
"users_count": 1,
"invites_count": 1
}
}
],
"paginator": {
"current_page": 1,
"page": 1,
"total_pages": 1,
"total_items": 1,
"limit": 10
}
}
The page contains one invitation record, not necessarily one use. For current availability, delivery or content access, use the relevant separate workflow.
Empty page does not validate account existence
HTTP 200 excerpt:
{"items":[]}
Check page, filter and paginator. No matches can include an unknown account; this is not an account-existence test or a list of unactivated invitations addressed to that person.
Recovery
Use shared recovery, plus:
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 401 / 403 | access | Caller lacks this route’s support-or-inherited permission. | Confirm the existing eligible context; readonly eligibility on the earlier path does not transfer. |
| 200 | items:[] | No selected invitation groups on the requested page, or the account is unknown. | Check known reader ID, page and filters separately. |
| Not uniformly specified | Filter/query/related-record failure | Not every failure has a normalized action-specific response. | Use known fields/explicit pagination; retain context for the operator. |
Next task
Use reader discovery for account checks and the content-access guide for protected content.
Shared recovery
Errors normally include error, error_description and req_guid. None of these requests sends or redeems an invitation.
| HTTP status | API code / shape | Cause | Next action |
|---|---|---|---|
| 401 / 403 | access | Required caller role/action missing. | Confirm this route’s eligible existing Admin context; none supports service-account credentials. |
| 401 | auth_failed | Required caller identity did not resolve. | Check credential and custom token header. |
| 401 | auth_access_fail | Caller inactive or current caller/publication relationship locked/suspended. | Ask the operator to inspect restrictions. |
| 401 | token_expired / token_compromised | Applicable session check rejects token. | Use an existing current authorized credential. |
| 404 | resource_not_exists | Publication key does not resolve. | Confirm it; changing reader/team/invitation IDs does not repair the key. |
| 409 | initialize_failed | Shared context initialization failed. | Keep request reference and selected context for the operator. |
Invitation fields and their limits
All three return the base invitation fields below. Usage/mail details available in richer invitation responses are not added here.
| Returned field/object | Meaning |
|---|---|
| id | Invitation record ID, distinct from team/account IDs and code. |
| email, user_name | Intended contact/name; not proof of who used or created the invitation. |
| title, description | Current invitation text; potentially null. |
| code | Redeemable invitation value, not a token, service-api-key or session credential. Example codes are fictional. |
| start_date, end_date | Current activation-window bounds; potentially null. Not mail timestamps or a current availability result. |
| activations_limit | Configured cap, not activation count or current availability. |
| subscription_end_date | Stored membership-expiration override, separate from the window and current reader membership. |
| created_at, updated_at | Invitation timestamps, not the reader’s activation time. Timezone unspecified. |
| subscription | Conditional general subscription if its reference resolves; otherwise not necessarily present. |
| ti_event_ticket | Conditional base ticket if its reference resolves, without ti_event. |
| team | Conditional full team if its reference resolves, without added subscription/invitation/member details. Team owner is not invitation creator. |
Missing related objects are not always returned as null. Nested catalog or team data can belong to multiple publications; inspect each related object’s intended context. The linked definitions cover all nested fields, dynamic values, counts, types and money units.
No creator/admin field, mail history, used-user array, activation counts/timestamps, available or is_user_exist field is added. Reader routes use stored activations without returning those raw rows. Current invitation and related fields can differ from their values when used. These reads do not confirm redeemability, current access or mail delivery.