API

AgentConnectionGrant

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}/grants list Connection grants

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

Lua

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

local agent_connection_grants, err = client:AgentConnectionGrant():list({ agent_connection_id = "example", organization_id = "example" })

PHP

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

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

Python

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

agent_connection_grants = client.AgentConnectionGrant().list({"agent_connection_id": "example", "organization_id": "example"})

Ruby

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

agent_connection_grants = client.AgentConnectionGrant.list({ "agent_connection_id" => "example", "organization_id" => "example" })

TypeScript

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

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

Fields

Field Type Required Description
actions array Yes Actions
agent_connection_id string Yes Agent Connection Id
automation_id string Yes Automation Id
connection_generation integer Yes Connection Generation
created_at string Yes Created At
id string Yes Id
organization_id string Yes Organization Id
revision integer Yes Revision
revoked_at one,string,null Yes Revoked At
status string Yes Status
usable boolean Yes Usable
user_id string Yes User Id

list

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

Operation ID: grants_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: Connection grants

application/json

Property Type Required Description
grants array of object Yes
grants[].actions array of object Yes
grants[].actions[].arguments object Yes
grants[].actions[].mode enum: approval_required, preauthorized Yes
grants[].actions[].property_types object No
grants[].actions[].resources array of string Yes
grants[].actions[].tool string Yes
grants[].agent_connection_id string Yes
grants[].automation_id string Yes
grants[].connection_generation integer Yes
grants[].created_at string Yes
grants[].id string Yes
grants[].organization_id string Yes
grants[].revision integer Yes
grants[].revoked_at string Yes
grants[].status enum: active, revoked Yes
grants[].usable boolean Yes
grants[].user_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway