AgentRelayFileGrantAccount
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_relay_file_grants/accounts |
list |
Current owner-held accounts authorized for this source |
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_relay_file_grant_accounts, err := client.AgentRelayFileGrantAccount(nil).List(map[string]any{"organization_id": "example", "source_operation_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(agent_relay_file_grant_accounts)
Lua
Construct client as shown in the Lua setup, then call the operations:
local agent_relay_file_grant_accounts, err = client:AgentRelayFileGrantAccount():list({ organization_id = "example", source_operation_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$agent_relay_file_grant_accounts = $client->AgentRelayFileGrantAccount()->list(["organization_id" => "example", "source_operation_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
agent_relay_file_grant_accounts = client.AgentRelayFileGrantAccount().list({"organization_id": "example", "source_operation_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
agent_relay_file_grant_accounts = client.AgentRelayFileGrantAccount.list({ "organization_id" => "example", "source_operation_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const agent_relay_file_grant_accounts = await client.AgentRelayFileGrantAccount().list({ organization_id: "example", source_operation_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
access_modes |
array |
No | Supported file access modes. |
generation |
integer |
Yes | Generation |
id |
string |
Yes | Id |
name |
string |
Yes | Name |
provider |
string |
Yes | Provider |
resource_kind |
string |
Yes | Resource Kind |
list
GET /api/v1/organizations/{organization_id}/agent_relay_file_grants/accounts
Operation ID: accounts_api_v1_organization_agent_relay_file_grants.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
source_operation_id |
query |
string |
Yes | |
cursor |
query |
string |
No |
Responses
200: Current owner-held accounts authorized for this source
application/json
| Property | Type | Required | Description |
|---|---|---|---|
accounts |
array of object |
Yes | |
accounts[].access_modes |
array of enum: read, read_write |
No | Supported file access modes. Older API versions omit this field and offer read access only. |
accounts[].generation |
integer |
Yes | |
accounts[].id |
string |
Yes | |
accounts[].name |
string |
Yes | |
accounts[].provider |
enum: notion, slack |
Yes | |
accounts[].resource_kind |
enum: notion_page, slack_channel |
Yes | |
next_cursor |
string,null |
Yes | |
source_operation_id |
string |
Yes |
400: Malformed public resource ID
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
401: Owner authentication required
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Current source/account authority or provider-files rollout required
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Owned resource not found
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
422: Invalid bounded request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |