Start a conversation
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.
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, from list_projects, search or create_project.
^[A-Za-z0-9_-]+$1 <= length <= 128title?stringThe conversation's title; omit it to let the first message title it.
^[^\x00]*$3 <= length <= 2083The operation's answer.
application/json- response
conversation_id*stringproject_id*stringtitle*string|nullurl*stringcurl -X POST 'https://app.awen.ai/api/v1/start_conversation' \ -H 'Content-Type: application/json' \ -d '{ "project_id": "string"}'{ "conversation_id": "string", "project_id": "string", "title": "string", "url": "string"}Restore files and folders from the trash POST
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.
Move files and folders to the trash POST
Moves files and folders of a project the user can edit to the project's Trash, with everything inside the folders, as Delete in awen does. Pass each item's entry_id from list_folder, never a media_id. Nothing is deleted for good: restore_entries brings them back for 30 days with the entry_ids this answers, and only the user empties the Trash, in awen. A file still being made can't be trashed until it is ready. Ask the user before trashing files they did not ask to remove. Needs a key with awen:write. Costs 2 units of the key's rate limit.