Checking access…

Skip to main content
Version: v2
Audience: Consumers, CCG Platform Engineers

Initiate an Agent-Assisted Session

When to use this page

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​

FieldRequiredTypeDescription
userIdYesstringAgent identity. Either an MSID (non-email identifier, ≀50 chars) or an email/UPN (≀250 chars).
firstNameNostringAgent's first name (≀50 chars).
lastNameNostringAgent's last name (≀50 chars).
isAccessVerifiedNoboolean (default false)Indicates whether the agent is authorized to enter PCI data for a card payment method.
Example β€” agent object in a session request
{
"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"]
}
}
Scope is unchanged

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 ws2check setting is enabled, the agent must be a member of the PCI_Workstation_2 group β€” agent.isAccessVerified is ignored in this mode.
  • If ws2check is disabled, the agent is allowed based on agent.isAccessVerified being true instead, 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.
Full access logic and onboarding prerequisite

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.userId sent using either MSID or email/UPN format
  • Confirmed with onboarding whether ws2check is enabled for your merchant account
  • If ws2check is enabled: agent's PCI_Workstation_2 group membership confirmed before relying on on-screen card entry
  • If ws2check is disabled: agent.isAccessVerified set accurately
  • Channel configuration does not assume WEBFORM is 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