No slash command · from inkbox
Provides shell command guidance for the Inkbox CLI (@inkbox/cli) covering identities, email, SMS, iMessage, phone, vault, mailboxes, webhooks, and signup workflows. Flags high-risk operations like sending messages or deleting resources.
Ships in inkbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Command-line interface for the Inkbox API — identities, email, phone, text/SMS, encrypted vault, mailboxes, phone numbers, signing keys, and webhook utilities.
Set credentials via env vars or global flags:
export INKBOX_API_KEY="ApiKey_..."
export INKBOX_VAULT_KEY="my-vault-key" # only needed for vault decrypt/create flows
Global options:
--api-key <key> Inkbox API key (or set INKBOX_API_KEY)
--vault-key <key> Vault key for decrypt operations (or set INKBOX_VAULT_KEY)
--base-url <url> Override API base URL
--json Output as JSON instead of formatted tables
If INKBOX_API_KEY is missing and --api-key is not passed, the CLI exits with an error.
Prefer --json when the result will be parsed or fed into another tool. Use the default table/record output when the user wants a quick human-readable summary.
With --json, success stays on stdout and API failures write one structured error
object to stderr, retaining error.detail and error.retryAfterSeconds.
Published package:
npm install -g @inkbox/cli
Or run without a global install:
npx @inkbox/cli <command>
Requires Node.js >= 22.
Inside this repository, prefer running the local source instead of assuming a global install:
npm --prefix cli run dev -- <command>
Examples:
npm --prefix cli run dev -- --json identity list
npm --prefix cli run dev -- email list -i support-bot --limit 10
These commands can send real traffic or mutate real resources. Confirm with the user before running them:
signup createa2a invites create, a2a invites revoke, and a2a invites acceptemail sendemail drafts sendtext sendphone callidentity deleteemail deleteemail delete-threademail drafts deletevault deleteidentity update --mail-filter-mode ... / --phone-filter-mode ... (admin-only; flips allow/block semantics for that identity's channel)mailbox update --filter-mode ... (DEPRECATED channel path; admin-only)number releasenumber update --filter-mode ... (DEPRECATED channel path; admin-only)phone incoming-action <action> / number update --incoming-call-action ... (changes what answers that identity's inbound calls — hosted_agent makes the platform voice agent pick up)identity signing-key rotate <handle> (rotates that identity's webhook signing key)signing-key create (DEPRECATED org-level path)contacts delete, contacts bulk-delete, contacts facts delete, notes delete, identity mail-rules delete, identity phone-rules delete, mailbox rules delete (deprecated), and number rules delete (deprecated) remove data or affect downstream filtering — confirm intent before running.
Also confirm before creating or rotating secrets if the values were not explicitly provided by the user.
For the full self-signup flow and API semantics, read the shared reference:
See:
skills/inkbox-agent-self-signup/SKILL.md
CLI commands:
inkbox signup create
inkbox signup verify --code <code>
inkbox signup resend-verification
inkbox signup status
signup create is the main command that does not require an API key. The later signup commands require the signup-issued API key to be passed back via --api-key or exported as INKBOX_API_KEY; the CLI does not persist it automatically.
Handles are fixed at creation. Use identity update <handle> --display-name <name> to change an agent's presentation.
inkbox identity list
inkbox identity get <handle>
inkbox identity create <handle> [--display-name <name>] [--description <text>]
[--imessage-enabled]
[--contact-sharing-enabled true|false]
[--email-local-part <part>]
[--sending-domain <name> | --platform-domain]
[--tls-mode edge|passthrough | --hosted]
inkbox identity delete <handle>
inkbox identity update <handle> [--display-name <name>]
[--description <text> | --clear-description]
[--imessage-enabled true|false]
[--contact-sharing-enabled true|false]
[--mail-filter-mode whitelist|blacklist]
[--phone-filter-mode whitelist|blacklist]
inkbox identity refresh <handle>
--mail-filter-mode / --phone-filter-mode set the identity's contact-rule mode (admin-only). Unlike the deprecated mailbox update --filter-mode / number update --filter-mode, the identity path does not print a change notice. Phone mode also governs iMessage and can be configured without a dedicated phone number.
identity create atomically provisions the mailbox AND the tunnel. The JSON output includes both (mailbox, tunnel.publicHost, tunnel.tlsMode).
New identities default contact sharing to enabled. If a personal iMessage
line is attached, it automatically offers the identity's display name (or
handle as fallback) and optional avatar. Use
--contact-sharing-enabled false during identity creation to opt out, or
inkbox identity update <handle> --contact-sharing-enabled false to disable it
later. Pass true to enable it again.
--sending-domain <name> binds the agent's mailbox to a verified custom domain (bare name, e.g. mail.acme.com); --platform-domain forces the platform sending domain; the two are mutually exclusive. --tls-mode defaults to edge and is fixed at create time (changing it later requires deleting the identity + recreating).
For identity update, --description "" and --clear-description both send explicit null to clear; omitting both leaves the field untouched.
Notes:
identity delete cascades to the linked mailbox + tunnel and revokes any identity-scoped API keys.identity get and identity refresh return mailbox, phone-number, and tunnel assignments when present.-i, --identity <handle>.These require a vault key:
inkbox identity create-secret <handle> --name <name> --type <type> ...
inkbox identity get-secret <handle> <secret-id>
inkbox identity delete-secret <handle> <secret-id>
inkbox identity revoke-access <handle> <secret-id>
inkbox identity set-totp <handle> <secret-id> --uri <otpauth-uri>
inkbox identity remove-totp <handle> <secret-id>
inkbox identity totp-code <handle> <secret-id>
Secret types:
login, api_key, ssh_key, key_pair, other
Allow/block lists are scoped to the agent identity (keyed by handle), combined with the identity's mail/phone filter mode (inkbox identity update --mail-filter-mode / --phone-filter-mode). Mail matches by exact email or domain; phone matches by exact E.164 number.
# Mail rules
inkbox identity mail-rules list <handle> [--action allow|block] [--match-type exact_email|domain] [--limit <n>] [--offset <n>]
inkbox identity mail-rules list-all [--agent-identity-id <id>] [--action …] [--match-type …] # admin-only, org-wide
inkbox identity mail-rules get <handle> <rule-id>
inkbox identity mail-rules create <handle> --action allow|block --match-type exact_email|domain --match-target <value>
inkbox identity mail-rules update <handle> <rule-id> --action allow|block # admin-only
inkbox identity mail-rules delete <handle> <rule-id> # admin-only
# Phone rules — require the identity to have a phone number; only exact_number is supported.
inkbox identity phone-rules list <handle> [--action allow|block] [--match-type exact_number] [--limit <n>] [--offset <n>]
inkbox identity phone-rules list-all [--agent-identity-id <id>] [--action …] # admin-only, org-wide
inkbox identity phone-rules get <handle> <rule-id>
inkbox identity phone-rules create <handle> --action allow|block --match-target <e164> [--match-type exact_number]
inkbox identity phone-rules update <handle> <rule-id> --action allow|block # admin-only
inkbox identity phone-rules delete <handle> <rule-id> # admin-only
New rules always start active. These replace the deprecated inkbox mailbox rules / inkbox number rules groups below.
Each identity has its own webhook signing key:
inkbox identity signing-key status <handle>
inkbox identity signing-key rotate <handle> # mints or rotates; prints the plaintext secret ONCE
All email commands are identity-scoped and require -i <handle>.
inkbox email send -i <handle> \
--to [email protected] \
--subject "Hello" \
--body-html '<p>Hi</p><img src="cid:chart">' \
--attach ./report.pdf \ # optional; repeatable file attachment
--inline-image chart=./chart.png \ # optional, repeatable; embeds <img src="cid:chart"> (needs --body-html, image/*)
--track-opens # optional; embed a tracking pixel (needs --body-html)
inkbox email reply-all <message-id> -i <handle> --body-html "<p>Thanks</p>" --attach ./notes.txt
inkbox email forward <message-id> -i <handle> --to [email protected] --attach ./extra.pdf --track-opens
inkbox email list -i <handle> --limit 10
inkbox email get <message-id> -i <handle> # fetching an inbound message marks it read
inkbox email search -i <handle> -q "invoice"
inkbox email unread -i <handle> --limit 10
inkbox email mark-read <ids...> -i <handle>
inkbox email mark-unread <ids...> -i <handle>
inkbox email download-attachment <message-id> <filename> -i <handle> # time-limited download URL
inkbox email delete <message-id> -i <handle>
inkbox email delete-thread <thread-id> -i <handle>
inkbox email star <message-id> -i <handle>
inkbox email unstar <message-id> -i <handle>
inkbox email thread <thread-id> -i <handle>
(--inline-image is send/reply-all only — forwards reject inline images.)
inkbox email drafts create -i <handle> --subject "Work in progress" \
--idempotency-key draft-create-2026-08-19-1
inkbox email drafts list -i <handle>
inkbox email drafts get <draft-id> -i <handle>
inkbox email drafts update <draft-id> -i <handle> --generation <n> \
--to [email protected] --clear-subject
inkbox email drafts duplicate <draft-id> -i <handle> --generation <n>
inkbox email drafts delete <draft-id> -i <handle> --generation <n>
inkbox email drafts send <draft-id> -i <handle> --generation <n>
inkbox email drafts attachment add <draft-id> -i <handle> \
--generation <n> --attach ./notes.txt
inkbox email drafts attachment remove <draft-id> <part-index> -i <handle> \
--generation <n>
inkbox email drafts attachment download <draft-id> <part-index> -i <handle> \
--generation <n> --output ./notes.txt
Create accepts incomplete content. Update supports explicit-null --clear-*
flags; omission leaves a field unchanged. Use the generation printed by the
latest read or mutation for every following mutation. Attachment part indexes
belong to that generation, so run get again after an edit. Drafts share the
mailbox's standard Drafts folder with connected mail clients.
Reuse one --idempotency-key and the exact same arguments when retrying a
logical create after an ambiguous result. Use a new key after the original draft
is sent or deleted. Forward-only flags require --forward-message-id.
Successful send prints the sent message and removes the draft; an
exact-generation retry may return the same sent message. On HTTP 409, refresh
for draft_generation_conflict and retry the same ID and generation for
draft_send_in_progress. Never resend draft_delivery_uncertain; after checking
sent mail, duplicate or delete it instead.
Use email search only when the identity already has a mailbox assigned.
Before sending, confirm recipients, subject, and body with the user.
email send, email reply-all, and email forward all fail with HTTP 402 when the mailbox is at its plan storage cap. The CLI prints the server's message plus a hint: free space with inkbox email delete <message-id> -i <handle> / inkbox email delete-thread <thread-id> -i <handle> (reclaim is immediate), or upgrade the plan at the printed billing URL. Check headroom first with inkbox mailbox list (the storage column).
Phone commands require -i <handle>, except phone hosted-agent voices,
which discovers the organization-scoped voice catalog without an identity.
inkbox phone call -i <handle> --to +15551234567 --ws-url wss://example.com/ws
inkbox phone call -i <handle> --to +15551234567 --hosted --reason "Confirm tomorrow's 3pm appointment"
inkbox phone call -i <handle> --to +15551234567 --hosted --reason "..." --on-voicemail leave_message --voicemail-message "Please call us back."
inkbox phone call -i <handle> --to +15551234567 --origination shared_imessage_number
inkbox phone calls -i <handle> --limit 10 --offset 0
inkbox phone hangup <call-id> -i <handle>
inkbox phone transcripts <call-id> -i <handle>
inkbox phone search-transcripts -i <handle> -q "refund" --party remote
inkbox phone incoming-action -i <handle> # print the incoming-call config
inkbox phone incoming-action hosted_agent -i <handle> # or auto_accept | auto_reject | webhook
inkbox phone incoming-action forward -i <handle> --forward-to-phone +15551234567
inkbox phone incoming-action forward -i <handle> --forward-to-sip sip:[email protected]
inkbox phone hosted-agent voices
inkbox phone hosted-agent voices --json # { voices, defaultVoice }
inkbox phone hosted-agent get -i <handle>
inkbox phone hosted-agent set -i <handle> --voice <voice> --instructions <text>
Before placing a call, confirm the destination number, origination, and the
websocket URL (or the --reason task brief for Voice AI calls) with the user.
--origination selects dedicated_number (the default) or
shared_imessage_number. Shared-line calls use the identity's iMessage-line
assignment and do not require a dedicated phone number. The recipient must
already have a shared iMessage connection to the identity; otherwise the call
fails with 409 no_shared_connection.
--on-voicemail <leave_message|hang_up|ignore> controls what happens when
voicemail answers; omit it for the default (leave_message with --hosted,
hang_up otherwise). --voicemail-message <text> sets what Voice AI says
and requires --on-voicemail leave_message. --no-voicemail-detection is
deprecated (same as --on-voicemail ignore).
For outbound Voice AI calls, --outbound-greeting-wait-seconds 5 waits up to
five seconds for the recipient before the agent opens. Accepts 0–60 seconds;
omit for 1.5 seconds. Zero requests an immediate opening. Requires --hosted.
--hosted places a call Inkbox Voice AI drives end to end
— no WebSocket, no code. It requires --reason (the agent's task brief)
and conflicts with --ws-url; everything else is server policy surfaced
as an API error (e.g. 503 hosted_agent_unavailable /
hosted_agent_at_capacity where Voice AI isn't available). The
call's mode / reason and Voice AI's recorded
post_call_action_items (open items only, seq-ascending) ride the call
object — read them with --json on phone calls; the default table
does not show them.
inkbox phone incoming-action gets or sets the identity's incoming-call
action (auto_accept | auto_reject | webhook | hosted_agent | forward,
with --ws-url / --webhook-url where applicable). forward requires exactly
one of --forward-to-phone or --forward-to-sip. hosted_agent needs no URL.
phone hosted-agent voices returns voice IDs, names, descriptions,
availability, optional previewUrl values, and the catalog's defaultVoice.
Unavailable entries are retained; choose an entry with available: true and
pass its string id to --voice. Do not maintain a fixed voice allowlist.
inkbox phone hosted-agent set is a full replace: an omitted flag
resets that field to the server default. Read the current config and include
its existing --instructions when changing only the voice.
inkbox phone hangup ends a live call from outside it. The carrier
confirms the teardown asynchronously, so the printed call can still show
its live status for a moment; a call that has already ended (or has no
active carrier leg yet) surfaces the server's 409.
For keypad input on a live client-driven call, the agent sends
{"event": "dtmf", "digits": "1"} through the call's media WebSocket. Each event
accepts one to 30 keys from 0-9, *, and #, in order. At most 20 bursts per
call can be outstanding, including the one being sent; further bursts are ignored.
No acknowledgment is sent; wait for the menu's response before another burst.
Do not retry blindly.
All text commands are identity-scoped and require -i <handle>.
Outbound SMS limits and gates (current):
429 sender_rate_limited.inkbox number get <id>; sending is gated until smsStatus reads ready (otherwise 409 sender_sms_pending).START to any number in the org. Unknown → 403 recipient_not_opted_in. STOP → 403 recipient_opted_out. Inspect / override consent state via inkbox sms-opt-in (see below).Customer-managed 10DLC brands/campaigns lift the default per-number cap to the carrier-assigned tier. Toll-free SMS sending is still coming soon.
inkbox text send -i <handle> --to +15551234567 --text "Hello from Inkbox"
inkbox text send -i <handle> --to +15551234567,+15557654321 --text "Hello group" --media-url https://example.com/photo.jpg
inkbox text send -i <handle> --conversation-id <conversation-uuid> --text "Reply all"
inkbox text list -i <handle> --limit 20
inkbox text get <text-id> -i <handle>
inkbox text conversations -i <handle> --limit 20 --include-groups
inkbox text conversation <conversation-key> -i <handle> --limit 50
inkbox text search -i <handle> -q "invoice"
inkbox text mark-read <text-id> -i <handle>
inkbox text mark-conversation-read <conversation-key> -i <handle>
All iMessage commands are identity-scoped and require -i <handle>. Shared service requires the recipient to message first; dedicated identities may initiate one-to-one and group conversations. The identity must be opted in (inkbox identity update <handle> --imessage-enabled true).
Dedicated lines can also receive one-to-one messages from non-phone sender
addresses, such as [email protected]. Read responses and imessage.received
webhooks preserve the address as a string; do not normalize it into a phone number
or assume every received message can be answered. These conversations are
receive-only: sending messages, reactions, typing indicators, or read receipts
returns HTTP 422 with recipient_not_e164. Outbound to recipients must still
be E.164 phone numbers. Reading message history does not send a read receipt.
inkbox imessage triage-number # the router number + the connect command humans text to it
inkbox imessage send -i <handle> --to +15551234567 --text "Hello over iMessage"
inkbox imessage send -i <handle> --to +15551234567,+15557654321 --text "Hello group" --media-url https://example.com/group-photo.jpg --send-style confetti # dedicated line only
inkbox imessage send -i <handle> --conversation-id <group-conversation-id> --text "Reply" --media-url https://example.com/follow-up.jpg --send-style lasers
inkbox imessage list -i <handle> --limit 20 --unread-only --include-groups
inkbox imessage assignments -i <handle> --limit 20 # active connections, newest first
inkbox imessage disconnect <assignment-id> # admin key only; recipient can reconnect via triage
inkbox imessage conversations -i <handle> --limit 20 --include-groups
inkbox imessage conversation <conversation-id> -i <handle> --limit 50
inkbox imessage react <message-id> -i <handle> --reaction like
inkbox imessage unreact <reaction-id> -i <handle> # take your own tapback back
inkbox imessage mark-conversation-read <conversation-id> -i <handle>
inkbox imessage typing <conversation-id> -i <handle>
inkbox imessage upload-media ./photo.jpg -i <handle> --content-type image/jpeg
# Contact rules are scoped to the identity (not a phone number):
inkbox imessage contact-rule list -i <handle>
inkbox imessage contact-rule create -i <handle> --action block --match-target +15559999999
inkbox imessage contact-rule update <rule-id> -i <handle> --action allow|block # admin-only
inkbox imessage contact-rule delete <rule-id> -i <handle> # admin-only
inkbox imessage contact-rule list-all # admin-only, org-wide
Group conversation output includes groupCreationStatus (creating,
not_created, or ready). A rejected initial creation remains on the same
conversation; send again by conversation id to retry. react supports inbound
one-to-one and group messages. Its named choices are love, like, dislike,
laugh, emphasize, question, and eyes; arbitrary custom emoji are
inbound-only. unreact takes back a tapback this identity sent, addressed by
the reaction id from react or from a message's live reactions; only the
sender can. A failed removal leaves the tapback in place rather than clearing it
locally, so the call can be retried. Read receipts and typing remain
one-to-one only.
Group creation and conversation-id replies accept the same 13 expressive styles
as one-to-one sends, with or without --media-url.
Per-recipient SMS consent state, keyed by (your org, recipient number). The registry is updated automatically when recipients text START / STOP to any of your numbers (source=sms). Reads work for any admin caller; writes require your org to be on its own active, customer-managed 10DLC campaign — default-campaign orgs share consent state and get 409 customer_campaign_required on writes (audit event recorded with source=api).
# List your org's consent rows, newest-updated first
inkbox sms-opt-in list
inkbox sms-opt-in list --status opted_out --limit 100
inkbox --json sms-opt-in list
# Look up one recipient — 404 if no row exists
inkbox sms-opt-in get +15551234567
# Programmatic writes (customer-managed 10DLC campaign only)
inkbox sms-opt-in opt-in +15551234567
inkbox sms-opt-in opt-out +15551234567
Invitation management is inkbox a2a invites create|list|show|revoke and uses
an admin-scoped API key. Acceptance is agent-only:
inkbox a2a invites accept first verifies a claimed agent-scoped API key and
never falls back to admin auth. It reads an exact-origin share URL or raw token
from a hidden prompt, INKBOX_A2A_INVITATION, or deliberate
--invitation-stdin. Token-named sources remain aliases; there is no
capability argument, decline, resend, or automatic retry command.
For invitation-assisted signup create, use the explicit
--invitation-prompt, --invitation-stdin, or INKBOX_A2A_INVITATION;
ordinary signup never prompts for an invitation.
# Organization directory by default; add --public for public discovery.
inkbox a2a directory --query support
inkbox a2a directory --public --query research --limit 25
# Inspect and change discovery settings.
inkbox a2a settings -i researcher
inkbox a2a publicly-discoverable true -i researcher
inkbox a2a public-egress true -i researcher
# Bilateral admission: the requester allows outbound work to the worker, and
# the worker independently allows inbound work from the requester.
inkbox a2a rules add -i coordinator --handle researcher \
--action allow --direction outbound
inkbox a2a rules add -i researcher --handle coordinator \
--action allow --direction inbound
# Unified task history. Omit --direction for the receiver inbox.
inkbox a2a tasks -i coordinator --direction both \
--requester coordinator --worker researcher \
--state working --query "quarterly report" --limit 25
# Individual matching messages with task/context and participant provenance.
inkbox a2a messages -i coordinator --direction outbound \
--worker researcher --role agent --query revenue --limit 25 --json
# Continue with the same filters and the opaque cursor from the previous page.
inkbox a2a messages -i coordinator --direction outbound \
--worker researcher --role agent --query revenue \
--cursor '<nextCursor>' --limit 25 --json
# Outbound-only alias and task detail.
inkbox a2a sent -i coordinator --worker researcher
inkbox a2a sent-task <task-id> -i coordinator
# Shared context history and naming.
inkbox a2a contexts -i coordinator --direction both
inkbox a2a context <context-id> -i researcher
inkbox a2a sent-contexts -i coordinator
inkbox a2a sent-context <context-id> -i coordinator
inkbox a2a rename-context <context-id> -i coordinator \
--name "Quarterly Research Review"
# Reusing a context without --task starts a sibling task.
inkbox a2a call https://example.test/a2a/researcher/card \
-i coordinator --context <context-id> --text "Review the findings"
# Multi-turn worker flow.
inkbox a2a reply <task-id> -i researcher --ask --text "Which quarter?"
inkbox a2a reply <task-id> -i researcher --complete --text "Done."
Task filters are optional and ANDed: direction, requester, worker, state,
context, query, since, cursor, and limit. Message history additionally supports
task and role; role is the message author (caller or agent), independent of
task direction. Message direction defaults to both. JSON list output contains
items and nextCursor; human output prints a next-cursor hint. Search covers
string and numeric content values from text and data parts, excludes
metadata, and is newest-first rather than relevance-ranked. Task detail exposes
messages and current state. Contact-rule directions are inbound, outbound,
and both; every request must pass both the requester outbound policy and the
worker inbound policy.
New contexts start with the persisted name New A2A Session. That exact
default may be replaced with a name based on the first task message. Either
participant can rename a context at any time; automatic naming does not replace
a non-default name. Context-level requester and worker stay in
original-open orientation; each task carries its own direction, and tasks may
run concurrently in both directions. Cross-endpoint context reuse is supported
between Inkbox identities; external A2A services may define different behavior.
Vault decryption and secret creation require a vault key via INKBOX_VAULT_KEY or --vault-key.
inkbox vault init --vault-key <key>
inkbox vault info
inkbox vault secrets
inkbox vault get <secret-id>
inkbox vault create --name <name> --type <type> ...
inkbox vault delete <secret-id>
inkbox vault keys
inkbox vault grant-access <secret-id> -i <handle>
inkbox vault revoke-access <secret-id> -i <handle>
inkbox vault access-list <secret-id>
inkbox vault logins -i <handle>
inkbox vault api-keys -i <handle>
inkbox vault ssh-keys -i <handle>
inkbox vault key-pairs -i <handle>
Secret type flags:
# login
--password <pass> [--username <user>] [--email <email>] [--url <url>] [--totp-uri <uri>] [--notes <text>]
# api_key
--key <key> [--endpoint <url>] [--notes <text>]
# key_pair
--access-key <key> --secret-key <key> [--endpoint <url>] [--notes <text>]
# ssh_key
--private-key <key> [--public-key <key>] [--fingerprint <fp>] [--passphrase <pass>] [--notes <text>]
# other
--data <json> [--notes <text>]
inkbox mailbox imports run <email> <archive.mbox> \
--original-address [email protected]
inkbox mailbox imports get <email> <job-id>
inkbox mailbox imports list <email>
inkbox mailbox imports wait <email> <job-id> --poll-interval 5
inkbox mailbox imports cancel <email> <job-id>
run supports --source-format auto|mbox|eml|zip, repeatable
--original-address, --mark-unread, --no-wait, --timeout, and
--poll-interval. A ZIP may hold .eml and/or .mbox files (a Gmail Takeout
ZIP imports as-is); other entries, including nested archives, are ignored.
Progress is stderr-only; --json stdout contains one job object. Failed or
cancelled run/wait jobs exit nonzero. A local timeout or Ctrl-C does not
cancel the job. Counters are cumulative and never go backwards, so a stalled
counter is a signal, not normal churn; counters may still remain unchanged while
a slow message is processed, and they are not a percentage. Jobs run one
at a time per organization and share overall import capacity, so a long queued
stretch is normal; do not cancel and recreate. Unsafe imported content may be
rejected.
run re-issues the 5-minute upload target and retries once after a transport
failure or rejected upload target, then cancels the job it created. After an
interrupted run, use
imports list + imports cancel to release the mailbox; otherwise the
abandoned job blocks new imports for 24 hours. Limits: 1 GiB per upload, 50 MiB
per message, 100,000 messages and 20 --original-address values per job, 65,000
entries per ZIP, and 20 import jobs per organization per 24 hours.
Mailboxes are provisioned atomically by inkbox identity create and removed by inkbox identity delete (cascade); there is no standalone create / delete here. The human-readable name lives on the identity now — inkbox identity update --display-name; the mailbox PATCH endpoint hard-rejects display_name with a 422.
inkbox mailbox list # includes a humanized `storage` column
inkbox mailbox get <email-address> # includes storageUsedBytes / storageLimitBytes
inkbox mailbox update <email-address> [--filter-mode whitelist|blacklist]
inkbox mailbox client-settings <email-address> # IMAP/SMTP settings for a mail client
# To attach a webhook receiver, use `inkbox webhook subscription create
# --agent-identity-id <id> --url <url> --event-type message.received ...`.
mailbox list / get / update rows include filterMode and agentIdentityId. mailbox update --filter-mode is the deprecated channel path (admin-only; prints a stderr change note when the value actually changes). Prefer inkbox identity update <handle> --mail-filter-mode whitelist|blacklist, which sets the mode on the identity and prints no change note.
mailbox list shows a storage column (1.2 GiB / 2 GiB) and mailbox get shows storageUsedBytes / storageLimitBytes. --json keeps the raw byte counts; only the table humanizes them. The caps are binary (2 GiB is 2 * 1024³ = 2,147,483,648 bytes), so readouts are labeled GiB/MiB — never GB. A - limit means the server resolved no cap. Sending from a mailbox at its cap fails with HTTP 402; free space with email delete <message-id> -i <handle> / email delete-thread <thread-id> -i <handle>, or upgrade.
An inbox can be attached to a regular mail client (Thunderbird, Apple Mail, mutt, …) with the API key you already have — there is no separate credential to create. inkbox mailbox client-settings <email-address> prints these:
| Setting | Value |
|---|---|
| IMAP host | imap.inkboxmail.com |
| IMAP port | 993 (IMAPS / implicit TLS) |
| SMTP host | smtp.inkboxmail.com |
| SMTP port | 465 (SMTPS / implicit TLS) or 587 (STARTTLS) |
| Username | the inbox address (e.g. [email protected]) |
| Password | an identity-scoped API key (ApiKey_...) |
Mint the password with inkbox api-keys create --label <name> --identity-id <uuid>. Admin-scoped keys are rejected — one key maps to exactly one mailbox. Revoking the key revokes mail-client access. client-settings never prints a password.
Constraints that bite:
From must be the authenticated inbox address, and exactly one address — aliases / "send as" are rejected.client-settings derives the hosts from the configured API base URL; when that URL isn't a recognized Inkbox API host it errors instead of printing hosts it would have to guess. Full walkthrough: https://inkbox.ai/docs/capabilities/email/mail-clients
Tunnels are provisioned atomically by inkbox identity create and removed by inkbox identity delete (cascade). inkbox tunnel create <handle> adds an edge tunnel to an identity that has none (for example, one created with --hosted); it returns 409 tunnel_exists otherwise.
inkbox tunnel create <handle>
inkbox tunnel list
inkbox tunnel get <id-or-handle>
inkbox tunnel update <id> [--metadata <json>]
inkbox tunnel sign-csr <id> --csr <path-or-pem> [--out <path>]
tunnel get accepts either a UUID or the owning identity's agent handle. tunnel update is metadata-only; pass --metadata "{}" to clear. tunnel sign-csr is passthrough-only and uses an elevated 180-second timeout (the server runs DNS validation + cert issuance synchronously).
Data-plane auth uses the same API key the CLI was invoked with — admin-scoped or identity-scoped (matching the tunnel's identity). There is no per-tunnel connect secret; mint an identity-scoped key via inkbox api-keys create --identity-id <uuid> for an agent.
identity create --hosted creates an identity without a tunnel. Enable
hosting and wait until state is ready before using ports or inbound
sources. A hosted agent has a public URL; each port is private (reachable
only with its token link) unless made public.
inkbox identity create <handle> --hosted
inkbox identity hosting configure <handle> --expected-generation 0 --harness codex
inkbox identity hosting get <handle> --json # repeat until state is "ready"
inkbox identity hosting ports show <handle> # url, default port, per-port url and access
inkbox identity hosting ports default <handle> <port|none> # port served at the agent URL; adds it as private if unlisted
inkbox identity hosting ports set <handle> <port> --public|--private # sends the version it read; retries once on a concurrent edit
inkbox identity hosting ports rotate-token <handle> <port> # old token link stops working
A port's tokenUrl is shown only when a token is issued: by ports set --private,
by ports default adding a port, or by rotate-token. ports show never
includes it. Treat tokenUrl as a secret. An Inkbox API key with access to the agent
reaches any port, listed or not. Inbound sources give a hosted agent public URLs
for third-party webhooks; each request is verified (optional) and delivered
to the agent as an inbound.received event. Signing secrets are read from
stdin only.
# GitHub-style: X-Hub-Signature-256: sha256=<hex of HMAC(body)>
printf %s "$SECRET" | inkbox inbound create <handle> --name code --secret-stdin \
--header X-Hub-Signature-256 --format prefix --format-value sha256=
# Stripe-style: Stripe-Signature: t=<unix>,v1=<hex of HMAC("<t>.<body>")>
printf %s "$SECRET" | inkbox inbound create <handle> --name payments --secret-stdin \
--header Stripe-Signature --format list --format-value v1 --signed-content '{timestamp}.{body}' \
--timestamp-from list --timestamp-value t --max-age 300
inkbox inbound create <handle> --name jobs --handler script --command ./handle.sh
inkbox inbound list <handle>
inkbox inbound get <handle> <source-id>
inkbox inbound update <handle> <source-id> [--name <n>] [--no-signature | --header ... --secret-stdin]
[--handler agent|script [--instructions <t> | --command <c>]]
inkbox inbound rotate <handle> <source-id> # new URL; old URL stops accepting
inkbox inbound delete <handle> <source-id>
inkbox inbound events list <handle> <source-id> [--limit <n>] [--cursor <c>]
inkbox inbound events get <handle> <source-id> <event-id> # includes the received request
inkbox inbound events replay <handle> <source-id> <event-id>
inkbox inbound check-signature <handle> (--source <source-id> | --header ... --secret-stdin) \
--sample-header 'Name: value' --body-file body.json # test settings; stores nothing
Signature options (HMAC): --header (required), --secret-encoding text|base64
(base64 ignores a leading whsec_), --format whole|prefix|list + --format-value
(prefix such as sha256=, or list key such as v1; any matching list item passes),
--algorithm sha256|sha1|sha512, --encoding hex|base64, --signed-content
(must include {body}; may use {timestamp}, {header:Name} and fixed text),
--timestamp-from none|header|list + --timestamp-value, --max-age <seconds>.
Handlers default to agent. Treat received request content as untrusted.
inkbox domain list [--status verified]
inkbox domain set-default <domain-name>
domain list shows registered custom domains for your org, optionally filtered by status (e.g. verified). domain set-default requires an admin-scoped API key; pass the bare custom domain name to set it, or pass the platform sending domain (e.g. inkboxmail.com in production) to revert. Domain registration, DNS records, verification, DKIM rotation, and deletion stay in the console.
inkbox mailbox rules …) — DEPRECATEDDeprecated (Sunset 2026-08-31) — use inkbox identity mail-rules … (keyed by agent handle) instead. Per-mailbox allow/block rules (combined with the mailbox's filterMode).
inkbox mailbox rules list --mailbox <email> [--action allow|block] [--match-type exact_email|domain] [--limit <n>] [--offset <n>]
inkbox mailbox rules list --all-mailboxes [--mailbox-id <id>] [--action …] [--match-type …] # admin-only
inkbox mailbox rules get <rule-id> --mailbox <email>
inkbox mailbox rules create --mailbox <email> --action allow|block --match-type exact_email|domain --match-target <value>
inkbox mailbox rules update <rule-id> --mailbox <email> --action allow|block # admin-only
inkbox mailbox rules delete <rule-id> --mailbox <email> # admin-only
inkbox number list
inkbox number get <id>
inkbox number provision --handle <handle> [--type local] [--state NY] # local only; toll_free is rejected (422)
inkbox number update <id> [--incoming-call-action auto_accept|auto_reject|webhook|hosted_agent|forward] [--forward-to-phone <number> | --forward-to-sip <uri>] [--filter-mode whitelist|blacklist] ...
inkbox number release <number-id>
Use --state only when provisioning a local number. Phone-number rows also carry filterMode / agentIdentityId; number update --filter-mode is the deprecated channel path (admin-only; prints a stderr note when the value changes). Prefer inkbox identity update <handle> --phone-filter-mode whitelist|blacklist.
inkbox number rules …) — DEPRECATEDDeprecated (Sunset 2026-08-31) — use inkbox identity phone-rules … (keyed by agent handle) instead. Per-number allow/block rules (combined with the number's filterMode).
inkbox number rules list --number <id> [--action allow|block] [--match-type exact_number] [--limit <n>] [--offset <n>]
inkbox number rules list --all-numbers [--phone-number-id <id>] [--action …] [--match-type …] # admin-only
inkbox number rules get <rule-id> --number <id>
inkbox number rules create --number <id> --action allow|block --match-target <e164> [--match-type exact_number]
inkbox number rules update <rule-id> --number <id> --action allow|block # admin-only
inkbox number rules delete <rule-id> --number <id> # admin-only
Shared address book with whole-group email/phone visibility and separate communication choices for each address. Phone covers SMS, calls, and iMessage. Profile and Memories do not grant communication access. Existing-contact identifier changes and suggestion absorption require admin credentials.
contacts access get <handle> <contact-id> reads email/phone objects with visible and contactable, plus profile and memories, using admin credentials. contacts access set <handle> <contact-id> --file access.json applies partial choices. {"email":{"visible":true,"contactable":[]}} is View-only email access; a nonempty list allows those current addresses and blocks the rest. Omitted fields are preserved; profile: false hides omitted or empty groups and omitted Memories, while explicit choices win. The management roster's optional access has the same shape. contacts access list <contact-id> remains compatibility metadata.
contacts create --json also accepts nested access in permissions, for example {"identityId":"11111111-1111-4111-8111-111111111111","email":{"visible":true,"contactable":[]}}. Use group objects or the older boolean maps, not both.
Use contacts permissions get <handle> <contact-id> with admin credentials to read effective emails and phones boolean maps plus profile and memories booleans. Save a JSON file such as {"emails":{"[email protected]":true},"profile":true,"memories":false} with contacts permissions set <handle> <contact-id> --file permissions.json. Omitted fields and addresses stay unchanged; no revision is required.
For atomic creation, contacts create --json='{"givenName":"Ada","emails":[{"value":"[email protected]"}],"permissions":{"identityId":"11111111-1111-4111-8111-111111111111","emails":{"[email protected]":true},"profile":true,"memories":false}}' saves initial choices with the contact using admin credentials.
Advanced commands remain under contacts communication-policy. get <contact-id> --identity-id <uuid> reads selected-agent choices. set <contact-id> --file policy.json accepts expectedRevision, identityId, addresses: [{kind, value, action, expectedAction}], and optional visibility. Address decisions are inherit, allow, or block. Omitted visibility is preserved. preview <contact-id> <identity-id> shows a saved view. list <handle> and identity contact-policies <handle> list the identity's permitted view.
contacts communication-policy list-management <handle> --q Jane --order name --limit 20 --json requires admin credentials and includes hidden contacts. It reports partial identifier access separately from absent identifiers. Identity-owned mail/phone/iMessage rule tables show matching contact names; JSON preserves nullable caller-authorized cards without memories.
Communication-rule mutations require admin credentials. Exact-address allow/block choices override the channel mode. Without an exact choice, matching email domain entries apply in their corresponding mode, then the mode's default applies. Phone permission setup does not require a dedicated number.
Merging requires an admin-scoped API key. Active memories have per-kind and
contact-wide limits. Delete a fact from each kind named by a merge error, or any
active fact when it names total, then retry. Untyped memories count toward the
total.
inkbox contacts list [--q <query>] [--order name|recent] [--review-status <status>] [--limit <n>] [--offset <n>] # offset max 10000
inkbox contacts get <contact-id>
inkbox contacts create --json <payload>
inkbox contacts update <contact-id> --json <patch>
inkbox contacts delete <contact-id>
inkbox contacts bulk-delete <contact-id...>
inkbox contacts lookup (--email <email> | --email-contains <s> | --email-domain <d> | --phone <e164> | --phone-contains <s>)
inkbox contacts import <file.vcf>
inkbox contacts export <contact-id> [--out <file>] # vCard 4.0 to stdout or file
inkbox contacts export-many <contact-id...> [--out <file>]
inkbox contacts facts list <contact-id> [--include-expired]
inkbox contacts facts get <contact-id> <fact-id>
inkbox contacts facts citation <contact-id> <fact-id> <citation-id>
inkbox contacts facts citation-url <source-url>
inkbox contacts facts create <contact-id> --content <text> --kind <profile|preference|context> # admin only
inkbox contacts facts update <contact-id> <fact-id> [--content <text>] [--kind <kind>] # admin only
inkbox contacts facts delete <contact-id> <fact-id> # admin only
inkbox contacts correspondence <contact-id> [--identity <uuid>] [--channels <channel>]
inkbox contacts merge <survivor-id> --losing <contact-id...> [--field-sources <json>] # admin-scoped API key required
inkbox contacts access list <contact-id> # compatibility read only
Correspondence includes all five channels by default. Use --channels slack for
retained messages authored by the contact's saved Slack accounts; it does not
include every message in their channels.
inkbox contacts create saves a matching suggested contact instead of failing:
when an email or phone in the payload already belongs to an unreviewed contact,
that contact is confirmed and printed with its memories and existing identifiers.
Name fields are replaced; omitted non-name profile fields are preserved, and
supplied non-name fields are applied. This also works with agent-scoped API keys.
When the address belongs to a saved contact, to more than one contact, or is in
conflict, the command still fails with HTTP 409
duplicate_contact_identifier.
Unlocked generated context facts leave the default facts list at expiresAt;
locked facts remain active. --include-expired returns expired facts. Any facts
update makes the fact manually maintained, clears its expiry, and revives it;
changing content also removes confidence and source links.
contacts lookup requires exactly one filter flag. For create / update, construct the payload carefully — fields include preferredName, givenName, familyName, companyName, jobTitle, birthday, notes, and lists emails / phones / websites / dates / addresses / customFields (each list item has label / value).
Admin-only free-form notes with per-identity grants (no wildcard).
inkbox notes list [--q <query>] [--identity <uuid>] [--order recent|created] [--limit <n>] [--offset <n>]
inkbox notes get <note-id>
inkbox notes create --body <text> [--title <text>]
inkbox notes update <note-id> [--title <text>] [--body <text>] # pass --title "" to clear
inkbox notes delete <note-id>
# Per-note access grants
inkbox notes access list <note-id>
inkbox notes access grant <note-id> <identity-id> # admin + JWT only
inkbox notes access revoke <note-id> <identity-id>
Availability: Mixed-event identity subscriptions and explicit identity scope
require SDK/CLI 0.7.8 or later and GET /webhooks/catalog returning
supports_identity_subscriptions: true. Until then, use separate mail, text, and
identity-event subscriptions with their existing mailbox, phone, and identity selectors;
omit the scope option. The examples in this section that combine families or create
mail/text subscriptions by identity assume that capability is available. Explicit
identity-wide listing fails clearly when the capability is missing; it does not fall
back to a partial list. Updating or deleting a mixed subscription requires CLI 0.7.8
or later and --scope identity; never omit scope to work around an older CLI.
Each agent identity has its own webhook signing key. Manage it with the
per-identity commands; the org-level inkbox signing-key create is deprecated
(with an agent-scoped key it still rotates that identity's key; with an admin key
the server returns 409).
inkbox whoami
inkbox identity signing-key status <handle>
inkbox identity signing-key rotate <handle> # mints/rotates; prints the secret ONCE
inkbox signing-key create # DEPRECATED — use the per-identity commands above
inkbox webhook verify --payload <payload> --secret <secret> -H "X-Header: value"
# Webhook subscriptions (fan-out per (owner, url, event_types)):
inkbox webhook subscription list [--mailbox-id <id>] [--phone-number-id <id>] [--agent-identity-id <id>] [--scope identity]
inkbox webhook subscription create --agent-identity-id <id> --url <url> --event-type message.received
inkbox webhook subscription create --agent-identity-id <id> --url <url> \
--event-type text.received --event-type text.delivered
inkbox webhook subscription create --agent-identity-id <id> --url <url> \
--event-type imessage.received --event-type imessage.reaction_received
inkbox webhook subscription create --agent-identity-id <id> --url <url> \
--event-type call.ended
# Opt into per-class conversation context on received events (count:N | window:H):
inkbox webhook subscription create --agent-identity-id <id> --url <url> \
--event-type message.received --context-email count:10 --context-texts window:24
# Bearer token sent as Authorization on every delivery (returned by reads):
inkbox webhook subscription create --agent-identity-id <id> --url <url> \
--event-type message.received --auth-token-stdin # token read from stdin
inkbox webhook subscription update <sub-id> --scope identity [--url <url>] [--event-type <type>...] \
[--context-email <spec>] [--context-texts <spec>] [--context-calls <spec>] [--clear-context] \
[--auth-token-stdin] [--clear-auth-token]
inkbox webhook subscription delete <sub-id> --scope identity
Owner-filtered lists retain single-family views unless --scope identity is supplied. Use --agent-identity-id <id> --scope identity to include mixed subscriptions and every notification family.
Every subscription row carries ownerIdentityId (the resolved owning agent identity). The first subscription created for an identity that has no signing key yet returns that identity's signingKey once in the create output (otherwise null) — capture it then, it cannot be retrieved again (use --json to read it reliably).
The --context-email / --context-texts / --context-calls flags each take count:N (1..50) or window:H (1..168) and opt a mail, text, or iMessage subscription into per-class conversation history delivered under data.context on received events. Only received mail, text and iMessage events include context; other selected events ignore it. On update, a --context-* flag replaces the stored config and --clear-context removes it (the two are mutually exclusive).
--auth-token-stdin sets an optional bearer token for endpoints that require their own Authorization header; every delivery (and replay) then carries Authorization: Bearer <token> alongside the signature headers. Reads return the token: get and --json output include authToken, while list tables show only the hasAuthToken flag. The token is only ever read from stdin via --auth-token-stdin, so it never lands in argv or shell history. On update it replaces the stored token and --clear-auth-token removes it (mutually exclusive).
Use whoami --json when you need the authenticated caller shape exactly.
For an agent that handles incoming voice notes, include message.transcription_finished
once alongside the channels' received events when registering
notifications. Check media[].transcription in the original message (Slack:
event.files[].transcription, re-read with slack archive messages --message-id): if any
attachment is pending, wait up to 60 seconds for its completion notification, then
read the original message once. If the transcript failed, remains pending, or
cannot be retrieved, process the original message and attachments normally.
Label generated speech as a voice-note transcript, not a typed message or permission answer.
Preserve the original caption. Received and completion notifications concern the
same message: match data.channel and data.message_id within the receiving identity and respond at most once; never
wake a second response just because a late completion arrives.
inkbox webhook verify is event-type-agnostic — it operates on raw
bytes and only checks the X-Inkbox-Signature HMAC.
The body can be any of:
message.received, message.sent,
message.forwarded, message.delivered, message.bounced,
message.failed. Subscribe via inkbox webhook subscription create --agent-identity-id .... On message.received, data.message carries the
plain-text body (whole under a size cap, else a prefix with
body_truncated: true); when truncated, fetch the full message by its
id (via the API/SDK) — not message_id (the RFC 5322 header).message.transcription_finished is not email. Read
data.text_message when data.channel is text, or data.message for
imessage and whatsapp. The nested message carries its conversation and media.
For slack, data.event.files[] carries the results with connection_id,
conversation_id, message_ts and thread_ts.text.received, text.sent, text.delivered,
text.delivery_failed, text.delivery_unconfirmed. Subscribe via
inkbox webhook subscription create --agent-identity-id ....imessage.received,
imessage.reaction_received, imessage.sent, imessage.delivered,
imessage.delivery_failed. Subscribe via inkbox webhook subscription create --agent-identity-id ... — owned by the agent
identity, since shared iMessage pool numbers are not org resources.whatsapp.received,
whatsapp.sent, whatsapp.delivered, whatsapp.delivery_failed,
whatsapp.delivery_unconfirmed, whatsapp.reaction_received. Subscribe via
inkbox webhook subscription create --agent-identity-id ....call.ended. Subscribe via inkbox webhook subscription create --agent-identity-id ... — owned by the agent identity, like iMessage.
The payload carries the call (with mode / reason), resolved
contacts/identities, an always-present data.transcript_url
(authoritative verbatim), an inline abridged data.transcript when
the platform captured a transcript for the call (otherwise null),
plus data.outcome (completed | no_answer | declined |
failed; null iff the call was client-driven) and
data.post_call_action_items (open items only, seq-ascending).
Voice AI calls fire call.ended on every terminal state, not just
connected calls. Notification families can share one identity subscription.call.ended above).Mail and text payloads carry data.contacts and
data.agent_identities (both always-present lists; mail entries also
carry bucket + address). Outbound mail payloads also include
data.message.bcc_addresses (null on inbound). Group text events
carry per-recipient delivery rows in data.text_message.recipients;
outbound group lifecycle events name the event target in
data.recipient_phone_number (one webhook per recipient leg). Inbound
and outbound 1:1 events leave data.recipient_phone_number as null
— the singular peer is already in data.text_message.remote_phone_number
(inbound) or data.text_message.recipients[0] (outbound 1:1).
Inbound-call payloads carry contacts and agent_identities at the
top level (no envelope). For the typed receiver-side shapes, see the
SDK skills (inkbox-ts, inkbox-python).
npm --prefix cli run dev -- ... when working in this codebase.--json for anything that needs stable parsing.inkbox identity get <handle>.Subscriptions are identity-owned and may combine all notification event families
without configured channels. Update replaces the entire
event selection, and delete removes the whole subscription. Legacy mailbox/phone
selectors remain accepted for compatibility; prefer --agent-identity-id.
Custom signatures are saved per mailbox and require an eligible paid plan to set or enable.
Each HTML/text field supports up to 16,384 characters. HTML is sanitized; logos
must use absolute HTTPS URLs. Updating HTML without text generates a plain-text
fallback. Omitted fields stay unchanged; null clears saved content. If saved text
is null, sending derives it from HTML when possible. Disable without deleting to
pause automatic insertion. Disabling and clearing remain available on every plan.
Signatures are inserted when mail is sent, including replies, forwards, and sent
drafts; do not append them manually. The Inkbox watermark is controlled separately.
Signed/encrypted SMTP mail cannot have a custom signature inserted; disable
automatic insertion before sending those messages.
A .sig file is not a standardized attachment format: read its UTF-8 text or HTML
content into the corresponding field; images and proprietary formats are not imported.
inkbox mailbox update [email protected] --signature-html-file signature.html --signature-enabled
inkbox mailbox update [email protected] --signature-text-file signature.sig
inkbox mailbox update [email protected] --no-signature-enabled
inkbox mailbox update [email protected] --clear-signature-html --clear-signature-text
inkbox mailbox get [email protected] --json
Inline content uses --signature-html <html> or --signature-text <text>.
For each format, choose inline content, a file, or its clear flag, not more than one.
An organization admin can prove DNS control and attach a domain to an agent.
The domain follows the agent's listing: listed agents show it publicly;
unlisted agents show it to their organization and authorized A2A peers. Proof expires at the
returned valid_until; assertions do not establish legal identity or endorse an
agent. Keep the TXT record in place. Domain certification is separate from custom
email sending domains.
See verified domains for expiry, ownership, and recovery rules. These methods require version 0.7.12 or later.
inkbox organization-domain create example.com
# Add the returned TXT record, then use its claim ID.
inkbox organization-domain verify OrganizationDomainClaim_YOUR_ID
inkbox identity domain-affiliation set helper OrganizationDomainClaim_YOUR_ID
inkbox identity domain-affiliation get helper
inkbox a2a directory --public --query example.com
organization-domain provides create, list, get, verify, and delete.
identity domain-affiliation set attaches a claim to an agent.
Use remove <handle> to stop all affiliation assertions.
Use --json to inspect the complete response. Public search also accepts --query,
--cursor, and --limit; preserve the same filters on every page.
--query searches handles, descriptions, skills, and published verified domains,
including domain fragments. Text matches can include agents without a verified
domain. Add --verified-domain example.com to require an exact, current domain
affiliation in public results.
Send commands generate a key and preserve it during bounded request retries.
Use --idempotency-key on email, text, or iMessage sends for a workflow that repeats
the same intended message across command invocations. Preserve the exact input.
inkbox send-lookup --help describes read-only ID recovery. Check current delivery
through the existing get commands, including imessage get. Request retries do
not guarantee delivery retries. Errors print the original request key. Do not
submit a new message solely because confirmation is missing.
In 0.7.14+, use slack contact-rule for directional person/workspace rules
and slack contacts-import for one import page. Follow returned cursors. identity update accepts
--slack-filter-mode or separate --slack-inbound-filter-mode /
--slack-outbound-filter-mode. Writes, default changes and import
require an organization admin key; claimed agent keys can read their own rules.
Import never grants messaging or Companion access.
Identity-scoped Slack commands accept -i/--identity <handle> or
--identity-id <uuid> (exactly one when supplied). Search can omit both with
agent credentials; other identity-scoped commands require one. Live workspace
operations require --connection-id; search accepts it only as an optional filter.
See the Slack API and onboarding guide for implemented SDK/CLI methods.
Use an existing identity. Select a workspace explicitly for live reads and mutations.
Organization-member sessions, organization admin API keys, and claimed agent keys can
save and list setup workspaces in their organization. Claimed agent keys can prepare
and install only their own identity’s app; organization credentials can select an
identity in their organization. Installation availability does not imply preparation
is ready. Save both app-configuration tokens for the target workspace, then prepare
the identity’s app using that saved provisioning-workspace UUID.
Use save_provisioning_workspace / saveProvisioningWorkspace or CLI
slack provisioning-workspace save --credentials-file <path> (use - for stdin).
Reuse safe metadata from list_provisioning_workspaces / listProvisioningWorkspaces.
Tokens are write-only; never put them in command arguments or output.
Pass the saved ID to start_setup (Python/Rust), startSetup (TypeScript), or
slack setup start --provisioning-workspace-id <uuid>.
Poll connection reads until setup.status is ready, with a bounded wait and a few
seconds between reads. For needs_credentials, select a saved workspace or save valid configuration credentials.
Do not blindly retry an unknown setup outcome. Start installation only when ready.
Open the returned URL in a browser; treat the full URL as a secret. After approval,
list connections again to confirm the expected workspace is connected. The app is
bound to its chosen workspace; no client-invitation workflow is supported.
Join accessible
public channels or invite the agent to selected private channels. Slack Connect is
supported when the selected connection has access.
App removal (0.7.23+). For user-requested app removal, use an organization admin API key;
claimed agent keys cannot remove apps or read removal status. Removal is not the
default repair for a reauthorization error. Read the connection list and check
application_created / applicationCreated before using its application generation.
Generate a fresh request UUID once and save it with that generation before removal;
retry uncertain requests with those same values, not a newly read generation.
The removal operation ID equals its saved request UUID.
With the organization admin key configured:
application_generation="$(inkbox --json slack connection list --identity example-agent |
node --input-type=module -e '
import { readFileSync } from "node:fs";
const app = JSON.parse(readFileSync(0, "utf8"));
if (!app.applicationCreated || !Number.isSafeInteger(app.applicationGeneration)
|| app.applicationGeneration < 1) throw new Error("No Slack app is available to remove");
console.log(app.applicationGeneration);
')" || exit 1
request_id="$(uuidgen)" # Generate once; save this ID and the generation before removal.
inkbox slack application remove --identity example-agent \
--expected-application-generation "$application_generation" --request-id "$request_id"
inkbox slack application removal-status --operation-id "$request_id"
Poll the saved operation ID every few seconds with a bounded wait while deletion
is pending, including when the error is credentials_busy. failed and unknown
are terminal; replay does not retry deletion. Removal always attempts permanent
Slack-side deletion, but credential errors or timeouts do not prove the app is gone.
If needed, check and delete the original app in Slack with its original creator.
Removal never prepares another app. Previous connection history becomes unavailable;
the Inkbox identity, other channels, and memory are unchanged. For a fresh app, select
the intended saved workspace-and-creator record (or save another token pair), start
setup explicitly, wait until ready, authorize installation, and invite the new bot
back to channels. A retained non-null app generation does not mean an app exists.
Use explicit connection IDs and stable caller-provided idempotency keys for sends and
utility mutations (reactions, pins, own-message edits/deletions, join/leave, uploads,
and native processing status). Poll sends only while sending and operations only while
in_progress. Unknown is terminal uncertainty and must not be blindly repeated.
Recover lost send responses with get_action_by_key / getActionByKey or CLI
slack action get-by-key --connection-id <uuid> --idempotency-key <key>.
A 404 does not prove no send occurred; never use missing lookup data to justify a
new key. Fresh failed rate-limited sends may include retry_after / retryAfter
seconds; honor that delay before a deliberate new attempt. Stored action reads and
same-key replays do not retain this hint. A recorded terminal action is never resent
by replaying its key. Send
and utility keys use independent per-connection namespaces; utilities emit no outcome
webhook, so read their status through operation lookup. Inspect
capabilities for missing scopes; native processing support remains workspace-dependent.
General file uploads accept standard base64 for 1 byte..10 MiB (CLI: a local --file).
Retained history is separate from bounded live reads and webhook diagnostics. Capture
is automatic for observed messages in accessible conversations, with no time-based
retention limit. Organization-member sessions and organization admin API keys can
disconnect connections, set retention, or purge retained history; claimed agent keys
cannot. Purging history does not stop capture. Omitted retention resets to no time limit.
For search, start with inkbox slack search --q "release notes" across the identity's workspace connections.
Do not loop over connections or require a connection ID for a general search.
Agent credentials infer the identity; other credentials require an explicit identity.
Use a connection filter only to narrow the search. Results include connection IDs.
Use plain English keywords, ranked by relevance then recency; not Slack query
operators or semantic search. Attachment bodies are not indexed. Follow the returned
cursor with the same filters even for short or empty pages, until no cursor remains.
Search errors are not evidence of no matches.
Use archive listing, bounded backfill/restart, and coverage; do not infer complete workspace/thread history
from one page or a completed channel import. Purge deletes retained history without stopping new capture. Archive reads require current connection/conversation access.
In 0.7.15+, use slack archive messages --connection-id ID --roots-only --include conversation,sender,reactions,files for a main timeline with cached display context.
Use slack emoji list, slack cached-media-download, and slack file preview for cached media. Follow emoji cursors explicitly and inspect directory status;
missing permissions or pending synchronization can leave an empty incomplete page.
Unknown reaction/thread counts are not zero, and known reaction counts do not imply complete actor lists.
Omit the roots-only option when reading a selected thread. Expansions do not apply to ranked search.
slack archive messages --connection-id ID --message-id UUID reads one retained message, such as a received event's data.message_id; audio files carry transcription.
Keep caches separate by connection and invalidate them when its generation changes. Never forward
Inkbox credentials to fallback image URLs. Current message and file access checks still apply.
Slack webhooks select incoming messages with slack.dm_received,
slack.group_dm_received, slack.channel_message_received, slack.mention_received,
and slack.thread_reply_received. Overlapping selections produce one logical delivery per subscription,
choosing the first selected match in mention, thread, DM, group DM, channel priority.
Subscriptions cover all accessible conversations across connected workspaces.
There are no Slack-specific filters. Context applies only to received mail, text,
and iMessage events; Slack historical delivery replay is unsupported. The runtime owns attention rules,
watched threads, and its own memory. Webhook delivery order is not guaranteed.
Add --voice-note to imessage send, text send, whatsapp send, or
slack message send and the server speaks --text in the agent's configured Voice AI
voice and sends it as audio. iMessage and WhatsApp get a native voice note; SMS/MMS and
Slack get a plain audio file. --text is required and may be at most 600 characters.
Media, --send-style, and --gif-playback can't be combined with a voice note.
inkbox imessage send --identity my-agent --conversation-id <id> \
--text "Running five minutes late." --voice-note
Fallback defaults to on: when the voice note can't be produced, including text over 600
characters or an SMS/MMS recipient outside the US and Canada (SMS/MMS voice notes go only
to US and Canadian numbers), the text is sent as an ordinary message. Add --no-fallback-to-text
to fail instead (422 voice_note_text_too_long, 422 voice_note_unsupported_destination,
502 voice_note_unavailable, or 409 whatsapp_capability_not_ready).
A voice note has no message text. The spoken text is stored with the message as the
audio attachment's completed transcription. iMessage, SMS/MMS and WhatsApp send
responses include it, as do later reads. On Slack, the
uploaded audio file carries it in archived message reads once Slack confirms which
message the upload became, which is nearly always. A fallback comes back as an
ordinary text message.
Before the recipient's first reply, a 1:1 iMessage voice note counts as media: it is
sent as text, or without fallback fails with
422 imessage_reply_required_for_links_or_media. On WhatsApp, before the recipient's first reply, a voice note is
sent as text when opening messages are allowed but opening media isn't, or without
fallback fails with 422 whatsapp_reply_required_for_media; when no opening messages
are allowed, the send returns 409 whatsapp_awaiting_inbound. On Slack, a failure without fallback also
returns 422 voice_note_text_too_long or 502 voice_note_unavailable on the first
request, and is recorded on the send action (status: failed with the error_code).
Repeating the same idempotency key returns that failed action with 200, so use a new
key to try again.
Requires SDK/CLI 0.7.13 or later. These reply examples require a
phone-number conversation or a supported group; non-phone one-to-one
conversations remain receive-only, including threaded replies. --no-plain-reply-fallback requires
--reply-to-message-id; --thread-id on imessage list requires --conversation-id.
inkbox imessage send -i support-bot --conversation-id <conversation-id> --reply-to-message-id <message-id> --text "Agreed"
inkbox --json imessage thread <message-id> -i support-bot --limit 50
inkbox --json imessage thread <message-id> -i support-bot --cursor <next-cursor>
inkbox --json imessage conversation-thread <conversation-id> <thread-id> -i support-bot
inkbox imessage conversation <conversation-id> -i support-bot --thread-id <thread-id>
inkbox imessage list -i support-bot --conversation-id <conversation-id> --thread-id <thread-id>
--reply-to-message-id requires --conversation-id and cannot be combined
with --to. Thread commands return threadId, conversationId,
threadRootMessageId, messages, and nextCursor; use --json to preserve
the complete page. Messages include replyToMessageId, threadId, and
threadRootMessageId when available.
Thread IDs are opaque and distinct from message IDs. Thread pages include the
root and its replies in chronological order; follow next_cursor (Python/Rust)
or nextCursor (TypeScript/CLI) until null. A standalone message can have its own
thread ID and use its own message ID as the root, even before anyone replies.
A non-null reply_to_message_id / replyToMessageId identifies a visible reply
parent; a thread ID alone does not mean the message has replies. Thread metadata
may be null for pending or older messages, and the root or direct parent can be
unavailable. Conversation message lists remain flat and newest-first. A thread filter requires its conversation ID; it uses the existing
limit/offset pagination, unlike the chronological thread endpoints.
Native replies work in supported one-to-one and group iMessage conversations. Use a message from the same conversation. With plain fallback enabled (the default), the API sends an ordinary message in that conversation when native threading is unsupported: the target is known to use SMS/RCS or was downgraded. This does not force a particular transport. An ordinary fallback has no reply parent and does not join the target's native thread. Invalid or inaccessible targets, unsettled messages, and missing reply metadata still fail. Delivery errors are not retried as new ordinary messages. If a previously supported target can no longer receive a native reply, that send may fail even with fallback enabled. Read the message status and error fields after queueing; delivery webhooks do not cover every failure before dispatch. Omitting the target preserves ordinary sending.
Add --no-plain-reply-fallback to imessage send to require a native reply
instead.
WhatsApp never starts a conversation by default: the agent replies after the
recipient messages first. Shared numbers never start conversations; dedicated
numbers can only with approval for your organization. Until the recipient writes,
sends fail with 409 whatsapp_awaiting_inbound; wait for their message instead
of retrying or switching channels. A dedicated WhatsApp number can match the
agent's iMessage number or be different; an iMessage number is not required.
For an agent without a dedicated number, the WhatsApp resource's connect /
inkbox whatsapp connect reserves an organization shared number for one
recipient and sends nothing: give the recipient the returned number. Connect and disconnect need a fresh UUID idempotency key per action. Use a new key for each new connect or disconnect; reuse a key only to retry that same request. Sending through a shared number to a recipient the agent is not connected to returns 403 whatsapp_access_required; key errors are invalid_idempotency_key, idempotency_key_reused, idempotency_in_progress (retry with the same key), and result_unavailable (check connections first). Pass the
recipient number when uploading media for a shared-number reply. People can also
text the router number (get_triage_number / getTriageNumber / inkbox whatsapp triage-number).
Read fresh WhatsApp channel status;
do not attempt self-service enablement or substitute SMS/iMessage. If unavailable,
point the user to Request Access in the console. Direct conversations, existing groups, native quotes, and whole-message reactions are
supported; groups work only on dedicated numbers. Use the SDK's WhatsApp resource or inkbox whatsapp CLI commands.
Send to one E.164 string or an existing conversation ID. Recipient
arrays, including singleton arrays, and comma-separated lists are rejected.
For groups, use the conversation ID, never its display name. The agent must be added
in WhatsApp and receive a message from another participant before sending content
or reactions. Do not create groups or fan out into separate sends. Upload at most one attachment
(default policy 5 MiB, hard ceiling 20 MiB) first and reuse its owned media ID. Outbound text is at most 4,000 Unicode
code points. Preserve a stable logical-send key and media ID after ambiguity;
check message/lookup state rather than sending a duplicate. Attachment URLs expire:
refresh metadata by media ID before downloading. Mark-read sends supported read receipts and reports whether they were sent. Only whatsapp.received is new incoming content; delivery notifications
must not trigger replies. Quote only an authorized message in the selected conversation using
reply_to_message_id / replyToMessageId. Never silently fall back to a plain send.
Read quote chains with the thread helpers. React with named love/like/dislike/laugh/
emphasize/question/eyes or exclusive custom emoji and an explicit stable key.
Keep pending/uncertain receipts separate from live applied reactions. Remove only
the selected receipt version. Reaction notifications are not new text-reply turns.
Typing and read receipts are supported for eligible direct conversations. WhatsApp calls are not supported.
All group participants must have known phone numbers (unresolved_participant_count
/ unresolvedParticipantCount must be zero). Incoming content checks inbound
contact rules for every participant; blocked content produces no whatsapp.received.
Content and reaction sends check outbound rules and return whatsapp_contact_not_allowed
if any participant is unresolved or not allowed for outbound traffic. An outbound-only
block does not block incoming content or erase earlier qualifying incoming messages.
A new allowed incoming message is needed only if none already qualifies. Do not
repeatedly retry this error or suggest weakening contact rules; check the current
participant metadata and the relevant direction's permissions.
A 409 whatsapp_group_reply_required means the current WhatsApp connection has no
qualifying incoming group message, including after a connection replacement.
Wait for an allowed message from another participant. Do not retry with a new
idempotency key or fall back to a direct message.
Group remote_number / remoteNumber is null. group_name / groupName is display
metadata; an unknown sender number can occur in blocked incoming history.
For animations, upload MP4 with content type video/mp4, then set gif_playback
(Python/Rust), gifPlayback (TypeScript), or --gif-playback (CLI). Group sends
remain subject to message, conversation, and unanswered-message limits.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub inkbox-ai/inkbox --plugin inkbox7 skills in this plugin
/inkbox-agent-self-signupUse when guiding or implementing the Inkbox agent self-signup flow, including verification, resend-verification, signup restrictions, and optional signup fields like agent handles or mailbox local parts./inkbox-allIndex of all Inkbox skills in this repository, including the example skills under `examples/`, with GitHub links and short guidance on when to use each one./inkbox-onboardingUse when setting up an existing Inkbox identity for email, SMS, iMessage, calls, inbound handling, and recurring communications triage with the API, CLI, Python SDK, or TypeScript SDK./inkbox-pythonUse when writing Python code that imports from `inkbox`, uses `pip install inkbox`, or when adding email, mailbox imports, phone, text/SMS, iMessage, A2A task/message history, contacts, notes, contact rules, vault, tunnels, mailbox storage, mail clients (IMAP/SMTP), or agent identity features using the Inkbox Python SDK./inkbox-tsUse when writing TypeScript or JavaScript code that imports from `@inkbox/sdk`, uses `npm install @inkbox/sdk`, or when adding email, mailbox imports, phone, text/SMS, iMessage, A2A task/message history, contacts, notes, contact rules, vault, tunnels, mailbox storage, mail clients (IMAP/SMTP), or agent identity features using the Inkbox TypeScript SDK./inkbox-tunnelsUse when bringing a local server online behind a public Inkbox URL — covers Python, TypeScript, and Rust tunnel runtimes, edge vs passthrough TLS, forwarding, handlers, and local liveness.Other plugins' skills for the same job