API

ConnectionSource

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/relay/connections/sources list Current owner connection result

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

connection_sources, err := client.ConnectionSource(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(connection_sources)

Lua

Construct client as shown in the Lua setup, then call the operations:

local connection_sources, err = client:ConnectionSource():list({ agent_id = "example", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$connection_sources = $client->ConnectionSource()->list(["agent_id" => "example", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

connection_sources = client.ConnectionSource().list({"agent_id": "example", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

connection_sources = client.ConnectionSource.list({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const connection_sources = await client.ConnectionSource().list({ agent_id: "example", organization_id: "example" })

Fields

Field Type Required Description
device_id string Yes Device Id
device_name string Yes Device Name
provider string Yes Provider
source_operation_id string Yes Source Operation Id
title string Yes Title

list

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/relay/connections/sources

Operation ID: spark_relay_connections_sources_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
cursor query string No
limit query integer No
X-Composal-Requester-Id header string Yes
X-Composal-Relay-Scope header string Yes

Responses

200: Current owner connection result

application/json

Property Type Required Description
pagination object Yes
pagination.limit integer Yes
pagination.next string No
requester_id string Yes
scope_key string Yes
sources array of object Yes
sources[].device_id string Yes
sources[].device_name string Yes
sources[].provider enum: codex, claude Yes
sources[].source_operation_id string Yes
sources[].title string Yes
400: Missing required fields
401: Authentication required
403: Current requester or source access required
404: Agent, original membership, connection or feature unavailable
409: Retained intent or generation conflict
422: Invalid bounded connection settings