AgentIntegrationAccount
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_integrations/accounts |
list |
Organization accounts |
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_integration_accounts, err := client.AgentIntegrationAccount(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(agent_integration_accounts)
Lua
Construct client as shown in the Lua setup, then call the operations:
local agent_integration_accounts, err = client:AgentIntegrationAccount():list({ organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$agent_integration_accounts = $client->AgentIntegrationAccount()->list(["organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
agent_integration_accounts = client.AgentIntegrationAccount().list({"organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
agent_integration_accounts = client.AgentIntegrationAccount.list({ "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const agent_integration_accounts = await client.AgentIntegrationAccount().list({ organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
can_cancel_sign_in |
boolean |
No | The viewer can cancel the unfinished authorization attempt. |
can_delete |
boolean |
Yes | Can Delete |
can_disconnect |
boolean |
Yes | Can Disconnect |
can_enable |
boolean |
Yes | Can Enable |
can_manage_sharing |
boolean |
Yes | Can Manage Sharing |
can_reconnect |
boolean |
Yes | Can Reconnect |
can_sync |
boolean |
Yes | The viewer's own sign-in is waiting; their app may ask Rails whether the browser finished. |
connected_by |
one,string,null |
Yes | Name of the person whose sign-in this account is. |
connected_by_you |
boolean |
Yes | True when the viewer is the person whose sign-in this account is. |
creation_key_digest |
one,string,null |
No | SHA-256 of the unfinished setup key for its original creator. |
generation |
integer |
Yes | Generation |
id |
string |
Yes | Id |
name |
string |
Yes | Name |
provider_disabled_reason |
one,string,null |
Yes | Provider Disabled Reason |
provider_identity |
object |
Yes | Provider Identity |
reference |
string |
Yes | Pins this account's current authorization, as agent_connection_ID:GENERATION. |
sharing_status |
string |
No | Agent account audience, including legacy personal and paused access. |
status |
string |
Yes | Status |
team_sharing_enabled |
boolean |
Yes | Team Sharing Enabled |
team_sharing_version |
integer |
Yes | Team Sharing Version |
toolkit |
string |
Yes | Toolkit |
list
GET /api/v1/organizations/{organization_id}/agent_integrations/accounts
Operation ID: organizationAgentIntegrationAccountsGet.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
q |
query |
string |
No | |
toolkit |
query |
string |
No | |
cursor |
query |
string |
No | |
limit |
query |
integer |
No | |
enableable |
query |
boolean |
No | When true, only connected accounts an agent can be given now. |
Responses
200: Organization accounts
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_counts |
object |
Yes | Accounts the viewer can see per toolkit, across all account pages. |
connected_counts |
object |
Yes | Signed-in accounts per toolkit, across all account pages. Only these make an app read as connected. |
connections |
array of object |
Yes | |
connections[].can_cancel_sign_in |
boolean |
No | The viewer can cancel the unfinished authorization attempt. |
connections[].can_delete |
boolean |
Yes | |
connections[].can_disconnect |
boolean |
Yes | |
connections[].can_enable |
boolean |
Yes | |
connections[].can_manage_sharing |
boolean |
Yes | |
connections[].can_reconnect |
boolean |
Yes | |
connections[].can_sync |
boolean |
Yes | The viewer's own sign-in is waiting; their app may ask Rails whether the browser finished. |
connections[].connected_by |
string,null |
Yes | Name of the person whose sign-in this account is. |
connections[].connected_by_you |
boolean |
Yes | True when the viewer is the person whose sign-in this account is. |
connections[].creation_key_digest |
string,null |
No | SHA-256 of the unfinished setup key for its original creator. |
connections[].generation |
integer |
Yes | |
connections[].id |
string |
Yes | |
connections[].name |
string |
Yes | |
connections[].provider_disabled_reason |
string,null |
Yes | |
connections[].provider_identity |
object |
Yes | |
connections[].provider_identity.account_label |
string |
Yes | |
connections[].provider_identity.checked_at |
string (date-time) |
Yes | |
connections[].provider_identity.status |
enum: verified, unavailable |
Yes | |
connections[].provider_identity.workspace_label |
string |
Yes | |
connections[].reference |
string |
Yes | Pins this account's current authorization, as agent_connection_ID:GENERATION. |
connections[].sharing_status |
enum: team, private, personal, paused |
No | Agent account audience, including legacy personal and paused access. |
connections[].status |
enum: pending, active, expired, revoked, error |
Yes | |
connections[].team_sharing_enabled |
boolean |
Yes | |
connections[].team_sharing_version |
integer |
Yes | |
connections[].toolkit |
string |
Yes | |
pagination |
object |
Yes | |
pagination.limit |
integer |
Yes | |
pagination.next |
string,null |
Yes | |
pending_counts |
object |
Yes | Accounts per toolkit whose sign-in was started but not finished, across all account pages. |