API Tokens¶
API tokens let scripts, CI/CD pipelines, and third-party tools authenticate to Emergent Memory without an interactive login. Tokens are scoped to a project and carry only the permissions you grant.
Token format¶
All tokens use the prefix emt_ (e.g. emt_abc123...). Tokens are:
- Scoped to a specific project
- Revocable at any time
- Auditable —
lastUsedAttracks recent activity - Stored as a bcrypt hash — the plaintext value is only shown at creation
Creating a Token¶
Save the token value
The full token is returned only at creation. It cannot be retrieved again. Store it in a secrets manager (GitHub Secrets, Vault, etc.) immediately.
Scopes Reference¶
| Scope | Access |
|---|---|
schema:read |
Read type definitions and template packs |
data:read |
Read graph objects, documents, chunks, search |
data:write |
Create and update graph objects, documents |
agents:read |
Read agents, runs, definitions, questions |
agents:write |
Trigger agents, respond to questions, manage hooks |
projects:read |
Read project metadata and members |
projects:write |
Update project settings and members |
Assign only the scopes your integration needs.
Using a Token¶
Listing Tokens¶
Response shows token metadata but never the plaintext value. Use tokenPrefix to identify which token is which.
Revoking a Token¶
The token is invalidated immediately. Any requests using it will receive 401 Unauthorized.