API

AgentMarketplaceShared

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_marketplace/shared/{share_token}/install create Installed agent
GET /api/v1/organizations/{organization_id}/agent_marketplace/shared/{share_token} load Listing opened from a share link
GET /api/v1/agent_marketplace/shared/{share_token} load Listing

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_marketplace_shared, err := client.AgentMarketplaceShared(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_marketplace_shared)

Lua

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

local agent_marketplace_shared, err = client:AgentMarketplaceShared():load({ id = "example_id" })

PHP

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

$agent_marketplace_shared = $client->AgentMarketplaceShared()->load(["id" => "example_id"]);

Python

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

agent_marketplace_shared = client.AgentMarketplaceShared().load({"id": "example_id"})

Ruby

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

agent_marketplace_shared = client.AgentMarketplaceShared.load({ "id" => "example_id" })

TypeScript

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

const agent_marketplace_shared = await client.AgentMarketplaceShared().load({ id: "example_id" })

Fields

Field Type Required Description
can_manage boolean Yes Can Manage
catalog_key one,string,null Yes Stable key of a Composal listing, which names its character; null for other listings.
category string Yes Category
counts object Yes Counts
created_at string Yes Created At
explainer one,string,null Yes The listing's public write-up in Markdown.
featured boolean Yes Featured
from_composal boolean Yes One of Composal's ready-made listings.
id string Yes Id
installs_count integer Yes Installs Count
instructions string Yes Instructions
integration_toolkits array Yes Integration Toolkits
integrations array Yes Integrations
listing any Yes Listing
memories array Yes Memories
name string Yes Name
organization_name string Yes Organization Name
page_apps array Yes Page Apps
publisher_avatar_url one,string,null Yes The publisher's own profile picture; null for Composal's listings and publishers without one.
publisher_name string Yes "Composal" on listings Composal publishes.
share_token one,string,null Yes Present only for people who manage the listing.
skills array Yes Skills
slug string Yes Readable, permanent address segment: /marketplace/<slug>.
summary string Yes Summary
updated_at string Yes Updated At
version integer Yes Version
viewer object Yes Who a public marketplace response was read for.
visibility string Yes Visibility

create

POST /api/v1/organizations/{organization_id}/agent_marketplace/shared/{share_token}/install

Operation ID: agentMarketplaceInstallShared.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
share_token path string Yes
Idempotency-Key header string Yes One key per install; retrying it returns the same agent.

Request body

application/json

The request body is object.

Responses

201: Installed agent

application/json

Property Type Required Description
install object Yes
install.agent object Yes
install.agent.id string Yes
install.agent.name string Yes
install.agent.url_slug string Yes
install.listing_id string Yes
403: Agents are not enabled, or you cannot change this agent
404: Listing not found or not visible to this organization
409: The idempotency key or listing version belongs to another request
422: Invalid listing contents

load

GET /api/v1/organizations/{organization_id}/agent_marketplace/shared/{share_token}

Operation ID: agentMarketplaceShared.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

application/json

Property Type Required Description
listing object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/agent_marketplace/shared/{share_token}

Operation ID: publicAgentMarketplaceShared.

Authentication: not required.

Parameters

Parameter In Type Required Description
share_token path string Yes

Responses

200: Listing

application/json

Property Type Required Description
listing object and object Yes
viewer object Yes Who a public marketplace response was read for.
viewer.organization object Yes The organization the visitor browses as; null signed out or when agents are off there.
viewer.organization.name string Yes
viewer.organization.slug string Yes
viewer.signed_in boolean Yes

application/json

Property Type Required Description
error string Yes
viewer object Yes Who a public marketplace response was read for.
viewer.organization object Yes The organization the visitor browses as; null signed out or when agents are off there.
viewer.organization.name string Yes
viewer.organization.slug string Yes
viewer.signed_in boolean Yes