Payezydevelopers
Sandbox

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

  • Organizationplatform
  • Permissionplatform:view

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe 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, uuidrequiredA view-as session id.

Response 204

Ended

No body.

Errors to handle

CodeWhat it means and what to do
not_your_session403only 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.