LangBot Docs
Plugins

Install a plugin from Marketplace

Install a plugin from LangBot Marketplace asynchronously; the POST request immediately returns `task_id`. If the plugin has no version compatible with the current LangBot, the async task fails immediately (`allow_incompatible` has no effect on this). `allow_incompatible` only skips the compatibility check on the downloaded package's manifest. On compatibility failure, querying the task returns error code `plugin_incompatible_langbot_version` with `details` (`current`, `min`, `max`, and `status`: `"incompatible" | "invalid"`).

POST
/api/v1/plugins/install/marketplace

Install a plugin from LangBot Marketplace asynchronously; the POST request immediately returns task_id. If the plugin has no version compatible with the current LangBot, the async task fails immediately (allow_incompatible has no effect on this). allow_incompatible only skips the compatibility check on the downloaded package's manifest. On compatibility failure, querying the task returns error code plugin_incompatible_langbot_version with details (current, min, max, and status: "incompatible" | "invalid").

Authorization

X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/plugins/install/marketplace" \  -H "Content-Type: application/json" \  -d '{    "plugin_id": "kellz-dev/disaster-alert"  }'
{  "code": 0,  "data": {    "task_id": 0  }}