Skip to content

Authentication

Key Sent in Allows
pk_beta_… api_key in the POST /session body Opening sessions from your allowed origins. Batches are then authorised by the session's 128-bit session_id.
sk_beta_… Authorization: Bearer header The risk and device endpoints, GET /usage and DELETE /users/{id}. Server side only.

The API checks the browser's Origin header against your key's allow-list. Send us every origin you deploy to, staging included.

Base URL: https://api.behavlabs.com/v1/collect