List the invitations that wait for an answer
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
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
The invitations.
application/json- response
items*array<>curl -X GET 'https://wardn.example.com/api/v1/members/invitations'{ "items": [ { "id": "string", "email": "string", "orgRole": "owner", "teamIds": [ "string" ], "access": { "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391", "roleName": "string", "scope": { "kind": "org", "id": "string", "label": "string" }, "expiry": { "days": 1, "date": "2019-08-24T14:15:22Z" } }, "invitedBy": "string", "invitedByName": "string", "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "link": "string" } ]}List organization members GET
Read model joined from Better Auth (people, teams, sign-in method, last activity) and Wardn
Choose the access an invitation gives on acceptance PUT
When the invited person accepts, they are given the role on the place, ending on the expiry. It replaces any access the invitation carried before. The caller needs what a grant of that role there needs, and a role that only reads may go to any organization role, but one that changes things needs Con