latestOpenAPI 3.1.02026-08-213914255.9 MB

715c4defcbbf

Ai chats

List ai chats

Returns a paginated list of AI chat threads for the current authenticated user.

get/ai_chats

Query parameters

afterstring

Returns the elements in the list that come after the specified cursor.

beforestring

Returns the elements in the list that come before the specified cursor.

firstinteger

Returns the first n elements from the list.

Example:42
lastinteger

Returns the last n elements from the list.

Example:42
only_active_cronsboolean

When true, returns only chats with an active cron schedule

Response

A successful response

Example response

{
  "data": [
    {
      "blended_token_usage": "123.45",
      "created_at": "2023-12-01T05:00:00.401Z",
      "id": "aich_xxxxxxxxxxxxx",
      "last_message_at": "2023-12-01T05:00:00.401Z",
      "message_count": 42,
      "title": "Weekly Revenue Analysis",
      "updated_at": "2023-12-01T05:00:00.401Z",
      "user": {
        "id": "user_xxxxxxxxxxxxx"
      }
    }
  ]
}