API keys
Create an Atlaso key on the API keys page. Choose a name, a project or No project, and a memory mode. New keys whose memory is for Me start on Use and learn, so they learn from calls the way the Atlaso Plugin does: see Learning from calls. Keys for Each user of my app start on Use only. The secret starts withsk-at- and is shown
once. Save it securely before closing the dialog.
Send it as Authorization: Bearer $ATLASO_KEY. Do not send an x-atlaso-key
header: a request that carries it is refused with 401 invalid_api_key, even
when Authorization holds a valid key. Use keys on your server,
not in a browser or a mobile app bundle. The chat route answers browser CORS
requests (bearer keys only, no cookies) so a browser can read the reply headers,
but anyone who loads a page that holds your key can copy it.
A key can have a daily spending limit. Revoked
keys, and old secrets after rotation, return invalid_api_key. An account can
hold up to 20 active keys; revoke one to create another.
Rotate a key
To give a key a new secret, open it on the API keys page and choose Rotate key under More actions. The key keeps its name, project, memory settings, limits, tags and call history. The new secret is shown once. Choose when the old secret stops working:- Old secret stops within 30 seconds (the default). Rotating this way also ends any earlier 24-hour overlap.
- Old secret keeps working for 24 hours, so you can update your apps first.
Revoke a key
To stop a key for good, open it on the API keys page and choose Revoke key under More actions. This cannot be undone; you can create a new key. The secret stops working within 30 seconds while the backend is available, or up to 300 seconds during a backend outage, as for a rotation.Memory mode and scope
Mode controls what memory does: Use only, Use and learn, or Off. With Use and learn, a Me key saves the newest user message of each successful call, as the Plugin does. With Use only, it recalls and saves nothing from calls. Memory explains the behavior and the separate setting for what happens if memory cannot be reached. The Memory for setting offers Me or Each user of my app. The latter keeps app users separate within your account and the key’s project. Choose it explicitly for a shared app. New keys use Me (owner memory). A Me key whose memory is on refuses a call that names an app user inx-atlaso-user
(403 memory_scope_owner), on chat, Responses and
Messages calls as on the Memory API, so your own memories never reach your app’s
users. Nothing is sent to the provider and the call costs $0.00. With memory Off
the user ID is allowed and only labels usage for each app user.
Owner memory uses the key’s project plus personal facts. A key with no project
uses personal facts. Per-user scope uses the app user’s own store, without
falling back to the owner’s facts. Keys in the same account and project using
the same app user ID share that app user’s memory.
A Me key can read, add, edit and delete your memories from code with the
Memory API, never all of them at once. To
stop that, set the key’s memory to Off or revoke the key. Every change
appears as a row on the dashboard’s Activity and Memory pages: rows from the SDK
show an “SDK” tag and direct web requests show “API”.
At $0.00 in Atlaso credit, the AI clean-up of saved messages waits, for Gateway
calls and Plugin messages alike. Saving, recall, Ambient Memory, Ask and own-key
model calls keep working. See Credits and learning.