Team Invites

List pending team invitations with cursor-based pagination

Changed on

Returns pending team invitations for a specific team. Team key can be ID or slug. These are email-based invitations that have not yet been accepted.

get/teams/{key}/invites

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 invitations by email. Case-insensitive partial match

limit, integer

Maximum number of invitations to return per page

cursor, string

Pagination cursor for fetching the next page

Response

OK

object required
invites, object[] required

Array of invites 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

{
  "invites": [
    {
      "permissions": []
    }
  ],
  "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

    5 more changes in this revision