Andrea
If you are using an IQ4 I would suggest using the bacnet driver as referenced in this post bacnet support as IQ4s are also native bacnet controllers. If you are using IQ3s then http://IQ4_IP_ADDRESS_/ws/tsite.xml?&Request=I1($,S) will get you the label and state of input 1. To see all the available parameters just use http://IQ4_IP_ADDRESS_/ws/tsite.xml?&Request=I1(*) and pick what you need.
Hope it helps.