Skip to content
StatusSupportDashboard

Client Sessions

Beta. Create browser-safe Webapp SDK session tokens from authenticated server-side code.

Create webapp SDK session
client_sessions.create_session(**kwargs) -> ClientSessionCreateSessionResponse { sdk_script_url, session_token }
POST/v1/sessions
ModelsExpand Collapse
class ClientSessionCreateSessionResponse { sdk_script_url, session_token }

Response containing the browser-safe webapp SDK session token and hosted SDK script URL.

sdk_script_url: String

SafetyKit-hosted browser SDK script URL to render as the script src.

formaturi
session_token: String

Browser-safe webapp SDK session token to pass to the browser SDK.