Core API - Kea Leases "Endpoint not found"

Started by tbone, January 30, 2026, 06:51:57 PM

Previous topic - Next topic
January 30, 2026, 06:51:57 PM Last Edit: January 31, 2026, 12:13:43 PM by tbone
Hi.
I'd like to query the actual leases from a client PC.
According to documentation https://docs.opnsense.org/development/api/core/kea.html the endpoint should be GET /api/kea/leases/search.
Other Kea endpoint do return values, but at this one I get "Endpoint not found".

Can someone help me how to retrieve the list of dhcp leases?

-Thomas

The documentation is auto-generated and appears to have a small issue.

/api/kea/leases4/search
/api/kea/leases6/search

You can find these endpoints very quickly in the core code.


Cheers,
Franco