Turn the API on or off
set_api_stateEnable or disable all Wiki.js API access instantly. Disabling revokes every API key, including this server's; restore access only via the web admin UI after confirming.
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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |