Skip to main content

Revoke Staff View

POST 

/api/admin/portal/view-as-sessions/:session/revoke

Ends a staff view now. The viewer's next portal request is refused and the session is recorded as revoked. Revoking an already-ended view is a no-op.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Requires the portal.manage permission.

Session fields:

  • id (integer): session id, used to revoke it.
  • status (string): pending (link not yet opened), active, expired, exited (the viewer clicked Exit) or revoked.
  • staff_user_id (integer), staff_name (string|null): who started the view.
  • customer_id (integer): the portal account.
  • buyer (object): id, name and email of the buyer viewed as.
  • ip_address (string|null): IP the view was started from.
  • created_at, started_at, expires_at, ended_at (string|null): ISO-8601 timestamps.
  • end_reason (string|null): exited or revoked.

Request​

Responses​

OK

Response Headers
    Content-Type