LangBot Docs
Plugins

Install a plugin from GitHub

Install a plugin from a GitHub repository asynchronously; the POST request immediately returns `task_id`. If the plugin's declared LangBot version range is incompatible with the current version (or invalid) and `allow_incompatible` is not `true`, the async task fails; querying the task returns error code `plugin_incompatible_langbot_version` with `details` (`current`, `min`, `max`, and `status`: `"incompatible" | "invalid"`).

POST
/api/v1/plugins/install/github

Install a plugin from a GitHub repository asynchronously; the POST request immediately returns task_id. If the plugin's declared LangBot version range is incompatible with the current version (or invalid) and allow_incompatible is not true, the async task fails; 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/github" \  -H "Content-Type: application/json" \  -d '{    "url": "https://github.com/rocksclawbot/langbot-community-plugins/tree/main/disaster-alert"  }'
{  "code": 0,  "data": {    "task_id": 0  }}