Skip to main content

Installation

Install the SDK via npm, yarn, or pnpm:

Initialize Client

All datetime objects returned by the SDK are JavaScript Date instances in UTC.

Parameters

apiKey
string
required
Your RecallrAI API key. Must start with rai_.
projectId
string
required
Your project UUID from the RecallrAI dashboard.
baseUrl
string
Custom API endpoint. Default: https://api.recallrai.com
timeout
number
Request timeout in seconds. Default: 30
When user and session IDs are already trusted in your system, you can skip SDK lookup calls by setting validate: false on getUser() and getSession().