Stop a turn
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.
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
turn_id*stringThe turn_id create_with_awen returned, a conversation's active_turn_id, or an answer's turn_id from fetch on a conversation.
^[A-Za-z0-9_-]+$1 <= length <= 128The operation's answer.
application/json- response
status*string"working""completed""failed""stopped"curl -X POST 'https://app.awen.ai/api/v1/cancel_turn' \ -H 'Content-Type: application/json' \ -d '{ "turn_id": "string"}'{ "status": "working"}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.
Create with awen POST
Runs one turn of awen's creative agent in a project conversation, as a message in awen does. It can make and edit images, videos, 3D models and documents, and it can change the project's Drive. awen itself removes or changes backgrounds, resizes, reframes, upscales and edits its files: ask for that in the prompt, or in a follow-up turn with conversation_id, instead of editing awen's files on this machine. It reads the user's memories and skills itself, so name them in the prompt instead of reading them first. It spends the organisation's credits. It answers at once with a turn_id while the turn runs. Unless the host draws a card, call get_turn with that turn_id until status is no longer working: nothing is ready before that. Spending rules. A direct request from the user is approval to call this. When the idea is yours, describe the plan and ask first. A working status is no reason to start again. Never retry paid work on your own: ask the user first. A turn can end with a question: show it to the user and wait, and never answer it yourself. A retry the user asks for passes the same conversation_id. After a refusal, ask the user before starting a new conversation. One job is one conversation, so a batch goes in one call. Without conversation_id, the turn starts a new conversation. 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. A conversation takes one turn at a time until its generations start: a second call before then is refused and names the turn. Once they start, a second call is accepted and charged on its own while the first stays working, so wait for completed unless the user asks not to. Needs a key with awen:create, awen:write. Costs 4 units of the key's rate limit.