Get LLM message details

Read the current user’s message record by message ID.

GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/llm/messages/{message_id}

Before you call this API

Set BASE_URL to the product API prefix https://api.moi.matrixorigin.cn/v5; use the corresponding product API URL for a dedicated deployment.

Configure workspace identity and variables in the same environment. Obtain message_id from this service’s message list.

Request

curl --request GET \
  "$BASE_URL/workspaces/$WORKSPACE_ID/llm/messages/$MESSAGE_ID" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Location

Type

Required

Description

workspace_id

Path

string

Yes

Target workspace, matching X-Workspace-ID.

message_id

Path

integer

Yes

Positive integer ID returned by this service.

Successful response

{
  "code": 0,
  "data": {
    "id": 71,
    "user_id": "user-example",
    "session_id": 41,
    "source": "moi",
    "role": 0,
    "original_content": "",
    "content": "保存这条消息",
    "model": "",
    "status": "pending",
    "response": "",
    "modified_response": "",
    "config": "",
    "created_at": 1794445200,
    "updated_at": 1794445200
  }
}

Field

Type

Description

code

integer

0 on success; HTTP status 200.

data

object

Message record.

Error responses

Error formats and read scope describes distinct identity, parameter, resource-read, and storage failure outcomes.

Last updated on