Access
PreviewCounts for the members filters
How many people are in each group the members screen offers as a filter.
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
The counts.
application/json- response
total*integerFormat
int64byRole*withoutTeam*integerFormat
int64invited*integerPending invitations.
Format
int64askedToJoin*integerJoin requests waiting for an Owner. Zero for anyone who may not approve them.
Format
int64withExpiringGrant*integerPeople with a grant to them that expires within 60 days.
Format
int64curl -X GET 'https://wardn.example.com/api/v1/members/summary'Example Response
{ "total": 0, "byRole": { "owner": 0, "admin": 0, "contributor": 0, "viewer": 0 }, "withoutTeam": 0, "invited": 0, "askedToJoin": 0, "withExpiringGrant": 0}Change the organization role an invitation gives PUT
Changes the role the invited person is given when they accept, before they do. An invitation is never to Owner. When the invitation carries access that a Viewer cannot hold, the role must stay at least Contributor (`400` `binding.below_org_role`). Writes an Activity entry.
List teams GET
Teams come from Better Auth. Wardn adds leads and groups.