Skip to Content
Docs
ReferenceOrganise

Restore a conversation

POST
/restore_conversation

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.

Authorization

apiKey
headerAuthorizationBearer <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.

Request Body

application/json
  1. body
conversation_id*string

The conversation's conversation_id, from list_conversations, start_conversation or create_with_awen.

Match^[A-Za-z0-9_-]+$
Length1 <= length <= 128

Response Body

The operation's answer.

application/json
  1. response
conversation_id*string
project_id*string
archived*boolean
url*string
Example Request
curl -X POST 'https://app.awen.ai/api/v1/restore_conversation' \  -H 'Content-Type: application/json' \  -d '{  "conversation_id": "string"}'
Example Response
{  "conversation_id": "string",  "project_id": "string",  "archived": true,  "url": "string"}