Team Members

List team members with cursor-based pagination

Changed on

Returns active team members for a specific team with cursor pagination. Team key can be ID or slug. For pending invitations, use the team invites endpoint instead.

get/teams/{key}/members

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Path parameters

key, string required

Team identifier (ID or slug)

Query parameters

query, string

Search query to filter members by name or email. Case-insensitive partial match

limit, integer

Maximum number of team members to return per request (1-100, default: 20)

Example:20
cursor, string

Pagination cursor from previous response. Used to fetch next page of results

Response

OK

object required
members, object[] required

Array of members for the current result set

before, string nullable

Cursor for navigating backward in the result set. Omitted when there are no prior results.

after, string nullable

Cursor for navigating forward in the result set. Omitted when there are no subsequent results.

limit, number required

Maximum number of items to return in each result set

Example response

{
  "members": [
    {
      "permissions": [
        "event.read",
        "event.write",
        "order.read"
      ]
    }
  ],
  "before": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19",
  "after": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19",
  "limit": 20
}

Changes

    • breaking

      for the query request parameter limit, the type changed from number to integer

    • warning

      for the query request parameter limit, the max was set to 100.00

    • warning

      for the query request parameter limit, the min was set to 1.00

    6 more changes in this revision