Move files and folders to the trash
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.
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 file and folder to trash.
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/trash_entries' \ -H 'Content-Type: application/json' \ -d '{ "project_id": "string", "entry_ids": [ "string" ]}'{ "project_id": "string", "entry_ids": [ "string" ], "entry_count": 0}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.
Stop a turn POST
Stops a running turn, as Stop does in awen: it saves what the reply wrote so far, charges the model calls that finished and frees the conversation. Generations that already started finish and are charged. A turn that already ended is left as it is. Answers the turn's status. Needs a key with awen:create, awen:write. Costs 2 units of the key's rate limit.