List organization members
Read model joined from Better Auth (people, teams, sign-in method, last activity) and Wardn
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
limit?integerPage size. Defaults to 50, at most 200.
1 <= value <= 20050cursor?stringOpaque cursor from a previous page's nextCursor.
offset?integerStart this many people into the list, for a numbered pager: the page is found by position instead of by cursor, and
the answer carries total, how many people match the search and filters. Sending it with cursor answers 400.
0 <= value <= 100000q?stringText to find in a person's name, email or one of their team names, ignoring case. A person matches when the text appears anywhere in one of them.
length <= 100orgRole?array<>Only people with one of these organization roles.
items <= 4teamId?array<string>Only people in one of these teams.
items <= 50noTeam?booleanAlso include people who are in no team. With teamId it widens the match to either;
alone it means only people in no team.
expiringGrant?booleanOnly people with a grant to them that expires within 60 days.
excludeMe?booleanLeave out the caller's own row, as pickers do.
sort?stringWhat to order by. lastActive puts people who never signed in last, ascending.
"name""name""role""joinedAt""lastActive"order?string"asc""asc""desc"A page of members.
application/json- response
items*array<>nextCursor?stringtotal?integerHow many people match the search and filters. Only present when the request gave an offset.
int64curl -X GET 'https://wardn.example.com/api/v1/members'{ "items": [ { "id": "string", "userId": "string", "name": "string", "email": "string", "avatarUrl": "string", "orgRole": "owner", "teamIds": [ "string" ], "joinedAt": "2019-08-24T14:15:22Z", "lastActiveAt": "2019-08-24T14:15:22Z", "signsInWith": "string", "extraAccess": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391", "roleName": "string", "scope": { "kind": "org", "id": "string", "label": "string" }, "subject": { "kind": "team", "id": "string", "label": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string" } ] } ], "nextCursor": "string", "total": 0}Revoke a role binding DELETE
Previous Page
List the invitations that wait for an answer GET
The organization's open invitations, newest first, each with the access it carries and the link that accepts it. The link is a credential, so only those who manage members read it; it is never part of any other answer. An install need not send email, and the link is how an invitation reaches someone