API reference / Customer keys and view-as
Start a view-as session
POST/v1/platforms/{orgId}/customers/{customerId}/view-as
Opens a view-as session as an active member of one of the platform's own customers, view-only by default. With scope "write" the session can also send payments and withdrawals, manage recipients and own bank accounts, and fill, document, and submit that customer's verification, all on the customer's behalf. Money movement needs the platform user's own two-factor step-up. Every action is recorded on both the customer's and the platform's trail with the platform user as actor. The customer's team, approvals and settings stay with the customer. The verification application is only available inside a session for that linked customer. Needs platform:view_as on an active platform. The returned URL opens the customer app in a new tab; the token rides in the URL fragment.
When to use it
A person on your team needs to see or act in a customer's app, for support. Not available to API keys.
Before you call it
- Organization
platform (active) - Permission
platform:view_as - NoteSigned-in session; write scope needs AAL2.
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. |
customerIdpath, uuidrequired | A customer organization linked to your platform. |
Request body
| Field | What it does |
|---|---|
user_idstring (uuid)required | The customer member to view as |
reasonstringrequired | No description in the spec yet. |
scopeenum | write also lets the platform user act on the customer's behalf (payments, withdrawals, recipients, own accounts, and the verification application: fill it, upload documents, and send it for review). The customer's team, approvals and settings stay with the customer. One of Default |
Response 201
Session opened
| Field | What it does |
|---|---|
sessionPlatformViewAsSessionrequired | No description in the spec yet. |
session.idstring (uuid)required | No description in the spec yet. |
session.scopeenumrequired | No description in the spec yet. One of |
session.customer_idstring (uuid)required | No description in the spec yet. |
session.customer_namestringrequired | No description in the spec yet. |
session.user_idstring (uuid)required | No description in the spec yet. |
session.user_emailstringrequired | No description in the spec yet. |
session.user_namestringrequired | No description in the spec yet. |
session.platform_user_idstring (uuid)required | No description in the spec yet. |
session.platform_user_emailstringrequired | No description in the spec yet. |
session.platform_user_namestringrequired | No description in the spec yet. |
session.reasonstringrequired | No description in the spec yet. |
session.statusenumrequired | No description in the spec yet. One of |
session.end_reasonstringrequired | No description in the spec yet. |
session.expires_atstring (date-time)required | No description in the spec yet. |
session.created_atstring (date-time)required | No description in the spec yet. |
session.ended_atstring (date-time) | No description in the spec yet. |
urlstringrequired | Opens the customer app in view-as mode |
Errors to handle
| Code | What it means and what to do |
|---|---|
membership_disabled403 | your access to this organization has been disabled |
not_found404 | The resource does not exist, or you are not allowed to know it exists - another organization, another platform's customer, or a production-only route in the sandbox. Check the ids came from your own |
Every error is a Problem document. Branch on code; quote request_id to support.