Skip to content
StatusSupportDashboard

Client Sessions

Create short-lived SafetyKit access tokens for integrations that need scoped API access.

Create session
client_sessions.create_session(**kwargs) -> ClientSessionCreateSessionResponse { token, account_id, client_token, 2 more }
POST/v1/sessions
ModelsExpand Collapse
class ClientSessionCreateSessionResponse { token, account_id, client_token, 2 more }

Response containing the session token and expiration details

token: String

Short-lived session token to use as Bearer token for API calls

account_id: String

Public account identifier to pass to the browser SDK

client_token: String

Client session token to pass to the browser SDK

expires_at: String

ISO 8601 timestamp when the token expires

expires_in: Float

Seconds until the token expires