Access
Preview

Let Wardn staff read the organization

Starts a read-only view for staff that lasts 1 to 72 hours (400 `support_access.hours_invalid`). The note, at

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

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

Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
hours*integer
Range1 <= value <= 72
note?string
Lengthlength <= 500

Response Body

The grant.

application/json
  1. response
id*string
Formatuuid
grantedBy*
grantedAt*string
Formatdate-time
expiresAt*string
Formatdate-time
hours*integer
Range1 <= value <= 72
note*string

The note the Owner left for staff; empty when there is none.

openedAt*|

When staff last opened a view because of this grant; null until they do.

Formatdate-time
openedBy*|

Who of the staff opened it, null until they do.

revokedAt*|
Formatdate-time
endedBy*|

How it ended, expired or owner_revoked; null while it is active.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/organization/support-access' \  -H 'Content-Type: application/json' \  -d '{  "hours": 1}'
Example Response
{  "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"}