AgentApp
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_apps/{id}/opened |
create |
Success |
GET |
/api/v1/organizations/{organization_id}/agent_apps |
list |
Team apps |
GET |
/api/v1/organizations/{organization_id}/agent_apps/{id} |
load |
Team app |
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_apps, err := client.AgentApp(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(agent_apps)
agent_app, err := client.AgentApp(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(agent_app)
Lua
Construct client as shown in the Lua setup, then call the operations:
local agent_apps, err = client:AgentApp():list({ organization_id = "example" })
local agent_app, err = client:AgentApp():load({ id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$agent_apps = $client->AgentApp()->list(["organization_id" => "example"]);
$agent_app = $client->AgentApp()->load(["id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
agent_apps = client.AgentApp().list({"organization_id": "example"})
agent_app = client.AgentApp().load({"id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
agent_apps = client.AgentApp.list({ "organization_id" => "example" })
agent_app = client.AgentApp.load({ "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const agent_apps = await client.AgentApp().list({ organization_id: "example" })
const agent_app = await client.AgentApp().load({ id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
author |
object |
Yes | Author |
can_message |
boolean |
Yes | The viewer may send input to the author agent |
deployments_count |
integer |
Yes | Increases with every deploy of the site |
description |
string |
Yes | Description |
hidden_install_count |
integer |
Yes | Installs by agents the viewer cannot open |
id |
string |
Yes | Id |
install_count |
integer |
Yes | Install Count |
installed_by |
array |
Yes | Installed By |
installed_target_ids |
array |
Yes | Install targets of the viewer that have this app installed |
mcp_url |
one,string,null |
Yes | Mcp Url |
owner |
object |
Yes | The person who controls the author agent |
thread |
any |
Yes | The thread that published the app, when the viewer can open the author agent |
title |
string |
Yes | Title |
url |
string |
Yes | Url |
visibility |
string |
Yes | Visibility |
create
POST /api/v1/organizations/{organization_id}/agent_apps/{id}/opened
Operation ID: opened_api_v1_organization_agent_app.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
Idempotency-Key |
header |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
surface |
enum: web, desktop |
Yes | |
view |
enum: frame, external |
Yes | Beside its agent in Composal, or in the person's own browser |
Responses
200: Success
application/json
The response is object.
204: Opening recorded
401: Authentication required
403: Forbidden
404: App or feature not found
422: Invalid surface, view or missing Idempotency-Key
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/agent_apps
Operation ID: api_v1_organization_agent_apps.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
cursor |
query |
string |
No |
Responses
200: Team apps
application/json
| Property | Type | Required | Description |
|---|---|---|---|
install_targets |
array of object |
Yes | Active agents the viewer owns or manages, which they can install apps on |
install_targets[].id |
string |
Yes | |
install_targets[].name |
string |
Yes | |
items |
array of object |
Yes | |
items[].author |
object |
Yes | |
items[].author.id |
string |
Yes | |
items[].author.name |
string |
Yes | |
items[].author.url_slug |
string,null |
Yes | Present when the viewer can open the agent |
items[].can_message |
boolean |
Yes | The viewer may send input to the author agent |
items[].deployments_count |
integer |
Yes | Increases with every deploy of the site |
items[].description |
string |
Yes | |
items[].hidden_install_count |
integer |
Yes | Installs by agents the viewer cannot open |
items[].id |
string |
Yes | |
items[].install_count |
integer |
Yes | |
items[].installed_by |
array of object |
Yes | |
items[].installed_by[].id |
string |
Yes | |
items[].installed_by[].name |
string |
Yes | |
items[].installed_by[].url_slug |
string,null |
Yes | Present when the viewer can open the agent |
items[].installed_target_ids |
array of string |
Yes | Install targets of the viewer that have this app installed |
items[].mcp_url |
string,null |
Yes | |
items[].owner |
object |
Yes | The person who controls the author agent |
items[].owner.id |
string |
Yes | |
items[].owner.name |
string |
Yes | |
items[].thread |
null or object |
Yes | The thread that published the app, when the viewer can open the author agent |
items[].title |
string |
Yes | |
items[].url |
string |
Yes | |
items[].visibility |
enum: public, org |
Yes | |
next_cursor |
string,null |
Yes | Pass as cursor to load older apps |
401: Authentication required
403: Forbidden
404: Organization or feature not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/agent_apps/{id}
Operation ID: api_v1_organization_agent_app.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Team app
application/json
| Property | Type | Required | Description |
|---|---|---|---|
author |
object |
Yes | |
author.id |
string |
Yes | |
author.name |
string |
Yes | |
author.url_slug |
string,null |
Yes | Present when the viewer can open the agent |
can_message |
boolean |
Yes | The viewer may send input to the author agent |
deployments_count |
integer |
Yes | Increases with every deploy of the site |
description |
string |
Yes | |
hidden_install_count |
integer |
Yes | Installs by agents the viewer cannot open |
id |
string |
Yes | |
install_count |
integer |
Yes | |
installed_by |
array of object |
Yes | |
installed_by[].id |
string |
Yes | |
installed_by[].name |
string |
Yes | |
installed_by[].url_slug |
string,null |
Yes | Present when the viewer can open the agent |
installed_target_ids |
array of string |
Yes | Install targets of the viewer that have this app installed |
mcp_url |
string,null |
Yes | |
owner |
object |
Yes | The person who controls the author agent |
owner.id |
string |
Yes | |
owner.name |
string |
Yes | |
thread |
null or object |
Yes | The thread that published the app, when the viewer can open the author agent |
title |
string |
Yes | |
url |
string |
Yes | |
visibility |
enum: public, org |
Yes |