Create an app and API key
Create an app in the dashboard, publish it, and copy the app ID and API key your code needs.
An app is a separate memory space with its own settings and API keys. You create one in the dashboard. When you publish it, the dashboard shows the app ID and the first API key. Copy both then, because the key appears once.
Sign in
- Open the dashboard at
https://smritea.ai/dashboard. - Choose Sign in with Google or Sign in with GitHub. You can also use the Create Account tab with your email and a password.
- If you used email, open the verification message and confirm your address. The dashboard then sends you back to the sign-in page.
Only approved emails can sign up. If your email is not approved, the page shows a Book a call with the Smritea team link.
Create the app
- Open Applications in the sidebar.
- Select Create App. The dashboard starts a draft app, so you can leave and resume later.
- On the Basics step, fill in three fields:
- App name: required, up to 255 characters.
- Storage engine: Quick Search or Deep Search. See How Smritea stores memory. You cannot change the engine after the app has memories.
- Data plane: the region. It looks like
us-east-1 (aws). You cannot change it after you create the app. See Regions.
- Select Save & Continue.
- On the Ontology step, you can describe your app and set extraction directives. Every field is optional. If you leave the step alone, the default ontology applies. The Configure with AI button needs a description of at least 200 characters.
- Select Save & Continue.
- On the Review step, check your choices and select Publish.
Copy your credentials
After you publish, the Your app is live page shows two values:
| Value | Form | Use |
|---|---|---|
| App ID | app_... | Identifies the app. Your code sends it on every call. |
| API key | smrt_<prefix>_<secret> | Proves your code may use the app. |
The dashboard shows the key once. If you leave the page without copying it, create a new key as described below. The dashboard lists only the first eight characters of a key after that.
Treat the key as a secret. Keep it out of source control and load it from an environment variable.
Use the credentials in code
Create the client from two environment variables, so the key never appears in your source. The Quickstart shows how to set them.
import os
from smritea import SmriteaClient
client = SmriteaClient(
api_key=os.environ["SMRITEA_API_KEY"],
app_id=os.environ["SMRITEA_APP_ID"],
)If your app is in India, also set the host as described in Regions.
Create or revoke a key later
- Open Applications, then open your app.
- Open the API Keys tab.
- To create a key, select Create Key, enter a Key Name and confirm. The dashboard shows the new key once.
- To revoke a key, select the trash icon on its row. A revoked key stops working, and the dashboard does not ask you to confirm.
You cannot rotate a key in place. To replace a key, create a new one, deploy it, then revoke the old one. Each plan limits how many active keys your organization can hold. If you are at the limit, revoke a key first. See Limits, quotas and credits.
Next steps
- Run your first example in the Quickstart.
- Pick the right host for your region in Regions.
Last updated on



