Query model configuration details¶
Read the model selection, capabilities and reference information of an agent model configuration.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/model-configs/{model_config_id}
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the model configuration list to obtain the configuration ID. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/model-configs/$MODEL_CONFIG_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Current workspace ID. |
|
string |
Yes |
Model configuration ID. |
Successful response¶
{
"code": 0,
"data": {
"id": "mc_01",
"workspace_id": "ws_01",
"name": "销售分析模型",
"status": "active",
"source_kind": "workspace",
"model_category": "chat",
"model_name": "<MODEL_NAME>",
"parameters": {},
"capabilities": [
"tool_calling"
],
"version": 1,
"created_at": "2026-08-18T01:00:00Z",
"updated_at": "2026-08-18T01:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
success code. |
|
object |
The data returned by this operation. |
|
string |
Model configuration ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
Configuration name and description. Instructions only. |
|
string |
Configuration name and description. Instructions only. |
|
string |
Configuration status, source type, and model category. The values are |
|
string |
Configuration status, source type, and model category. The values are |
|
string |
Configuration status, source type, and model category. The values are |
|
string |
Provider reference, model name, and display name. |
|
string |
Provider reference, model name, and display name. |
|
string |
Provider reference, model name, and display name. |
|
string |
Connection and credential references. Only in. |
|
string |
Connection and credential references. Only in. |
|
object |
Model parameter objects allow extended keys. |
|
object |
The model parameter definition object allows extended keys. |
|
array of string |
Model capabilities. Only in. |
|
object |
Using restricted objects allows extended keys. |
|
string |
Pricing Quote. |
|
integer |
Configuration version. |
|
object |
Tag key-value pairs objects allow extended keys. |
|
object |
Annotated key-value objects allow extended keys. |
|
object |
Extended metadata objects allow extended keys. |
|
string |
Creator ID. |
|
string |
Identifier of the last updated person. |
|
string |
Creation and update time. In RFC 3339 format. |
|
string |
Creation and update time. In RFC 3339 format. |
Error response¶
{
"code": 3,
"message": "模型配置不存在"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |