Delete LLM chats and/or messages
March 7, 2025
Table of contents
Equivalent of chat.minimax.io.
Use your chat.minimax.io account for this endpoint, see Setup MiniMax for details.
https://api.useapi.net/v1/minimax/llm/?…
Request Headers
Authorization: Bearer {API token}
API token
is required, see Setup useapi.net for details.
Query Parameters
-
account
is optional when only one LLM chat.minimax.io account configured. However, if you have multiple accounts configured, this parameter becomes required. -
chatIDs
is optional, specify comma-separated list of chatID values that you want to delete. Set it toall
to delete all chats for your account. -
msgIDs
is optional, specify a comma-separated list of msgID values that you want to delete.
Responses
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
Examples
-
curl "https://api.useapi.net/v1/minimax/llm/?account=<account>&msgID=<msgID>" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const account = "Previously configured account"; const msgID = "Message msgID you want to delete"; const apiUrl = `https://api.useapi.net/v1/minimax/llm/?account=${account}&msgID=${msgID}`; const response = await fetch(apiUrl, { method: 'DELETE', headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" account = "Previously configured account" msgID = "Message msgID you want to delete" apiUrl = f"https://api.useapi.net/v1/minimax/llm/?account={account}&msgID={msgID}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response, response.json())