将密钥保留在服务端
Rocket 将 BIRD_API_KEY 保存在任务的环境变量中。不要添加 NEXT_PUBLIC_ 前缀,这样密钥就只存在于服务端代码中,不会暴露到浏览器。
探索 API你的智能体可以设置通道、管理客户并确认送达。
通过 MCP 和 CLI 实现完整的读写访问。
能否查看当前有哪些通话处于活跃状态,并告诉我哪些已接通、哪些仍在响铃?
workspace_getvoice_legs_listvoice_legs_getvoice_legs_getRocket 从集合中读取请求。你的 API 密钥保存在任务的环境变量中。
bird-api-rocket.postman_collection.jsonBIRD_API_KEY=bk_us1_…
BIRD_API_URL=https://us1.platform.bird.com在你的 Rocket 任务中,点击预览工具栏中的 …,选择 APIs。打开 Select an API,点击 Add APIs,选择 Upload JSON,拖入集合,然后点击 Submit。
选择一个路由和请求(例如 Create an email message),点击 Integrate API,然后点击要触发发送的元素。Rocket 会询问何时调用 API 并自动生成代码。
在 Bird 的 Developers 下创建一个 API 密钥,然后打开 API keys。在 Rocket 中,点击任务名称,打开 Settings,然后进入 Environment,在 Staging 和 Production 标签页中设置 BIRD_API_KEY 和 BIRD_API_URL。以 bk_eu1_ 开头的密钥会调用 https://eu1.platform.bird.com。
你发布的应用需要自己的服务端连接来访问 Bird。
告诉 Rocket 要执行什么操作,并指定要调用的 Bird 请求。
When a user signs up, call Create an email message to send a welcome email. Save the returned message ID on the user.When an order ships, call Create an SMS message with the customer’s phone number and the tracking link. Show an error on the order page if the call fails.On the sign-up screen, call Create a verification for the phone number the user enters. On the next screen, call Create a verification passcode check with the code they type.连接正常工作背后的细节。
Rocket 的 API 面板可以导入 Postman 集合、cURL 命令和 OpenAPI 文件。Bird 集合为每个请求提供了可用的示例,并按照 Rocket 环境命名其变量。
你的 API 密钥所指定的主机。以 bk_us1_ 开头的密钥调用 https://us1.platform.bird.com,以 bk_eu1_ 开头的密钥调用 https://eu1.platform.bird.com。将 BIRD_API_URL 设置为对应的值。
重新下载集合并将文件上传到你的任务中。Bird 每次发布时都会根据其 API 规范重新构建集合。