Query system agent configuration

Query the configuration of the specified system agent in the workspace.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/system-agent-setups/{agent_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. Prepare personal access token, target workspace ID and system agent ID.

Request parameters

Replace $WORKSPACE_ID, $AGENT_ID, $CLOUDSIGMA_API_KEY in the example with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/system-agent-setups/$AGENT_ID" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

workspace_id

string

Yes

The workspace ID to which it belongs.

agent_id

string

Yes

System agent ID.

agent_id only supports github-issue-operator, github-pr-reviewer and ops-agent. GitHub project queries only apply to the first two agents.

Successful response

JSON
{
  "code": 0,
  "data": {
    "workspace_id": "",
    "agent_id": "agent_01",
    "name": "",
    "description": "",
    "definition": {
      "agent_id": "",
      "name": "",
      "description": "",
      "channel_slots": [],
      "knowledge_slots": []
    },
    "configured": false,
    "enabled": false,
    "channels": {},
    "knowledge_bases": {},
    "model": {},
    "callback_rule_enabled": false,
    "callback_configured": false,
    "callback_enabled": false
  }
}

Field

Type

Description

data.workspace_id

string

The workspace ID to which it belongs.

data.agent_id

string

System agent ID.

data.name

string

Name.

data.description

string

Description.

data.definition

object

Built-in agent definition.

data.definition.agent_id

string

agent ID.

data.definition.name

string

Name.

data.definition.description

string

Description.

data.definition.channel_slots

array of object

Channel slot.

data.definition.channel_slots[].key

string

Key.

data.definition.channel_slots[].name

string

Name.

data.definition.channel_slots[].description

string

Description.

data.definition.channel_slots[].provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.definition.channel_slots[].channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.definition.channel_slots[].required

boolean

Whether it is a required slot.

data.definition.knowledge_slots

array of object

knowledge base slot.

data.definition.knowledge_slots[].key

string

Key.

data.definition.knowledge_slots[].name

string

Name.

data.definition.knowledge_slots[].description

string

Description.

data.definition.knowledge_slots[].required

boolean

Whether it is a required slot.

data.definition.knowledge_slots[].compatible_table_names

array of string

List of compatible table names.

data.definition.project_scope

object

GitHub project scope.

data.definition.project_scope.name

string

Name.

data.definition.project_scope.description

string

Description.

data.definition.project_scope.channel_slot_key

string

Channel slot key.

data.definition.project_scope.required

boolean

Whether it is a required slot.

data.definition.suite_scope

object

Operations suite scope.

data.definition.suite_scope.name

string

Name.

data.definition.suite_scope.description

string

Description.

data.definition.suite_scope.required

boolean

Whether it is a required slot.

data.configured

boolean

Has it been configured?

data.enabled

boolean

Whether to enable.

data.channels

object

Channel slot configuration.

data.channels.repository

object or null

Warehouse name.

data.channels.repository.id

string

logo.

data.channels.repository.workspace_id

string

The workspace ID to which it belongs.

data.channels.repository.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.repository.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.repository.name

string

Name.

data.channels.repository.description

string

Description.

data.channels.repository.status

string

status. Values: draft, active, disabled, archived.

data.channels.repository.credential_ref

string

Credentials reference.

data.channels.repository.callback_path

string

callback path.

data.channels.repository.capabilities

array of string

Available management actions.

data.channels.repository.tool_ids

array of string

List of tool IDs.

data.channels.repository.config

object

Configuration.

data.channels.repository.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.repository.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.repository.last_test_error

string

Recent connection test errors.

data.channels.repository.labels

object

Tag mapping.

data.channels.repository.created_at

string

Creation time. RFC 3339 time.

data.channels.repository.updated_at

string

Update time. RFC 3339 time.

data.channels.code_analysis

object or null

Code analysis slot.

data.channels.code_analysis.id

string

logo.

data.channels.code_analysis.workspace_id

string

The workspace ID to which it belongs.

data.channels.code_analysis.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.code_analysis.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.code_analysis.name

string

Name.

data.channels.code_analysis.description

string

Description.

data.channels.code_analysis.status

string

status. Values: draft, active, disabled, archived.

data.channels.code_analysis.credential_ref

string

Credentials reference.

data.channels.code_analysis.callback_path

string

callback path.

data.channels.code_analysis.capabilities

array of string

Available management actions.

data.channels.code_analysis.tool_ids

array of string

List of tool IDs.

data.channels.code_analysis.config

object

Configuration.

data.channels.code_analysis.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.code_analysis.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.code_analysis.last_test_error

string

Recent connection test errors.

data.channels.code_analysis.labels

object

Tag mapping.

data.channels.code_analysis.created_at

string

Creation time. RFC 3339 time.

data.channels.code_analysis.updated_at

string

Update time. RFC 3339 time.

data.channels.notification

object or null

Personal notification slot.

data.channels.notification.id

string

logo.

data.channels.notification.workspace_id

string

The workspace ID to which it belongs.

data.channels.notification.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.notification.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.notification.name

string

Name.

data.channels.notification.description

string

Description.

data.channels.notification.status

string

status. Values: draft, active, disabled, archived.

data.channels.notification.credential_ref

string

Credentials reference.

data.channels.notification.callback_path

string

callback path.

data.channels.notification.capabilities

array of string

Available management actions.

data.channels.notification.tool_ids

array of string

List of tool IDs.

data.channels.notification.config

object

Configuration.

data.channels.notification.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.notification.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.notification.last_test_error

string

Recent connection test errors.

data.channels.notification.labels

object

Tag mapping.

data.channels.notification.created_at

string

Creation time. RFC 3339 time.

data.channels.notification.updated_at

string

Update time. RFC 3339 time.

data.channels.group_notification

object or null

Group notification slot.

data.channels.group_notification.id

string

logo.

data.channels.group_notification.workspace_id

string

The workspace ID to which it belongs.

data.channels.group_notification.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.group_notification.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.group_notification.name

string

Name.

data.channels.group_notification.description

string

Description.

data.channels.group_notification.status

string

status. Values: draft, active, disabled, archived.

data.channels.group_notification.credential_ref

string

Credentials reference.

data.channels.group_notification.callback_path

string

callback path.

data.channels.group_notification.capabilities

array of string

Available management actions.

data.channels.group_notification.tool_ids

array of string

List of tool IDs.

data.channels.group_notification.config

object

Configuration.

data.channels.group_notification.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.group_notification.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.group_notification.last_test_error

string

Recent connection test errors.

data.channels.group_notification.labels

object

Tag mapping.

data.channels.group_notification.created_at

string

Creation time. RFC 3339 time.

data.channels.group_notification.updated_at

string

Update time. RFC 3339 time.

data.channels.observability

object or null

Observation slot.

data.channels.observability.id

string

logo.

data.channels.observability.workspace_id

string

The workspace ID to which it belongs.

data.channels.observability.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.observability.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.observability.name

string

Name.

data.channels.observability.description

string

Description.

data.channels.observability.status

string

status. Values: draft, active, disabled, archived.

data.channels.observability.credential_ref

string

Credentials reference.

data.channels.observability.callback_path

string

callback path.

data.channels.observability.capabilities

array of string

Available management actions.

data.channels.observability.tool_ids

array of string

List of tool IDs.

data.channels.observability.config

object

Configuration.

data.channels.observability.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.observability.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.observability.last_test_error

string

Recent connection test errors.

data.channels.observability.labels

object

Tag mapping.

data.channels.observability.created_at

string

Creation time. RFC 3339 time.

data.channels.observability.updated_at

string

Update time. RFC 3339 time.

data.channels.kubernetes

object or null

Kubernetes trough.

data.channels.kubernetes.id

string

logo.

data.channels.kubernetes.workspace_id

string

The workspace ID to which it belongs.

data.channels.kubernetes.provider

string

Provider. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.channels.kubernetes.channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.channels.kubernetes.name

string

Name.

data.channels.kubernetes.description

string

Description.

data.channels.kubernetes.status

string

status. Values: draft, active, disabled, archived.

data.channels.kubernetes.credential_ref

string

Credentials reference.

data.channels.kubernetes.callback_path

string

callback path.

data.channels.kubernetes.capabilities

array of string

Available management actions.

data.channels.kubernetes.tool_ids

array of string

List of tool IDs.

data.channels.kubernetes.config

object

Configuration.

data.channels.kubernetes.last_test_status

string

Recent connection test status. Value: succeeded, failed.

data.channels.kubernetes.last_tested_at

string

Last connection test time. RFC 3339 time.

data.channels.kubernetes.last_test_error

string

Recent connection test errors.

data.channels.kubernetes.labels

object

Tag mapping.

data.channels.kubernetes.created_at

string

Creation time. RFC 3339 time.

data.channels.kubernetes.updated_at

string

Update time. RFC 3339 time.

data.knowledge_bases

object

knowledge base reference.

data.model

object

model.

data.model.model_config_ref

string

Model configuration reference.

data.model.default_model

string

Default model.

data.model.params_override

object

Parameter override.

data.skill_refs

array of object

Skill reference.

data.skill_refs[].id

string

logo.

data.skill_refs[].workspace_id

string

The workspace ID to which it belongs.

data.skill_refs[].kind

string

category. Values: skill, tool, knowledge_base.

data.skill_refs[].status

string

status.

data.skill_refs[].resource_id

string

Resource ID.

data.skill_refs[].name

string

Name.

data.skill_refs[].display_name

string

Display name.

data.skill_refs[].description

string

Description.

data.skill_refs[].category

string

Resource category.

data.skill_refs[].phase

string

execution phase.

data.skill_refs[].bindable

boolean

Whether it can be bound.

data.skill_refs[].bindability_reason

string

Binding availability instructions.

data.skill_refs[].supported_runtimes

array of string

Supported runtime environments.

data.skill_refs[].config

object

Configuration.

data.skill_refs[].runtime_tool_visibility

string

Run tool visibility.

data.skill_refs[].binding_source

string

Binding source.

data.skill_refs[].manageable

boolean

Is it manageable.

data.project_scope

object

GitHub project scope.

data.project_scope.project_id

string

GitHub project ID.

data.project_scope.owner

string

owner.

data.project_scope.owner_type

string

Owner type.

data.project_scope.number

integer

number.

data.project_scope.title

string

title.

data.project_scope.url

string

address.

data.project_scope.host

string

host.

data.suites

array of object

Operation and maintenance inspection items.

data.suites[].suite_id

string

Operations suite ID.

data.suites[].display_name

string

Display name.

data.suites[].namespace

string

Kubernetes namespace.

data.suites[].log_namespace

string

Log namespace.

data.suites[].containers

array of string

List of containers.

data.suites[].enabled

boolean

Whether to enable.

data.reconciliation_task

object

Coordinate tasks.

data.reconciliation_task.id

string

logo.

data.reconciliation_task.status

string

status. Values: draft, creating, active, failed, disabled, archived.

data.reconciliation_task.cron_expression

string

Cron expressions.

data.capacity_patrol_task

object

Capacity inspection task.

data.capacity_patrol_task.id

string

logo.

data.capacity_patrol_task.status

string

status. Values: draft, creating, active, failed, disabled, archived.

data.capacity_patrol_task.cron_expression

string

Cron expressions.

data.automation_task_id

string

Automation task ID.

data.automation_task_status

string

Automation task status. Values: draft, creating, active, failed, disabled, archived.

data.callback_rule_id

string

Callback rule ID.

data.callback_rule_enabled

boolean

Whether the callback rule is enabled.

data.callback_configured

boolean

Whether the callback has been configured.

data.callback_enabled

boolean

Whether callback is enabled.

Error response

Does not exist and returns HTTP 404/code=3. Permission denied returns HTTP 403/code=5. The string error codes of the authentication layer need to be parsed separately from the numeric error codes of the business layer.

JSON
{
  "code": 3,
  "message": "not found"
}

data.agent_id in the response is the system agent ID. Use this ID to continue updating the configuration or query related GitHub projects.

Last updated on