Discover teams and their members

Find a team, inspect settings or list attached accounts. Teams belong to the publication’s partner, so results can include teams shared across that partner’s publications.

TaskOperationAllowed credentials
Find teamsGET /api/v1/admin/teamsreadonly, manager, support, admin or partner, root, or authorized service account
Inspect one teamGET /api/v1/admin/teams/{id}readonly, manager, support, admin or partner, root, or authorized service account
Read attached accountsGET /api/v1/admin/teams/{id}/usersreadonly, manager, support, admin or partner, or root

Start with the team list and keep a returned ID for detail and member calls. Counts include stored relationships and invitations, not just active members or usable invitations. Check content access separately.

Credentials and visibility

Use the existing integration address, publication public key and authorized credential supplied by your operator.

InputLocation / typeMeaning
resourceRequired header, publication public-key stringSelects the publication whose partner association determines team visibility. It is not a numeric partner/resource ID or secret.
tokenExisting authorized session-token headerreadonly and inherited manager/support/admin/partner roles are eligible; root is permitted. ADMIN_TOKEN in examples is this existing credential.
service-api-keyExisting service-account key header; list/detail onlyRequires an active non-suspended account, active attached user and the specific action grant or full_access within the eligible service-account actions. It cannot enable member reads.
idRequired digits-only path value on single-team routesTeam ID, not a user, team-member relationship or catalog subscription ID.

Choose the credential allowed for your route. The caller must be active; their current publication relationship, when present, must not be locked or suspended.

Teams are shared through the publication’s partner association and can appear in several publications. Inactive teams can appear. Attached account profiles and memberships have the broader scopes described below.

Examples and pagination

Examples use fictional team 7001, reader 1002 and illustrative 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 the chosen credential. Keep privileged calls in trusted server code.

Both lists accept optional integer page and limit. Send a positive page, such as 1; the omitted-page default is unspecified. Limit defaults to 10; send a positive size. No maximum is specified here. The common paginator has current_page, page, total_pages, total_items and limit. Empty pages return items: []. Cached results may lag recent changes.

Find teams

GET /api/v1/admin/teams

Browse teams associated with this publication’s partner, including inactive and shared teams.

Before you call

Send an eligible token or service key with the publication public key. The example uses a service account. It can read list/detail, but not the member roster.

Request

No body is needed. Use shared pagination and these query inputs:

NameType / requirementMeaning
filterOptional bracket map or JSON-encoded objectTeams field filters depend on configured field metadata; examples include Teams.name substring, Teams.id numeric selection and Teams.active boolean. Unknown or invalid fields are not uniformly rejected.
order, byOptional known Teams field stringorder takes precedence over by. Default Teams.created_at.
sortOptional direction string; default DESCUse ASC or DESC; equal sort values have no guaranteed tie order.

The example omits filters and sorts by Teams.id. Use known fields rather than arbitrary filter or sort names.

Response

HTTP 200 returns items and paginator. Each item has the applicable team fields and list subscription described under team response fields. No invitations, detail Plan or per-member relationships are added. Empty selections return items: [].

Example: Find a team ID

curl "${WALLKIT_API_BASE}/api/v1/admin/teams" \
  --get \
  -H "resource: ${RESOURCE_KEY}" \
  -H "service-api-key: ${SERVICE_API_KEY}" \
  --data-urlencode page=1 \
  --data-urlencode limit=10 \
  --data-urlencode order=Teams.id \
  --data-urlencode sort=ASC
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/teams`);
url.search = new URLSearchParams({"page": "1", "limit": "10", "order": "Teams.id", "sort": "ASC"}).toString();
const response = await fetch(url, {
  method: "GET",
  headers: {"resource": process.env.RESOURCE_KEY, "service-api-key": process.env.SERVICE_API_KEY}
});
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"
url += "?" + urlencode({'page': '1', 'limit': '10', 'order': 'Teams.id', 'sort': 'ASC'})
request = Request(url, headers={"resource": os.environ["RESOURCE_KEY"], "service-api-key": os.environ["SERVICE_API_KEY"]}, 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:

{"items":[{"id":7001,"name":"Example team","active":true,"type":"company","users_count":1,"invites_count":1,"subscription":{}}],"paginator":{"current_page":1,"page":1,"total_pages":1,"total_items":1,"limit":10}}

Keep team ID 7001. Empty subscription means no configured subscription resolved. The counts describe stored relationships and invitations, not active members or usable invitations.

No teams on this page

HTTP 200 excerpt:

{"items":[]}

Check page, publication and filters. This empty selection says nothing about the caller’s teams elsewhere.

Recovery

Use shared recovery, plus:

HTTP statusAPI code / shapeCauseNext action
200items: []No teams selected on this page.Check page, filters and publication context.
Not uniformly specifiedFilter/query/response-format failureThese failures do not all have a normalized action-specific response.Use known fields and explicit pagination; retain request context for the operator.

Next task

Inspect team 7001 for settings and detailed subscription fields. Use an allowed Admin credential to read members.

Inspect one team

GET /api/v1/admin/teams/{id}

Read a team associated with the publication’s partner. Inactive teams can also be returned.

Before you call

Use an eligible token or service key, publication key and numeric team ID. The example uses an Admin token to show administrative fields. See team response fields for conditional service-account fields.

Request

Send the headers and path id. No body, filters or pagination are used.

Response

HTTP 200 returns team fields at the top level, with the detailed subscription. There is no team wrapper, invitation list or separate plan field. The nested Plan may contain more fields than the list response. If no configured subscription resolves, subscription is {}.

Example: Inspect team settings

curl "${WALLKIT_API_BASE}/api/v1/admin/teams/7001" \
  -H "resource: ${RESOURCE_KEY}" \
  -H "token: ${ADMIN_TOKEN}"
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/teams/7001`);
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/teams/7001"
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:

{"id":7001,"name":"Example team","description":"An illustrative customer team.","active":true,"type":"company","subscription_end_date":null,"member_limit":10,"allowed_email_regexp":[],"never_lock":false,"users_count":1,"invites_count":1,"subscription":{}}

The seat limit is 10; the stored relationship count is 1. They measure different things. The excerpt omits timestamps and a conditional owner.

Team missing or outside this visibility scope

HTTP 404 excerpt:

{"error":"team_not_found","error_description":"Team not found"}

Check the team ID and publication. Unknown IDs and teams outside the partner association share this response.

Recovery

Use shared recovery, plus:

HTTP statusAPI code / shapeCauseNext action
404team_not_foundTeam missing or outside the selected visibility scope.Confirm team ID from discovery and the intended publication.
Not uniformly specifiedQuery/related-record response-format failureSome failures have no normalized action-specific response.Keep request context for the operator; do not invent missing subscription/owner data.

Next task

Read attached accounts with an allowed Admin credential.

Read accounts attached to a team

GET /api/v1/admin/teams/{id}/users

List accounts attached by stored team relationships. The query does not filter by active status or team role.

Profiles describe shared reader accounts. Membership arrays can contain records from multiple publications; inspect each record’s intended context. Returned teams is empty even for an attached account; it does not disprove the link.

Before you call

Use an allowed Admin token, publication key and intended team ID. Service accounts cannot read members. The team must match the partner association. The list shows accounts attached to that team, including accounts whose profiles or memberships belong to other publication contexts.

Request

No body is needed. Use shared page/limit and:

Query inputType / requirementMeaning
byOptional bare user field name; default idUse id, not Users.id.
sortOptional direction string; default DESCUse ASC or DESC; no stable tie ordering promised.
filterNo dependable filtering guarantee hereNo supported roster-filter option. Retrieve the roster and check intended identities; the examples omit filter inputs.

There is no order alias. Counts describe relationships, not necessarily unique or active accounts.

Response

HTTP 200 returns items and paginator with these account fields:

Returned field/objectMeaning
Global userShared User fields: profile/contact fields, activation, confirmation, global activity and photos.
extraEmpty object, not this publication’s reader extra.
uid, user_resource_created_at, languageNull; publication-specific values are not supplied.
locked, can_own_teamsFalse in this response. Inspect publication lock state and the local team-owner role separately.
settings, roleConditional Admin fields: null settings and global role, not the selected-team role.
teamsEmpty array; it does not contradict the team link used to select the account.
subscriptionsIdentity membership fields, including catalog, Plan, membership and slot details, with no publication/partner filter. Invalid relationships can be skipped; inactive or expired memberships can appear.

The linked schema explains membership fields; its usual publication selection does not apply here. No selected-team role, status, relationship timestamp, tags, last_action or new token is added. Invalid nested records can be omitted or cause failure.

Example: Read team 7001’s attached account

curl "${WALLKIT_API_BASE}/api/v1/admin/teams/7001/users" \
  --get \
  -H "resource: ${RESOURCE_KEY}" \
  -H "token: ${ADMIN_TOKEN}" \
  --data-urlencode page=1 \
  --data-urlencode limit=10 \
  --data-urlencode by=id \
  --data-urlencode sort=ASC
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/teams/7001/users`);
url.search = new URLSearchParams({"page": "1", "limit": "10", "by": "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/users"
url += "?" + urlencode({'page': '1', 'limit': '10', 'by': '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:

{"items":[{"id":1002,"email":"new-reader@example.com","first_name":"River","active":true,"confirm":false,"extra":{},"uid":null,"language":null,"locked":false,"can_own_teams":false,"teams":[],"subscriptions":[]}],"paginator":{"current_page":1,"page":1,"total_pages":1,"total_items":1,"limit":10}}

Reader 1002 was selected through the team link. Empty teams is a response rule; subscriptions is empty for this fictional account. Other accounts’ subscriptions can span multiple publications; inspect their intended context. False lock/capability fields do not replace publication-specific checks.

No attached accounts on this page

HTTP 200 excerpt:

{"items":[]}

Check page and paginator. This means no attached-account rows on that page, not zero activity or unused invitations.

Recovery

Use shared recovery, plus:

HTTP statusAPI code / shapeCauseNext action
404team_not_foundTeam missing or outside visibility scope.Confirm team ID/publication.
200Unexpected member selectionFilters may not constrain this action.Inspect returned accounts and pagination; do not rely on an unconfirmed filter.
Not uniformly specifiedQuery/profile/relationship response-format failureNot every failure has a normalized action-specific response.Retain request context for the operator; do not turn omitted data into access conclusions.

Next task

Use reader discovery for publication-aware account fields and the content-access guide for a current access decision.

Shared recovery

Errors normally include error, error_description and req_guid. Keep the request reference for your operator.

HTTP statusAPI code / shapeCauseNext action
401 / 403accessCaller role/action not permitted.Check the operation’s caller column; a service key only supports list/detail here.
401auth_failedRequired identity did not resolve.Confirm existing credential and the chosen custom header.
401auth_access_failCaller inactive or its current publication relationship locked/suspended.Ask the operator to inspect those restrictions.
401token_expired / token_compromisedApplicable session check rejects the credential.Use an existing current authorized credential.
404resource_not_existsPublication public key does not resolve.Confirm the key; changing the team ID does not repair it.
409initialize_failedShared context initialization failed.Supply request reference and publication context to the operator.

Team response fields

Team list and detail return these fields according to caller context:

Returned teamFields
Authorized Admin contextFull team: id, name, description, active, type, subscription_end_date, member_limit, allowed_email_regexp, never_lock, created_at, updated_at, optional owner, users_count and invites_count.
Other eligible contextPublic team with subscription: id, name, description, active, type, optional short owner, users_count and invites_count, plus the requested subscription. Administrative settings and timestamps are omitted.

Full-team settings require an authorized Admin context; service-account responses may use the smaller set. Both follow these rules:

FieldMeaning
ownerPresent only for a stored owner reference. Full team returns a shared account profile; public team returns a short user. This does not list every owner/admin team relationship.
users_countAll associated user-team relationships, including inactive statuses; not necessarily distinct active readers.
invites_countAll associated invitations, including used or unavailable ones.
subscription, listGeneral subscription, with compact Plan and next/downgrade choices as defined in that schema. Empty {} if no team subscription resolves.
subscription, detailGeneral subscription with the subscription detail Plan when that lookup qualifies; a compact Plan can be returned instead. Empty {} without a subscription. No separate top-level plan field.

The detailed Plan includes its settings and lightweight subscriptions, without Plan timestamps. A team object adds no invitation list or per-member role/status. The configured subscription can belong to another publication; check its catalog and Plan context before using it.

The shared owner profile returns empty publication extra; null uid, user_resource_created_at and language; and false locked and can_own_teams. Activation, confirmation and activity use global account values. Conditional settings/role use null settings and the global role. No membership/team collections or authentication token are added. Other types, dynamic values, dates and money follow the linked definitions.

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