API reference / Customer keys and view-as
End a view-as session
DEL/v1/platforms/{orgId}/view-as/{sessionId}
Ends a session. Members end their own; Owners and Admins end anyone's.
Before you call it
- Organization
platform - Permission
platform:view
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
sessionIdpath, uuidrequired | A view-as session id. |
Response 204
Ended
No body.
Errors to handle
| Code | What it means and what to do |
|---|---|
not_your_session403 | only the person who opened this session or a platform admin can end it |
Every error is a Problem document. Branch on code; quote request_id to support.