Access
Preview

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

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

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

Response Body

The invitations.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/members/invitations'
Example Response
{  "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"    }  ]}