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

string
required
Your RecallrAI API key. Must start with rai_.
string
required
Your project UUID from the RecallrAI dashboard.
string
Custom API endpoint. Default: https://api.recallrai.com
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().