360 Secure SkillHub
360 安全技能中心

Inbox Zero API CLI

该 Skill 通过 Inbox Zero 公共 API 的 CLI 工具操作邮箱自动化状态:查看实时 OpenAPI schema、列出与管理规则、按周期读取收件箱统计。建议使用 --json 输出,凭据放在 INBOX_ZERO_API_KEY;更新规则前先读取现有规则,因为 update 为整体替换。

elie222
elie222
热度 51.34
最近更新 2026-05-11 17:32:08
分类:协作依赖:代码执行 / 第三方 API / 读写文件应用场景:API 集成 / 自动化脚本 / 工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add inbox-zero-api
Metadata
name
inbox-zero-api
description
Use the Inbox Zero API CLI to inspect the live API schema, list and manage automation rules, and read inbox analytics through the public API. Use this when a task involves Inbox Zero rules, stats, or API-driven automation and can be solved through the CLI instead of browser interaction.
homepage
https://www.getinboxzero.com/api-reference/cli
metadata
{"openclaw":{"skillKey":"inboxZeroApi","requires":{"bins":["inbox-zero-api"],"env":["INBOX_ZERO_API_KEY"]},"primaryEnv":"INBOX_ZERO_API_KEY","install":[{"id":"node","kind":"node","package":"@inbox-zero/api","bins":["inbox-zero-api"],"label":"Install Inbox Zero API CLI (npm)"}]}}

Inbox Zero API CLI

Use this skill when the task is to inspect or change Inbox Zero state through the public API.

Workflow

  1. Prefer --json so the output is stable and machine-readable.
  2. Keep credentials in INBOX_ZERO_API_KEY or OpenClaw skill config. Avoid passing API keys as CLI flags unless there is no alternative.
  3. Before creating or replacing a rule body, fetch the live schema with inbox-zero-api openapi --json.
  4. For create and update flows, write JSON into a workspace file or pipe it on stdin.
  5. Treat rules update as a full replacement. Read the current rule first if you only intend to change part of it.

Quick Start

inbox-zero-api rules list --json
inbox-zero-api stats by-period --period week --json
inbox-zero-api openapi --json

If the CLI is not installed yet, install it with the OpenClaw installer or run npm install -g @inbox-zero/api.

OpenClaw Config

Set the API key in ~/.openclaw/openclaw.json under skills.entries.inboxZeroApi.apiKey, or export INBOX_ZERO_API_KEY in the host environment.

Use INBOX_ZERO_BASE_URL or inbox-zero-api config set base-url <url> only for self-hosted or nonstandard deployments.

Reference

For exact command patterns and a safe mutation flow, read references/cli-reference.md.