Reverie provides a set of API endpoints to interact with the AI memory storage system.
POST /registerusername, email, password.
curl -X POST -H "Content-Type: application/json" -d '{"username": "your_username", "email": "your_email", "password": "your_password"}' https://memory.therpgserver.co.uk/register
POST /loginusername, password.
Returns a cookie required for further communication with the session.
curl -X POST -H "Content-Type: application/json" -d '{"username": "your_username", "password": "your_password"}' -c cookie.txt https://memory.therpgserver.co.uk/login
GET /logoutcurl -X POST -H "Content-Type: application/json" -b cookie.txt https://memory.therpgserver.co.uk/logout
POST /create_repositoryrepository_name.
curl -X POST -H "Content-Type: application/json" -d '{"repository_name": "your_repository_name"}' -b cookie.txt https://memory.therpgserver.co.uk/create_repository
GET /view_repositoriescurl -X GET -H "Content-Type: application/json" -b cookie.txt https://memory.therpgserver.co.uk/view_repositories
POST /fetch_repositoryrepository_name.
curl -X POST -H "Content-Type: application/json" -d '{"repository_name": "your_repository_name"}' -b cookie.txt https://memory.therpgserver.co.uk/fetch_repository
POST /delete_repositoryrepository_name.curl -X POST -H "Content-Type: application/json" -d '{"repository_name": "your_repository_name"}' -b cookie.txt https://memory.therpgserver.co.uk/delete_repo
POST /addrepository_name
and text.curl -X POST -H "Content-Type: application/json" -d '{"repository_name": "your_repository_name", "text": "your data to store"}' -b cookie.txt https://memory.therpgserver.co.uk/add
POST /searchrepository_name and query. Optional JSON key: k (number of results).
curl -X POST -H "Content-Type: application/json" -d '{"repository_name": "your_repository_name", "query": "your query"}' -b cookie.txt https://memory.therpgserver.co.uk/search
POST /modify_entryrepository_name, entry_id and new_text.
curl -X POST -H "Content-Type: application/json" -d '{"repository_name": "your_repository_name", "entry_id": 1, "new_text": "updated text"}' -b cookie.txt https://memory.therpgserver.co.uk/modify_entry
POST /delete_entryrepository_name
and entry_id.
curl -X POST -H "Content-Type: application/json" -d '{"repository_name": "your_repository_name", "entry_id": 1}' -b cookie.txt https://memory.therpgserver.co.uk/delete_entry
GET /save_memorycurl -X GET -H "Content-Type: application/json" -b cookie.txt https://memory.therpgserver.co.uk/save_memory