Whats the equivalent API of `snap ack`

Is there a way to run snap ack (whatever that does internally) command while talking to snapd unix socket ?

I have a snap and assert file and want to install them via the API. This page suggests a way to sideload a snap https://snapcraft.io/docs/snapd-api#heading--snaps but does not talk about how to verify an assert file.

The endpoint you are looking for on that page is POST /v2/assertions

Thanks for the reply. I did find that API and it works as expected.