Skip to Content
Docs
ReferenceRead

List projects

POST
/list_projects

Lists the awen projects shared with the user, most recently updated first, 50 at a time. query keeps the projects whose name contains it. Pass a project_id to list_folder, list_files or list_conversations, or its id to fetch. Pass next_cursor back as cursor for the next page.

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
query?string

Part of a project name.

Match^[^\x00-\x1F\x7F-\x9F]*$
Length1 <= length <= 200
cursor?string
Length1 <= length <= 512

Response Body

The operation's answer.

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