API

AgentManagerChoice

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}/manager_choices list Matching teammates

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_manager_choices, err := client.AgentManagerChoice(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_manager_choices)

Lua

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

local agent_manager_choices, err = client:AgentManagerChoice():list({ agent_id = "example", organization_id = "example" })

PHP

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

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

Python

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

agent_manager_choices = client.AgentManagerChoice().list({"agent_id": "example", "organization_id": "example"})

Ruby

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

agent_manager_choices = client.AgentManagerChoice.list({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

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

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

Fields

Field Type Required Description
id string Yes Id
name string Yes Name

list

GET /api/v1/organizations/{organization_id}/agents/{id}/manager_choices

Operation ID: manager_choices_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
q query string No

Responses

200: Matching teammates

application/json

Property Type Required Description
has_more boolean Yes
items array of object Yes
items[].id string Yes
items[].name string Yes
401: Authentication required
403: Sharing authority required
404: Organization or agent not found
422: The agent is private