CLI command
tinbox tokens create
Mint a scoped agent token on an inbox (returns plaintext ONCE). Scopes default to the role (viewer→read; agent→read,write; admin→read,write,admin) and act as a ceiling on the grant.
Usage
sh
tinbox tokens create --inbox <inbox> --name <name> --role <role> --ttl <ttl> --scope <scope>Flags
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--inbox | string | yes | — | inbox id (ibx_…) or address (support / support@acme.com) |
--name | string | yes | — | human label (default: cli-<role>-<date>) |
--role | string | yes | — | viewer | agent | admin (default agent; stored agent = member) |
--ttl | string | yes | — | expiry, e.g. 30d, 12h, 45m (units: s m h d w); omit = never expires |
--scope | string | yes | — | override coarse scope (repeatable): read | write | admin | * |