Create a folder
Creates a folder in a project the user can edit. Pass parent_id "root" for the project root, or a folder's entry_id from list_folder or create_folder to create it inside that folder.
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 <= 128name*stringThe folder's name.
^[^\x00]*$1 <= length <= 2083parent_id*|"root", or the entry_id of the folder to create it in.
The operation's answer.
application/json- response
id*stringentry_id*stringname*stringparent_id*stringurl*stringcurl -X POST 'https://app.awen.ai/api/v1/create_folder' \ -H 'Content-Type: application/json' \ -d '{ "project_id": "string", "name": "string", "parent_id": "root"}'{ "id": "string", "entry_id": "string", "name": "string", "parent_id": "string", "url": "string"}Archive a conversation POST
Archives one of the user's own awen conversations, as Archive does in awen: it leaves their active list, its messages and files stay, and restore_conversation brings it back. A person can have at most 100 active conversations in a project, so archiving one makes room for another. Ask the user before archiving, and name the conversation. A conversation whose reply is still being written is refused until it ends or cancel_turn stops it; generations that already started finish on their own. Needs a key with awen:write. Costs 2 units of the key's rate limit.
Create a project POST
Creates an awen project at the top of the user's Projects, with its first conversation, as New project does in awen. Use it only when the user asks for a project or has none that fits, never one per request. Without a name it is Untitled and takes its name from the first message. Pass the returned project_id to create_folder, import_file or start_conversation, and the returned conversation_id to create_with_awen for the first turn, so the project keeps no empty conversation. Needs a key with awen:write. Costs 2 units of the key's rate limit.