Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Start a chat

POST
/api/assistant/chats
curl --request POST \
--url http://localhost:3000/api/assistant/chats \
--cookie merran.session_token=<merran.session_token>

A new chat with the assistant, to send messages to at POST /assistant/chats/{chatId}/messages. Its first message names it. With an API key, it needs the assistant: write permission.

Started.

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

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"
}

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."
}
}
}

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