Check out <#C1XCLA5DZ|>, <#C1KQV03PC|> or <#C206DU...
# general
g
Check out #C1XCLA5DZ, #C1KQV03PC or #C206DUR5Y for existing projects that have that functionality. The docs also have a sample python project https://osquery.readthedocs.io/en/stable/deployment/remote/#remote-server-api