Access
Preview

Support access to the organization

The access the Owner gave Wardn staff to read the organization, if it is still active, and the last twenty

GET
/organization/support-access
cookiebetter-auth.session_token<token>

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

Response Body

The active grant and the ended ones.

application/json
  1. response
current*|

The active grant, or null.

past*array<>

The last twenty grants that ended, newest first.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/organization/support-access'
Example Response
{  "current": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "grantedBy": {      "id": "string",      "name": "string"    },    "grantedAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "hours": 1,    "note": "string",    "openedAt": "2019-08-24T14:15:22Z",    "openedBy": {      "id": "string",      "name": "string"    },    "revokedAt": "2019-08-24T14:15:22Z",    "endedBy": "string"  },  "past": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "grantedBy": {        "id": "string",        "name": "string"      },      "grantedAt": "2019-08-24T14:15:22Z",      "expiresAt": "2019-08-24T14:15:22Z",      "hours": 1,      "note": "string",      "openedAt": "2019-08-24T14:15:22Z",      "openedBy": {        "id": "string",        "name": "string"      },      "revokedAt": "2019-08-24T14:15:22Z",      "endedBy": "string"    }  ]}