API

AgentResource

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/resources list Authorized operator 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:

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

Lua

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

local agent_resources, err = client:AgentResource():list({ agent_id = "example", organization_id = "example" })

PHP

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

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

Python

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

agent_resources = client.AgentResource().list({"agent_id": "example", "organization_id": "example"})

Ruby

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

agent_resources = client.AgentResource.list({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

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

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

Fields

Field Type Required Description
name string Yes Name
uri string Yes Uri

list

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

Operation ID: spark_relay_resources_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Authorized operator result

application/json

Property Type Required Description
participant string Yes
requester_id string Yes
resources array of object Yes
resources[].name string Yes
resources[].uri string Yes
scope_key string Yes
401: Authentication required
403: Current requester access is required
404: Agent or operator receipt unavailable
409: Request key belongs to different arguments
422: Invalid bounded request
503: Relay unavailable