List teams with cursor-based pagination
Changed onReturns teams the current user has access to with cursor pagination
Request
- Base URL: https://api.session.services
- URL: https://api.session.services/teams
- Auth: API 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
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 required property
//to the response with the status
- info
- info
added the non-success response with the status
- info