On our GitHub page, you can find an example which shows you how to query Formant for a list of all devices within your organization. You can narrow this query down by tags, device name, or other identifying characteristics. You can then parse the output string to gather relevant information.
Test out the following example to understand its function calls and string format: GitHub: query_devices.py