Pi-hole integration

I'm trying to add 2 pihole v6 LXCs to Homarr. I've tried updating the app password and also removing the app password. Last error I got was "{"error":{"key":"bad_request","message":"Bad request","hint":"The API is hosted at pi.hole/api, not pi.hole/admin/api"},"took":4.9591064453125e-05}" when I included /admin into the url. Without the /admin I just get "The request was not authorized. Please verify that the credentials are correct and you have them configured with enough permissions." In Pi-hole I go to Settings> Web Interface / API> Configure App Password>Replace app password. I even selected "remove app password and attempted the LXC root password. Running Homarr 1.32.0 and Pi-hole Core v6.1.4 FTL v6.2.3 Web interface v6.2.1
11 Replies
Cakey Bot
Cakey Bot2w ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Meierschlumpf
Meierschlumpf2w ago
Okay so, 1. You should not specify any path 2. What is the lcx password? Is that from proxmox? You can configure an app password in the settings of pi-hole and use that
Meierschlumpf
Meierschlumpf2w ago
No description
socalest1977
socalest1977OP2w ago
I removed the path and just got the generic "not authorized" error. Yes, the LXC password is the container root password.
I have configured the app password multiple times with no success.
Meierschlumpf
Meierschlumpf2w ago
The container root password does not work as an "apiKey" for pi-hole 🤔 Can you make a screenshot of your pi-hole page and the homarr integration creation page? You can redact the domain and such, I only need the authorization error visible & see that the app password is actually configured
socalest1977
socalest1977OP2w ago
I selected Replace and pasted the key into Homarr.
No description
No description
Meierschlumpf
Meierschlumpf2w ago
You said you have two pi-holes, is the app password from the same as the url points to?
socalest1977
socalest1977OP2w ago
I verified I have the correct IP address for the key. The pihole log states: 2025-08-11 15:41:55.476 INFO Config file written to /etc/pihole/pihole.toml 2025-08-11 15:42:35.748 WARNING API: Bad request (key: bad_request, hint: The API is hosted at pi.hole/api, not pi.hole/admin/api) 2025-08-11 15:42:35.751 WARNING API: Bad request (key: bad_request, hint: The API is hosted at pi.hole/api, not pi.hole/admin/api) 2025-08-11 15:49:24.535 INFO Wrote config file: I'm not adding /admin to the url, just the ip address.
Meierschlumpf
Meierschlumpf2w ago
This is pretty weird, can you enable LOG_LEVEL=debug for homarr and check the Dispatching http://your-ip logs?
socalest1977
socalest1977OP2w ago
Turned on debug in the GUI and got flooded. Didn't see anything, but it's difficult because it keeps updating. Don't know about dispatching. Can the logs be saved somewhere?
Meierschlumpf
Meierschlumpf2w ago
You should be able to use something like docker logs --tail 1000 <container_name_or_id> > logs.txt to put the last 1000 lines of your logs to a file

Did you find this page helpful?