Query the connection list

Query the agent connections saved in the current workspace.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/connections

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/connections" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

kind

string

No

Connection type.

status

string

No

Connection status.

auth_type

string

No

Authentication method.

visibility

string

No

Visible range, as an explicit filter.

query

string

No

Search by name and description.

owner_user_id

string

No

Owning user ID as an explicit filter.

limit

integer

No

The maximum number of records returned, default 50, maximum 200.

offset

integer

No

Query the offset, and negative values are treated as 0.

Successful response

JSON
{
  "code": 0,
  "data": {
    "items": [],
    "total": 0,
    "limit": 0,
    "offset": 0
  }
}

Field

Type

Description

code

integer

0 when the request is processed successfully.

data

object

response data.

data.items

array of object

Current page link. The service may return null when there is no current connection. The caller should treat it as an empty list.

data.items[].id

string

Object ID.

data.items[].workspace_id

string

The workspace ID to which it belongs.

data.items[].name

string

Name.

data.items[].description

string

Description. Can be omitted if not set.

data.items[].status

string

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

data.items[].kind

string

Connection type. Values: model_api, huggingface, mcp_server, http_api, external_drive, object_storage, database, webhook, channel.

data.items[].endpoint_uri

string

Service endpoint address.

data.items[].auth_type

string

Authentication method. Values: none, api_key, bearer_token, oauth2, basic, custom_headers, service_account, client_certificate.

data.items[].credential_ref

string

A reference to a saved credential, not a clear-text key. Can be omitted if not set.

data.items[].capabilities

array of string

List of available capabilities. Can be omitted if not set.

data.items[].owner_user_id

string

The user ID of the connection owner. Can be omitted if not set.

data.items[].visibility

string

Visible range. Value: private, workspace.

data.items[].config

object

Non-sensitive configuration, fields vary with connection or channel type. Can be omitted if not set.

data.items[].last_test_status

string

The most recent test status, either succeeded or failed. Can be omitted if not set. Value: succeeded, failed.

data.items[].last_tested_at

string

The most recent test time, in RFC 3339 format. Can be omitted if not set.

data.items[].last_test_error

string

Error description for recent tests. Can be omitted if not set.

data.items[].version

integer

Current version number.

data.items[].labels

object

Tag key-value pairs. Can be omitted if not set.

data.items[].annotations

object

Extended annotations. Can be omitted if not set.

data.items[].metadata

object

Extended metadata. Can be omitted if not set.

data.items[].created_by

string

Creator ID. Can be omitted if not set.

data.items[].updated_by

string

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

data.items[].created_at

string

Creation time, in RFC 3339 format.

data.items[].updated_at

string

Last updated in RFC 3339 format.

data.total

integer

Total number of matches.

data.limit

integer

The upper limit of the number of records used in this query.

data.offset

integer

The offset used in this query.

Error response

JSON
{
  "code": 6,
  "message": "unauthenticated"
}

Field

Type

Description

code

integer

error code.

message

string

Error message for the caller.

Last updated on