https://snapcraft.io/docs/how-to-guides/snap-development/use-the-rest-api/
Use the REST API - Snap documentation
The REST API provides access to snapd’s state and many of its key functions. See below for details on accessing the API, authentication, JSON elements and...
use the rest apisnap documentation