Payezydevelopers
Sandbox

API reference / Customer keys and view-as

List view-as sessions

GET/v1/platforms/{orgId}/view-as

Open view-as sessions your team members started inside customers, with who started each and its scope.

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.
customer_idquery, uuidNo description in the spec yet.
limitquery, integerHow many items to return.

1 to 200, default 50

Response 200

The platform's view-as sessions, newest first

FieldWhat it does
itemsPlatformViewAsSession[]requiredNo description in the spec yet.
items[].idstring (uuid)requiredNo description in the spec yet.
items[].scopeenumrequiredNo description in the spec yet.

One of read write

items[].customer_idstring (uuid)requiredNo description in the spec yet.
items[].customer_namestringrequiredNo description in the spec yet.
items[].user_idstring (uuid)requiredNo description in the spec yet.
items[].user_emailstringrequiredNo description in the spec yet.
items[].user_namestringrequiredNo description in the spec yet.
items[].platform_user_idstring (uuid)requiredNo description in the spec yet.
items[].platform_user_emailstringrequiredNo description in the spec yet.
items[].platform_user_namestringrequiredNo description in the spec yet.
items[].reasonstringrequiredNo description in the spec yet.
items[].statusenumrequiredNo description in the spec yet.

One of active ended expired

items[].end_reasonstringrequiredNo description in the spec yet.
items[].expires_atstring (date-time)requiredNo description in the spec yet.
items[].created_atstring (date-time)requiredNo description in the spec yet.
items[].ended_atstring (date-time)No description in the spec yet.