Skip to content

Retrieve agent session

Request

Returns who is behind the browser session (human, AI agent, or bot) as of this call, with the session context and the device and network risk signals. Pass the session_token the Platform SDK returns for the browser.

Each call scores the session as of that moment, because the last action can be minutes old. The call reads the live session. It does not start or extend it. Optional request fields are saved on the session, so a later call that omits them still returns the latest value sent.

Security
risk_access_token
Query
tenant_idstring

Customer tenant ID. Provide it only when a platform application calls this endpoint on behalf of a customer. The session_token must belong to that tenant. Ignored when the access token already belongs to the customer tenant.

Bodyapplication/jsonrequired
session_tokenstringrequired

Session token returned by the Platform SDK for this browser session. The SDK writes it to the ts_asc cookie when session tokens are enabled. It identifies the device, and Mosaic maps it to that device's current Agent Intelligence session.

Example:"a3c8f5ea75cb65fcdc3d0452b985f957a46e24afdc912e93dac1e115ecf408e5"
action_typestring

Action this request is for, such as transaction.

Example:"transaction"
correlation_idstring

Identifier that relates this request to your own context or session.

Example:"order-8812"
claimed_user_idstring

Identifier of a user who is not yet authenticated. Do not send an email address, phone number, or other personal data in plain text. Send a hash. The value is stored on the session and returned on later calls that omit it.

Example:"7c4a8d09ca3762af61e59520943dc26494f8941b"
claimed_user_id_typestring

Type of value provided in claimed_user_id. Set this when claimed_user_id is a hash, so the original data type is known.

Enum:"email""phone_number""account_id""ssn""national_id""passport_number""drivers_license_number""other"
Example:"email"
auth_contextobject

Send when the user is already authenticated. user_id is required inside it. Stored on the session and returned on later calls that omit it.

curl -i -X POST \
  'https://api.sbx.transmitsecurity.io/risk/v1/agent-intelligence/session?tenant_id=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "session_token": "a3c8f5ea75cb65fcdc3d0452b985f957a46e24afdc912e93dac1e115ecf408e5"
  }'

Responses

The session as of this call.

Bodyapplication/json
idstringrequired

ID of this call.

Example:"9b1f4c2e8a7d6b5c4e3f2a1b0c9d8e7f"
issued_atnumberrequired

Time the data is current, as Unix epoch time in milliseconds.

Example:1762160045000
actorobjectrequired

Who is behind the session.

contextobjectrequired

Session and device context.

risk_signalsobject or nullrequired

Device and network risk signals. null only when the device has no event to score yet. Treat null as unknown.

Response
{ "id": "9b1f4c2e8a7d6b5c4e3f2a1b0c9d8e7f", "issued_at": 1762160045000, "actor": { "classification_status": "CLASSIFIED", "session_actors": [ … ], "initiated_by": "HUMAN", "current_actor": "AGENT", "current_platform_id": "comet", "current_platform_family": "perplexity", "current_self_declared": false, "current_origin_type": "END_USER_DEVICE", "detected_platform_ids": [ … ], "detected_family_ids": [ … ], "detected": [ … ] }, "context": { "session_id": "ags_3f9c2e7a1b8d4c60", "session_started_at": 1762159950000, "session_duration_seconds": 95, "session_entry_page": "/login", "location": "/transfers/new", "session_total_pages": 4, "session_total_interactions": 37, "action_performed_at": 1762160045000, "action_type": "transaction", "claimed_user_id": "7c4a8d09ca3762af61e59520943dc26494f8941b", "claimed_user_id_type": "email", "ip": "192.168.0.1", "ip_country": "US", "browser_name": "Chrome", "os_name": "macOS" }, "risk_signals": { "device": { … }, "network": { … } } }