Retrieve the messages from the LLM chat
March 7, 2025 (March 17, 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/
chatID/?…
Request Headers
Authorization: Bearer {API token}
- API tokenis required, see Setup useapi.net for details.
Path parameter
- chatIDis required. Specify the chatID you want to retrieve.
Query Parameters
- accountis optional when only one LLM chat.minimax.io account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
-   { "messages": [ { "msgID": "1234567890", "createTime": 1741385047333, "content": "hola", "msgType": "user", "feadbackType": 0, "requestStatus": 0, "isEnd": 0, "chatID": "", "msgSubtype": 0, "chatStyle": "pro", "parentMsgID": "0", "otherAgentAnswer": { "botInfo": null }, "failedText": "", "canEdit": true, "extra": { "parsedQuestion": [], "msgTitle": "", "links": [], "audioUrl": "", "chatBotList": [], "form": [], "copilotTable": [], "copilotHandled": false, "copilotTextLimit": 0, "netSearchStatus": { "finalStatus": { "status": "", "statusCode": 0 }, "linkDetail": [] }, "feedbackStatus": {}, "responseType": "", "followUpQuestions": [], "urlStatus": {}, "generateImage": [], "replyMsgType": "", "generateProcess": "", "ciCallResults": [], "isUserStopped": false } }, { "msgID": "1234567891", "createTime": 1741385047360, "content": "¡Hola! ¿Cómo estás hoy? Estoy aquí para ayudarte con cualquier cosa que necesites.", "msgType": "system", "feadbackType": 0, "requestStatus": 1, "isEnd": 0, "chatID": "", "msgSubtype": 0, "chatStyle": "pro", "parentMsgID": "9876543210", "otherAgentAnswer": { "botInfo": null }, "failedText": "", "canEdit": false, "extra": { "parsedQuestion": [], "msgTitle": "", "links": [], "audioUrl": "", "chatBotList": [], "form": [], "copilotTable": [], "copilotHandled": false, "copilotTextLimit": 0, "netSearchStatus": { "finalStatus": { "status": "", "statusCode": 0 }, "linkDetail": [] }, "feedbackStatus": {}, "responseType": "", "followUpQuestions": [], "urlStatus": {}, "generateImage": [], "replyMsgType": "", "generateProcess": "", "ciCallResults": [], "isUserStopped": false } } ], "title": "hola", "characterID": "1", "canSearch": true, "model": "mm-01" }
-   { "error": "<Error message>", "code": 400 }
-   { "error": "Unauthorized", "code": 401 }
Model
{   // TypeScript, all fields are optional
    messages: {
        msgID: string
        createTime: number
        content: string
        msgType: string
        feadbackType: number
        requestStatus: number
        isEnd: number
        chatID: string
        msgSubtype: number
        chatStyle: string
        parentMsgID: string
        otherAgentAnswer: {
            botInfo: null
        }
        failedText: string
        canEdit: boolean
        extra: {
            parsedQuestion: any[]
            msgTitle: string
            links: any[]
            audioUrl: string
            chatBotList: any[]
            form: {
                formType: number
                content: string
                path: string
                fileID: string
                height: number
                width: number
                status: number
                fileByte: number
            }[]
            copilotTable: any[]
            copilotHandled: boolean
            copilotTextLimit: number
            netSearchStatus: {
                finalStatus: {
                    status: string
                    statusCode: number
                }
                linkDetail: any[]
            }
            feedbackStatus: { [key: string]: unknown }
            responseType: string
            followUpQuestions: any[]
            urlStatus: { [key: string]: unknown }
            generateImage: any[]
            replyMsgType: string
            generateProcess: string
            ciCallResults: any[]
            isUserStopped: boolean
        }
    }[]
    title: string
    characterID: string
    canSearch: boolean
    model: string
    statusInfo: {
        code: number
        httpCode: number
        message?: string
        messageEnglish?: string
        serviceTime: number
        requestID: string
        debugInfo: string
        serverAlert: number
    }
}   
Examples
-  curl "https://api.useapi.net/v1/minimax/llm/<chatID>" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-  const token = "API token"; const apiUrl = `https://api.useapi.net/v1/minimax/llm/<chatID>`; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-  import requests token = "API token" apiUrl = f"https://api.useapi.net/v1/minimax/llm/<chatID>" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())