Initiate an Agent-Assisted Session
Creating a session on behalf of a customer through an agent (e.g. a call-center or on-screen-assisted flow), rather than a direct customer self-service session. For what an agent-assisted session is and why it exists, see Agent-Assisted Sessions β Overview. For the base request shape, see Create a Session.
An agent session is a regular POST v2/sessions request with an agent object included in the request body, alongside customer, payment, and config. There is no separate endpoint, mode, or scope for agent sessions β the presence of the agent object is what marks the session as agent-initiated.
The agent Objectβ
| Field | Required | Type | Description |
|---|---|---|---|
userId | Yes | string | Agent identity. Either an MSID (non-email identifier, β€50 chars) or an email/UPN (β€250 chars). |
firstName | No | string | Agent's first name (β€50 chars). |
lastName | No | string | Agent's last name (β€50 chars). |
isAccessVerified | No | boolean (default false) | Indicates whether the agent is authorized to enter PCI data for a card payment method. |
{
"customer": {
"hsid": "<customer-hsid>"
},
"payment": {
"merchantTransactionId": "<unique-id>",
"amount": 1500,
"authorizeCard": false
},
"agent": {
"userId": "agent@example.com",
"firstName": "Jane",
"lastName": "Doe",
"isAccessVerified": true
},
"config": {
"modes": ["PAYMENT"]
}
}
Agent sessions use the same merchant scope as any other session β there's no separate agent auth scope.
On-Screen Card Entry: the WS2 Access Checkβ
If the session mode allows on-screen CARD entry, whether the agent is actually permitted to use it is gated by agent.userId against the merchant's WS2 (PCI_Workstation_2) group in UHC Secure β this is evaluated at session creation.
- If the merchant's
ws2checksetting is enabled, the agent must be a member of thePCI_Workstation_2group βagent.isAccessVerifiedis ignored in this mode. - If
ws2checkis disabled, the agent is allowed based onagent.isAccessVerifiedbeingtrueinstead, regardless of group membership. - If neither condition is met, on-screen card entry is not enabled for that session, and the session fails β see WS2 Verification failure.
See On-Screen Entry β WS2 Group for the complete access logic table. Confirm with your onboarding representative whether ws2check should be enabled for your merchant account before relying on WS2 group membership β see Capability Enablement Requirements.
Bank account on-screen entry has no WS2 restriction β it's allowed for any agent.
Integration Checklistβ
-
agent.userIdsent using either MSID or email/UPN format - Confirmed with onboarding whether
ws2checkis enabled for your merchant account - If
ws2checkis enabled: agent'sPCI_Workstation_2group membership confirmed before relying on on-screen card entry - If
ws2checkis disabled:agent.isAccessVerifiedset accurately - Channel configuration does not assume
WEBFORMis auto-added for agent sessions - CARD payment flows account for the no-3DS-in-agent-session limitation
- Tested with sandbox/staging environment before going live
Related Documentationβ
- Agent-Assisted Sessions β Overview β what an agent-assisted session is, why it exists, and supported channels
- Create a Session
- On-Screen Entry β WS2 group and access logic
- Capability Enablement Requirements
- Session Error Codes