API

AgentConnectionDelegation

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}/agent_connections/{id}/delegations list Owner-managed revision delegation

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

Lua

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

local agent_connection_delegations, err = client:AgentConnectionDelegation():list({ agent_connection_id = "example", organization_id = "example" })

PHP

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

$agent_connection_delegations = $client->AgentConnectionDelegation()->list(["agent_connection_id" => "example", "organization_id" => "example"]);

Python

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

agent_connection_delegations = client.AgentConnectionDelegation().list({"agent_connection_id": "example", "organization_id": "example"})

Ruby

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

agent_connection_delegations = client.AgentConnectionDelegation.list({ "agent_connection_id" => "example", "organization_id" => "example" })

TypeScript

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

const agent_connection_delegations = await client.AgentConnectionDelegation().list({ agent_connection_id: "example", organization_id: "example" })

Fields

Field Type Required Description
authorized_by_id string Yes Authorized By Id
automation_connection_grant_id string Yes Automation Connection Grant Id
created_at string Yes Created At
id string Yes Id
member_name string Yes Member Name
revoked_at one,string,null Yes Revoked At
roles array Yes Roles
usable boolean Yes Usable
user_id string Yes User Id

list

GET /api/v1/organizations/{organization_id}/agent_connections/{id}/delegations

Operation ID: delegations_api_v1_organization_agent_connection.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: Owner-managed revision delegation

application/json

Property Type Required Description
delegations array of object Yes
delegations[].authorized_by_id string Yes
delegations[].automation_connection_grant_id string Yes
delegations[].created_at string Yes
delegations[].id string Yes
delegations[].member_name string Yes
delegations[].revoked_at string,null Yes
delegations[].roles array of enum: invoke, approve Yes
delegations[].usable boolean Yes
delegations[].user_id string Yes
pagination object Yes
pagination.limit integer Yes
pagination.next string No
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway