List teams with cursor-based pagination
Changed onReturns teams the current user has access to with cursor pagination
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Query parameters
Filter teams by user membership. If omitted, returns all teams (tenant admin only). If provided, returns teams where the specified user is a member
Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate
Optional search query for filtering teams by name or slug
Optional list sort field. Use createdAt to return newest or oldest teams first.
Sort direction for team lists. Defaults to desc when sort is provided.
Maximum number of teams to return per request (1-100, default: 20)
Pagination cursor from previous response. Used to fetch next page of results
Response
OK
Array of teams for the current result set
Cursor for navigating backward in the result set. Omitted when there are no prior results.
Cursor for navigating forward in the result set. Omitted when there are no subsequent results.
Maximum number of items to return in each result set
Example response
{
"teams": [
{
"publicBaseUrl": "https://sash.net.au",
"image": {
"src": "https://assets.session.services/my-image.jpg",
"alt": "My Image",
"width": 1080,
"height": 1080
},
"member": {
"permissions": []
}
}
],
"before": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19",
"after": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19",
"limit": 20
}Changes
- info
added the optional property
teams/items/gateway/readinessto the response with the status
- info
- breaking
added the pattern
^usr_[0-9a-z]{26}$to thequeryrequest parameteruserId - breaking
for the
queryrequest parameterlimit, the type changed fromnumbertointeger
6 more changes in this revision
- breaking