Below you can find and example of how to authenticate and connect using C# to the Sophos API and pulll down a device list.