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.

TaskOperationAllowed credentials
Read invitations attached to a teamGET /api/v1/admin/teams/{id}/invitesreadonly, manager, support, admin or partner, or root
Read a reader’s used invitations without paginationGET /api/v1/admin/users/{user_id}/invitesreadonly, manager, support, admin or partner, or root
Page through distinct invitations a reader usedGET /api/v1/admin/users/{user_id}/invites/listsupport, 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.

InputLocation / typeMeaning
resourceRequired header, publication public-key stringSelects publication context, not a numeric resource/partner ID or a secret.
tokenRequired header, existing authorized token stringADMIN_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.
idRequired digits-only team path valueTeam ID for team invitations; not an invitation ID.
user_idRequired digits-only reader path valueGlobal 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 inputType / requirementMeaning and constraints
pageOptional integer; send 1 explicitlySend a positive page, such as 1; the omitted-page default is unspecified.
limitOptional integer; default 10Send a positive page size, such as 10. No maximum is specified here.
filterOptional bracket query mapInvitation 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.
byOptional known field string; default Invites.idSort field; no order alias established here.
sortOptional direction string; default DESCUse 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 statusAPI code / shapeCauseNext action
404team_not_foundTeam missing or outside selected partner-association visibility.Confirm team ID and publication.
200items:[]No rows on this page/selection.Check pagination and filter; do not infer delivery or current validity.
Not uniformly specifiedFilter/query/related-record failureThis 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 statusAPI code / shapeCauseNext action
404user_not_existsPath global account does not resolve.Confirm the intended reader ID.
200Empty array body or no items fieldNo invitation rows emitted.Normalize the empty result in your client; do not assume items is present.
200Repeated invitation IDsJoin 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 specifiedQuery/related-record failureNo 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 inputType / requirementMeaning and constraints
pageOptional integer; send 1 explicitlySend a positive page, such as 1; the omitted-page default is unspecified.
limitOptional integer; default 10Send a positive page size, such as 10. No maximum is specified here.
filterOptional bracket map or JSON-encoded objectFields 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, byOptional known field stringsorder takes precedence over by; default Invites.created_at.
sortOptional direction string; default DESCASC 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 statusAPI code / shapeCauseNext action
401 / 403accessCaller lacks this route’s support-or-inherited permission.Confirm the existing eligible context; readonly eligibility on the earlier path does not transfer.
200items:[]No selected invitation groups on the requested page, or the account is unknown.Check known reader ID, page and filters separately.
Not uniformly specifiedFilter/query/related-record failureNot 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 statusAPI code / shapeCauseNext action
401 / 403accessRequired caller role/action missing.Confirm this route’s eligible existing Admin context; none supports service-account credentials.
401auth_failedRequired caller identity did not resolve.Check credential and custom token header.
401auth_access_failCaller inactive or current caller/publication relationship locked/suspended.Ask the operator to inspect restrictions.
401token_expired / token_compromisedApplicable session check rejects token.Use an existing current authorized credential.
404resource_not_existsPublication key does not resolve.Confirm it; changing reader/team/invitation IDs does not repair the key.
409initialize_failedShared 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/objectMeaning
idInvitation record ID, distinct from team/account IDs and code.
email, user_nameIntended contact/name; not proof of who used or created the invitation.
title, descriptionCurrent invitation text; potentially null.
codeRedeemable invitation value, not a token, service-api-key or session credential. Example codes are fictional.
start_date, end_dateCurrent activation-window bounds; potentially null. Not mail timestamps or a current availability result.
activations_limitConfigured cap, not activation count or current availability.
subscription_end_dateStored membership-expiration override, separate from the window and current reader membership.
created_at, updated_atInvitation timestamps, not the reader’s activation time. Timezone unspecified.
subscriptionConditional general subscription if its reference resolves; otherwise not necessarily present.
ti_event_ticketConditional base ticket if its reference resolves, without ti_event.
teamConditional 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.

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