Skip to content

List conversations

GET
/api/v1/ai/conversations
curl --request GET \
--url https://api.aletheia-ops.com/api/v1/ai/conversations \
--header 'Authorization: Bearer <token>'

OK

Media typeapplication/json

A page of conversations.

object
conversations
Array<object>

A conversation as it appears in the rail — no messages.

object
id
string format: uuid
title
string
preview

First line of the last message.

string
pinned
boolean
created_at
string format: date-time
updated_at
string format: date-time
archived_at

Present only on archived conversations.

string format: date-time
next_cursor

Pass as cursor for the next page. Empty when there are no more.

string
Examplegenerated
{
"conversations": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"title": "example",
"preview": "example",
"pinned": true,
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z",
"archived_at": "2026-04-15T12:00:00Z"
}
],
"next_cursor": "example"
}

No valid credential was presented, or it has expired.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
{
"code": "unauthorized",
"message": "authentication required"
}

Authenticated, but not permitted to perform this action.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
{
"code": "forbidden",
"message": "you do not have permission to perform this action"
}

An unexpected failure. Diagnostic detail is logged server-side and deliberately not returned. Quote the X-Request-Id response header when reporting one.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
Exampleinternal_error
{
"code": "internal_error",
"message": "internal server error"
}