API

AgentConnectionResource

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/agent_connections/{id}/resources create Owned account resource metadata

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:

created, err := client.AgentConnectionResource(nil).Create(map[string]any{"agent_connection_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local created, err = client:AgentConnectionResource():create({ agent_connection_id = "example", organization_id = "example" })

PHP

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

$created = $client->AgentConnectionResource()->create(["agent_connection_id" => "example", "organization_id" => "example"]);

Python

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

created = client.AgentConnectionResource().create({ "agent_connection_id": "example", "organization_id": "example" })

Ruby

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

created = client.AgentConnectionResource.create({ "agent_connection_id" => "example", "organization_id" => "example" })

TypeScript

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

const created = await client.AgentConnectionResource().create({ agent_connection_id: "example", organization_id: "example" })

Fields

Field Type Required Description
cursor one,string,null No Cursor
next_cursor one,string,null Yes Next Cursor
query string No Query
resources array Yes Resources

create

POST /api/v1/organizations/{organization_id}/agent_connections/{id}/resources

Operation ID: resources_api_v1_organization_agent_connection.

Authentication: bearer token (bearerAuth).

Parameters

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

Request body

application/json

Property Type Required Description
cursor string,null No
query string No

Responses

200: Owned account resource metadata

application/json

Property Type Required Description
next_cursor string,null Yes
resources array of object Yes
resources[].id string Yes
resources[].kind enum: channel, page, message Yes
resources[].name string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway