docs / api
API reference
Every endpoint, grouped. The machine-readable contract is served by the API itself.
OpenAPI 3.1: https://api.useagentvault.com/v1/openapi.json. All requests take Authorization: Bearer <api key or session token> unless marked public.
Memories and search
| method | path | what it does | auth |
|---|---|---|---|
| POST | /v1/memories | Remember: creates, merges a repeat, or supersedes by key | key or session |
| GET | /v1/memories | List, newest first; filter by space, subject, tags, key, writer, status, time, as_of | key or session |
| GET | /v1/memories/:id | One memory with every version and every writer | key or session |
| PATCH | /v1/memories/:id | Edit: stores a new version | key or session |
| DELETE | /v1/memories/:id | Forget (history kept), or erase with ?hard=true | key or session |
| POST | /v1/search | Hybrid search with per-signal scores and weights | key or session |
| POST | /v1/recall | Search plus prompt-ready context | key or session |
Spaces and members
| method | path | what it does | auth |
|---|---|---|---|
| GET | /v1/spaces | Spaces you (or the key) can read | key or session |
| POST | /v1/spaces | Create a team or public space | session |
| GET | /v1/spaces/:id | A space, with your role and permissions | key or session |
| PATCH | /v1/spaces/:id | Rename, describe, change settings | session |
| DELETE | /v1/spaces/:id | Delete a space and its memories | session |
| GET | /v1/spaces/:id/members | Members and roles | key or session |
| PATCH | /v1/spaces/:id/members/:userId | Change a role | session |
| DELETE | /v1/spaces/:id/members/:userId | Remove a member | session |
| GET · POST | /v1/spaces/:id/invites | List or send invites | session |
| POST | /v1/invites/accept | Accept an invite by token | session |
Keys, agents, usage, account
| method | path | what it does | auth |
|---|---|---|---|
| GET · POST | /v1/keys | List keys, or create one scoped to spaces (secret shown once) | session |
| DELETE | /v1/keys/:id | Revoke a key | session |
| GET | /v1/agents | Every agent reading and writing, most recent first | key or session |
| GET | /v1/usage | Writes, reads, searches and forgets by day, source or model | key or session |
| GET | /v1/me | The caller: account, spaces, pending invites | key or session |
| POST | /v1/auth/signup · /login · /logout | Email + password accounts (self-hosted) | public |
| GET | /health · /ready | Liveness and readiness | public |