When I call the REST endpoint auth and pass in my API key I get a SID to use for the other REST requests. However, when I do I get this error regarding the SID:
(I have enabled Permit destructive actions via API)
{
"error": {
"key": "forbidden",
"message": "Unable to change configuration (read-only)",
"hint": "The current app session is not allowed to modify Pi-hole config settings (webserver.api.app_sudo is false)"
},
"took": 0.0002167224884033203
}
What password did you use to authenticate? If you used the app password, you need to enable webserver.api.app_sudo to be able to change config settings.
But if you use your normal login password, changes should be allowed by default.
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
2025-03-13 14:55:26.385 CDT [13152/T13384] WARNING: API: Unable to change configuration (read-only) (key: forbidden, hint: The current app session is not allowed to modify Pi-hole config settings (webserver.api.app_sudo is false))
It is enabled. The issue is that any sid that I create seems to be nerfed to read only. I can create them if I use the Pihole API docs page but I need to be able to do this from a remote client.