API

AgentMarketplace

Agent listings in the organization's marketplace: browse them, publish, change or remove one, or install one (action).

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/{id}/install create Installed agent
POST /api/v1/organizations/{organization_id}/agent_marketplace create Published listing
GET /api/v1/organizations/{organization_id}/agent_marketplace/{id} load Listing
GET /api/v1/agent_marketplace/{id} load Listing
GET /api/v1/organizations/{organization_id}/agent_marketplace load Marketplace listings
GET /api/v1/organizations/{organization_id}/agent_marketplace/draft load Listing draft
GET /api/v1/agent_marketplace load Public marketplace listings
PATCH /api/v1/organizations/{organization_id}/agent_marketplace/{id} patch Listing
DELETE /api/v1/organizations/{organization_id}/agent_marketplace/{id} remove Listing removed from the marketplace
PUT /api/v1/organizations/{organization_id}/agent_marketplace/{id} update Success

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, err := client.AgentMarketplace(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_marketplace)
created, err := client.AgentMarketplace(nil).Create(map[string]any{"organization_id": "example", "bundle": map[string]any{}, "category": "example", "name": "example", "summary": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.AgentMarketplace(nil).Update(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.AgentMarketplace(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "bundle": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.AgentMarketplace(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local agent_marketplace, err = client:AgentMarketplace():load({ id = "example_id" })
local created, err = client:AgentMarketplace():create({ organization_id = "example", bundle = {}, category = "example", name = "example", summary = "example" })
local updated, err = client:AgentMarketplace():update({ id = "example_id", organization_id = "example" })
local patched, err = client:AgentMarketplace():patch({ id = "example_id", organization_id = "example", bundle = {} })
local removed, err = client:AgentMarketplace():remove({ id = "example_id", organization_id = "example" })

PHP

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

$agent_marketplace = $client->AgentMarketplace()->load(["id" => "example_id"]);
$created = $client->AgentMarketplace()->create(["organization_id" => "example", "bundle" => [], "category" => "example", "name" => "example", "summary" => "example"]);
$updated = $client->AgentMarketplace()->update(["id" => "example_id", "organization_id" => "example"]);
$patched = $client->AgentMarketplace()->patch(["id" => "example_id", "organization_id" => "example", "bundle" => []]);
$client->AgentMarketplace()->remove(["id" => "example_id", "organization_id" => "example"]);

Python

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

agent_marketplace = client.AgentMarketplace().load({"id": "example_id"})
created = client.AgentMarketplace().create({ "organization_id": "example", "bundle": {}, "category": "example", "name": "example", "summary": "example" })
updated = client.AgentMarketplace().update({"id": "example_id", "organization_id": "example"})
patched = client.AgentMarketplace().patch({"id": "example_id", "organization_id": "example", "bundle": {}})
client.AgentMarketplace().remove({"id": "example_id", "organization_id": "example"})

Ruby

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

agent_marketplace = client.AgentMarketplace.load({ "id" => "example_id" })
created = client.AgentMarketplace.create({ "organization_id" => "example", "bundle" => {}, "category" => "example", "name" => "example", "summary" => "example" })
updated = client.AgentMarketplace.update({ "id" => "example_id", "organization_id" => "example" })
patched = client.AgentMarketplace.patch({ "id" => "example_id", "organization_id" => "example", "bundle" => {} })
client.AgentMarketplace.remove({ "id" => "example_id", "organization_id" => "example" })

TypeScript

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

const agent_marketplace = await client.AgentMarketplace().load({ id: "example_id" })
const created = await client.AgentMarketplace().create({ organization_id: "example", bundle: {}, category: "example", name: "example", summary: "example" })
const updated = await client.AgentMarketplace().update({ id: "example_id", organization_id: "example" })
const patched = await client.AgentMarketplace().patch({ id: "example_id", organization_id: "example", bundle: {} })
await client.AgentMarketplace().remove({ id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
bundle object Yes Bundle
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.
categories array Yes Categories
category string Yes Category
counts object Yes Counts
created_at string Yes Created At
expected_version integer Yes Expected Version
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
listings array Yes Listings
memories array Yes Memories
name string Yes Name
next_page one,integer,null Yes Next Page
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.
sections array Yes Sections
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>.
source_agent_id string No The V2 agent this listing was published from.
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/{id}/install

Operation ID: agentMarketplaceInstall.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id 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

POST /api/v1/organizations/{organization_id}/agent_marketplace

Operation ID: agentMarketplacePublish.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
bundle object Yes
bundle.instructions string Yes
bundle.integrations array of object No
bundle.integrations[].reason string No
bundle.integrations[].toolkit string Yes
bundle.memories array of string No
bundle.page_apps array of object No Reviewed code templates belonging to the source agent. Each install gets new apps with empty storage.
bundle.page_apps[].revision string Yes
bundle.page_apps[].source_site_id string Yes
bundle.skills array of object No
bundle.skills[].body string Yes
bundle.skills[].description string Yes
bundle.skills[].name string Yes
category string Yes
explainer string No Markdown shown as the listing's public write-up.
name string Yes
source_agent_id string No The V2 agent this listing was published from.
summary string Yes
visibility enum: organization, link, public No

Responses

201: Published listing

application/json

Property Type Required Description
listing object and object 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/{id}

Operation ID: agentMarketplaceShow.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: Listing

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/{id}

Operation ID: publicAgentMarketplaceShow.

Authentication: not required.

Parameters

Parameter In Type Required Description
id 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
404: No public listing with this slug or id

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

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

Operation ID: agentMarketplaceList.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
q query string No
category query string No
scope query enum: mine, composal No
page query integer No

Responses

200: Marketplace listings

application/json

Property Type Required Description
categories array of string Yes
featured array of object Yes
featured[].can_manage boolean Yes
featured[].catalog_key string Yes Stable key of a Composal listing, which names its character; null for other listings.
featured[].category string Yes
featured[].counts object Yes
featured[].counts.apps integer Yes
featured[].counts.integrations integer Yes
featured[].counts.memories integer Yes
featured[].counts.skills integer Yes
featured[].created_at string (date-time) Yes
featured[].featured boolean Yes
featured[].from_composal boolean Yes One of Composal's ready-made listings.
featured[].id string Yes
featured[].installs_count integer Yes
featured[].integration_toolkits array of string Yes
featured[].name string Yes
featured[].organization_name string Yes
featured[].publisher_avatar_url string Yes The publisher's own profile picture; null for Composal's listings and publishers without one.
featured[].publisher_name string Yes "Composal" on listings Composal publishes.
featured[].slug string Yes Readable, permanent address segment: /marketplace/<slug>.
featured[].summary string Yes
featured[].updated_at string (date-time) Yes
featured[].version integer Yes
featured[].visibility enum: organization, link, public Yes
listings array of object Yes
listings[].can_manage boolean Yes
listings[].catalog_key string Yes Stable key of a Composal listing, which names its character; null for other listings.
listings[].category string Yes
listings[].counts object Yes
listings[].counts.apps integer Yes
listings[].counts.integrations integer Yes
listings[].counts.memories integer Yes
listings[].counts.skills integer Yes
listings[].created_at string (date-time) Yes
listings[].featured boolean Yes
listings[].from_composal boolean Yes One of Composal's ready-made listings.
listings[].id string Yes
listings[].installs_count integer Yes
listings[].integration_toolkits array of string Yes
listings[].name string Yes
listings[].organization_name string Yes
listings[].publisher_avatar_url string Yes The publisher's own profile picture; null for Composal's listings and publishers without one.
listings[].publisher_name string Yes "Composal" on listings Composal publishes.
listings[].slug string Yes Readable, permanent address segment: /marketplace/<slug>.
listings[].summary string Yes
listings[].updated_at string (date-time) Yes
listings[].version integer Yes
listings[].visibility enum: organization, link, public Yes
next_page integer Yes
sections array of object Yes
sections[].category string Yes The section's category; "composal" names the section of Composal's own listings.
sections[].has_more boolean Yes
sections[].listings array of object Yes
sections[].listings[].can_manage boolean Yes
sections[].listings[].catalog_key string Yes Stable key of a Composal listing, which names its character; null for other listings.
sections[].listings[].category string Yes
sections[].listings[].counts object Yes
sections[].listings[].counts.apps integer Yes
sections[].listings[].counts.integrations integer Yes
sections[].listings[].counts.memories integer Yes
sections[].listings[].counts.skills integer Yes
sections[].listings[].created_at string (date-time) Yes
sections[].listings[].featured boolean Yes
sections[].listings[].from_composal boolean Yes One of Composal's ready-made listings.
sections[].listings[].id string Yes
sections[].listings[].installs_count integer Yes
sections[].listings[].integration_toolkits array of string Yes
sections[].listings[].name string Yes
sections[].listings[].organization_name string Yes
sections[].listings[].publisher_avatar_url string Yes The publisher's own profile picture; null for Composal's listings and publishers without one.
sections[].listings[].publisher_name string Yes "Composal" on listings Composal publishes.
sections[].listings[].slug string Yes Readable, permanent address segment: /marketplace/<slug>.
sections[].listings[].summary string Yes
sections[].listings[].updated_at string (date-time) Yes
sections[].listings[].version integer Yes
sections[].listings[].visibility enum: organization, link, public Yes
sections[].scope enum: composal Yes The catalog scope that opens this section in full; null when its category does.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{organization_id}/agent_marketplace/draft

Operation ID: agentMarketplaceDraft.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
agent_id query string No
listing_id query string No

Responses

200: Listing draft

application/json

Property Type Required Description
categories array of string Yes
draft object Yes
draft.bundle object Yes
draft.bundle.instructions string Yes
draft.bundle.integrations array of object No
draft.bundle.integrations[].reason string No
draft.bundle.integrations[].toolkit string Yes
draft.bundle.memories array of string No
draft.bundle.page_apps array of object No Reviewed code templates belonging to the source agent. Each install gets new apps with empty storage.
draft.bundle.page_apps[].revision string Yes
draft.bundle.page_apps[].source_site_id string Yes
draft.bundle.skills array of object No
draft.bundle.skills[].body string Yes
draft.bundle.skills[].description string Yes
draft.bundle.skills[].name string Yes
draft.category string Yes
draft.explainer string Yes
draft.name string Yes
draft.summary string Yes
draft.visibility enum: organization, link, public Yes
listing object Yes The listing being edited, or null for a new one.
listing.id string Yes
listing.version integer Yes
page_app_choices array of object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/agent_marketplace

Operation ID: publicAgentMarketplaceList.

Authentication: not required.

Parameters

Parameter In Type Required Description
q query string No
category query string No
scope query enum: composal, mine No
page query integer No

Responses

200: Public marketplace listings

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/organizations/{organization_id}/agent_marketplace/{id}

Operation ID: agentMarketplaceUpdate.

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
bundle object No
bundle.instructions string Yes
bundle.integrations array of object No
bundle.integrations[].reason string No
bundle.integrations[].toolkit string Yes
bundle.memories array of string No
bundle.page_apps array of object No Reviewed code templates belonging to the source agent. Each install gets new apps with empty storage.
bundle.page_apps[].revision string Yes
bundle.page_apps[].source_site_id string Yes
bundle.skills array of object No
bundle.skills[].body string Yes
bundle.skills[].description string Yes
bundle.skills[].name string Yes
category string No
expected_version integer Yes
explainer string No Markdown shown as the listing's public write-up.
name string No
summary string No
visibility enum: organization, link, public No

Responses

200: Listing

application/json

Property Type Required Description
listing object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
409: The listing changed since expected_version; reload and try again
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/organizations/{organization_id}/agent_marketplace/{id}

Operation ID: agentMarketplaceArchive.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

204: Listing removed from the marketplace
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

update

PUT /api/v1/organizations/{organization_id}/agent_marketplace/{id}

Operation ID: put_api_v1_organizations_organization_id_agent_marketplace_id_.

Authentication: bearer token (bearerAuth).

Parameters

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

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway