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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"enabled": "<enabled>"
},
"name": "set_api_state"
}
}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. |