Check if the device is registered in serial vault on first boot trough snap

Hi,

How can i check if my device completed getting pub keys from serial vault.

I want to enforce my validation sets on first boot. But i can only do it after the device is initialised. Is there is rest api interface or by another method i can check is device is registered to serial vault?

I know i can do “snap known serial”. But how can i do it inside a snap