Getting Started
Installation
Install MemorySync, add your project credentials, and confirm the connection.
Prerequisites
- A MemorySync account (sign up here).
- An API key from the dashboard. A key created while a project is selected is locked to that project. For an organization-wide key, copy the project ID from the project menu in the header (
proj_plus 16 hexadecimal characters). - Python 3.9+, Node.js 18+, or cURL.
- A backend or other trusted environment where the API key is not exposed to end users.
Installation
1
Install MemorySync
pip install memorysync
2
Set your API key
import osfrom memorysync import MemorySyncClientclient = MemorySyncClient(api_key=os.environ["MEMORYSYNC_API_KEY"],base_url="https://api.memorysync.io",project_id=os.environ.get("MEMORYSYNC_PROJECT_ID") or None,end_user_id="user-123",)
3
Check the connection
import urllib.requestwith urllib.request.urlopen("https://api.memorysync.io/health") as response:print(response.status)
A successful status confirms that your server can reach MemorySync.
What’s next?
Was this page helpful?