Merran documentation API & integrations
A chat, with its messages
GET
/api/assistant/chats/{chatId}
const url = 'http://localhost:3000/api/assistant/chats/0199e8b0-5a10-7a01-8b00-00000000002b';const options = { method: 'GET', headers: {cookie: 'merran.session_token=<merran.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”chatId
required
string
Example
0199e8b0-5a10-7a01-8b00-00000000002bResponses
Section titled “Responses”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.