Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Delete a chat

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

Gone for good, with its messages and the files in them. What was applied from it stays. With an API key, it needs the assistant: write permission.

chatId
required
string

Example

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

Deleted.

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.