Restore files and folders from the trash
Brings files and folders of a project the user can edit back from its Trash, with everything that was trashed inside the folders, as Restore in awen does. Pass the entry_ids trash_entries returned, within 30 days. Each comes back in its folder, or at the project root when that folder is gone. A folder is refused when another folder of its name now sits in the same place, and a memory when another of the user's memories took its name: rename that one first.
Needs a key with awen:write. Costs 2 units of the key's rate limit.
apiKeyAuthorizationBearer <token>An API key from Settings → Connected apps → API keys, sent as Authorization: Bearer awen_sk_…. Keep it on a server: a request from a web page is refused.
application/json- body
project_id*stringThe project's project_id.
^[A-Za-z0-9_-]+$1 <= length <= 128entry_ids*array<>The entry_id of each trashed file and folder to restore.
1 <= items <= 25The operation's answer.
application/json- response
project_id*stringentry_ids*array<string>entry_count*integer0 <= value <= 9007199254740991curl -X POST 'https://app.awen.ai/api/v1/restore_entries' \ -H 'Content-Type: application/json' \ -d '{ "project_id": "string", "entry_ids": [ "string" ]}'{ "project_id": "string", "entry_ids": [ "string" ], "entry_count": 0}Restore a conversation POST
Restores one of the user's archived awen conversations to their active list, as Restore does in awen. A person can have at most 100 active conversations in a project: at the limit this is refused until one is archived. Needs a key with awen:write. Costs 2 units of the key's rate limit.
Start a conversation POST
Starts an empty awen conversation in a project the user can edit, as New conversation does in awen. It sends no message: pass the returned conversation_id to create_with_awen for its first turn, so no empty conversation is left behind. A person can have at most 100 active conversations in a project: at the limit this is refused until they or you archive one with archive_conversation, after asking the user. Needs a key with awen:write. Costs 2 units of the key's rate limit.