wx tokens
此内容尚不支持你的语言。
Create and revoke API tokens for selected accounts
wx tokens create
Create an API token with account and permission scopes
| Argument or flag | Takes | What it does |
|---|---|---|
<NAME> | position 1, required | Label for the new token |
--accounts | required, takes <ACCOUNTS>, repeatable | Account ID the token may use, or * for all accounts; repeat for several |
--expires-at | takes <EXPIRES_AT> | Expire the token at this Unix time in seconds; it never expires if omitted |
--scopes | required, takes <SCOPES>, repeatable | Permission to grant: read, media, send, read-state, login, admin or calls; repeat |
wx tokens list
List API tokens without revealing their secret values
wx tokens revoke
Revoke an API token by ID
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | Token ID from wx tokens list |