API Token in Beta 6 for HomePage integration

I was just wondering in Beta 6.0 how to work with applications that use the API Token such as HomePage to display PiHole info:


I am lost with the configuration page in the beta release on how to generate the appropriate token:


In PiHole 5 we just had to do the "Show API Token"

Pi-hole v6 has an altogether redesigned REST-based API. Existing applications won't work without changes. You have already found the right place though - the app password is the new (way better!) way alternative to the API token.

1 Like

Homepage dev here. I will take a look once I find the correct docs to read but quickly wanted to ask if there will be an easy way to detect api versions, or what the recommendation is? Iā€™m certain we will have to support the old version for quite some time

It's quite simple, there is no PHP anymore in v6, so also no api.php (error 404).

Check out the documentation draft, especially the authentication bit: Overview - Pi-hole documentation

The API itself is 100% documented using OpenAPI specs, and will be shipped with every Pi-hole offline. You may find an online copy here: Pi-hole API documentation

But the easiest way to see the interaction would probably be grabbing a v6 docker container and simply watch the Dev Tools in your browser while browsing the web interface.

Awesome, thanks for the links, and congrats on the [forthcoming] big release!