Access
Preview

Counts for the members filters

How many people are in each group the members screen offers as a filter.

GET
/members/summary
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Response Body

The counts.

application/json
  1. response
total*integer
Formatint64
byRole*
withoutTeam*integer
Formatint64
invited*integer

Pending invitations.

Formatint64
askedToJoin*integer

Join requests waiting for an Owner. Zero for anyone who may not approve them.

Formatint64
withExpiringGrant*integer

People with a grant to them that expires within 60 days.

Formatint64
Example Request
curl -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}