Query model configuration list

Query the agent model configuration in the workspace.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/model-configs

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. Prepare a personal access token and target workspace ID that can access the target workspace.

Request parameters

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/model-configs?model_category=chat&limit=20" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Path parameters

Field

Type

Required

Description

workspace_id

string

Yes

The current workspace ID must be consistent with X-Workspace-ID.

Query parameters

Field

Type

Required

Description

status

string

No

Filter by configuration status.

source_kind

string

No

Filter by model source type.

model_category

string

No

Filter by model category.

provider_ref

string

No

Filter by provider reference.

query

string

No

View by name or related text.

limit

integer

No

Return the maximum quantity.

offset

integer

No

Returns the offset.

Successful response

JSON
{
  "code": 0,
  "data": {
    "items": [
      {
        "id": "mc_01",
        "name": "销售分析模型",
        "status": "active",
        "source_kind": "workspace",
        "model_category": "chat",
        "model_name": "<MODEL_NAME>",
        "version": 1,
        "workspace_id": "ws_01",
        "created_at": "2026-10-14T00:00:00Z",
        "updated_at": "2026-10-14T00:00:00Z"
      }
    ],
    "total": 1,
    "limit": 20,
    "offset": 0
  }
}

Field

Type

Description

code

integer

success code.

data

object

The data returned by this operation.

data.items

array of object

Model configuration list. The service may return null when there are no results for the current filter. Callers should handle an empty list.

data.items[].id

string

Model configuration ID.

data.items[].workspace_id

string

The workspace ID to which it belongs.

data.items[].name

string

Configuration name.

data.items[].description

string

Description of the current object.

data.items[].status

string

Configuration status. The values are draft, active, disabled, archived

data.items[].source_kind

string

Model source type. The values are system, workspace, provider, imported

data.items[].model_category

string

Model category. The values are chat, embedding, rerank, multimodal, parser

data.items[].provider_ref

string

Resource references.

data.items[].model_name

string

Model name.

data.items[].display_name

string

Display name.

data.items[].connection_ref

string

Connection configuration reference.

data.items[].credential_ref

string

Credentials reference.

data.items[].parameters

object

Model parameter objects allow extended keys.

data.items[].parameter_schema

object

The model parameter definition object allows extended keys.

data.items[].capabilities

array of string

Capability description.

data.items[].limits

object

Using restricted objects allows extended keys.

data.items[].pricing_ref

string

Pricing Quote.

data.items[].version

integer

Configuration version.

data.items[].labels

object

Tag key-value pairs objects allow extended keys.

data.items[].annotations

object

Annotated key-value objects allow extended keys.

data.items[].metadata

object

Extended metadata objects allow extended keys.

data.items[].created_by

string

Creator ID.

data.items[].updated_by

string

Identifier of the last updated person.

data.items[].created_at

string

Creation time. In RFC 3339 format.

data.items[].updated_at

string

Last updated time. In RFC 3339 format.

data.total

integer

The total number of matching records.

data.limit

integer

The maximum number of records requested for this page.

data.offset

integer

The zero-based offset of the first record on this page.

Error response

JSON
{
  "code": 2,
  "message": "模型配置参数无效"
}

Field

Type

Description

code

integer

error code.

message

string

Error message for the caller.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

2

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

401

6

Missing or invalid authentication credentials.

Check the credential type, expiration, and authentication header.

403

5

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

3

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

409

4

Conflict in resource state, request payload, or concurrent modification.

Re-read the current state and version, then handle according to the latest result.

503

15

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on