Skip to content
merran
GitHubInstall

Merran documentation API & integrations

A chat, with its messages

GET
/api/assistant/chats/{chatId}
curl --request GET \
--url http://localhost:3000/api/assistant/chats/0199e8b0-5a10-7a01-8b00-00000000002b \
--cookie merran.session_token=<merran.session_token>

With an API key, it needs the assistant: read permission.

chatId
required
string

Example

0199e8b0-5a10-7a01-8b00-00000000002b

The chat.

Media typeapplication/json
object
id
required
string
title
required

From its first message.

string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
messages
required

Its messages in order, as AI SDK’s UI messages: each with an id, a role, and parts (text, and the assistant’s tool calls with their results).

Array<object>
object
key
additional properties

Example

{
"id": "0199e8b0-5a10-7a01-8b00-00000000002b",
"title": "What can I make with leftover chicken?",
"createdAt": "2026-10-01T17:30:00.000Z",
"updatedAt": "2026-10-15T18:30:00.000Z",
"messages": [
{
"id": "0199e8b0-5a10-7a01-8b00-00000000002c",
"role": "user",
"parts": [
{
"type": "text",
"text": "What can I make with leftover chicken?"
}
]
}
]
}

Not signed in.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

No such chat of yours.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.