Get LLM session details¶
Read one session record for the current user.
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/llm/sessions/{session_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 session_id from the session list.
Request¶
curl --request GET \
"$BASE_URL/workspaces/$WORKSPACE_ID/llm/sessions/$SESSION_ID" \
--header "X-API-Key: $MOI_KEY" \
--header "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Location |
Type |
Required |
Description |
|---|---|---|---|---|
|
Path |
string |
Yes |
Target workspace, matching X-Workspace-ID. |
|
Path |
integer |
Yes |
Positive integer ID returned by this service. |
Successful response¶
{
"code": 0,
"data": {
"id": 41,
"title": "临时会话",
"source": "moi",
"user_id": "user-example",
"config": "{}",
"created_at": 1794445200,
"updated_at": 1794445200
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
0 on success; HTTP status 200. |
|
object |
Error responses¶
Error formats and read scope describes distinct identity, parameter, resource-read, and storage failure outcomes.
Last updated on