OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: tbone on January 30, 2026, 06:51:57 PM

Title: Core API - Kea Leases "Endpoint not found"
Post by: tbone on January 30, 2026, 06:51:57 PM
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
Title: Re: Core API - Kea Leases "Endpoint not found"
Post by: franco on February 07, 2026, 06:51:08 PM
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