ConnectionRequest
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/requests/{request_key} |
load |
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_request, err := client.ConnectionRequest(nil).Load(map[string]any{"agent_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(connection_request)
Lua
Construct client as shown in the Lua setup, then call the operations:
local connection_request, err = client:ConnectionRequest():load({ agent_id = "example", id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$connection_request = $client->ConnectionRequest()->load(["agent_id" => "example", "id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
connection_request = client.ConnectionRequest().load({"agent_id": "example", "id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
connection_request = client.ConnectionRequest.load({ "agent_id" => "example", "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const connection_request = await client.ConnectionRequest().load({ agent_id: "example", id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
agent_card_url |
string |
Yes | Agent Card Url |
auth_scheme |
string |
Yes | Auth Scheme |
can_configure |
boolean |
Yes | Can Configure |
can_disconnect |
boolean |
Yes | Can Disconnect |
can_setup |
boolean |
Yes | Can Setup |
error_code |
one,string,null |
Yes | Error Code |
generation |
integer |
Yes | Generation |
id |
string |
Yes | Id |
name |
string |
Yes | Name |
remote_agent |
one,string,null |
Yes | Remote Agent |
retired_at |
one,string,null |
Yes | Retired At |
revoked_at |
one,string,null |
Yes | Revoked At |
source_operation_id |
one,string,null |
Yes | Source Operation Id |
state |
string |
Yes | State |
load
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/relay/connections/requests/{request_key}
Operation ID: get_api_v1_organizations_organization_id_agents_id_spark_relay_connections_requests_request_key_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
request_key |
path |
string |
Yes | |
X-Composal-Requester-Id |
header |
string |
Yes | Retain the signed-in requester ID from list/detail with this exact intended write. |
X-Composal-Relay-Scope |
header |
string |
Yes | Retain the scope_key from list/detail with the original requester and intended write. A new membership cannot inherit that intent. |
Responses
200: Current owner connection result
application/json
| Property | Type | Required | Description |
|---|---|---|---|
connection |
object |
Yes | |
connection.agent_card_url |
string (uri) |
Yes | |
connection.auth_scheme |
enum: bearer, api_key, none |
Yes | |
connection.can_configure |
boolean |
Yes | |
connection.can_disconnect |
boolean |
Yes | |
connection.can_setup |
boolean |
Yes | |
connection.error_code |
string,null |
Yes | |
connection.generation |
integer (int64) |
Yes | |
connection.id |
string |
Yes | |
connection.name |
string |
Yes | |
connection.remote_agent |
string,null |
Yes | |
connection.retired_at |
string,null (date-time) |
Yes | |
connection.revoked_at |
string,null (date-time) |
Yes | |
connection.source_operation_id |
string,null |
Yes | |
connection.state |
enum: pending, configured, source_unavailable, revoked |
Yes |