Query skill version

Lists the skill’s version snapshot. This interface can explicitly read the skill version in the current workspace or system workspace.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/skills/{skill_id}/versions

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 skill list, and obtain the skill ID and workspace to which the skill belongs from the same list item. Save the two return values ​​as SKILL_ID and SKILL_WORKSPACE_ID respectively. The system skill SKILL_WORKSPACE_ID is system.

Request parameters

Shell
curl --get "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/skills/$SKILL_ID/versions" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  --data-urlencode "skill_workspace_id=$SKILL_WORKSPACE_ID" \
  --data-urlencode "limit=20" \
  --data-urlencode "offset=0"

Path parameters

Parameter

Type

Required

Description

workspace_id

string

Yes

Current workspace ID.

skill_id

string

Yes

Skill ID.

Query parameters

Parameter

Type

Required

Description

skill_workspace_id

string

No

The workspace to which the skill belongs. workspace_id returned using the same item in the skill list. The system skill is system. If not provided, the current workspace is used.

limit

integer

No

Quantity per page. Default 50, maximum 200.

offset

integer

No

Starting offset. Negative numbers are handled as 0.

Successful response

JSON
{
  "code": 0,
  "data": {
    "items": [
      {
        "id": "skill_ver_02",
        "workspace_id": "ws_01",
        "skill_id": "skill_01",
        "version": 2,
        "spec_snapshot": {
          "name": "摘要技能",
          "status": "active",
          "id": "",
          "workspace_id": "",
          "source_type": "",
          "routing_summary": {},
          "instruction": {
            "body": "总结用户提供的内容。"
          },
          "requirements": {},
          "version": 1,
          "created_at": "2026-01-02T15:04:05Z",
          "updated_at": "2026-01-02T15:04:05Z"
        },
        "change_summary": "补充输出约定",
        "created_at": "2026-01-03T10:00:00Z"
      }
    ],
    "total": 2,
    "limit": 20,
    "offset": 0
  }
}

Field

Type

Description

code

integer

0 on success.

data

object

The result of this request.

data.items

array

Result list.

data.items[].id

string

Skill version record ID. Can be omitted if empty or not set.

data.items[].workspace_id

string

The identity of the workspace to which it belongs. Can be omitted if empty or not set.

data.items[].skill_id

string

Skill ID. Can be omitted if empty or not set.

data.items[].change_summary

string

Version change notes. Can be omitted if empty or not set.

data.items[].created_by

string

Creator ID. Can be omitted if empty or not set.

data.items[].version

integer

Version number. Can be omitted if empty or not set.

data.items[].spec_snapshot

object

A complete skill snapshot for this version. Can be omitted if empty or not set.

data.items[].spec_snapshot.annotations

object

Extended comments. Can be omitted if empty or not set.

data.items[].spec_snapshot.category

string

classification. Can be omitted if empty or not set.

data.items[].spec_snapshot.created_at

string

Creation time. Use RFC 3339 format. Can be omitted if empty or not set.

data.items[].spec_snapshot.created_by

string

Creator ID. Can be omitted if empty or not set.

data.items[].spec_snapshot.description

string

Description. Can be omitted if empty or not set.

data.items[].spec_snapshot.icon_ref

string

Icon reference. Can be omitted if empty or not set.

data.items[].spec_snapshot.id

string

Skill ID. Can be omitted if empty or not set.

data.items[].spec_snapshot.instruction

object

Skill instructions. Can be omitted if empty or not set. Returns an empty object if there are no subfields.

data.items[].spec_snapshot.instruction.body

string

Instruction text. Can be omitted if empty or not set.

data.items[].spec_snapshot.instruction.variables_schema

object

JSON Schema of directive variables. Can be omitted if empty or not set.

data.items[].spec_snapshot.labels

object

Extension tag. Can be omitted if empty or not set.

data.items[].spec_snapshot.market_metadata

object

Market metadata. Can be omitted if empty or not set.

data.items[].spec_snapshot.metadata

object

Extended metadata. Can be omitted if empty or not set.

data.items[].spec_snapshot.name

string

Name. Can be omitted if empty or not set.

data.items[].spec_snapshot.output_contract

object

Output convention. Can be omitted if empty or not set.

data.items[].spec_snapshot.parameters_schema

object

JSON Schema of skill input parameters. Can be omitted if empty or not set.

data.items[].spec_snapshot.phase

string

use stage. Can be omitted if empty or not set.

data.items[].spec_snapshot.pipeline_ref

string

Pipeline reference. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements

object

Skill dependent requirements. Can be omitted if empty or not set. Returns an empty object if there are no subfields.

data.items[].spec_snapshot.requirements.description

string

Description. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.file_inputs

array

Document input requirements. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.file_inputs[].description

string

Description. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.file_inputs[].mime_types

array

Accepted file media types. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.file_inputs[].name

string

Name. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.file_inputs[].required

boolean

Is it required? Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.knowledge_base_roles

array

knowledge base role requirements. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.knowledge_base_roles[].description

string

Description. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.knowledge_base_roles[].required

boolean

Is it required? Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.knowledge_base_roles[].role

string

knowledge base role. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.model_capabilities

array

Model capability requirements. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.skill_refs

array

Dependent skill identifier. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_refs

array

Dependent tool identifier. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs

array

Tool resource references. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].bindability_reason

string

Description of binding capabilities. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].bindable

boolean

Whether it can be bound. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].binding_source

string

Binding source. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].category

string

classification. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].config

object

Resource allocation. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].description

string

Description. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].display_name

string

Display name. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].id

string

Reference item ID. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].kind

string

Tool type. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].manageable

boolean

Is it manageable. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].name

string

Name. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].phase

string

use stage. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].resource_id

string

The ID of the referenced object. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].runtime_tool_visibility

string

Runtime tool visibility. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].status

string

status. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].supported_runtimes

array

Supported runtimes. Can be omitted if empty or not set.

data.items[].spec_snapshot.requirements.tool_resource_refs[].workspace_id

string

The identity of the workspace to which it belongs. Can be omitted if empty or not set.

data.items[].spec_snapshot.routing_summary

object

Skill routing summary. Can be omitted if empty or not set. Returns an empty object if there are no subfields.

data.items[].spec_snapshot.routing_summary.examples

array

Routing example. Can be omitted if empty or not set.

data.items[].spec_snapshot.routing_summary.summary

string

Route summary text. Can be omitted if empty or not set.

data.items[].spec_snapshot.source_ref

string

Source information. Can be omitted if empty or not set.

data.items[].spec_snapshot.source_type

string

Source type. Can be omitted if empty or not set.

data.items[].spec_snapshot.status

string

status. Can be omitted if empty or not set.

data.items[].spec_snapshot.tags

array

label. Can be omitted if empty or not set.

data.items[].spec_snapshot.updated_at

string

Last updated time. Use RFC 3339 format. Can be omitted if empty or not set.

data.items[].spec_snapshot.updated_by

string

Last updated by identifier. Can be omitted if empty or not set.

data.items[].spec_snapshot.version

integer

Version number. Can be omitted if empty or not set.

data.items[].spec_snapshot.workspace_id

string

The identity of the workspace to which it belongs. Can be omitted if empty or not set.

data.items[].created_at

string

Creation time. Use RFC 3339 format. Can be omitted if empty or not set.

data.total

integer

The total number of matching records.

data.limit

integer

The actual return quantity limit this time.

data.offset

integer

Starting offset.

Error response

JSON
{
  "code": 2,
  "message": "<错误信息>"
}

Common HTTP errors

HTTP status code

error code

Description

400

2(INVALID_ARGUMENT)

Common reasons: The skill ID, workspace range, or paging parameters are invalid. Recommended Action: Check the path and query parameters.

401

6(UNAUTHENTICATED)

Common Cause: Valid identity credentials are missing. Recommended Action: Check the API Key.

403

5(PERMISSION_DENIED)

Common reasons: The current identity does not have the permission to read the skill version. Recommended Action: Check the workspace authorization.

404

3(NOT_FOUND)

Common reasons: The skill does not exist in the system directory. Recommended Action: Check the skill ID and skill_workspace_id.

503

15(UNAVAILABLE)

Common reasons: Skill services or authorization dependencies are temporarily unavailable. Recommended Action: Try again later.

Last updated on