Buko DocsBuko 文档

Buko Developer Docs

Welcome to the Buko developer documentation.

Developer access: Bot availability depends on the target service and the
bot's access settings. Request access and a bot token from the Buko
team at support@buko.app before integrating.
Publishing this guide does not enable Bot access for every account or app
release. Native Kit development remains a private, reviewed preview.

Buko is a private messenger. Developer APIs are intentionally narrow: Buko provides the messaging channel, identity, delivery, permissions, and quotas. Your agent or service provides the actual intelligence and business logic.

Available APIs

  • Bot API single-page guide covers authentication, receiving updates, messages, attachments, buttons, and runnable starter examples.
  • WebView Kit Development covers building a web app that opens inside Buko: creating the Kit in the Developer Console, web settings, the JavaScript bridge, capabilities, testing and review. Manage Kits.
  • Native Kit Development defines the source, capability, server, platform, security, and testing contract for reviewed native Kit modules compiled into the app. Native Kits remain a private Preview for official modules and approved source-review partners.

Production URLs

ServiceURL
Developer docshttps://buko.app/dev-docs/
Bot API basehttps://ims.buko.app
Bot Gateway WebSocketwss://ims.buko.app/bot/ws
Web apphttps://web.buko.app

Bot API preview

After the Buko team provisions your bot, verify the token with getMe. Use tokens only with the service that issued them; accounts and tokens are not shared between products.

export BUKO_BOT_TOKEN="bot_xxx"

curl -sS https://ims.buko.app/bot/getMe \
  -X POST \
  -H "Authorization: Bot $BUKO_BOT_TOKEN" \
  -H "Content-Type: application/json"

Then use either Bot Gateway WebSocket for realtime updates or polling for simple deployments.

Kits in one minute

A WebView Kit is your own HTTPS web app, opened inside Buko in an isolated container. Create it in the Developer Console, test it with your own account, and submit it for review; people find it by its @handle. Start with WebView Kit Development.

A native Kit is a reviewed local Dart package under kits/. It implements the small KitModule contract, declares the platforms it has actually tested, and uses only host-provided capabilities through KitContext. The server catalog can narrow visibility or disable a Kit, but it cannot download code or enable a platform omitted by the compiled package.

Read the complete Native Kit Development guide before creating a native module.

Buko 开发者文档

欢迎阅读 Buko 开发者文档。

开发者接入: Bot 是否可用取决于目标服务和 Bot 的访问设置。接入前请通过 support@buko.app 向 Buko 团队申请访问权限和 Bot token。
发布本指南不会为所有账号或 App 版本开启 Bot 权限。原生 Kit 开发仍属于需审核的私有预览。

Buko 是注重隐私的即时通信产品。开发者 API 有明确的能力边界:Buko 提供消息通道、身份、投递、权限和配额;你的 agent 或服务负责智能能力与业务逻辑。

可用 API

  • Bot API 完整指南 介绍认证、接收更新、消息、附件、按钮以及可运行的入门示例。
  • WebView Kit 开发 介绍如何构建在 Buko 内打开的网页应用:在开发者控制台创建 Kit、网页设置、JavaScript 桥接、能力、测试与审核。管理 Kit。
  • 原生 Kit 开发 定义编译进 App 的原生 Kit 模块所需的源码、能力、服务端、平台、安全与测试约定。原生 Kit 仍处于私有预览,仅面向官方模块及获准接受源码审核的合作方。

服务地址

服务URL
开发者文档https://buko.app/dev-docs/
Bot API 基础地址https://ims.buko.app
Bot Gateway WebSocketwss://ims.buko.app/bot/ws
网页版https://web.buko.app

Bot API 预览

Buko 团队为你配置 Bot 后,先用 getMe 验证 token。token 只能用于签发它的服务;不同产品不共享账号和 token。

export BUKO_BOT_TOKEN="bot_xxx"

curl -sS https://ims.buko.app/bot/getMe \
  -X POST \
  -H "Authorization: Bot $BUKO_BOT_TOKEN" \
  -H "Content-Type: application/json"

之后可使用 Bot Gateway WebSocket 接收实时更新,或使用轮询 简化部署。

一分钟了解 Kit

WebView Kit 是你自己的 HTTPS 网页应用,在 Buko 的隔离容器内打开。通过开发者控制台创建,使用自己的账号测试,然后提交审核;用户可通过 @handle 找到它。请从 WebView Kit 开发开始。

原生 Kit 是位于 kits/ 下、经过审核的本地 Dart 包。它实现精简的 KitModule 接口,声明实际测试过的平台,并且仅通过 KitContext 使用宿主提供的能力。服务端目录可缩小可见范围或停用 Kit,但不能下载代码,也不能启用编译包未声明的平台。

创建原生模块前,请完整阅读原生 Kit 开发指南。