Turn the API on or off
set_api_stateToggle Wiki.js API availability globally. Disabling revokes all API keys instantly; requires confirmation token to proceed.
Instructions
Switches Wiki.js’ whole API on or off. Turning it off disables every API key at once, including this server’s — after which the only way back is the web administration UI. Requires a confirmation token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | True to enable the API, false to disable it. | |
| confirm_token | No | Token from this tool’s previous, unconfirmed call. Omit it to receive one. |