Rotate App Token
ethora-app-tokens-rotate-v2Rotate an app token: revoke an existing token and issue a replacement in one step. The old tokenId is revoked immediately — anything using it stops working at once. The new secret value is returned exactly once — capture it immediately.
Auth: B2B mode (ethora-auth-use-b2b + a configured b2bToken). Errors: 401/403 not in B2B mode; 400 no appId and none selected; 404 unknown appId or tokenId. Related: ethora-app-tokens-revoke-v2 to revoke without a replacement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | 24-char hex appId the token belongs to. Optional — defaults to the app set via `ethora-app-select`. | |
| label | No | Label for the replacement token. Omit to inherit the old token's label. | |
| tokenId | Yes | Id of the token to revoke and replace. Get it from `ethora-app-tokens-list-v2`. | |
| timeoutMs | No | HTTP timeout for this request, in milliseconds. Default 10000. |