Skip to Content
Docs
ReferenceRead

List conversations

POST
/list_conversations

Lists the user's own awen conversations in a project, or across their projects without project_id, most recently updated first, archived ones included, 50 at a time. Pass a conversation's id to fetch to read it. active_turn_id names the turn running in a conversation, or still making its files, for get_turn: null means nothing runs there. It can lag get_turn by a few seconds, and get_turn decides. A page leaves out conversations in projects the user can no longer open, so it can hold fewer than 50, or none: keep passing next_cursor back as cursor until it is null.

Needs a key with awen:read. Costs 1 unit 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 or search. Leave it out to find recent work, or what is still running, in any project.

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

Response Body

The operation's answer.

application/json
  1. response
conversations*array<>
next_cursor*string|null
Example Request
curl -X POST 'https://app.awen.ai/api/v1/list_conversations' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "conversations": [    {      "id": "string",      "conversation_id": "string",      "title": "string",      "project_id": "string",      "updated_at": "string",      "archived": true,      "active_turn_id": "string",      "url": "string",      "project_name": "string"    }  ],  "next_cursor": "string"}