Skip to content
StatusSupportDashboard

Client Sessions

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

Create webapp SDK session
client.clientSessions.createSession(ClientSessionCreateSessionParamsbody, RequestOptionsoptions?): ClientSessionCreateSessionResponse { sdk_script_url, session_token }
POST/v1/sessions
ModelsExpand Collapse
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.