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
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
Idempotency-Key?stringMakes 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.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
hours*integer1 <= value <= 72note?stringlength <= 500The grant.
application/json- response
id*stringuuidgrantedBy*grantedAt*stringdate-timeexpiresAt*stringdate-timehours*integer1 <= value <= 72note*stringThe 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.
date-timeopenedBy*|Who of the staff opened it, null until they do.
revokedAt*|date-timeendedBy*|How it ended, expired or owner_revoked; null while it is active.
curl -X POST 'https://wardn.example.com/api/v1/organization/support-access' \ -H 'Content-Type: application/json' \ -d '{ "hours": 1}'{ "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"}