Install the Restrct SDK for your language of choice, or call the API directly with cURL.
Requires Node.js 18 or later.
$ npm install @restrct/sdk
$ export RESTRCT_API_KEY="sk_live_..."Requires Python 3.10 or later.
$ pip install restrct
$ export RESTRCT_API_KEY="sk_live_..."No SDK? Call the REST API directly.
$ curl https://api.restrct.dev/v1/memory \
-H "Authorization: Bearer $RESTRCT_API_KEY" \
-d '{"text": "Remembers user preferences"}'