Skip to Content
Docs
ReferenceOrganise

Start a conversation

POST
/start_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.

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
project_id*string

The project's project_id, from list_projects, search or create_project.

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

The conversation's title; omit it to let the first message title it.

Match^[^\x00]*$
Length3 <= length <= 2083

Response Body

The operation's answer.

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